diff --git a/radar/aibotsummary.go b/radar/aibotsummary.go index 19470358d83..bb4d1eb1f32 100644 --- a/radar/aibotsummary.go +++ b/radar/aibotsummary.go @@ -223,13 +223,13 @@ func (r AIBotSummaryUserAgentParams) URLQuery() (v url.Values) { type AIBotSummaryUserAgentParamsFormat string const ( - AIBotSummaryUserAgentParamsFormatJson AIBotSummaryUserAgentParamsFormat = "JSON" + AIBotSummaryUserAgentParamsFormatJSON AIBotSummaryUserAgentParamsFormat = "JSON" AIBotSummaryUserAgentParamsFormatCsv AIBotSummaryUserAgentParamsFormat = "CSV" ) func (r AIBotSummaryUserAgentParamsFormat) IsKnown() bool { switch r { - case AIBotSummaryUserAgentParamsFormatJson, AIBotSummaryUserAgentParamsFormatCsv: + case AIBotSummaryUserAgentParamsFormatJSON, AIBotSummaryUserAgentParamsFormatCsv: return true } return false diff --git a/radar/aibotsummary_test.go b/radar/aibotsummary_test.go index ce048e1d780..df489577243 100644 --- a/radar/aibotsummary_test.go +++ b/radar/aibotsummary_test.go @@ -34,7 +34,7 @@ func TestAIBotSummaryUserAgentWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AIBotSummaryUserAgentParamsFormatJson), + Format: cloudflare.F(radar.AIBotSummaryUserAgentParamsFormatJSON), LimitPerGroup: cloudflare.F(int64(10)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), diff --git a/radar/aitimeseriesgroup.go b/radar/aitimeseriesgroup.go index dabb77b4cda..3c7bdaf76c4 100644 --- a/radar/aitimeseriesgroup.go +++ b/radar/aitimeseriesgroup.go @@ -159,13 +159,13 @@ func (r AITimeseriesGroupUserAgentParamsAggInterval) IsKnown() bool { type AITimeseriesGroupUserAgentParamsFormat string const ( - AITimeseriesGroupUserAgentParamsFormatJson AITimeseriesGroupUserAgentParamsFormat = "JSON" + AITimeseriesGroupUserAgentParamsFormatJSON AITimeseriesGroupUserAgentParamsFormat = "JSON" AITimeseriesGroupUserAgentParamsFormatCsv AITimeseriesGroupUserAgentParamsFormat = "CSV" ) func (r AITimeseriesGroupUserAgentParamsFormat) IsKnown() bool { switch r { - case AITimeseriesGroupUserAgentParamsFormatJson, AITimeseriesGroupUserAgentParamsFormatCsv: + case AITimeseriesGroupUserAgentParamsFormatJSON, AITimeseriesGroupUserAgentParamsFormatCsv: return true } return false diff --git a/radar/aitimeseriesgroup_test.go b/radar/aitimeseriesgroup_test.go index 5f858468d18..c10d5538931 100644 --- a/radar/aitimeseriesgroup_test.go +++ b/radar/aitimeseriesgroup_test.go @@ -35,7 +35,7 @@ func TestAITimeseriesGroupUserAgentWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AITimeseriesGroupUserAgentParamsFormatJson), + Format: cloudflare.F(radar.AITimeseriesGroupUserAgentParamsFormatJSON), LimitPerGroup: cloudflare.F(int64(10)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), diff --git a/radar/annotation.go b/radar/annotation.go index 5f43acd04c8..99b0af73b38 100644 --- a/radar/annotation.go +++ b/radar/annotation.go @@ -241,13 +241,13 @@ func (r AnnotationListParams) URLQuery() (v url.Values) { type AnnotationListParamsFormat string const ( - AnnotationListParamsFormatJson AnnotationListParamsFormat = "JSON" + AnnotationListParamsFormatJSON AnnotationListParamsFormat = "JSON" AnnotationListParamsFormatCsv AnnotationListParamsFormat = "CSV" ) func (r AnnotationListParamsFormat) IsKnown() bool { switch r { - case AnnotationListParamsFormatJson, AnnotationListParamsFormatCsv: + case AnnotationListParamsFormatJSON, AnnotationListParamsFormatCsv: return true } return false diff --git a/radar/annotation_test.go b/radar/annotation_test.go index a160ce0acac..d9240c13b4a 100644 --- a/radar/annotation_test.go +++ b/radar/annotation_test.go @@ -33,7 +33,7 @@ func TestAnnotationListWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F(time.Now()), DateRange: cloudflare.F("7d"), DateStart: cloudflare.F(time.Now()), - Format: cloudflare.F(radar.AnnotationListParamsFormatJson), + Format: cloudflare.F(radar.AnnotationListParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F("US"), Offset: cloudflare.F(int64(0)), diff --git a/radar/annotationoutage.go b/radar/annotationoutage.go index 5b3eb65b0ff..48787716917 100644 --- a/radar/annotationoutage.go +++ b/radar/annotationoutage.go @@ -300,13 +300,13 @@ func (r AnnotationOutageGetParams) URLQuery() (v url.Values) { type AnnotationOutageGetParamsFormat string const ( - AnnotationOutageGetParamsFormatJson AnnotationOutageGetParamsFormat = "JSON" + AnnotationOutageGetParamsFormatJSON AnnotationOutageGetParamsFormat = "JSON" AnnotationOutageGetParamsFormatCsv AnnotationOutageGetParamsFormat = "CSV" ) func (r AnnotationOutageGetParamsFormat) IsKnown() bool { switch r { - case AnnotationOutageGetParamsFormatJson, AnnotationOutageGetParamsFormatCsv: + case AnnotationOutageGetParamsFormatJSON, AnnotationOutageGetParamsFormatCsv: return true } return false @@ -362,13 +362,13 @@ func (r AnnotationOutageLocationsParams) URLQuery() (v url.Values) { type AnnotationOutageLocationsParamsFormat string const ( - AnnotationOutageLocationsParamsFormatJson AnnotationOutageLocationsParamsFormat = "JSON" + AnnotationOutageLocationsParamsFormatJSON AnnotationOutageLocationsParamsFormat = "JSON" AnnotationOutageLocationsParamsFormatCsv AnnotationOutageLocationsParamsFormat = "CSV" ) func (r AnnotationOutageLocationsParamsFormat) IsKnown() bool { switch r { - case AnnotationOutageLocationsParamsFormatJson, AnnotationOutageLocationsParamsFormatCsv: + case AnnotationOutageLocationsParamsFormatJSON, AnnotationOutageLocationsParamsFormatCsv: return true } return false diff --git a/radar/annotationoutage_test.go b/radar/annotationoutage_test.go index 9220e2ed750..ef058147424 100644 --- a/radar/annotationoutage_test.go +++ b/radar/annotationoutage_test.go @@ -33,7 +33,7 @@ func TestAnnotationOutageGetWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F(time.Now()), DateRange: cloudflare.F("7d"), DateStart: cloudflare.F(time.Now()), - Format: cloudflare.F(radar.AnnotationOutageGetParamsFormatJson), + Format: cloudflare.F(radar.AnnotationOutageGetParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F("US"), Offset: cloudflare.F(int64(0)), @@ -64,7 +64,7 @@ func TestAnnotationOutageLocationsWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F(time.Now()), DateRange: cloudflare.F("7d"), DateStart: cloudflare.F(time.Now()), - Format: cloudflare.F(radar.AnnotationOutageLocationsParamsFormatJson), + Format: cloudflare.F(radar.AnnotationOutageLocationsParamsFormatJSON), Limit: cloudflare.F(int64(5)), }) if err != nil { diff --git a/radar/as112.go b/radar/as112.go index 211c866eb9e..7588932b524 100644 --- a/radar/as112.go +++ b/radar/as112.go @@ -270,13 +270,13 @@ func (r AS112TimeseriesParamsAggInterval) IsKnown() bool { type AS112TimeseriesParamsFormat string const ( - AS112TimeseriesParamsFormatJson AS112TimeseriesParamsFormat = "JSON" + AS112TimeseriesParamsFormatJSON AS112TimeseriesParamsFormat = "JSON" AS112TimeseriesParamsFormatCsv AS112TimeseriesParamsFormat = "CSV" ) func (r AS112TimeseriesParamsFormat) IsKnown() bool { switch r { - case AS112TimeseriesParamsFormatJson, AS112TimeseriesParamsFormatCsv: + case AS112TimeseriesParamsFormatJSON, AS112TimeseriesParamsFormatCsv: return true } return false diff --git a/radar/as112_test.go b/radar/as112_test.go index a5fbe4ec376..ef8c4e7b6cb 100644 --- a/radar/as112_test.go +++ b/radar/as112_test.go @@ -35,7 +35,7 @@ func TestAS112TimeseriesWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112TimeseriesParamsFormatJson), + Format: cloudflare.F(radar.AS112TimeseriesParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) diff --git a/radar/as112summary.go b/radar/as112summary.go index f5d366540f9..a6bb5a8cb22 100644 --- a/radar/as112summary.go +++ b/radar/as112summary.go @@ -1034,13 +1034,13 @@ func (r AS112SummaryDNSSECParams) URLQuery() (v url.Values) { type AS112SummaryDNSSECParamsFormat string const ( - AS112SummaryDNSSECParamsFormatJson AS112SummaryDNSSECParamsFormat = "JSON" + AS112SummaryDNSSECParamsFormatJSON AS112SummaryDNSSECParamsFormat = "JSON" AS112SummaryDNSSECParamsFormatCsv AS112SummaryDNSSECParamsFormat = "CSV" ) func (r AS112SummaryDNSSECParamsFormat) IsKnown() bool { switch r { - case AS112SummaryDNSSECParamsFormatJson, AS112SummaryDNSSECParamsFormatCsv: + case AS112SummaryDNSSECParamsFormatJSON, AS112SummaryDNSSECParamsFormatCsv: return true } return false @@ -1108,13 +1108,13 @@ func (r AS112SummaryEdnsParams) URLQuery() (v url.Values) { type AS112SummaryEdnsParamsFormat string const ( - AS112SummaryEdnsParamsFormatJson AS112SummaryEdnsParamsFormat = "JSON" + AS112SummaryEdnsParamsFormatJSON AS112SummaryEdnsParamsFormat = "JSON" AS112SummaryEdnsParamsFormatCsv AS112SummaryEdnsParamsFormat = "CSV" ) func (r AS112SummaryEdnsParamsFormat) IsKnown() bool { switch r { - case AS112SummaryEdnsParamsFormatJson, AS112SummaryEdnsParamsFormatCsv: + case AS112SummaryEdnsParamsFormatJSON, AS112SummaryEdnsParamsFormatCsv: return true } return false @@ -1183,13 +1183,13 @@ func (r AS112SummaryIPVersionParams) URLQuery() (v url.Values) { type AS112SummaryIPVersionParamsFormat string const ( - AS112SummaryIPVersionParamsFormatJson AS112SummaryIPVersionParamsFormat = "JSON" + AS112SummaryIPVersionParamsFormatJSON AS112SummaryIPVersionParamsFormat = "JSON" AS112SummaryIPVersionParamsFormatCsv AS112SummaryIPVersionParamsFormat = "CSV" ) func (r AS112SummaryIPVersionParamsFormat) IsKnown() bool { switch r { - case AS112SummaryIPVersionParamsFormatJson, AS112SummaryIPVersionParamsFormatCsv: + case AS112SummaryIPVersionParamsFormatJSON, AS112SummaryIPVersionParamsFormatCsv: return true } return false @@ -1258,13 +1258,13 @@ func (r AS112SummaryProtocolParams) URLQuery() (v url.Values) { type AS112SummaryProtocolParamsFormat string const ( - AS112SummaryProtocolParamsFormatJson AS112SummaryProtocolParamsFormat = "JSON" + AS112SummaryProtocolParamsFormatJSON AS112SummaryProtocolParamsFormat = "JSON" AS112SummaryProtocolParamsFormatCsv AS112SummaryProtocolParamsFormat = "CSV" ) func (r AS112SummaryProtocolParamsFormat) IsKnown() bool { switch r { - case AS112SummaryProtocolParamsFormatJson, AS112SummaryProtocolParamsFormatCsv: + case AS112SummaryProtocolParamsFormatJSON, AS112SummaryProtocolParamsFormatCsv: return true } return false @@ -1336,13 +1336,13 @@ func (r AS112SummaryQueryTypeParams) URLQuery() (v url.Values) { type AS112SummaryQueryTypeParamsFormat string const ( - AS112SummaryQueryTypeParamsFormatJson AS112SummaryQueryTypeParamsFormat = "JSON" + AS112SummaryQueryTypeParamsFormatJSON AS112SummaryQueryTypeParamsFormat = "JSON" AS112SummaryQueryTypeParamsFormatCsv AS112SummaryQueryTypeParamsFormat = "CSV" ) func (r AS112SummaryQueryTypeParamsFormat) IsKnown() bool { switch r { - case AS112SummaryQueryTypeParamsFormatJson, AS112SummaryQueryTypeParamsFormatCsv: + case AS112SummaryQueryTypeParamsFormatJSON, AS112SummaryQueryTypeParamsFormatCsv: return true } return false @@ -1414,13 +1414,13 @@ func (r AS112SummaryResponseCodesParams) URLQuery() (v url.Values) { type AS112SummaryResponseCodesParamsFormat string const ( - AS112SummaryResponseCodesParamsFormatJson AS112SummaryResponseCodesParamsFormat = "JSON" + AS112SummaryResponseCodesParamsFormatJSON AS112SummaryResponseCodesParamsFormat = "JSON" AS112SummaryResponseCodesParamsFormatCsv AS112SummaryResponseCodesParamsFormat = "CSV" ) func (r AS112SummaryResponseCodesParamsFormat) IsKnown() bool { switch r { - case AS112SummaryResponseCodesParamsFormatJson, AS112SummaryResponseCodesParamsFormatCsv: + case AS112SummaryResponseCodesParamsFormatJSON, AS112SummaryResponseCodesParamsFormatCsv: return true } return false diff --git a/radar/as112summary_test.go b/radar/as112summary_test.go index f6da7688de4..e580d61159d 100644 --- a/radar/as112summary_test.go +++ b/radar/as112summary_test.go @@ -34,7 +34,7 @@ func TestAS112SummaryDNSSECWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112SummaryDNSSECParamsFormatJson), + Format: cloudflare.F(radar.AS112SummaryDNSSECParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) @@ -66,7 +66,7 @@ func TestAS112SummaryEdnsWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112SummaryEdnsParamsFormatJson), + Format: cloudflare.F(radar.AS112SummaryEdnsParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) @@ -98,7 +98,7 @@ func TestAS112SummaryIPVersionWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112SummaryIPVersionParamsFormatJson), + Format: cloudflare.F(radar.AS112SummaryIPVersionParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) @@ -130,7 +130,7 @@ func TestAS112SummaryProtocolWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112SummaryProtocolParamsFormatJson), + Format: cloudflare.F(radar.AS112SummaryProtocolParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) @@ -162,7 +162,7 @@ func TestAS112SummaryQueryTypeWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112SummaryQueryTypeParamsFormatJson), + Format: cloudflare.F(radar.AS112SummaryQueryTypeParamsFormatJSON), LimitPerGroup: cloudflare.F(int64(10)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -195,7 +195,7 @@ func TestAS112SummaryResponseCodesWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112SummaryResponseCodesParamsFormatJson), + Format: cloudflare.F(radar.AS112SummaryResponseCodesParamsFormatJSON), LimitPerGroup: cloudflare.F(int64(10)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), diff --git a/radar/as112timeseriesgroup.go b/radar/as112timeseriesgroup.go index ae5bf865cf9..751527a3468 100644 --- a/radar/as112timeseriesgroup.go +++ b/radar/as112timeseriesgroup.go @@ -459,13 +459,13 @@ func (r AS112TimeseriesGroupDNSSECParamsAggInterval) IsKnown() bool { type AS112TimeseriesGroupDNSSECParamsFormat string const ( - AS112TimeseriesGroupDNSSECParamsFormatJson AS112TimeseriesGroupDNSSECParamsFormat = "JSON" + AS112TimeseriesGroupDNSSECParamsFormatJSON AS112TimeseriesGroupDNSSECParamsFormat = "JSON" AS112TimeseriesGroupDNSSECParamsFormatCsv AS112TimeseriesGroupDNSSECParamsFormat = "CSV" ) func (r AS112TimeseriesGroupDNSSECParamsFormat) IsKnown() bool { switch r { - case AS112TimeseriesGroupDNSSECParamsFormatJson, AS112TimeseriesGroupDNSSECParamsFormatCsv: + case AS112TimeseriesGroupDNSSECParamsFormatJSON, AS112TimeseriesGroupDNSSECParamsFormatCsv: return true } return false @@ -558,13 +558,13 @@ func (r AS112TimeseriesGroupEdnsParamsAggInterval) IsKnown() bool { type AS112TimeseriesGroupEdnsParamsFormat string const ( - AS112TimeseriesGroupEdnsParamsFormatJson AS112TimeseriesGroupEdnsParamsFormat = "JSON" + AS112TimeseriesGroupEdnsParamsFormatJSON AS112TimeseriesGroupEdnsParamsFormat = "JSON" AS112TimeseriesGroupEdnsParamsFormatCsv AS112TimeseriesGroupEdnsParamsFormat = "CSV" ) func (r AS112TimeseriesGroupEdnsParamsFormat) IsKnown() bool { switch r { - case AS112TimeseriesGroupEdnsParamsFormatJson, AS112TimeseriesGroupEdnsParamsFormatCsv: + case AS112TimeseriesGroupEdnsParamsFormatJSON, AS112TimeseriesGroupEdnsParamsFormatCsv: return true } return false @@ -657,13 +657,13 @@ func (r AS112TimeseriesGroupIPVersionParamsAggInterval) IsKnown() bool { type AS112TimeseriesGroupIPVersionParamsFormat string const ( - AS112TimeseriesGroupIPVersionParamsFormatJson AS112TimeseriesGroupIPVersionParamsFormat = "JSON" + AS112TimeseriesGroupIPVersionParamsFormatJSON AS112TimeseriesGroupIPVersionParamsFormat = "JSON" AS112TimeseriesGroupIPVersionParamsFormatCsv AS112TimeseriesGroupIPVersionParamsFormat = "CSV" ) func (r AS112TimeseriesGroupIPVersionParamsFormat) IsKnown() bool { switch r { - case AS112TimeseriesGroupIPVersionParamsFormatJson, AS112TimeseriesGroupIPVersionParamsFormatCsv: + case AS112TimeseriesGroupIPVersionParamsFormatJSON, AS112TimeseriesGroupIPVersionParamsFormatCsv: return true } return false @@ -756,13 +756,13 @@ func (r AS112TimeseriesGroupProtocolParamsAggInterval) IsKnown() bool { type AS112TimeseriesGroupProtocolParamsFormat string const ( - AS112TimeseriesGroupProtocolParamsFormatJson AS112TimeseriesGroupProtocolParamsFormat = "JSON" + AS112TimeseriesGroupProtocolParamsFormatJSON AS112TimeseriesGroupProtocolParamsFormat = "JSON" AS112TimeseriesGroupProtocolParamsFormatCsv AS112TimeseriesGroupProtocolParamsFormat = "CSV" ) func (r AS112TimeseriesGroupProtocolParamsFormat) IsKnown() bool { switch r { - case AS112TimeseriesGroupProtocolParamsFormatJson, AS112TimeseriesGroupProtocolParamsFormatCsv: + case AS112TimeseriesGroupProtocolParamsFormatJSON, AS112TimeseriesGroupProtocolParamsFormatCsv: return true } return false @@ -858,13 +858,13 @@ func (r AS112TimeseriesGroupQueryTypeParamsAggInterval) IsKnown() bool { type AS112TimeseriesGroupQueryTypeParamsFormat string const ( - AS112TimeseriesGroupQueryTypeParamsFormatJson AS112TimeseriesGroupQueryTypeParamsFormat = "JSON" + AS112TimeseriesGroupQueryTypeParamsFormatJSON AS112TimeseriesGroupQueryTypeParamsFormat = "JSON" AS112TimeseriesGroupQueryTypeParamsFormatCsv AS112TimeseriesGroupQueryTypeParamsFormat = "CSV" ) func (r AS112TimeseriesGroupQueryTypeParamsFormat) IsKnown() bool { switch r { - case AS112TimeseriesGroupQueryTypeParamsFormatJson, AS112TimeseriesGroupQueryTypeParamsFormatCsv: + case AS112TimeseriesGroupQueryTypeParamsFormatJSON, AS112TimeseriesGroupQueryTypeParamsFormatCsv: return true } return false @@ -960,13 +960,13 @@ func (r AS112TimeseriesGroupResponseCodesParamsAggInterval) IsKnown() bool { type AS112TimeseriesGroupResponseCodesParamsFormat string const ( - AS112TimeseriesGroupResponseCodesParamsFormatJson AS112TimeseriesGroupResponseCodesParamsFormat = "JSON" + AS112TimeseriesGroupResponseCodesParamsFormatJSON AS112TimeseriesGroupResponseCodesParamsFormat = "JSON" AS112TimeseriesGroupResponseCodesParamsFormatCsv AS112TimeseriesGroupResponseCodesParamsFormat = "CSV" ) func (r AS112TimeseriesGroupResponseCodesParamsFormat) IsKnown() bool { switch r { - case AS112TimeseriesGroupResponseCodesParamsFormatJson, AS112TimeseriesGroupResponseCodesParamsFormatCsv: + case AS112TimeseriesGroupResponseCodesParamsFormatJSON, AS112TimeseriesGroupResponseCodesParamsFormatCsv: return true } return false diff --git a/radar/as112timeseriesgroup_test.go b/radar/as112timeseriesgroup_test.go index e2bdf30336a..d5e083945ef 100644 --- a/radar/as112timeseriesgroup_test.go +++ b/radar/as112timeseriesgroup_test.go @@ -35,7 +35,7 @@ func TestAS112TimeseriesGroupDNSSECWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112TimeseriesGroupDNSSECParamsFormatJson), + Format: cloudflare.F(radar.AS112TimeseriesGroupDNSSECParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) @@ -68,7 +68,7 @@ func TestAS112TimeseriesGroupEdnsWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112TimeseriesGroupEdnsParamsFormatJson), + Format: cloudflare.F(radar.AS112TimeseriesGroupEdnsParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) @@ -101,7 +101,7 @@ func TestAS112TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112TimeseriesGroupIPVersionParamsFormatJson), + Format: cloudflare.F(radar.AS112TimeseriesGroupIPVersionParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) @@ -134,7 +134,7 @@ func TestAS112TimeseriesGroupProtocolWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112TimeseriesGroupProtocolParamsFormatJson), + Format: cloudflare.F(radar.AS112TimeseriesGroupProtocolParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) @@ -167,7 +167,7 @@ func TestAS112TimeseriesGroupQueryTypeWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112TimeseriesGroupQueryTypeParamsFormatJson), + Format: cloudflare.F(radar.AS112TimeseriesGroupQueryTypeParamsFormatJSON), LimitPerGroup: cloudflare.F(int64(10)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -201,7 +201,7 @@ func TestAS112TimeseriesGroupResponseCodesWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112TimeseriesGroupResponseCodesParamsFormatJson), + Format: cloudflare.F(radar.AS112TimeseriesGroupResponseCodesParamsFormatJSON), LimitPerGroup: cloudflare.F(int64(10)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), diff --git a/radar/as112top.go b/radar/as112top.go index 69706fb2c92..21fb3f8751d 100644 --- a/radar/as112top.go +++ b/radar/as112top.go @@ -761,13 +761,13 @@ func (r AS112TopDNSSECParamsDNSSEC) IsKnown() bool { type AS112TopDNSSECParamsFormat string const ( - AS112TopDNSSECParamsFormatJson AS112TopDNSSECParamsFormat = "JSON" + AS112TopDNSSECParamsFormatJSON AS112TopDNSSECParamsFormat = "JSON" AS112TopDNSSECParamsFormatCsv AS112TopDNSSECParamsFormat = "CSV" ) func (r AS112TopDNSSECParamsFormat) IsKnown() bool { switch r { - case AS112TopDNSSECParamsFormatJson, AS112TopDNSSECParamsFormatCsv: + case AS112TopDNSSECParamsFormatJSON, AS112TopDNSSECParamsFormatCsv: return true } return false @@ -853,13 +853,13 @@ func (r AS112TopEdnsParamsEdns) IsKnown() bool { type AS112TopEdnsParamsFormat string const ( - AS112TopEdnsParamsFormatJson AS112TopEdnsParamsFormat = "JSON" + AS112TopEdnsParamsFormatJSON AS112TopEdnsParamsFormat = "JSON" AS112TopEdnsParamsFormatCsv AS112TopEdnsParamsFormat = "CSV" ) func (r AS112TopEdnsParamsFormat) IsKnown() bool { switch r { - case AS112TopEdnsParamsFormatJson, AS112TopEdnsParamsFormatCsv: + case AS112TopEdnsParamsFormatJSON, AS112TopEdnsParamsFormatCsv: return true } return false @@ -946,13 +946,13 @@ func (r AS112TopIPVersionParamsIPVersion) IsKnown() bool { type AS112TopIPVersionParamsFormat string const ( - AS112TopIPVersionParamsFormatJson AS112TopIPVersionParamsFormat = "JSON" + AS112TopIPVersionParamsFormatJSON AS112TopIPVersionParamsFormat = "JSON" AS112TopIPVersionParamsFormatCsv AS112TopIPVersionParamsFormat = "CSV" ) func (r AS112TopIPVersionParamsFormat) IsKnown() bool { switch r { - case AS112TopIPVersionParamsFormatJson, AS112TopIPVersionParamsFormatCsv: + case AS112TopIPVersionParamsFormatJSON, AS112TopIPVersionParamsFormatCsv: return true } return false @@ -1023,13 +1023,13 @@ func (r AS112TopLocationsParams) URLQuery() (v url.Values) { type AS112TopLocationsParamsFormat string const ( - AS112TopLocationsParamsFormatJson AS112TopLocationsParamsFormat = "JSON" + AS112TopLocationsParamsFormatJSON AS112TopLocationsParamsFormat = "JSON" AS112TopLocationsParamsFormatCsv AS112TopLocationsParamsFormat = "CSV" ) func (r AS112TopLocationsParamsFormat) IsKnown() bool { switch r { - case AS112TopLocationsParamsFormatJson, AS112TopLocationsParamsFormatCsv: + case AS112TopLocationsParamsFormatJSON, AS112TopLocationsParamsFormatCsv: return true } return false diff --git a/radar/as112top_test.go b/radar/as112top_test.go index 07403c42455..b8c55e1c52e 100644 --- a/radar/as112top_test.go +++ b/radar/as112top_test.go @@ -37,7 +37,7 @@ func TestAS112TopDNSSECWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112TopDNSSECParamsFormatJson), + Format: cloudflare.F(radar.AS112TopDNSSECParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -74,7 +74,7 @@ func TestAS112TopEdnsWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112TopEdnsParamsFormatJson), + Format: cloudflare.F(radar.AS112TopEdnsParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -111,7 +111,7 @@ func TestAS112TopIPVersionWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112TopIPVersionParamsFormatJson), + Format: cloudflare.F(radar.AS112TopIPVersionParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -145,7 +145,7 @@ func TestAS112TopLocationsWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AS112TopLocationsParamsFormatJson), + Format: cloudflare.F(radar.AS112TopLocationsParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), diff --git a/radar/attacklayer3.go b/radar/attacklayer3.go index 6d1d3a9645e..7ab6fea359f 100644 --- a/radar/attacklayer3.go +++ b/radar/attacklayer3.go @@ -192,13 +192,13 @@ func (r AttackLayer3TimeseriesParamsDirection) IsKnown() bool { type AttackLayer3TimeseriesParamsFormat string const ( - AttackLayer3TimeseriesParamsFormatJson AttackLayer3TimeseriesParamsFormat = "JSON" + AttackLayer3TimeseriesParamsFormatJSON AttackLayer3TimeseriesParamsFormat = "JSON" AttackLayer3TimeseriesParamsFormatCsv AttackLayer3TimeseriesParamsFormat = "CSV" ) func (r AttackLayer3TimeseriesParamsFormat) IsKnown() bool { switch r { - case AttackLayer3TimeseriesParamsFormatJson, AttackLayer3TimeseriesParamsFormatCsv: + case AttackLayer3TimeseriesParamsFormatJSON, AttackLayer3TimeseriesParamsFormatCsv: return true } return false diff --git a/radar/attacklayer3_test.go b/radar/attacklayer3_test.go index 7c2da241c39..be7594c35f4 100644 --- a/radar/attacklayer3_test.go +++ b/radar/attacklayer3_test.go @@ -36,7 +36,7 @@ func TestAttackLayer3TimeseriesWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), Direction: cloudflare.F(radar.AttackLayer3TimeseriesParamsDirectionOrigin), - Format: cloudflare.F(radar.AttackLayer3TimeseriesParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3TimeseriesParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3TimeseriesParamsIPVersion{radar.AttackLayer3TimeseriesParamsIPVersionIPv4}), Location: cloudflare.F([]string{"string"}), Metric: cloudflare.F(radar.AttackLayer3TimeseriesParamsMetricBytes), diff --git a/radar/attacklayer3summary.go b/radar/attacklayer3summary.go index a274f6b6474..541173316ca 100644 --- a/radar/attacklayer3summary.go +++ b/radar/attacklayer3summary.go @@ -1098,13 +1098,13 @@ func (r AttackLayer3SummaryBitrateParamsDirection) IsKnown() bool { type AttackLayer3SummaryBitrateParamsFormat string const ( - AttackLayer3SummaryBitrateParamsFormatJson AttackLayer3SummaryBitrateParamsFormat = "JSON" + AttackLayer3SummaryBitrateParamsFormatJSON AttackLayer3SummaryBitrateParamsFormat = "JSON" AttackLayer3SummaryBitrateParamsFormatCsv AttackLayer3SummaryBitrateParamsFormat = "CSV" ) func (r AttackLayer3SummaryBitrateParamsFormat) IsKnown() bool { switch r { - case AttackLayer3SummaryBitrateParamsFormatJson, AttackLayer3SummaryBitrateParamsFormatCsv: + case AttackLayer3SummaryBitrateParamsFormatJSON, AttackLayer3SummaryBitrateParamsFormatCsv: return true } return false @@ -1225,13 +1225,13 @@ func (r AttackLayer3SummaryDurationParamsDirection) IsKnown() bool { type AttackLayer3SummaryDurationParamsFormat string const ( - AttackLayer3SummaryDurationParamsFormatJson AttackLayer3SummaryDurationParamsFormat = "JSON" + AttackLayer3SummaryDurationParamsFormatJSON AttackLayer3SummaryDurationParamsFormat = "JSON" AttackLayer3SummaryDurationParamsFormatCsv AttackLayer3SummaryDurationParamsFormat = "CSV" ) func (r AttackLayer3SummaryDurationParamsFormat) IsKnown() bool { switch r { - case AttackLayer3SummaryDurationParamsFormatJson, AttackLayer3SummaryDurationParamsFormatCsv: + case AttackLayer3SummaryDurationParamsFormatJSON, AttackLayer3SummaryDurationParamsFormatCsv: return true } return false @@ -1332,13 +1332,13 @@ func (r AttackLayer3SummaryGetParams) URLQuery() (v url.Values) { type AttackLayer3SummaryGetParamsFormat string const ( - AttackLayer3SummaryGetParamsFormatJson AttackLayer3SummaryGetParamsFormat = "JSON" + AttackLayer3SummaryGetParamsFormatJSON AttackLayer3SummaryGetParamsFormat = "JSON" AttackLayer3SummaryGetParamsFormatCsv AttackLayer3SummaryGetParamsFormat = "CSV" ) func (r AttackLayer3SummaryGetParamsFormat) IsKnown() bool { switch r { - case AttackLayer3SummaryGetParamsFormatJson, AttackLayer3SummaryGetParamsFormatCsv: + case AttackLayer3SummaryGetParamsFormatJSON, AttackLayer3SummaryGetParamsFormatCsv: return true } return false @@ -1425,13 +1425,13 @@ func (r AttackLayer3SummaryIPVersionParamsDirection) IsKnown() bool { type AttackLayer3SummaryIPVersionParamsFormat string const ( - AttackLayer3SummaryIPVersionParamsFormatJson AttackLayer3SummaryIPVersionParamsFormat = "JSON" + AttackLayer3SummaryIPVersionParamsFormatJSON AttackLayer3SummaryIPVersionParamsFormat = "JSON" AttackLayer3SummaryIPVersionParamsFormatCsv AttackLayer3SummaryIPVersionParamsFormat = "CSV" ) func (r AttackLayer3SummaryIPVersionParamsFormat) IsKnown() bool { switch r { - case AttackLayer3SummaryIPVersionParamsFormatJson, AttackLayer3SummaryIPVersionParamsFormatCsv: + case AttackLayer3SummaryIPVersionParamsFormatJSON, AttackLayer3SummaryIPVersionParamsFormatCsv: return true } return false @@ -1535,13 +1535,13 @@ func (r AttackLayer3SummaryProtocolParamsDirection) IsKnown() bool { type AttackLayer3SummaryProtocolParamsFormat string const ( - AttackLayer3SummaryProtocolParamsFormatJson AttackLayer3SummaryProtocolParamsFormat = "JSON" + AttackLayer3SummaryProtocolParamsFormatJSON AttackLayer3SummaryProtocolParamsFormat = "JSON" AttackLayer3SummaryProtocolParamsFormatCsv AttackLayer3SummaryProtocolParamsFormat = "CSV" ) func (r AttackLayer3SummaryProtocolParamsFormat) IsKnown() bool { switch r { - case AttackLayer3SummaryProtocolParamsFormatJson, AttackLayer3SummaryProtocolParamsFormatCsv: + case AttackLayer3SummaryProtocolParamsFormatJSON, AttackLayer3SummaryProtocolParamsFormatCsv: return true } return false @@ -1648,13 +1648,13 @@ func (r AttackLayer3SummaryVectorParamsDirection) IsKnown() bool { type AttackLayer3SummaryVectorParamsFormat string const ( - AttackLayer3SummaryVectorParamsFormatJson AttackLayer3SummaryVectorParamsFormat = "JSON" + AttackLayer3SummaryVectorParamsFormatJSON AttackLayer3SummaryVectorParamsFormat = "JSON" AttackLayer3SummaryVectorParamsFormatCsv AttackLayer3SummaryVectorParamsFormat = "CSV" ) func (r AttackLayer3SummaryVectorParamsFormat) IsKnown() bool { switch r { - case AttackLayer3SummaryVectorParamsFormatJson, AttackLayer3SummaryVectorParamsFormatCsv: + case AttackLayer3SummaryVectorParamsFormatJSON, AttackLayer3SummaryVectorParamsFormatCsv: return true } return false diff --git a/radar/attacklayer3summary_test.go b/radar/attacklayer3summary_test.go index 81bd7e96aed..08d105f98f9 100644 --- a/radar/attacklayer3summary_test.go +++ b/radar/attacklayer3summary_test.go @@ -34,7 +34,7 @@ func TestAttackLayer3SummaryBitrateWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), Direction: cloudflare.F(radar.AttackLayer3SummaryBitrateParamsDirectionOrigin), - Format: cloudflare.F(radar.AttackLayer3SummaryBitrateParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3SummaryBitrateParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3SummaryBitrateParamsIPVersion{radar.AttackLayer3SummaryBitrateParamsIPVersionIPv4}), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -68,7 +68,7 @@ func TestAttackLayer3SummaryDurationWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), Direction: cloudflare.F(radar.AttackLayer3SummaryDurationParamsDirectionOrigin), - Format: cloudflare.F(radar.AttackLayer3SummaryDurationParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3SummaryDurationParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3SummaryDurationParamsIPVersion{radar.AttackLayer3SummaryDurationParamsIPVersionIPv4}), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -102,7 +102,7 @@ func TestAttackLayer3SummaryGetWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer3SummaryGetParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3SummaryGetParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) @@ -134,7 +134,7 @@ func TestAttackLayer3SummaryIPVersionWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), Direction: cloudflare.F(radar.AttackLayer3SummaryIPVersionParamsDirectionOrigin), - Format: cloudflare.F(radar.AttackLayer3SummaryIPVersionParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3SummaryIPVersionParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), Protocol: cloudflare.F([]radar.AttackLayer3SummaryIPVersionParamsProtocol{radar.AttackLayer3SummaryIPVersionParamsProtocolUdp}), @@ -167,7 +167,7 @@ func TestAttackLayer3SummaryProtocolWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), Direction: cloudflare.F(radar.AttackLayer3SummaryProtocolParamsDirectionOrigin), - Format: cloudflare.F(radar.AttackLayer3SummaryProtocolParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3SummaryProtocolParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3SummaryProtocolParamsIPVersion{radar.AttackLayer3SummaryProtocolParamsIPVersionIPv4}), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -200,7 +200,7 @@ func TestAttackLayer3SummaryVectorWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), Direction: cloudflare.F(radar.AttackLayer3SummaryVectorParamsDirectionOrigin), - Format: cloudflare.F(radar.AttackLayer3SummaryVectorParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3SummaryVectorParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3SummaryVectorParamsIPVersion{radar.AttackLayer3SummaryVectorParamsIPVersionIPv4}), LimitPerGroup: cloudflare.F(int64(10)), Location: cloudflare.F([]string{"string"}), diff --git a/radar/attacklayer3timeseriesgroup.go b/radar/attacklayer3timeseriesgroup.go index aa30aa74f6a..9b9eca98975 100644 --- a/radar/attacklayer3timeseriesgroup.go +++ b/radar/attacklayer3timeseriesgroup.go @@ -733,13 +733,13 @@ func (r AttackLayer3TimeseriesGroupBitrateParamsDirection) IsKnown() bool { type AttackLayer3TimeseriesGroupBitrateParamsFormat string const ( - AttackLayer3TimeseriesGroupBitrateParamsFormatJson AttackLayer3TimeseriesGroupBitrateParamsFormat = "JSON" + AttackLayer3TimeseriesGroupBitrateParamsFormatJSON AttackLayer3TimeseriesGroupBitrateParamsFormat = "JSON" AttackLayer3TimeseriesGroupBitrateParamsFormatCsv AttackLayer3TimeseriesGroupBitrateParamsFormat = "CSV" ) func (r AttackLayer3TimeseriesGroupBitrateParamsFormat) IsKnown() bool { switch r { - case AttackLayer3TimeseriesGroupBitrateParamsFormatJson, AttackLayer3TimeseriesGroupBitrateParamsFormatCsv: + case AttackLayer3TimeseriesGroupBitrateParamsFormatJSON, AttackLayer3TimeseriesGroupBitrateParamsFormatCsv: return true } return false @@ -904,13 +904,13 @@ func (r AttackLayer3TimeseriesGroupDurationParamsDirection) IsKnown() bool { type AttackLayer3TimeseriesGroupDurationParamsFormat string const ( - AttackLayer3TimeseriesGroupDurationParamsFormatJson AttackLayer3TimeseriesGroupDurationParamsFormat = "JSON" + AttackLayer3TimeseriesGroupDurationParamsFormatJSON AttackLayer3TimeseriesGroupDurationParamsFormat = "JSON" AttackLayer3TimeseriesGroupDurationParamsFormatCsv AttackLayer3TimeseriesGroupDurationParamsFormat = "CSV" ) func (r AttackLayer3TimeseriesGroupDurationParamsFormat) IsKnown() bool { switch r { - case AttackLayer3TimeseriesGroupDurationParamsFormatJson, AttackLayer3TimeseriesGroupDurationParamsFormatCsv: + case AttackLayer3TimeseriesGroupDurationParamsFormatJSON, AttackLayer3TimeseriesGroupDurationParamsFormatCsv: return true } return false @@ -1052,13 +1052,13 @@ func (r AttackLayer3TimeseriesGroupGetParamsAggInterval) IsKnown() bool { type AttackLayer3TimeseriesGroupGetParamsFormat string const ( - AttackLayer3TimeseriesGroupGetParamsFormatJson AttackLayer3TimeseriesGroupGetParamsFormat = "JSON" + AttackLayer3TimeseriesGroupGetParamsFormatJSON AttackLayer3TimeseriesGroupGetParamsFormat = "JSON" AttackLayer3TimeseriesGroupGetParamsFormatCsv AttackLayer3TimeseriesGroupGetParamsFormat = "CSV" ) func (r AttackLayer3TimeseriesGroupGetParamsFormat) IsKnown() bool { switch r { - case AttackLayer3TimeseriesGroupGetParamsFormatJson, AttackLayer3TimeseriesGroupGetParamsFormatCsv: + case AttackLayer3TimeseriesGroupGetParamsFormatJSON, AttackLayer3TimeseriesGroupGetParamsFormatCsv: return true } return false @@ -1177,13 +1177,13 @@ func (r AttackLayer3TimeseriesGroupIndustryParamsDirection) IsKnown() bool { type AttackLayer3TimeseriesGroupIndustryParamsFormat string const ( - AttackLayer3TimeseriesGroupIndustryParamsFormatJson AttackLayer3TimeseriesGroupIndustryParamsFormat = "JSON" + AttackLayer3TimeseriesGroupIndustryParamsFormatJSON AttackLayer3TimeseriesGroupIndustryParamsFormat = "JSON" AttackLayer3TimeseriesGroupIndustryParamsFormatCsv AttackLayer3TimeseriesGroupIndustryParamsFormat = "CSV" ) func (r AttackLayer3TimeseriesGroupIndustryParamsFormat) IsKnown() bool { switch r { - case AttackLayer3TimeseriesGroupIndustryParamsFormatJson, AttackLayer3TimeseriesGroupIndustryParamsFormatCsv: + case AttackLayer3TimeseriesGroupIndustryParamsFormatJSON, AttackLayer3TimeseriesGroupIndustryParamsFormatCsv: return true } return false @@ -1346,13 +1346,13 @@ func (r AttackLayer3TimeseriesGroupIPVersionParamsDirection) IsKnown() bool { type AttackLayer3TimeseriesGroupIPVersionParamsFormat string const ( - AttackLayer3TimeseriesGroupIPVersionParamsFormatJson AttackLayer3TimeseriesGroupIPVersionParamsFormat = "JSON" + AttackLayer3TimeseriesGroupIPVersionParamsFormatJSON AttackLayer3TimeseriesGroupIPVersionParamsFormat = "JSON" AttackLayer3TimeseriesGroupIPVersionParamsFormatCsv AttackLayer3TimeseriesGroupIPVersionParamsFormat = "CSV" ) func (r AttackLayer3TimeseriesGroupIPVersionParamsFormat) IsKnown() bool { switch r { - case AttackLayer3TimeseriesGroupIPVersionParamsFormatJson, AttackLayer3TimeseriesGroupIPVersionParamsFormatCsv: + case AttackLayer3TimeseriesGroupIPVersionParamsFormatJSON, AttackLayer3TimeseriesGroupIPVersionParamsFormatCsv: return true } return false @@ -1500,13 +1500,13 @@ func (r AttackLayer3TimeseriesGroupProtocolParamsDirection) IsKnown() bool { type AttackLayer3TimeseriesGroupProtocolParamsFormat string const ( - AttackLayer3TimeseriesGroupProtocolParamsFormatJson AttackLayer3TimeseriesGroupProtocolParamsFormat = "JSON" + AttackLayer3TimeseriesGroupProtocolParamsFormatJSON AttackLayer3TimeseriesGroupProtocolParamsFormat = "JSON" AttackLayer3TimeseriesGroupProtocolParamsFormatCsv AttackLayer3TimeseriesGroupProtocolParamsFormat = "CSV" ) func (r AttackLayer3TimeseriesGroupProtocolParamsFormat) IsKnown() bool { switch r { - case AttackLayer3TimeseriesGroupProtocolParamsFormatJson, AttackLayer3TimeseriesGroupProtocolParamsFormatCsv: + case AttackLayer3TimeseriesGroupProtocolParamsFormatJSON, AttackLayer3TimeseriesGroupProtocolParamsFormatCsv: return true } return false @@ -1657,13 +1657,13 @@ func (r AttackLayer3TimeseriesGroupVectorParamsDirection) IsKnown() bool { type AttackLayer3TimeseriesGroupVectorParamsFormat string const ( - AttackLayer3TimeseriesGroupVectorParamsFormatJson AttackLayer3TimeseriesGroupVectorParamsFormat = "JSON" + AttackLayer3TimeseriesGroupVectorParamsFormatJSON AttackLayer3TimeseriesGroupVectorParamsFormat = "JSON" AttackLayer3TimeseriesGroupVectorParamsFormatCsv AttackLayer3TimeseriesGroupVectorParamsFormat = "CSV" ) func (r AttackLayer3TimeseriesGroupVectorParamsFormat) IsKnown() bool { switch r { - case AttackLayer3TimeseriesGroupVectorParamsFormatJson, AttackLayer3TimeseriesGroupVectorParamsFormatCsv: + case AttackLayer3TimeseriesGroupVectorParamsFormatJSON, AttackLayer3TimeseriesGroupVectorParamsFormatCsv: return true } return false @@ -1831,13 +1831,13 @@ func (r AttackLayer3TimeseriesGroupVerticalParamsDirection) IsKnown() bool { type AttackLayer3TimeseriesGroupVerticalParamsFormat string const ( - AttackLayer3TimeseriesGroupVerticalParamsFormatJson AttackLayer3TimeseriesGroupVerticalParamsFormat = "JSON" + AttackLayer3TimeseriesGroupVerticalParamsFormatJSON AttackLayer3TimeseriesGroupVerticalParamsFormat = "JSON" AttackLayer3TimeseriesGroupVerticalParamsFormatCsv AttackLayer3TimeseriesGroupVerticalParamsFormat = "CSV" ) func (r AttackLayer3TimeseriesGroupVerticalParamsFormat) IsKnown() bool { switch r { - case AttackLayer3TimeseriesGroupVerticalParamsFormatJson, AttackLayer3TimeseriesGroupVerticalParamsFormatCsv: + case AttackLayer3TimeseriesGroupVerticalParamsFormatJSON, AttackLayer3TimeseriesGroupVerticalParamsFormatCsv: return true } return false diff --git a/radar/attacklayer3timeseriesgroup_test.go b/radar/attacklayer3timeseriesgroup_test.go index 399561830be..2d1668ee7a4 100644 --- a/radar/attacklayer3timeseriesgroup_test.go +++ b/radar/attacklayer3timeseriesgroup_test.go @@ -35,7 +35,7 @@ func TestAttackLayer3TimeseriesGroupBitrateWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), Direction: cloudflare.F(radar.AttackLayer3TimeseriesGroupBitrateParamsDirectionOrigin), - Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupBitrateParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupBitrateParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3TimeseriesGroupBitrateParamsIPVersion{radar.AttackLayer3TimeseriesGroupBitrateParamsIPVersionIPv4}), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -71,7 +71,7 @@ func TestAttackLayer3TimeseriesGroupDurationWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), Direction: cloudflare.F(radar.AttackLayer3TimeseriesGroupDurationParamsDirectionOrigin), - Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupDurationParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupDurationParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3TimeseriesGroupDurationParamsIPVersion{radar.AttackLayer3TimeseriesGroupDurationParamsIPVersionIPv4}), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -107,7 +107,7 @@ func TestAttackLayer3TimeseriesGroupGetWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupGetParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupGetParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) @@ -140,7 +140,7 @@ func TestAttackLayer3TimeseriesGroupIndustryWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), Direction: cloudflare.F(radar.AttackLayer3TimeseriesGroupIndustryParamsDirectionOrigin), - Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupIndustryParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupIndustryParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3TimeseriesGroupIndustryParamsIPVersion{radar.AttackLayer3TimeseriesGroupIndustryParamsIPVersionIPv4}), LimitPerGroup: cloudflare.F(int64(10)), Location: cloudflare.F([]string{"string"}), @@ -177,7 +177,7 @@ func TestAttackLayer3TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), Direction: cloudflare.F(radar.AttackLayer3TimeseriesGroupIPVersionParamsDirectionOrigin), - Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupIPVersionParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupIPVersionParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), Normalization: cloudflare.F(radar.AttackLayer3TimeseriesGroupIPVersionParamsNormalizationPercentage), @@ -212,7 +212,7 @@ func TestAttackLayer3TimeseriesGroupProtocolWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), Direction: cloudflare.F(radar.AttackLayer3TimeseriesGroupProtocolParamsDirectionOrigin), - Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupProtocolParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupProtocolParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3TimeseriesGroupProtocolParamsIPVersion{radar.AttackLayer3TimeseriesGroupProtocolParamsIPVersionIPv4}), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -247,7 +247,7 @@ func TestAttackLayer3TimeseriesGroupVectorWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), Direction: cloudflare.F(radar.AttackLayer3TimeseriesGroupVectorParamsDirectionOrigin), - Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupVectorParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupVectorParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3TimeseriesGroupVectorParamsIPVersion{radar.AttackLayer3TimeseriesGroupVectorParamsIPVersionIPv4}), LimitPerGroup: cloudflare.F(int64(10)), Location: cloudflare.F([]string{"string"}), @@ -284,7 +284,7 @@ func TestAttackLayer3TimeseriesGroupVerticalWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), Direction: cloudflare.F(radar.AttackLayer3TimeseriesGroupVerticalParamsDirectionOrigin), - Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupVerticalParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3TimeseriesGroupVerticalParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3TimeseriesGroupVerticalParamsIPVersion{radar.AttackLayer3TimeseriesGroupVerticalParamsIPVersionIPv4}), LimitPerGroup: cloudflare.F(int64(10)), Location: cloudflare.F([]string{"string"}), diff --git a/radar/attacklayer3top.go b/radar/attacklayer3top.go index 900c5e8d992..8aa55d700ef 100644 --- a/radar/attacklayer3top.go +++ b/radar/attacklayer3top.go @@ -591,13 +591,13 @@ func (r AttackLayer3TopAttacksParams) URLQuery() (v url.Values) { type AttackLayer3TopAttacksParamsFormat string const ( - AttackLayer3TopAttacksParamsFormatJson AttackLayer3TopAttacksParamsFormat = "JSON" + AttackLayer3TopAttacksParamsFormatJSON AttackLayer3TopAttacksParamsFormat = "JSON" AttackLayer3TopAttacksParamsFormatCsv AttackLayer3TopAttacksParamsFormat = "CSV" ) func (r AttackLayer3TopAttacksParamsFormat) IsKnown() bool { switch r { - case AttackLayer3TopAttacksParamsFormatJson, AttackLayer3TopAttacksParamsFormatCsv: + case AttackLayer3TopAttacksParamsFormatJSON, AttackLayer3TopAttacksParamsFormatCsv: return true } return false @@ -735,13 +735,13 @@ func (r AttackLayer3TopIndustryParams) URLQuery() (v url.Values) { type AttackLayer3TopIndustryParamsFormat string const ( - AttackLayer3TopIndustryParamsFormatJson AttackLayer3TopIndustryParamsFormat = "JSON" + AttackLayer3TopIndustryParamsFormatJSON AttackLayer3TopIndustryParamsFormat = "JSON" AttackLayer3TopIndustryParamsFormatCsv AttackLayer3TopIndustryParamsFormat = "CSV" ) func (r AttackLayer3TopIndustryParamsFormat) IsKnown() bool { switch r { - case AttackLayer3TopIndustryParamsFormatJson, AttackLayer3TopIndustryParamsFormatCsv: + case AttackLayer3TopIndustryParamsFormatJSON, AttackLayer3TopIndustryParamsFormatCsv: return true } return false @@ -844,13 +844,13 @@ func (r AttackLayer3TopVerticalParams) URLQuery() (v url.Values) { type AttackLayer3TopVerticalParamsFormat string const ( - AttackLayer3TopVerticalParamsFormatJson AttackLayer3TopVerticalParamsFormat = "JSON" + AttackLayer3TopVerticalParamsFormatJSON AttackLayer3TopVerticalParamsFormat = "JSON" AttackLayer3TopVerticalParamsFormatCsv AttackLayer3TopVerticalParamsFormat = "CSV" ) func (r AttackLayer3TopVerticalParamsFormat) IsKnown() bool { switch r { - case AttackLayer3TopVerticalParamsFormatJson, AttackLayer3TopVerticalParamsFormatCsv: + case AttackLayer3TopVerticalParamsFormatJSON, AttackLayer3TopVerticalParamsFormatCsv: return true } return false diff --git a/radar/attacklayer3top_test.go b/radar/attacklayer3top_test.go index 6d649b0f8a0..dcd1f3a7a51 100644 --- a/radar/attacklayer3top_test.go +++ b/radar/attacklayer3top_test.go @@ -33,7 +33,7 @@ func TestAttackLayer3TopAttacksWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer3TopAttacksParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3TopAttacksParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3TopAttacksParamsIPVersion{radar.AttackLayer3TopAttacksParamsIPVersionIPv4}), Limit: cloudflare.F(int64(5)), LimitDirection: cloudflare.F(radar.AttackLayer3TopAttacksParamsLimitDirectionOrigin), @@ -70,7 +70,7 @@ func TestAttackLayer3TopIndustryWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer3TopIndustryParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3TopIndustryParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3TopIndustryParamsIPVersion{radar.AttackLayer3TopIndustryParamsIPVersionIPv4}), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), @@ -104,7 +104,7 @@ func TestAttackLayer3TopVerticalWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer3TopVerticalParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3TopVerticalParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3TopVerticalParamsIPVersion{radar.AttackLayer3TopVerticalParamsIPVersionIPv4}), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), diff --git a/radar/attacklayer3toplocation.go b/radar/attacklayer3toplocation.go index fe67835d224..a17a8506f1c 100644 --- a/radar/attacklayer3toplocation.go +++ b/radar/attacklayer3toplocation.go @@ -418,13 +418,13 @@ func (r AttackLayer3TopLocationOriginParams) URLQuery() (v url.Values) { type AttackLayer3TopLocationOriginParamsFormat string const ( - AttackLayer3TopLocationOriginParamsFormatJson AttackLayer3TopLocationOriginParamsFormat = "JSON" + AttackLayer3TopLocationOriginParamsFormatJSON AttackLayer3TopLocationOriginParamsFormat = "JSON" AttackLayer3TopLocationOriginParamsFormatCsv AttackLayer3TopLocationOriginParamsFormat = "CSV" ) func (r AttackLayer3TopLocationOriginParamsFormat) IsKnown() bool { switch r { - case AttackLayer3TopLocationOriginParamsFormatJson, AttackLayer3TopLocationOriginParamsFormatCsv: + case AttackLayer3TopLocationOriginParamsFormatJSON, AttackLayer3TopLocationOriginParamsFormatCsv: return true } return false @@ -527,13 +527,13 @@ func (r AttackLayer3TopLocationTargetParams) URLQuery() (v url.Values) { type AttackLayer3TopLocationTargetParamsFormat string const ( - AttackLayer3TopLocationTargetParamsFormatJson AttackLayer3TopLocationTargetParamsFormat = "JSON" + AttackLayer3TopLocationTargetParamsFormatJSON AttackLayer3TopLocationTargetParamsFormat = "JSON" AttackLayer3TopLocationTargetParamsFormatCsv AttackLayer3TopLocationTargetParamsFormat = "CSV" ) func (r AttackLayer3TopLocationTargetParamsFormat) IsKnown() bool { switch r { - case AttackLayer3TopLocationTargetParamsFormatJson, AttackLayer3TopLocationTargetParamsFormatCsv: + case AttackLayer3TopLocationTargetParamsFormatJSON, AttackLayer3TopLocationTargetParamsFormatCsv: return true } return false diff --git a/radar/attacklayer3toplocation_test.go b/radar/attacklayer3toplocation_test.go index 6fda27d9a37..29c3bb62c93 100644 --- a/radar/attacklayer3toplocation_test.go +++ b/radar/attacklayer3toplocation_test.go @@ -33,7 +33,7 @@ func TestAttackLayer3TopLocationOriginWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer3TopLocationOriginParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3TopLocationOriginParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3TopLocationOriginParamsIPVersion{radar.AttackLayer3TopLocationOriginParamsIPVersionIPv4}), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), @@ -67,7 +67,7 @@ func TestAttackLayer3TopLocationTargetWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer3TopLocationTargetParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer3TopLocationTargetParamsFormatJSON), IPVersion: cloudflare.F([]radar.AttackLayer3TopLocationTargetParamsIPVersion{radar.AttackLayer3TopLocationTargetParamsIPVersionIPv4}), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), diff --git a/radar/attacklayer7.go b/radar/attacklayer7.go index 5285e35ec47..67d9d9191ef 100644 --- a/radar/attacklayer7.go +++ b/radar/attacklayer7.go @@ -306,13 +306,13 @@ func (r AttackLayer7TimeseriesParamsAttack) IsKnown() bool { type AttackLayer7TimeseriesParamsFormat string const ( - AttackLayer7TimeseriesParamsFormatJson AttackLayer7TimeseriesParamsFormat = "JSON" + AttackLayer7TimeseriesParamsFormatJSON AttackLayer7TimeseriesParamsFormat = "JSON" AttackLayer7TimeseriesParamsFormatCsv AttackLayer7TimeseriesParamsFormat = "CSV" ) func (r AttackLayer7TimeseriesParamsFormat) IsKnown() bool { switch r { - case AttackLayer7TimeseriesParamsFormatJson, AttackLayer7TimeseriesParamsFormatCsv: + case AttackLayer7TimeseriesParamsFormatJSON, AttackLayer7TimeseriesParamsFormatCsv: return true } return false @@ -364,14 +364,14 @@ const ( AttackLayer7TimeseriesParamsHTTPMethodXmsenumatts AttackLayer7TimeseriesParamsHTTPMethod = "XMSENUMATTS" AttackLayer7TimeseriesParamsHTTPMethodRpcOutData AttackLayer7TimeseriesParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7TimeseriesParamsHTTPMethodRpcInData AttackLayer7TimeseriesParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7TimeseriesParamsHTTPMethodJson AttackLayer7TimeseriesParamsHTTPMethod = "JSON" + AttackLayer7TimeseriesParamsHTTPMethodJSON AttackLayer7TimeseriesParamsHTTPMethod = "JSON" AttackLayer7TimeseriesParamsHTTPMethodCook AttackLayer7TimeseriesParamsHTTPMethod = "COOK" AttackLayer7TimeseriesParamsHTTPMethodTrack AttackLayer7TimeseriesParamsHTTPMethod = "TRACK" ) func (r AttackLayer7TimeseriesParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7TimeseriesParamsHTTPMethodGet, AttackLayer7TimeseriesParamsHTTPMethodPost, AttackLayer7TimeseriesParamsHTTPMethodDelete, AttackLayer7TimeseriesParamsHTTPMethodPut, AttackLayer7TimeseriesParamsHTTPMethodHead, AttackLayer7TimeseriesParamsHTTPMethodPurge, AttackLayer7TimeseriesParamsHTTPMethodOptions, AttackLayer7TimeseriesParamsHTTPMethodPropfind, AttackLayer7TimeseriesParamsHTTPMethodMkcol, AttackLayer7TimeseriesParamsHTTPMethodPatch, AttackLayer7TimeseriesParamsHTTPMethodACL, AttackLayer7TimeseriesParamsHTTPMethodBcopy, AttackLayer7TimeseriesParamsHTTPMethodBdelete, AttackLayer7TimeseriesParamsHTTPMethodBmove, AttackLayer7TimeseriesParamsHTTPMethodBpropfind, AttackLayer7TimeseriesParamsHTTPMethodBproppatch, AttackLayer7TimeseriesParamsHTTPMethodCheckin, AttackLayer7TimeseriesParamsHTTPMethodCheckout, AttackLayer7TimeseriesParamsHTTPMethodConnect, AttackLayer7TimeseriesParamsHTTPMethodCopy, AttackLayer7TimeseriesParamsHTTPMethodLabel, AttackLayer7TimeseriesParamsHTTPMethodLock, AttackLayer7TimeseriesParamsHTTPMethodMerge, AttackLayer7TimeseriesParamsHTTPMethodMkactivity, AttackLayer7TimeseriesParamsHTTPMethodMkworkspace, AttackLayer7TimeseriesParamsHTTPMethodMove, AttackLayer7TimeseriesParamsHTTPMethodNotify, AttackLayer7TimeseriesParamsHTTPMethodOrderpatch, AttackLayer7TimeseriesParamsHTTPMethodPoll, AttackLayer7TimeseriesParamsHTTPMethodProppatch, AttackLayer7TimeseriesParamsHTTPMethodReport, AttackLayer7TimeseriesParamsHTTPMethodSearch, AttackLayer7TimeseriesParamsHTTPMethodSubscribe, AttackLayer7TimeseriesParamsHTTPMethodTrace, AttackLayer7TimeseriesParamsHTTPMethodUncheckout, AttackLayer7TimeseriesParamsHTTPMethodUnlock, AttackLayer7TimeseriesParamsHTTPMethodUnsubscribe, AttackLayer7TimeseriesParamsHTTPMethodUpdate, AttackLayer7TimeseriesParamsHTTPMethodVersioncontrol, AttackLayer7TimeseriesParamsHTTPMethodBaselinecontrol, AttackLayer7TimeseriesParamsHTTPMethodXmsenumatts, AttackLayer7TimeseriesParamsHTTPMethodRpcOutData, AttackLayer7TimeseriesParamsHTTPMethodRpcInData, AttackLayer7TimeseriesParamsHTTPMethodJson, AttackLayer7TimeseriesParamsHTTPMethodCook, AttackLayer7TimeseriesParamsHTTPMethodTrack: + case AttackLayer7TimeseriesParamsHTTPMethodGet, AttackLayer7TimeseriesParamsHTTPMethodPost, AttackLayer7TimeseriesParamsHTTPMethodDelete, AttackLayer7TimeseriesParamsHTTPMethodPut, AttackLayer7TimeseriesParamsHTTPMethodHead, AttackLayer7TimeseriesParamsHTTPMethodPurge, AttackLayer7TimeseriesParamsHTTPMethodOptions, AttackLayer7TimeseriesParamsHTTPMethodPropfind, AttackLayer7TimeseriesParamsHTTPMethodMkcol, AttackLayer7TimeseriesParamsHTTPMethodPatch, AttackLayer7TimeseriesParamsHTTPMethodACL, AttackLayer7TimeseriesParamsHTTPMethodBcopy, AttackLayer7TimeseriesParamsHTTPMethodBdelete, AttackLayer7TimeseriesParamsHTTPMethodBmove, AttackLayer7TimeseriesParamsHTTPMethodBpropfind, AttackLayer7TimeseriesParamsHTTPMethodBproppatch, AttackLayer7TimeseriesParamsHTTPMethodCheckin, AttackLayer7TimeseriesParamsHTTPMethodCheckout, AttackLayer7TimeseriesParamsHTTPMethodConnect, AttackLayer7TimeseriesParamsHTTPMethodCopy, AttackLayer7TimeseriesParamsHTTPMethodLabel, AttackLayer7TimeseriesParamsHTTPMethodLock, AttackLayer7TimeseriesParamsHTTPMethodMerge, AttackLayer7TimeseriesParamsHTTPMethodMkactivity, AttackLayer7TimeseriesParamsHTTPMethodMkworkspace, AttackLayer7TimeseriesParamsHTTPMethodMove, AttackLayer7TimeseriesParamsHTTPMethodNotify, AttackLayer7TimeseriesParamsHTTPMethodOrderpatch, AttackLayer7TimeseriesParamsHTTPMethodPoll, AttackLayer7TimeseriesParamsHTTPMethodProppatch, AttackLayer7TimeseriesParamsHTTPMethodReport, AttackLayer7TimeseriesParamsHTTPMethodSearch, AttackLayer7TimeseriesParamsHTTPMethodSubscribe, AttackLayer7TimeseriesParamsHTTPMethodTrace, AttackLayer7TimeseriesParamsHTTPMethodUncheckout, AttackLayer7TimeseriesParamsHTTPMethodUnlock, AttackLayer7TimeseriesParamsHTTPMethodUnsubscribe, AttackLayer7TimeseriesParamsHTTPMethodUpdate, AttackLayer7TimeseriesParamsHTTPMethodVersioncontrol, AttackLayer7TimeseriesParamsHTTPMethodBaselinecontrol, AttackLayer7TimeseriesParamsHTTPMethodXmsenumatts, AttackLayer7TimeseriesParamsHTTPMethodRpcOutData, AttackLayer7TimeseriesParamsHTTPMethodRpcInData, AttackLayer7TimeseriesParamsHTTPMethodJSON, AttackLayer7TimeseriesParamsHTTPMethodCook, AttackLayer7TimeseriesParamsHTTPMethodTrack: return true } return false diff --git a/radar/attacklayer7_test.go b/radar/attacklayer7_test.go index 25bbcb99ec3..aa4328c5b4a 100644 --- a/radar/attacklayer7_test.go +++ b/radar/attacklayer7_test.go @@ -36,7 +36,7 @@ func TestAttackLayer7TimeseriesWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7TimeseriesParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7TimeseriesParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7TimeseriesParamsHTTPMethod{radar.AttackLayer7TimeseriesParamsHTTPMethodGet}), HTTPVersion: cloudflare.F([]radar.AttackLayer7TimeseriesParamsHTTPVersion{radar.AttackLayer7TimeseriesParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.AttackLayer7TimeseriesParamsIPVersion{radar.AttackLayer7TimeseriesParamsIPVersionIPv4}), diff --git a/radar/attacklayer7summary.go b/radar/attacklayer7summary.go index 47c676b6319..6e5cf178d2f 100644 --- a/radar/attacklayer7summary.go +++ b/radar/attacklayer7summary.go @@ -1026,13 +1026,13 @@ func (r AttackLayer7SummaryGetParams) URLQuery() (v url.Values) { type AttackLayer7SummaryGetParamsFormat string const ( - AttackLayer7SummaryGetParamsFormatJson AttackLayer7SummaryGetParamsFormat = "JSON" + AttackLayer7SummaryGetParamsFormatJSON AttackLayer7SummaryGetParamsFormat = "JSON" AttackLayer7SummaryGetParamsFormatCsv AttackLayer7SummaryGetParamsFormat = "CSV" ) func (r AttackLayer7SummaryGetParamsFormat) IsKnown() bool { switch r { - case AttackLayer7SummaryGetParamsFormatJson, AttackLayer7SummaryGetParamsFormatCsv: + case AttackLayer7SummaryGetParamsFormatJSON, AttackLayer7SummaryGetParamsFormatCsv: return true } return false @@ -1110,13 +1110,13 @@ func (r AttackLayer7SummaryHTTPMethodParams) URLQuery() (v url.Values) { type AttackLayer7SummaryHTTPMethodParamsFormat string const ( - AttackLayer7SummaryHTTPMethodParamsFormatJson AttackLayer7SummaryHTTPMethodParamsFormat = "JSON" + AttackLayer7SummaryHTTPMethodParamsFormatJSON AttackLayer7SummaryHTTPMethodParamsFormat = "JSON" AttackLayer7SummaryHTTPMethodParamsFormatCsv AttackLayer7SummaryHTTPMethodParamsFormat = "CSV" ) func (r AttackLayer7SummaryHTTPMethodParamsFormat) IsKnown() bool { switch r { - case AttackLayer7SummaryHTTPMethodParamsFormatJson, AttackLayer7SummaryHTTPMethodParamsFormatCsv: + case AttackLayer7SummaryHTTPMethodParamsFormatJSON, AttackLayer7SummaryHTTPMethodParamsFormatCsv: return true } return false @@ -1242,13 +1242,13 @@ func (r AttackLayer7SummaryHTTPVersionParams) URLQuery() (v url.Values) { type AttackLayer7SummaryHTTPVersionParamsFormat string const ( - AttackLayer7SummaryHTTPVersionParamsFormatJson AttackLayer7SummaryHTTPVersionParamsFormat = "JSON" + AttackLayer7SummaryHTTPVersionParamsFormatJSON AttackLayer7SummaryHTTPVersionParamsFormat = "JSON" AttackLayer7SummaryHTTPVersionParamsFormatCsv AttackLayer7SummaryHTTPVersionParamsFormat = "CSV" ) func (r AttackLayer7SummaryHTTPVersionParamsFormat) IsKnown() bool { switch r { - case AttackLayer7SummaryHTTPVersionParamsFormatJson, AttackLayer7SummaryHTTPVersionParamsFormatCsv: + case AttackLayer7SummaryHTTPVersionParamsFormatJSON, AttackLayer7SummaryHTTPVersionParamsFormatCsv: return true } return false @@ -1300,14 +1300,14 @@ const ( AttackLayer7SummaryHTTPVersionParamsHTTPMethodXmsenumatts AttackLayer7SummaryHTTPVersionParamsHTTPMethod = "XMSENUMATTS" AttackLayer7SummaryHTTPVersionParamsHTTPMethodRpcOutData AttackLayer7SummaryHTTPVersionParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7SummaryHTTPVersionParamsHTTPMethodRpcInData AttackLayer7SummaryHTTPVersionParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7SummaryHTTPVersionParamsHTTPMethodJson AttackLayer7SummaryHTTPVersionParamsHTTPMethod = "JSON" + AttackLayer7SummaryHTTPVersionParamsHTTPMethodJSON AttackLayer7SummaryHTTPVersionParamsHTTPMethod = "JSON" AttackLayer7SummaryHTTPVersionParamsHTTPMethodCook AttackLayer7SummaryHTTPVersionParamsHTTPMethod = "COOK" AttackLayer7SummaryHTTPVersionParamsHTTPMethodTrack AttackLayer7SummaryHTTPVersionParamsHTTPMethod = "TRACK" ) func (r AttackLayer7SummaryHTTPVersionParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7SummaryHTTPVersionParamsHTTPMethodGet, AttackLayer7SummaryHTTPVersionParamsHTTPMethodPost, AttackLayer7SummaryHTTPVersionParamsHTTPMethodDelete, AttackLayer7SummaryHTTPVersionParamsHTTPMethodPut, AttackLayer7SummaryHTTPVersionParamsHTTPMethodHead, AttackLayer7SummaryHTTPVersionParamsHTTPMethodPurge, AttackLayer7SummaryHTTPVersionParamsHTTPMethodOptions, AttackLayer7SummaryHTTPVersionParamsHTTPMethodPropfind, AttackLayer7SummaryHTTPVersionParamsHTTPMethodMkcol, AttackLayer7SummaryHTTPVersionParamsHTTPMethodPatch, AttackLayer7SummaryHTTPVersionParamsHTTPMethodACL, AttackLayer7SummaryHTTPVersionParamsHTTPMethodBcopy, AttackLayer7SummaryHTTPVersionParamsHTTPMethodBdelete, AttackLayer7SummaryHTTPVersionParamsHTTPMethodBmove, AttackLayer7SummaryHTTPVersionParamsHTTPMethodBpropfind, AttackLayer7SummaryHTTPVersionParamsHTTPMethodBproppatch, AttackLayer7SummaryHTTPVersionParamsHTTPMethodCheckin, AttackLayer7SummaryHTTPVersionParamsHTTPMethodCheckout, AttackLayer7SummaryHTTPVersionParamsHTTPMethodConnect, AttackLayer7SummaryHTTPVersionParamsHTTPMethodCopy, AttackLayer7SummaryHTTPVersionParamsHTTPMethodLabel, AttackLayer7SummaryHTTPVersionParamsHTTPMethodLock, AttackLayer7SummaryHTTPVersionParamsHTTPMethodMerge, AttackLayer7SummaryHTTPVersionParamsHTTPMethodMkactivity, AttackLayer7SummaryHTTPVersionParamsHTTPMethodMkworkspace, AttackLayer7SummaryHTTPVersionParamsHTTPMethodMove, AttackLayer7SummaryHTTPVersionParamsHTTPMethodNotify, AttackLayer7SummaryHTTPVersionParamsHTTPMethodOrderpatch, AttackLayer7SummaryHTTPVersionParamsHTTPMethodPoll, AttackLayer7SummaryHTTPVersionParamsHTTPMethodProppatch, AttackLayer7SummaryHTTPVersionParamsHTTPMethodReport, AttackLayer7SummaryHTTPVersionParamsHTTPMethodSearch, AttackLayer7SummaryHTTPVersionParamsHTTPMethodSubscribe, AttackLayer7SummaryHTTPVersionParamsHTTPMethodTrace, AttackLayer7SummaryHTTPVersionParamsHTTPMethodUncheckout, AttackLayer7SummaryHTTPVersionParamsHTTPMethodUnlock, AttackLayer7SummaryHTTPVersionParamsHTTPMethodUnsubscribe, AttackLayer7SummaryHTTPVersionParamsHTTPMethodUpdate, AttackLayer7SummaryHTTPVersionParamsHTTPMethodVersioncontrol, AttackLayer7SummaryHTTPVersionParamsHTTPMethodBaselinecontrol, AttackLayer7SummaryHTTPVersionParamsHTTPMethodXmsenumatts, AttackLayer7SummaryHTTPVersionParamsHTTPMethodRpcOutData, AttackLayer7SummaryHTTPVersionParamsHTTPMethodRpcInData, AttackLayer7SummaryHTTPVersionParamsHTTPMethodJson, AttackLayer7SummaryHTTPVersionParamsHTTPMethodCook, AttackLayer7SummaryHTTPVersionParamsHTTPMethodTrack: + case AttackLayer7SummaryHTTPVersionParamsHTTPMethodGet, AttackLayer7SummaryHTTPVersionParamsHTTPMethodPost, AttackLayer7SummaryHTTPVersionParamsHTTPMethodDelete, AttackLayer7SummaryHTTPVersionParamsHTTPMethodPut, AttackLayer7SummaryHTTPVersionParamsHTTPMethodHead, AttackLayer7SummaryHTTPVersionParamsHTTPMethodPurge, AttackLayer7SummaryHTTPVersionParamsHTTPMethodOptions, AttackLayer7SummaryHTTPVersionParamsHTTPMethodPropfind, AttackLayer7SummaryHTTPVersionParamsHTTPMethodMkcol, AttackLayer7SummaryHTTPVersionParamsHTTPMethodPatch, AttackLayer7SummaryHTTPVersionParamsHTTPMethodACL, AttackLayer7SummaryHTTPVersionParamsHTTPMethodBcopy, AttackLayer7SummaryHTTPVersionParamsHTTPMethodBdelete, AttackLayer7SummaryHTTPVersionParamsHTTPMethodBmove, AttackLayer7SummaryHTTPVersionParamsHTTPMethodBpropfind, AttackLayer7SummaryHTTPVersionParamsHTTPMethodBproppatch, AttackLayer7SummaryHTTPVersionParamsHTTPMethodCheckin, AttackLayer7SummaryHTTPVersionParamsHTTPMethodCheckout, AttackLayer7SummaryHTTPVersionParamsHTTPMethodConnect, AttackLayer7SummaryHTTPVersionParamsHTTPMethodCopy, AttackLayer7SummaryHTTPVersionParamsHTTPMethodLabel, AttackLayer7SummaryHTTPVersionParamsHTTPMethodLock, AttackLayer7SummaryHTTPVersionParamsHTTPMethodMerge, AttackLayer7SummaryHTTPVersionParamsHTTPMethodMkactivity, AttackLayer7SummaryHTTPVersionParamsHTTPMethodMkworkspace, AttackLayer7SummaryHTTPVersionParamsHTTPMethodMove, AttackLayer7SummaryHTTPVersionParamsHTTPMethodNotify, AttackLayer7SummaryHTTPVersionParamsHTTPMethodOrderpatch, AttackLayer7SummaryHTTPVersionParamsHTTPMethodPoll, AttackLayer7SummaryHTTPVersionParamsHTTPMethodProppatch, AttackLayer7SummaryHTTPVersionParamsHTTPMethodReport, AttackLayer7SummaryHTTPVersionParamsHTTPMethodSearch, AttackLayer7SummaryHTTPVersionParamsHTTPMethodSubscribe, AttackLayer7SummaryHTTPVersionParamsHTTPMethodTrace, AttackLayer7SummaryHTTPVersionParamsHTTPMethodUncheckout, AttackLayer7SummaryHTTPVersionParamsHTTPMethodUnlock, AttackLayer7SummaryHTTPVersionParamsHTTPMethodUnsubscribe, AttackLayer7SummaryHTTPVersionParamsHTTPMethodUpdate, AttackLayer7SummaryHTTPVersionParamsHTTPMethodVersioncontrol, AttackLayer7SummaryHTTPVersionParamsHTTPMethodBaselinecontrol, AttackLayer7SummaryHTTPVersionParamsHTTPMethodXmsenumatts, AttackLayer7SummaryHTTPVersionParamsHTTPMethodRpcOutData, AttackLayer7SummaryHTTPVersionParamsHTTPMethodRpcInData, AttackLayer7SummaryHTTPVersionParamsHTTPMethodJSON, AttackLayer7SummaryHTTPVersionParamsHTTPMethodCook, AttackLayer7SummaryHTTPVersionParamsHTTPMethodTrack: return true } return false @@ -1417,13 +1417,13 @@ func (r AttackLayer7SummaryIPVersionParams) URLQuery() (v url.Values) { type AttackLayer7SummaryIPVersionParamsFormat string const ( - AttackLayer7SummaryIPVersionParamsFormatJson AttackLayer7SummaryIPVersionParamsFormat = "JSON" + AttackLayer7SummaryIPVersionParamsFormatJSON AttackLayer7SummaryIPVersionParamsFormat = "JSON" AttackLayer7SummaryIPVersionParamsFormatCsv AttackLayer7SummaryIPVersionParamsFormat = "CSV" ) func (r AttackLayer7SummaryIPVersionParamsFormat) IsKnown() bool { switch r { - case AttackLayer7SummaryIPVersionParamsFormatJson, AttackLayer7SummaryIPVersionParamsFormatCsv: + case AttackLayer7SummaryIPVersionParamsFormatJSON, AttackLayer7SummaryIPVersionParamsFormatCsv: return true } return false @@ -1475,14 +1475,14 @@ const ( AttackLayer7SummaryIPVersionParamsHTTPMethodXmsenumatts AttackLayer7SummaryIPVersionParamsHTTPMethod = "XMSENUMATTS" AttackLayer7SummaryIPVersionParamsHTTPMethodRpcOutData AttackLayer7SummaryIPVersionParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7SummaryIPVersionParamsHTTPMethodRpcInData AttackLayer7SummaryIPVersionParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7SummaryIPVersionParamsHTTPMethodJson AttackLayer7SummaryIPVersionParamsHTTPMethod = "JSON" + AttackLayer7SummaryIPVersionParamsHTTPMethodJSON AttackLayer7SummaryIPVersionParamsHTTPMethod = "JSON" AttackLayer7SummaryIPVersionParamsHTTPMethodCook AttackLayer7SummaryIPVersionParamsHTTPMethod = "COOK" AttackLayer7SummaryIPVersionParamsHTTPMethodTrack AttackLayer7SummaryIPVersionParamsHTTPMethod = "TRACK" ) func (r AttackLayer7SummaryIPVersionParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7SummaryIPVersionParamsHTTPMethodGet, AttackLayer7SummaryIPVersionParamsHTTPMethodPost, AttackLayer7SummaryIPVersionParamsHTTPMethodDelete, AttackLayer7SummaryIPVersionParamsHTTPMethodPut, AttackLayer7SummaryIPVersionParamsHTTPMethodHead, AttackLayer7SummaryIPVersionParamsHTTPMethodPurge, AttackLayer7SummaryIPVersionParamsHTTPMethodOptions, AttackLayer7SummaryIPVersionParamsHTTPMethodPropfind, AttackLayer7SummaryIPVersionParamsHTTPMethodMkcol, AttackLayer7SummaryIPVersionParamsHTTPMethodPatch, AttackLayer7SummaryIPVersionParamsHTTPMethodACL, AttackLayer7SummaryIPVersionParamsHTTPMethodBcopy, AttackLayer7SummaryIPVersionParamsHTTPMethodBdelete, AttackLayer7SummaryIPVersionParamsHTTPMethodBmove, AttackLayer7SummaryIPVersionParamsHTTPMethodBpropfind, AttackLayer7SummaryIPVersionParamsHTTPMethodBproppatch, AttackLayer7SummaryIPVersionParamsHTTPMethodCheckin, AttackLayer7SummaryIPVersionParamsHTTPMethodCheckout, AttackLayer7SummaryIPVersionParamsHTTPMethodConnect, AttackLayer7SummaryIPVersionParamsHTTPMethodCopy, AttackLayer7SummaryIPVersionParamsHTTPMethodLabel, AttackLayer7SummaryIPVersionParamsHTTPMethodLock, AttackLayer7SummaryIPVersionParamsHTTPMethodMerge, AttackLayer7SummaryIPVersionParamsHTTPMethodMkactivity, AttackLayer7SummaryIPVersionParamsHTTPMethodMkworkspace, AttackLayer7SummaryIPVersionParamsHTTPMethodMove, AttackLayer7SummaryIPVersionParamsHTTPMethodNotify, AttackLayer7SummaryIPVersionParamsHTTPMethodOrderpatch, AttackLayer7SummaryIPVersionParamsHTTPMethodPoll, AttackLayer7SummaryIPVersionParamsHTTPMethodProppatch, AttackLayer7SummaryIPVersionParamsHTTPMethodReport, AttackLayer7SummaryIPVersionParamsHTTPMethodSearch, AttackLayer7SummaryIPVersionParamsHTTPMethodSubscribe, AttackLayer7SummaryIPVersionParamsHTTPMethodTrace, AttackLayer7SummaryIPVersionParamsHTTPMethodUncheckout, AttackLayer7SummaryIPVersionParamsHTTPMethodUnlock, AttackLayer7SummaryIPVersionParamsHTTPMethodUnsubscribe, AttackLayer7SummaryIPVersionParamsHTTPMethodUpdate, AttackLayer7SummaryIPVersionParamsHTTPMethodVersioncontrol, AttackLayer7SummaryIPVersionParamsHTTPMethodBaselinecontrol, AttackLayer7SummaryIPVersionParamsHTTPMethodXmsenumatts, AttackLayer7SummaryIPVersionParamsHTTPMethodRpcOutData, AttackLayer7SummaryIPVersionParamsHTTPMethodRpcInData, AttackLayer7SummaryIPVersionParamsHTTPMethodJson, AttackLayer7SummaryIPVersionParamsHTTPMethodCook, AttackLayer7SummaryIPVersionParamsHTTPMethodTrack: + case AttackLayer7SummaryIPVersionParamsHTTPMethodGet, AttackLayer7SummaryIPVersionParamsHTTPMethodPost, AttackLayer7SummaryIPVersionParamsHTTPMethodDelete, AttackLayer7SummaryIPVersionParamsHTTPMethodPut, AttackLayer7SummaryIPVersionParamsHTTPMethodHead, AttackLayer7SummaryIPVersionParamsHTTPMethodPurge, AttackLayer7SummaryIPVersionParamsHTTPMethodOptions, AttackLayer7SummaryIPVersionParamsHTTPMethodPropfind, AttackLayer7SummaryIPVersionParamsHTTPMethodMkcol, AttackLayer7SummaryIPVersionParamsHTTPMethodPatch, AttackLayer7SummaryIPVersionParamsHTTPMethodACL, AttackLayer7SummaryIPVersionParamsHTTPMethodBcopy, AttackLayer7SummaryIPVersionParamsHTTPMethodBdelete, AttackLayer7SummaryIPVersionParamsHTTPMethodBmove, AttackLayer7SummaryIPVersionParamsHTTPMethodBpropfind, AttackLayer7SummaryIPVersionParamsHTTPMethodBproppatch, AttackLayer7SummaryIPVersionParamsHTTPMethodCheckin, AttackLayer7SummaryIPVersionParamsHTTPMethodCheckout, AttackLayer7SummaryIPVersionParamsHTTPMethodConnect, AttackLayer7SummaryIPVersionParamsHTTPMethodCopy, AttackLayer7SummaryIPVersionParamsHTTPMethodLabel, AttackLayer7SummaryIPVersionParamsHTTPMethodLock, AttackLayer7SummaryIPVersionParamsHTTPMethodMerge, AttackLayer7SummaryIPVersionParamsHTTPMethodMkactivity, AttackLayer7SummaryIPVersionParamsHTTPMethodMkworkspace, AttackLayer7SummaryIPVersionParamsHTTPMethodMove, AttackLayer7SummaryIPVersionParamsHTTPMethodNotify, AttackLayer7SummaryIPVersionParamsHTTPMethodOrderpatch, AttackLayer7SummaryIPVersionParamsHTTPMethodPoll, AttackLayer7SummaryIPVersionParamsHTTPMethodProppatch, AttackLayer7SummaryIPVersionParamsHTTPMethodReport, AttackLayer7SummaryIPVersionParamsHTTPMethodSearch, AttackLayer7SummaryIPVersionParamsHTTPMethodSubscribe, AttackLayer7SummaryIPVersionParamsHTTPMethodTrace, AttackLayer7SummaryIPVersionParamsHTTPMethodUncheckout, AttackLayer7SummaryIPVersionParamsHTTPMethodUnlock, AttackLayer7SummaryIPVersionParamsHTTPMethodUnsubscribe, AttackLayer7SummaryIPVersionParamsHTTPMethodUpdate, AttackLayer7SummaryIPVersionParamsHTTPMethodVersioncontrol, AttackLayer7SummaryIPVersionParamsHTTPMethodBaselinecontrol, AttackLayer7SummaryIPVersionParamsHTTPMethodXmsenumatts, AttackLayer7SummaryIPVersionParamsHTTPMethodRpcOutData, AttackLayer7SummaryIPVersionParamsHTTPMethodRpcInData, AttackLayer7SummaryIPVersionParamsHTTPMethodJSON, AttackLayer7SummaryIPVersionParamsHTTPMethodCook, AttackLayer7SummaryIPVersionParamsHTTPMethodTrack: return true } return false @@ -1598,13 +1598,13 @@ func (r AttackLayer7SummaryManagedRulesParams) URLQuery() (v url.Values) { type AttackLayer7SummaryManagedRulesParamsFormat string const ( - AttackLayer7SummaryManagedRulesParamsFormatJson AttackLayer7SummaryManagedRulesParamsFormat = "JSON" + AttackLayer7SummaryManagedRulesParamsFormatJSON AttackLayer7SummaryManagedRulesParamsFormat = "JSON" AttackLayer7SummaryManagedRulesParamsFormatCsv AttackLayer7SummaryManagedRulesParamsFormat = "CSV" ) func (r AttackLayer7SummaryManagedRulesParamsFormat) IsKnown() bool { switch r { - case AttackLayer7SummaryManagedRulesParamsFormatJson, AttackLayer7SummaryManagedRulesParamsFormatCsv: + case AttackLayer7SummaryManagedRulesParamsFormatJSON, AttackLayer7SummaryManagedRulesParamsFormatCsv: return true } return false @@ -1656,14 +1656,14 @@ const ( AttackLayer7SummaryManagedRulesParamsHTTPMethodXmsenumatts AttackLayer7SummaryManagedRulesParamsHTTPMethod = "XMSENUMATTS" AttackLayer7SummaryManagedRulesParamsHTTPMethodRpcOutData AttackLayer7SummaryManagedRulesParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7SummaryManagedRulesParamsHTTPMethodRpcInData AttackLayer7SummaryManagedRulesParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7SummaryManagedRulesParamsHTTPMethodJson AttackLayer7SummaryManagedRulesParamsHTTPMethod = "JSON" + AttackLayer7SummaryManagedRulesParamsHTTPMethodJSON AttackLayer7SummaryManagedRulesParamsHTTPMethod = "JSON" AttackLayer7SummaryManagedRulesParamsHTTPMethodCook AttackLayer7SummaryManagedRulesParamsHTTPMethod = "COOK" AttackLayer7SummaryManagedRulesParamsHTTPMethodTrack AttackLayer7SummaryManagedRulesParamsHTTPMethod = "TRACK" ) func (r AttackLayer7SummaryManagedRulesParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7SummaryManagedRulesParamsHTTPMethodGet, AttackLayer7SummaryManagedRulesParamsHTTPMethodPost, AttackLayer7SummaryManagedRulesParamsHTTPMethodDelete, AttackLayer7SummaryManagedRulesParamsHTTPMethodPut, AttackLayer7SummaryManagedRulesParamsHTTPMethodHead, AttackLayer7SummaryManagedRulesParamsHTTPMethodPurge, AttackLayer7SummaryManagedRulesParamsHTTPMethodOptions, AttackLayer7SummaryManagedRulesParamsHTTPMethodPropfind, AttackLayer7SummaryManagedRulesParamsHTTPMethodMkcol, AttackLayer7SummaryManagedRulesParamsHTTPMethodPatch, AttackLayer7SummaryManagedRulesParamsHTTPMethodACL, AttackLayer7SummaryManagedRulesParamsHTTPMethodBcopy, AttackLayer7SummaryManagedRulesParamsHTTPMethodBdelete, AttackLayer7SummaryManagedRulesParamsHTTPMethodBmove, AttackLayer7SummaryManagedRulesParamsHTTPMethodBpropfind, AttackLayer7SummaryManagedRulesParamsHTTPMethodBproppatch, AttackLayer7SummaryManagedRulesParamsHTTPMethodCheckin, AttackLayer7SummaryManagedRulesParamsHTTPMethodCheckout, AttackLayer7SummaryManagedRulesParamsHTTPMethodConnect, AttackLayer7SummaryManagedRulesParamsHTTPMethodCopy, AttackLayer7SummaryManagedRulesParamsHTTPMethodLabel, AttackLayer7SummaryManagedRulesParamsHTTPMethodLock, AttackLayer7SummaryManagedRulesParamsHTTPMethodMerge, AttackLayer7SummaryManagedRulesParamsHTTPMethodMkactivity, AttackLayer7SummaryManagedRulesParamsHTTPMethodMkworkspace, AttackLayer7SummaryManagedRulesParamsHTTPMethodMove, AttackLayer7SummaryManagedRulesParamsHTTPMethodNotify, AttackLayer7SummaryManagedRulesParamsHTTPMethodOrderpatch, AttackLayer7SummaryManagedRulesParamsHTTPMethodPoll, AttackLayer7SummaryManagedRulesParamsHTTPMethodProppatch, AttackLayer7SummaryManagedRulesParamsHTTPMethodReport, AttackLayer7SummaryManagedRulesParamsHTTPMethodSearch, AttackLayer7SummaryManagedRulesParamsHTTPMethodSubscribe, AttackLayer7SummaryManagedRulesParamsHTTPMethodTrace, AttackLayer7SummaryManagedRulesParamsHTTPMethodUncheckout, AttackLayer7SummaryManagedRulesParamsHTTPMethodUnlock, AttackLayer7SummaryManagedRulesParamsHTTPMethodUnsubscribe, AttackLayer7SummaryManagedRulesParamsHTTPMethodUpdate, AttackLayer7SummaryManagedRulesParamsHTTPMethodVersioncontrol, AttackLayer7SummaryManagedRulesParamsHTTPMethodBaselinecontrol, AttackLayer7SummaryManagedRulesParamsHTTPMethodXmsenumatts, AttackLayer7SummaryManagedRulesParamsHTTPMethodRpcOutData, AttackLayer7SummaryManagedRulesParamsHTTPMethodRpcInData, AttackLayer7SummaryManagedRulesParamsHTTPMethodJson, AttackLayer7SummaryManagedRulesParamsHTTPMethodCook, AttackLayer7SummaryManagedRulesParamsHTTPMethodTrack: + case AttackLayer7SummaryManagedRulesParamsHTTPMethodGet, AttackLayer7SummaryManagedRulesParamsHTTPMethodPost, AttackLayer7SummaryManagedRulesParamsHTTPMethodDelete, AttackLayer7SummaryManagedRulesParamsHTTPMethodPut, AttackLayer7SummaryManagedRulesParamsHTTPMethodHead, AttackLayer7SummaryManagedRulesParamsHTTPMethodPurge, AttackLayer7SummaryManagedRulesParamsHTTPMethodOptions, AttackLayer7SummaryManagedRulesParamsHTTPMethodPropfind, AttackLayer7SummaryManagedRulesParamsHTTPMethodMkcol, AttackLayer7SummaryManagedRulesParamsHTTPMethodPatch, AttackLayer7SummaryManagedRulesParamsHTTPMethodACL, AttackLayer7SummaryManagedRulesParamsHTTPMethodBcopy, AttackLayer7SummaryManagedRulesParamsHTTPMethodBdelete, AttackLayer7SummaryManagedRulesParamsHTTPMethodBmove, AttackLayer7SummaryManagedRulesParamsHTTPMethodBpropfind, AttackLayer7SummaryManagedRulesParamsHTTPMethodBproppatch, AttackLayer7SummaryManagedRulesParamsHTTPMethodCheckin, AttackLayer7SummaryManagedRulesParamsHTTPMethodCheckout, AttackLayer7SummaryManagedRulesParamsHTTPMethodConnect, AttackLayer7SummaryManagedRulesParamsHTTPMethodCopy, AttackLayer7SummaryManagedRulesParamsHTTPMethodLabel, AttackLayer7SummaryManagedRulesParamsHTTPMethodLock, AttackLayer7SummaryManagedRulesParamsHTTPMethodMerge, AttackLayer7SummaryManagedRulesParamsHTTPMethodMkactivity, AttackLayer7SummaryManagedRulesParamsHTTPMethodMkworkspace, AttackLayer7SummaryManagedRulesParamsHTTPMethodMove, AttackLayer7SummaryManagedRulesParamsHTTPMethodNotify, AttackLayer7SummaryManagedRulesParamsHTTPMethodOrderpatch, AttackLayer7SummaryManagedRulesParamsHTTPMethodPoll, AttackLayer7SummaryManagedRulesParamsHTTPMethodProppatch, AttackLayer7SummaryManagedRulesParamsHTTPMethodReport, AttackLayer7SummaryManagedRulesParamsHTTPMethodSearch, AttackLayer7SummaryManagedRulesParamsHTTPMethodSubscribe, AttackLayer7SummaryManagedRulesParamsHTTPMethodTrace, AttackLayer7SummaryManagedRulesParamsHTTPMethodUncheckout, AttackLayer7SummaryManagedRulesParamsHTTPMethodUnlock, AttackLayer7SummaryManagedRulesParamsHTTPMethodUnsubscribe, AttackLayer7SummaryManagedRulesParamsHTTPMethodUpdate, AttackLayer7SummaryManagedRulesParamsHTTPMethodVersioncontrol, AttackLayer7SummaryManagedRulesParamsHTTPMethodBaselinecontrol, AttackLayer7SummaryManagedRulesParamsHTTPMethodXmsenumatts, AttackLayer7SummaryManagedRulesParamsHTTPMethodRpcOutData, AttackLayer7SummaryManagedRulesParamsHTTPMethodRpcInData, AttackLayer7SummaryManagedRulesParamsHTTPMethodJSON, AttackLayer7SummaryManagedRulesParamsHTTPMethodCook, AttackLayer7SummaryManagedRulesParamsHTTPMethodTrack: return true } return false @@ -1792,13 +1792,13 @@ func (r AttackLayer7SummaryMitigationProductParams) URLQuery() (v url.Values) { type AttackLayer7SummaryMitigationProductParamsFormat string const ( - AttackLayer7SummaryMitigationProductParamsFormatJson AttackLayer7SummaryMitigationProductParamsFormat = "JSON" + AttackLayer7SummaryMitigationProductParamsFormatJSON AttackLayer7SummaryMitigationProductParamsFormat = "JSON" AttackLayer7SummaryMitigationProductParamsFormatCsv AttackLayer7SummaryMitigationProductParamsFormat = "CSV" ) func (r AttackLayer7SummaryMitigationProductParamsFormat) IsKnown() bool { switch r { - case AttackLayer7SummaryMitigationProductParamsFormatJson, AttackLayer7SummaryMitigationProductParamsFormatCsv: + case AttackLayer7SummaryMitigationProductParamsFormatJSON, AttackLayer7SummaryMitigationProductParamsFormatCsv: return true } return false @@ -1850,14 +1850,14 @@ const ( AttackLayer7SummaryMitigationProductParamsHTTPMethodXmsenumatts AttackLayer7SummaryMitigationProductParamsHTTPMethod = "XMSENUMATTS" AttackLayer7SummaryMitigationProductParamsHTTPMethodRpcOutData AttackLayer7SummaryMitigationProductParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7SummaryMitigationProductParamsHTTPMethodRpcInData AttackLayer7SummaryMitigationProductParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7SummaryMitigationProductParamsHTTPMethodJson AttackLayer7SummaryMitigationProductParamsHTTPMethod = "JSON" + AttackLayer7SummaryMitigationProductParamsHTTPMethodJSON AttackLayer7SummaryMitigationProductParamsHTTPMethod = "JSON" AttackLayer7SummaryMitigationProductParamsHTTPMethodCook AttackLayer7SummaryMitigationProductParamsHTTPMethod = "COOK" AttackLayer7SummaryMitigationProductParamsHTTPMethodTrack AttackLayer7SummaryMitigationProductParamsHTTPMethod = "TRACK" ) func (r AttackLayer7SummaryMitigationProductParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7SummaryMitigationProductParamsHTTPMethodGet, AttackLayer7SummaryMitigationProductParamsHTTPMethodPost, AttackLayer7SummaryMitigationProductParamsHTTPMethodDelete, AttackLayer7SummaryMitigationProductParamsHTTPMethodPut, AttackLayer7SummaryMitigationProductParamsHTTPMethodHead, AttackLayer7SummaryMitigationProductParamsHTTPMethodPurge, AttackLayer7SummaryMitigationProductParamsHTTPMethodOptions, AttackLayer7SummaryMitigationProductParamsHTTPMethodPropfind, AttackLayer7SummaryMitigationProductParamsHTTPMethodMkcol, AttackLayer7SummaryMitigationProductParamsHTTPMethodPatch, AttackLayer7SummaryMitigationProductParamsHTTPMethodACL, AttackLayer7SummaryMitigationProductParamsHTTPMethodBcopy, AttackLayer7SummaryMitigationProductParamsHTTPMethodBdelete, AttackLayer7SummaryMitigationProductParamsHTTPMethodBmove, AttackLayer7SummaryMitigationProductParamsHTTPMethodBpropfind, AttackLayer7SummaryMitigationProductParamsHTTPMethodBproppatch, AttackLayer7SummaryMitigationProductParamsHTTPMethodCheckin, AttackLayer7SummaryMitigationProductParamsHTTPMethodCheckout, AttackLayer7SummaryMitigationProductParamsHTTPMethodConnect, AttackLayer7SummaryMitigationProductParamsHTTPMethodCopy, AttackLayer7SummaryMitigationProductParamsHTTPMethodLabel, AttackLayer7SummaryMitigationProductParamsHTTPMethodLock, AttackLayer7SummaryMitigationProductParamsHTTPMethodMerge, AttackLayer7SummaryMitigationProductParamsHTTPMethodMkactivity, AttackLayer7SummaryMitigationProductParamsHTTPMethodMkworkspace, AttackLayer7SummaryMitigationProductParamsHTTPMethodMove, AttackLayer7SummaryMitigationProductParamsHTTPMethodNotify, AttackLayer7SummaryMitigationProductParamsHTTPMethodOrderpatch, AttackLayer7SummaryMitigationProductParamsHTTPMethodPoll, AttackLayer7SummaryMitigationProductParamsHTTPMethodProppatch, AttackLayer7SummaryMitigationProductParamsHTTPMethodReport, AttackLayer7SummaryMitigationProductParamsHTTPMethodSearch, AttackLayer7SummaryMitigationProductParamsHTTPMethodSubscribe, AttackLayer7SummaryMitigationProductParamsHTTPMethodTrace, AttackLayer7SummaryMitigationProductParamsHTTPMethodUncheckout, AttackLayer7SummaryMitigationProductParamsHTTPMethodUnlock, AttackLayer7SummaryMitigationProductParamsHTTPMethodUnsubscribe, AttackLayer7SummaryMitigationProductParamsHTTPMethodUpdate, AttackLayer7SummaryMitigationProductParamsHTTPMethodVersioncontrol, AttackLayer7SummaryMitigationProductParamsHTTPMethodBaselinecontrol, AttackLayer7SummaryMitigationProductParamsHTTPMethodXmsenumatts, AttackLayer7SummaryMitigationProductParamsHTTPMethodRpcOutData, AttackLayer7SummaryMitigationProductParamsHTTPMethodRpcInData, AttackLayer7SummaryMitigationProductParamsHTTPMethodJson, AttackLayer7SummaryMitigationProductParamsHTTPMethodCook, AttackLayer7SummaryMitigationProductParamsHTTPMethodTrack: + case AttackLayer7SummaryMitigationProductParamsHTTPMethodGet, AttackLayer7SummaryMitigationProductParamsHTTPMethodPost, AttackLayer7SummaryMitigationProductParamsHTTPMethodDelete, AttackLayer7SummaryMitigationProductParamsHTTPMethodPut, AttackLayer7SummaryMitigationProductParamsHTTPMethodHead, AttackLayer7SummaryMitigationProductParamsHTTPMethodPurge, AttackLayer7SummaryMitigationProductParamsHTTPMethodOptions, AttackLayer7SummaryMitigationProductParamsHTTPMethodPropfind, AttackLayer7SummaryMitigationProductParamsHTTPMethodMkcol, AttackLayer7SummaryMitigationProductParamsHTTPMethodPatch, AttackLayer7SummaryMitigationProductParamsHTTPMethodACL, AttackLayer7SummaryMitigationProductParamsHTTPMethodBcopy, AttackLayer7SummaryMitigationProductParamsHTTPMethodBdelete, AttackLayer7SummaryMitigationProductParamsHTTPMethodBmove, AttackLayer7SummaryMitigationProductParamsHTTPMethodBpropfind, AttackLayer7SummaryMitigationProductParamsHTTPMethodBproppatch, AttackLayer7SummaryMitigationProductParamsHTTPMethodCheckin, AttackLayer7SummaryMitigationProductParamsHTTPMethodCheckout, AttackLayer7SummaryMitigationProductParamsHTTPMethodConnect, AttackLayer7SummaryMitigationProductParamsHTTPMethodCopy, AttackLayer7SummaryMitigationProductParamsHTTPMethodLabel, AttackLayer7SummaryMitigationProductParamsHTTPMethodLock, AttackLayer7SummaryMitigationProductParamsHTTPMethodMerge, AttackLayer7SummaryMitigationProductParamsHTTPMethodMkactivity, AttackLayer7SummaryMitigationProductParamsHTTPMethodMkworkspace, AttackLayer7SummaryMitigationProductParamsHTTPMethodMove, AttackLayer7SummaryMitigationProductParamsHTTPMethodNotify, AttackLayer7SummaryMitigationProductParamsHTTPMethodOrderpatch, AttackLayer7SummaryMitigationProductParamsHTTPMethodPoll, AttackLayer7SummaryMitigationProductParamsHTTPMethodProppatch, AttackLayer7SummaryMitigationProductParamsHTTPMethodReport, AttackLayer7SummaryMitigationProductParamsHTTPMethodSearch, AttackLayer7SummaryMitigationProductParamsHTTPMethodSubscribe, AttackLayer7SummaryMitigationProductParamsHTTPMethodTrace, AttackLayer7SummaryMitigationProductParamsHTTPMethodUncheckout, AttackLayer7SummaryMitigationProductParamsHTTPMethodUnlock, AttackLayer7SummaryMitigationProductParamsHTTPMethodUnsubscribe, AttackLayer7SummaryMitigationProductParamsHTTPMethodUpdate, AttackLayer7SummaryMitigationProductParamsHTTPMethodVersioncontrol, AttackLayer7SummaryMitigationProductParamsHTTPMethodBaselinecontrol, AttackLayer7SummaryMitigationProductParamsHTTPMethodXmsenumatts, AttackLayer7SummaryMitigationProductParamsHTTPMethodRpcOutData, AttackLayer7SummaryMitigationProductParamsHTTPMethodRpcInData, AttackLayer7SummaryMitigationProductParamsHTTPMethodJSON, AttackLayer7SummaryMitigationProductParamsHTTPMethodCook, AttackLayer7SummaryMitigationProductParamsHTTPMethodTrack: return true } return false diff --git a/radar/attacklayer7summary_test.go b/radar/attacklayer7summary_test.go index df34205feed..d84a2317f77 100644 --- a/radar/attacklayer7summary_test.go +++ b/radar/attacklayer7summary_test.go @@ -34,7 +34,7 @@ func TestAttackLayer7SummaryGetWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7SummaryGetParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7SummaryGetParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) @@ -66,7 +66,7 @@ func TestAttackLayer7SummaryHTTPMethodWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7SummaryHTTPMethodParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7SummaryHTTPMethodParamsFormatJSON), HTTPVersion: cloudflare.F([]radar.AttackLayer7SummaryHTTPMethodParamsHTTPVersion{radar.AttackLayer7SummaryHTTPMethodParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.AttackLayer7SummaryHTTPMethodParamsIPVersion{radar.AttackLayer7SummaryHTTPMethodParamsIPVersionIPv4}), LimitPerGroup: cloudflare.F(int64(10)), @@ -102,7 +102,7 @@ func TestAttackLayer7SummaryHTTPVersionWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7SummaryHTTPVersionParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7SummaryHTTPVersionParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7SummaryHTTPVersionParamsHTTPMethod{radar.AttackLayer7SummaryHTTPVersionParamsHTTPMethodGet}), IPVersion: cloudflare.F([]radar.AttackLayer7SummaryHTTPVersionParamsIPVersion{radar.AttackLayer7SummaryHTTPVersionParamsIPVersionIPv4}), Location: cloudflare.F([]string{"string"}), @@ -137,7 +137,7 @@ func TestAttackLayer7SummaryIPVersionWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7SummaryIPVersionParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7SummaryIPVersionParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7SummaryIPVersionParamsHTTPMethod{radar.AttackLayer7SummaryIPVersionParamsHTTPMethodGet}), HTTPVersion: cloudflare.F([]radar.AttackLayer7SummaryIPVersionParamsHTTPVersion{radar.AttackLayer7SummaryIPVersionParamsHTTPVersionHttPv1}), Location: cloudflare.F([]string{"string"}), @@ -172,7 +172,7 @@ func TestAttackLayer7SummaryManagedRulesWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7SummaryManagedRulesParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7SummaryManagedRulesParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7SummaryManagedRulesParamsHTTPMethod{radar.AttackLayer7SummaryManagedRulesParamsHTTPMethodGet}), HTTPVersion: cloudflare.F([]radar.AttackLayer7SummaryManagedRulesParamsHTTPVersion{radar.AttackLayer7SummaryManagedRulesParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.AttackLayer7SummaryManagedRulesParamsIPVersion{radar.AttackLayer7SummaryManagedRulesParamsIPVersionIPv4}), @@ -209,7 +209,7 @@ func TestAttackLayer7SummaryMitigationProductWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7SummaryMitigationProductParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7SummaryMitigationProductParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7SummaryMitigationProductParamsHTTPMethod{radar.AttackLayer7SummaryMitigationProductParamsHTTPMethodGet}), HTTPVersion: cloudflare.F([]radar.AttackLayer7SummaryMitigationProductParamsHTTPVersion{radar.AttackLayer7SummaryMitigationProductParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.AttackLayer7SummaryMitigationProductParamsIPVersion{radar.AttackLayer7SummaryMitigationProductParamsIPVersionIPv4}), diff --git a/radar/attacklayer7timeseriesgroup.go b/radar/attacklayer7timeseriesgroup.go index ccf253206dd..bfe96240f79 100644 --- a/radar/attacklayer7timeseriesgroup.go +++ b/radar/attacklayer7timeseriesgroup.go @@ -694,13 +694,13 @@ func (r AttackLayer7TimeseriesGroupGetParamsAggInterval) IsKnown() bool { type AttackLayer7TimeseriesGroupGetParamsFormat string const ( - AttackLayer7TimeseriesGroupGetParamsFormatJson AttackLayer7TimeseriesGroupGetParamsFormat = "JSON" + AttackLayer7TimeseriesGroupGetParamsFormatJSON AttackLayer7TimeseriesGroupGetParamsFormat = "JSON" AttackLayer7TimeseriesGroupGetParamsFormatCsv AttackLayer7TimeseriesGroupGetParamsFormat = "CSV" ) func (r AttackLayer7TimeseriesGroupGetParamsFormat) IsKnown() bool { switch r { - case AttackLayer7TimeseriesGroupGetParamsFormatJson, AttackLayer7TimeseriesGroupGetParamsFormatCsv: + case AttackLayer7TimeseriesGroupGetParamsFormatJSON, AttackLayer7TimeseriesGroupGetParamsFormatCsv: return true } return false @@ -805,13 +805,13 @@ func (r AttackLayer7TimeseriesGroupHTTPMethodParamsAggInterval) IsKnown() bool { type AttackLayer7TimeseriesGroupHTTPMethodParamsFormat string const ( - AttackLayer7TimeseriesGroupHTTPMethodParamsFormatJson AttackLayer7TimeseriesGroupHTTPMethodParamsFormat = "JSON" + AttackLayer7TimeseriesGroupHTTPMethodParamsFormatJSON AttackLayer7TimeseriesGroupHTTPMethodParamsFormat = "JSON" AttackLayer7TimeseriesGroupHTTPMethodParamsFormatCsv AttackLayer7TimeseriesGroupHTTPMethodParamsFormat = "CSV" ) func (r AttackLayer7TimeseriesGroupHTTPMethodParamsFormat) IsKnown() bool { switch r { - case AttackLayer7TimeseriesGroupHTTPMethodParamsFormatJson, AttackLayer7TimeseriesGroupHTTPMethodParamsFormatCsv: + case AttackLayer7TimeseriesGroupHTTPMethodParamsFormatJSON, AttackLayer7TimeseriesGroupHTTPMethodParamsFormatCsv: return true } return false @@ -981,13 +981,13 @@ func (r AttackLayer7TimeseriesGroupHTTPVersionParamsAggInterval) IsKnown() bool type AttackLayer7TimeseriesGroupHTTPVersionParamsFormat string const ( - AttackLayer7TimeseriesGroupHTTPVersionParamsFormatJson AttackLayer7TimeseriesGroupHTTPVersionParamsFormat = "JSON" + AttackLayer7TimeseriesGroupHTTPVersionParamsFormatJSON AttackLayer7TimeseriesGroupHTTPVersionParamsFormat = "JSON" AttackLayer7TimeseriesGroupHTTPVersionParamsFormatCsv AttackLayer7TimeseriesGroupHTTPVersionParamsFormat = "CSV" ) func (r AttackLayer7TimeseriesGroupHTTPVersionParamsFormat) IsKnown() bool { switch r { - case AttackLayer7TimeseriesGroupHTTPVersionParamsFormatJson, AttackLayer7TimeseriesGroupHTTPVersionParamsFormatCsv: + case AttackLayer7TimeseriesGroupHTTPVersionParamsFormatJSON, AttackLayer7TimeseriesGroupHTTPVersionParamsFormatCsv: return true } return false @@ -1039,14 +1039,14 @@ const ( AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodXmsenumatts AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethod = "XMSENUMATTS" AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodRpcOutData AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodRpcInData AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodJson AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethod = "JSON" + AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodJSON AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethod = "JSON" AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodCook AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethod = "COOK" AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodTrack AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethod = "TRACK" ) func (r AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodGet, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodPost, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodDelete, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodPut, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodHead, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodPurge, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodOptions, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodPropfind, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodMkcol, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodPatch, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodACL, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodBcopy, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodBdelete, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodBmove, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodBpropfind, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodBproppatch, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodCheckin, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodCheckout, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodConnect, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodCopy, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodLabel, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodLock, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodMerge, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodMkactivity, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodMkworkspace, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodMove, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodNotify, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodOrderpatch, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodPoll, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodProppatch, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodReport, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodSearch, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodSubscribe, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodTrace, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodUncheckout, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodUnlock, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodUnsubscribe, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodUpdate, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodVersioncontrol, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodBaselinecontrol, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodXmsenumatts, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodRpcOutData, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodRpcInData, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodJson, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodCook, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodTrack: + case AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodGet, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodPost, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodDelete, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodPut, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodHead, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodPurge, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodOptions, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodPropfind, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodMkcol, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodPatch, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodACL, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodBcopy, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodBdelete, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodBmove, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodBpropfind, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodBproppatch, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodCheckin, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodCheckout, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodConnect, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodCopy, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodLabel, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodLock, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodMerge, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodMkactivity, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodMkworkspace, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodMove, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodNotify, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodOrderpatch, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodPoll, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodProppatch, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodReport, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodSearch, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodSubscribe, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodTrace, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodUncheckout, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodUnlock, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodUnsubscribe, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodUpdate, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodVersioncontrol, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodBaselinecontrol, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodXmsenumatts, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodRpcOutData, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodRpcInData, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodJSON, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodCook, AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodTrack: return true } return false @@ -1205,13 +1205,13 @@ func (r AttackLayer7TimeseriesGroupIndustryParamsAggInterval) IsKnown() bool { type AttackLayer7TimeseriesGroupIndustryParamsFormat string const ( - AttackLayer7TimeseriesGroupIndustryParamsFormatJson AttackLayer7TimeseriesGroupIndustryParamsFormat = "JSON" + AttackLayer7TimeseriesGroupIndustryParamsFormatJSON AttackLayer7TimeseriesGroupIndustryParamsFormat = "JSON" AttackLayer7TimeseriesGroupIndustryParamsFormatCsv AttackLayer7TimeseriesGroupIndustryParamsFormat = "CSV" ) func (r AttackLayer7TimeseriesGroupIndustryParamsFormat) IsKnown() bool { switch r { - case AttackLayer7TimeseriesGroupIndustryParamsFormatJson, AttackLayer7TimeseriesGroupIndustryParamsFormatCsv: + case AttackLayer7TimeseriesGroupIndustryParamsFormatJSON, AttackLayer7TimeseriesGroupIndustryParamsFormatCsv: return true } return false @@ -1263,14 +1263,14 @@ const ( AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodXmsenumatts AttackLayer7TimeseriesGroupIndustryParamsHTTPMethod = "XMSENUMATTS" AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodRpcOutData AttackLayer7TimeseriesGroupIndustryParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodRpcInData AttackLayer7TimeseriesGroupIndustryParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodJson AttackLayer7TimeseriesGroupIndustryParamsHTTPMethod = "JSON" + AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodJSON AttackLayer7TimeseriesGroupIndustryParamsHTTPMethod = "JSON" AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodCook AttackLayer7TimeseriesGroupIndustryParamsHTTPMethod = "COOK" AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodTrack AttackLayer7TimeseriesGroupIndustryParamsHTTPMethod = "TRACK" ) func (r AttackLayer7TimeseriesGroupIndustryParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodGet, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodPost, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodDelete, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodPut, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodHead, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodPurge, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodOptions, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodPropfind, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodMkcol, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodPatch, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodACL, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodBcopy, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodBdelete, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodBmove, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodBpropfind, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodBproppatch, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodCheckin, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodCheckout, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodConnect, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodCopy, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodLabel, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodLock, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodMerge, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodMkactivity, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodMkworkspace, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodMove, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodNotify, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodOrderpatch, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodPoll, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodProppatch, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodReport, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodSearch, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodSubscribe, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodTrace, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodUncheckout, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodUnlock, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodUnsubscribe, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodUpdate, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodVersioncontrol, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodBaselinecontrol, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodXmsenumatts, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodRpcOutData, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodRpcInData, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodJson, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodCook, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodTrack: + case AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodGet, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodPost, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodDelete, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodPut, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodHead, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodPurge, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodOptions, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodPropfind, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodMkcol, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodPatch, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodACL, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodBcopy, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodBdelete, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodBmove, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodBpropfind, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodBproppatch, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodCheckin, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodCheckout, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodConnect, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodCopy, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodLabel, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodLock, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodMerge, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodMkactivity, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodMkworkspace, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodMove, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodNotify, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodOrderpatch, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodPoll, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodProppatch, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodReport, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodSearch, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodSubscribe, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodTrace, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodUncheckout, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodUnlock, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodUnsubscribe, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodUpdate, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodVersioncontrol, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodBaselinecontrol, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodXmsenumatts, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodRpcOutData, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodRpcInData, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodJSON, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodCook, AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodTrack: return true } return false @@ -1440,13 +1440,13 @@ func (r AttackLayer7TimeseriesGroupIPVersionParamsAggInterval) IsKnown() bool { type AttackLayer7TimeseriesGroupIPVersionParamsFormat string const ( - AttackLayer7TimeseriesGroupIPVersionParamsFormatJson AttackLayer7TimeseriesGroupIPVersionParamsFormat = "JSON" + AttackLayer7TimeseriesGroupIPVersionParamsFormatJSON AttackLayer7TimeseriesGroupIPVersionParamsFormat = "JSON" AttackLayer7TimeseriesGroupIPVersionParamsFormatCsv AttackLayer7TimeseriesGroupIPVersionParamsFormat = "CSV" ) func (r AttackLayer7TimeseriesGroupIPVersionParamsFormat) IsKnown() bool { switch r { - case AttackLayer7TimeseriesGroupIPVersionParamsFormatJson, AttackLayer7TimeseriesGroupIPVersionParamsFormatCsv: + case AttackLayer7TimeseriesGroupIPVersionParamsFormatJSON, AttackLayer7TimeseriesGroupIPVersionParamsFormatCsv: return true } return false @@ -1498,14 +1498,14 @@ const ( AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodXmsenumatts AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethod = "XMSENUMATTS" AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodRpcOutData AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodRpcInData AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodJson AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethod = "JSON" + AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodJSON AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethod = "JSON" AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodCook AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethod = "COOK" AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodTrack AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethod = "TRACK" ) func (r AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodGet, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodPost, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodDelete, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodPut, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodHead, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodPurge, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodOptions, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodPropfind, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodMkcol, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodPatch, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodACL, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodBcopy, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodBdelete, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodBmove, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodBpropfind, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodBproppatch, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodCheckin, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodCheckout, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodConnect, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodCopy, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodLabel, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodLock, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodMerge, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodMkactivity, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodMkworkspace, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodMove, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodNotify, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodOrderpatch, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodPoll, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodProppatch, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodReport, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodSearch, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodSubscribe, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodTrace, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodUncheckout, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodUnlock, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodUnsubscribe, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodUpdate, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodVersioncontrol, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodBaselinecontrol, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodXmsenumatts, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodRpcOutData, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodRpcInData, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodJson, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodCook, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodTrack: + case AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodGet, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodPost, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodDelete, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodPut, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodHead, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodPurge, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodOptions, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodPropfind, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodMkcol, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodPatch, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodACL, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodBcopy, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodBdelete, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodBmove, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodBpropfind, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodBproppatch, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodCheckin, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodCheckout, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodConnect, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodCopy, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodLabel, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodLock, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodMerge, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodMkactivity, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodMkworkspace, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodMove, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodNotify, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodOrderpatch, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodPoll, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodProppatch, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodReport, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodSearch, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodSubscribe, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodTrace, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodUncheckout, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodUnlock, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodUnsubscribe, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodUpdate, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodVersioncontrol, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodBaselinecontrol, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodXmsenumatts, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodRpcOutData, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodRpcInData, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodJSON, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodCook, AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodTrack: return true } return false @@ -1665,13 +1665,13 @@ func (r AttackLayer7TimeseriesGroupManagedRulesParamsAggInterval) IsKnown() bool type AttackLayer7TimeseriesGroupManagedRulesParamsFormat string const ( - AttackLayer7TimeseriesGroupManagedRulesParamsFormatJson AttackLayer7TimeseriesGroupManagedRulesParamsFormat = "JSON" + AttackLayer7TimeseriesGroupManagedRulesParamsFormatJSON AttackLayer7TimeseriesGroupManagedRulesParamsFormat = "JSON" AttackLayer7TimeseriesGroupManagedRulesParamsFormatCsv AttackLayer7TimeseriesGroupManagedRulesParamsFormat = "CSV" ) func (r AttackLayer7TimeseriesGroupManagedRulesParamsFormat) IsKnown() bool { switch r { - case AttackLayer7TimeseriesGroupManagedRulesParamsFormatJson, AttackLayer7TimeseriesGroupManagedRulesParamsFormatCsv: + case AttackLayer7TimeseriesGroupManagedRulesParamsFormatJSON, AttackLayer7TimeseriesGroupManagedRulesParamsFormatCsv: return true } return false @@ -1723,14 +1723,14 @@ const ( AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodXmsenumatts AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethod = "XMSENUMATTS" AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodRpcOutData AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodRpcInData AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodJson AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethod = "JSON" + AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodJSON AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethod = "JSON" AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodCook AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethod = "COOK" AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodTrack AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethod = "TRACK" ) func (r AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodGet, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodPost, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodDelete, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodPut, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodHead, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodPurge, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodOptions, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodPropfind, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodMkcol, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodPatch, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodACL, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodBcopy, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodBdelete, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodBmove, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodBpropfind, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodBproppatch, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodCheckin, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodCheckout, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodConnect, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodCopy, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodLabel, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodLock, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodMerge, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodMkactivity, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodMkworkspace, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodMove, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodNotify, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodOrderpatch, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodPoll, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodProppatch, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodReport, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodSearch, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodSubscribe, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodTrace, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodUncheckout, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodUnlock, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodUnsubscribe, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodUpdate, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodVersioncontrol, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodBaselinecontrol, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodXmsenumatts, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodRpcOutData, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodRpcInData, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodJson, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodCook, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodTrack: + case AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodGet, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodPost, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodDelete, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodPut, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodHead, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodPurge, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodOptions, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodPropfind, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodMkcol, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodPatch, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodACL, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodBcopy, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodBdelete, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodBmove, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodBpropfind, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodBproppatch, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodCheckin, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodCheckout, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodConnect, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodCopy, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodLabel, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodLock, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodMerge, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodMkactivity, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodMkworkspace, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodMove, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodNotify, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodOrderpatch, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodPoll, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodProppatch, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodReport, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodSearch, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodSubscribe, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodTrace, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodUncheckout, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodUnlock, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodUnsubscribe, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodUpdate, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodVersioncontrol, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodBaselinecontrol, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodXmsenumatts, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodRpcOutData, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodRpcInData, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodJSON, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodCook, AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodTrack: return true } return false @@ -1904,13 +1904,13 @@ func (r AttackLayer7TimeseriesGroupMitigationProductParamsAggInterval) IsKnown() type AttackLayer7TimeseriesGroupMitigationProductParamsFormat string const ( - AttackLayer7TimeseriesGroupMitigationProductParamsFormatJson AttackLayer7TimeseriesGroupMitigationProductParamsFormat = "JSON" + AttackLayer7TimeseriesGroupMitigationProductParamsFormatJSON AttackLayer7TimeseriesGroupMitigationProductParamsFormat = "JSON" AttackLayer7TimeseriesGroupMitigationProductParamsFormatCsv AttackLayer7TimeseriesGroupMitigationProductParamsFormat = "CSV" ) func (r AttackLayer7TimeseriesGroupMitigationProductParamsFormat) IsKnown() bool { switch r { - case AttackLayer7TimeseriesGroupMitigationProductParamsFormatJson, AttackLayer7TimeseriesGroupMitigationProductParamsFormatCsv: + case AttackLayer7TimeseriesGroupMitigationProductParamsFormatJSON, AttackLayer7TimeseriesGroupMitigationProductParamsFormatCsv: return true } return false @@ -1962,14 +1962,14 @@ const ( AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodXmsenumatts AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethod = "XMSENUMATTS" AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodRpcOutData AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodRpcInData AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodJson AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethod = "JSON" + AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodJSON AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethod = "JSON" AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodCook AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethod = "COOK" AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodTrack AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethod = "TRACK" ) func (r AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodGet, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodPost, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodDelete, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodPut, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodHead, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodPurge, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodOptions, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodPropfind, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodMkcol, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodPatch, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodACL, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodBcopy, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodBdelete, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodBmove, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodBpropfind, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodBproppatch, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodCheckin, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodCheckout, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodConnect, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodCopy, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodLabel, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodLock, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodMerge, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodMkactivity, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodMkworkspace, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodMove, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodNotify, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodOrderpatch, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodPoll, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodProppatch, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodReport, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodSearch, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodSubscribe, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodTrace, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodUncheckout, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodUnlock, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodUnsubscribe, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodUpdate, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodVersioncontrol, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodBaselinecontrol, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodXmsenumatts, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodRpcOutData, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodRpcInData, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodJson, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodCook, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodTrack: + case AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodGet, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodPost, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodDelete, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodPut, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodHead, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodPurge, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodOptions, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodPropfind, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodMkcol, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodPatch, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodACL, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodBcopy, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodBdelete, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodBmove, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodBpropfind, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodBproppatch, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodCheckin, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodCheckout, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodConnect, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodCopy, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodLabel, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodLock, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodMerge, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodMkactivity, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodMkworkspace, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodMove, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodNotify, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodOrderpatch, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodPoll, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodProppatch, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodReport, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodSearch, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodSubscribe, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodTrace, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodUncheckout, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodUnlock, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodUnsubscribe, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodUpdate, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodVersioncontrol, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodBaselinecontrol, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodXmsenumatts, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodRpcOutData, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodRpcInData, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodJSON, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodCook, AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodTrack: return true } return false @@ -2125,13 +2125,13 @@ func (r AttackLayer7TimeseriesGroupVerticalParamsAggInterval) IsKnown() bool { type AttackLayer7TimeseriesGroupVerticalParamsFormat string const ( - AttackLayer7TimeseriesGroupVerticalParamsFormatJson AttackLayer7TimeseriesGroupVerticalParamsFormat = "JSON" + AttackLayer7TimeseriesGroupVerticalParamsFormatJSON AttackLayer7TimeseriesGroupVerticalParamsFormat = "JSON" AttackLayer7TimeseriesGroupVerticalParamsFormatCsv AttackLayer7TimeseriesGroupVerticalParamsFormat = "CSV" ) func (r AttackLayer7TimeseriesGroupVerticalParamsFormat) IsKnown() bool { switch r { - case AttackLayer7TimeseriesGroupVerticalParamsFormatJson, AttackLayer7TimeseriesGroupVerticalParamsFormatCsv: + case AttackLayer7TimeseriesGroupVerticalParamsFormatJSON, AttackLayer7TimeseriesGroupVerticalParamsFormatCsv: return true } return false @@ -2183,14 +2183,14 @@ const ( AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodXmsenumatts AttackLayer7TimeseriesGroupVerticalParamsHTTPMethod = "XMSENUMATTS" AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodRpcOutData AttackLayer7TimeseriesGroupVerticalParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodRpcInData AttackLayer7TimeseriesGroupVerticalParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodJson AttackLayer7TimeseriesGroupVerticalParamsHTTPMethod = "JSON" + AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodJSON AttackLayer7TimeseriesGroupVerticalParamsHTTPMethod = "JSON" AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodCook AttackLayer7TimeseriesGroupVerticalParamsHTTPMethod = "COOK" AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodTrack AttackLayer7TimeseriesGroupVerticalParamsHTTPMethod = "TRACK" ) func (r AttackLayer7TimeseriesGroupVerticalParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodGet, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodPost, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodDelete, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodPut, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodHead, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodPurge, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodOptions, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodPropfind, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodMkcol, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodPatch, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodACL, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodBcopy, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodBdelete, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodBmove, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodBpropfind, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodBproppatch, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodCheckin, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodCheckout, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodConnect, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodCopy, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodLabel, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodLock, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodMerge, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodMkactivity, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodMkworkspace, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodMove, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodNotify, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodOrderpatch, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodPoll, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodProppatch, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodReport, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodSearch, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodSubscribe, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodTrace, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodUncheckout, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodUnlock, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodUnsubscribe, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodUpdate, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodVersioncontrol, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodBaselinecontrol, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodXmsenumatts, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodRpcOutData, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodRpcInData, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodJson, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodCook, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodTrack: + case AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodGet, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodPost, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodDelete, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodPut, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodHead, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodPurge, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodOptions, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodPropfind, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodMkcol, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodPatch, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodACL, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodBcopy, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodBdelete, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodBmove, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodBpropfind, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodBproppatch, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodCheckin, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodCheckout, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodConnect, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodCopy, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodLabel, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodLock, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodMerge, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodMkactivity, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodMkworkspace, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodMove, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodNotify, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodOrderpatch, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodPoll, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodProppatch, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodReport, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodSearch, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodSubscribe, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodTrace, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodUncheckout, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodUnlock, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodUnsubscribe, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodUpdate, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodVersioncontrol, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodBaselinecontrol, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodXmsenumatts, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodRpcOutData, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodRpcInData, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodJSON, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodCook, AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodTrack: return true } return false diff --git a/radar/attacklayer7timeseriesgroup_test.go b/radar/attacklayer7timeseriesgroup_test.go index 1314496b927..9c1fd0e55c0 100644 --- a/radar/attacklayer7timeseriesgroup_test.go +++ b/radar/attacklayer7timeseriesgroup_test.go @@ -35,7 +35,7 @@ func TestAttackLayer7TimeseriesGroupGetWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupGetParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupGetParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) @@ -68,7 +68,7 @@ func TestAttackLayer7TimeseriesGroupHTTPMethodWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupHTTPMethodParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupHTTPMethodParamsFormatJSON), HTTPVersion: cloudflare.F([]radar.AttackLayer7TimeseriesGroupHTTPMethodParamsHTTPVersion{radar.AttackLayer7TimeseriesGroupHTTPMethodParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.AttackLayer7TimeseriesGroupHTTPMethodParamsIPVersion{radar.AttackLayer7TimeseriesGroupHTTPMethodParamsIPVersionIPv4}), LimitPerGroup: cloudflare.F(int64(10)), @@ -106,7 +106,7 @@ func TestAttackLayer7TimeseriesGroupHTTPVersionWithOptionalParams(t *testing.T) DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupHTTPVersionParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupHTTPVersionParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethod{radar.AttackLayer7TimeseriesGroupHTTPVersionParamsHTTPMethodGet}), IPVersion: cloudflare.F([]radar.AttackLayer7TimeseriesGroupHTTPVersionParamsIPVersion{radar.AttackLayer7TimeseriesGroupHTTPVersionParamsIPVersionIPv4}), Location: cloudflare.F([]string{"string"}), @@ -143,7 +143,7 @@ func TestAttackLayer7TimeseriesGroupIndustryWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupIndustryParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupIndustryParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7TimeseriesGroupIndustryParamsHTTPMethod{radar.AttackLayer7TimeseriesGroupIndustryParamsHTTPMethodGet}), HTTPVersion: cloudflare.F([]radar.AttackLayer7TimeseriesGroupIndustryParamsHTTPVersion{radar.AttackLayer7TimeseriesGroupIndustryParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.AttackLayer7TimeseriesGroupIndustryParamsIPVersion{radar.AttackLayer7TimeseriesGroupIndustryParamsIPVersionIPv4}), @@ -182,7 +182,7 @@ func TestAttackLayer7TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupIPVersionParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupIPVersionParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethod{radar.AttackLayer7TimeseriesGroupIPVersionParamsHTTPMethodGet}), HTTPVersion: cloudflare.F([]radar.AttackLayer7TimeseriesGroupIPVersionParamsHTTPVersion{radar.AttackLayer7TimeseriesGroupIPVersionParamsHTTPVersionHttPv1}), Location: cloudflare.F([]string{"string"}), @@ -219,7 +219,7 @@ func TestAttackLayer7TimeseriesGroupManagedRulesWithOptionalParams(t *testing.T) DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupManagedRulesParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupManagedRulesParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethod{radar.AttackLayer7TimeseriesGroupManagedRulesParamsHTTPMethodGet}), HTTPVersion: cloudflare.F([]radar.AttackLayer7TimeseriesGroupManagedRulesParamsHTTPVersion{radar.AttackLayer7TimeseriesGroupManagedRulesParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.AttackLayer7TimeseriesGroupManagedRulesParamsIPVersion{radar.AttackLayer7TimeseriesGroupManagedRulesParamsIPVersionIPv4}), @@ -258,7 +258,7 @@ func TestAttackLayer7TimeseriesGroupMitigationProductWithOptionalParams(t *testi DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupMitigationProductParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupMitigationProductParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethod{radar.AttackLayer7TimeseriesGroupMitigationProductParamsHTTPMethodGet}), HTTPVersion: cloudflare.F([]radar.AttackLayer7TimeseriesGroupMitigationProductParamsHTTPVersion{radar.AttackLayer7TimeseriesGroupMitigationProductParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.AttackLayer7TimeseriesGroupMitigationProductParamsIPVersion{radar.AttackLayer7TimeseriesGroupMitigationProductParamsIPVersionIPv4}), @@ -296,7 +296,7 @@ func TestAttackLayer7TimeseriesGroupVerticalWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupVerticalParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7TimeseriesGroupVerticalParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7TimeseriesGroupVerticalParamsHTTPMethod{radar.AttackLayer7TimeseriesGroupVerticalParamsHTTPMethodGet}), HTTPVersion: cloudflare.F([]radar.AttackLayer7TimeseriesGroupVerticalParamsHTTPVersion{radar.AttackLayer7TimeseriesGroupVerticalParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.AttackLayer7TimeseriesGroupVerticalParamsIPVersion{radar.AttackLayer7TimeseriesGroupVerticalParamsIPVersionIPv4}), diff --git a/radar/attacklayer7top.go b/radar/attacklayer7top.go index becd3769902..889d9d1ab66 100644 --- a/radar/attacklayer7top.go +++ b/radar/attacklayer7top.go @@ -609,13 +609,13 @@ func (r AttackLayer7TopAttacksParams) URLQuery() (v url.Values) { type AttackLayer7TopAttacksParamsFormat string const ( - AttackLayer7TopAttacksParamsFormatJson AttackLayer7TopAttacksParamsFormat = "JSON" + AttackLayer7TopAttacksParamsFormatJSON AttackLayer7TopAttacksParamsFormat = "JSON" AttackLayer7TopAttacksParamsFormatCsv AttackLayer7TopAttacksParamsFormat = "CSV" ) func (r AttackLayer7TopAttacksParamsFormat) IsKnown() bool { switch r { - case AttackLayer7TopAttacksParamsFormatJson, AttackLayer7TopAttacksParamsFormatCsv: + case AttackLayer7TopAttacksParamsFormatJSON, AttackLayer7TopAttacksParamsFormatCsv: return true } return false @@ -667,14 +667,14 @@ const ( AttackLayer7TopAttacksParamsHTTPMethodXmsenumatts AttackLayer7TopAttacksParamsHTTPMethod = "XMSENUMATTS" AttackLayer7TopAttacksParamsHTTPMethodRpcOutData AttackLayer7TopAttacksParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7TopAttacksParamsHTTPMethodRpcInData AttackLayer7TopAttacksParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7TopAttacksParamsHTTPMethodJson AttackLayer7TopAttacksParamsHTTPMethod = "JSON" + AttackLayer7TopAttacksParamsHTTPMethodJSON AttackLayer7TopAttacksParamsHTTPMethod = "JSON" AttackLayer7TopAttacksParamsHTTPMethodCook AttackLayer7TopAttacksParamsHTTPMethod = "COOK" AttackLayer7TopAttacksParamsHTTPMethodTrack AttackLayer7TopAttacksParamsHTTPMethod = "TRACK" ) func (r AttackLayer7TopAttacksParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7TopAttacksParamsHTTPMethodGet, AttackLayer7TopAttacksParamsHTTPMethodPost, AttackLayer7TopAttacksParamsHTTPMethodDelete, AttackLayer7TopAttacksParamsHTTPMethodPut, AttackLayer7TopAttacksParamsHTTPMethodHead, AttackLayer7TopAttacksParamsHTTPMethodPurge, AttackLayer7TopAttacksParamsHTTPMethodOptions, AttackLayer7TopAttacksParamsHTTPMethodPropfind, AttackLayer7TopAttacksParamsHTTPMethodMkcol, AttackLayer7TopAttacksParamsHTTPMethodPatch, AttackLayer7TopAttacksParamsHTTPMethodACL, AttackLayer7TopAttacksParamsHTTPMethodBcopy, AttackLayer7TopAttacksParamsHTTPMethodBdelete, AttackLayer7TopAttacksParamsHTTPMethodBmove, AttackLayer7TopAttacksParamsHTTPMethodBpropfind, AttackLayer7TopAttacksParamsHTTPMethodBproppatch, AttackLayer7TopAttacksParamsHTTPMethodCheckin, AttackLayer7TopAttacksParamsHTTPMethodCheckout, AttackLayer7TopAttacksParamsHTTPMethodConnect, AttackLayer7TopAttacksParamsHTTPMethodCopy, AttackLayer7TopAttacksParamsHTTPMethodLabel, AttackLayer7TopAttacksParamsHTTPMethodLock, AttackLayer7TopAttacksParamsHTTPMethodMerge, AttackLayer7TopAttacksParamsHTTPMethodMkactivity, AttackLayer7TopAttacksParamsHTTPMethodMkworkspace, AttackLayer7TopAttacksParamsHTTPMethodMove, AttackLayer7TopAttacksParamsHTTPMethodNotify, AttackLayer7TopAttacksParamsHTTPMethodOrderpatch, AttackLayer7TopAttacksParamsHTTPMethodPoll, AttackLayer7TopAttacksParamsHTTPMethodProppatch, AttackLayer7TopAttacksParamsHTTPMethodReport, AttackLayer7TopAttacksParamsHTTPMethodSearch, AttackLayer7TopAttacksParamsHTTPMethodSubscribe, AttackLayer7TopAttacksParamsHTTPMethodTrace, AttackLayer7TopAttacksParamsHTTPMethodUncheckout, AttackLayer7TopAttacksParamsHTTPMethodUnlock, AttackLayer7TopAttacksParamsHTTPMethodUnsubscribe, AttackLayer7TopAttacksParamsHTTPMethodUpdate, AttackLayer7TopAttacksParamsHTTPMethodVersioncontrol, AttackLayer7TopAttacksParamsHTTPMethodBaselinecontrol, AttackLayer7TopAttacksParamsHTTPMethodXmsenumatts, AttackLayer7TopAttacksParamsHTTPMethodRpcOutData, AttackLayer7TopAttacksParamsHTTPMethodRpcInData, AttackLayer7TopAttacksParamsHTTPMethodJson, AttackLayer7TopAttacksParamsHTTPMethodCook, AttackLayer7TopAttacksParamsHTTPMethodTrack: + case AttackLayer7TopAttacksParamsHTTPMethodGet, AttackLayer7TopAttacksParamsHTTPMethodPost, AttackLayer7TopAttacksParamsHTTPMethodDelete, AttackLayer7TopAttacksParamsHTTPMethodPut, AttackLayer7TopAttacksParamsHTTPMethodHead, AttackLayer7TopAttacksParamsHTTPMethodPurge, AttackLayer7TopAttacksParamsHTTPMethodOptions, AttackLayer7TopAttacksParamsHTTPMethodPropfind, AttackLayer7TopAttacksParamsHTTPMethodMkcol, AttackLayer7TopAttacksParamsHTTPMethodPatch, AttackLayer7TopAttacksParamsHTTPMethodACL, AttackLayer7TopAttacksParamsHTTPMethodBcopy, AttackLayer7TopAttacksParamsHTTPMethodBdelete, AttackLayer7TopAttacksParamsHTTPMethodBmove, AttackLayer7TopAttacksParamsHTTPMethodBpropfind, AttackLayer7TopAttacksParamsHTTPMethodBproppatch, AttackLayer7TopAttacksParamsHTTPMethodCheckin, AttackLayer7TopAttacksParamsHTTPMethodCheckout, AttackLayer7TopAttacksParamsHTTPMethodConnect, AttackLayer7TopAttacksParamsHTTPMethodCopy, AttackLayer7TopAttacksParamsHTTPMethodLabel, AttackLayer7TopAttacksParamsHTTPMethodLock, AttackLayer7TopAttacksParamsHTTPMethodMerge, AttackLayer7TopAttacksParamsHTTPMethodMkactivity, AttackLayer7TopAttacksParamsHTTPMethodMkworkspace, AttackLayer7TopAttacksParamsHTTPMethodMove, AttackLayer7TopAttacksParamsHTTPMethodNotify, AttackLayer7TopAttacksParamsHTTPMethodOrderpatch, AttackLayer7TopAttacksParamsHTTPMethodPoll, AttackLayer7TopAttacksParamsHTTPMethodProppatch, AttackLayer7TopAttacksParamsHTTPMethodReport, AttackLayer7TopAttacksParamsHTTPMethodSearch, AttackLayer7TopAttacksParamsHTTPMethodSubscribe, AttackLayer7TopAttacksParamsHTTPMethodTrace, AttackLayer7TopAttacksParamsHTTPMethodUncheckout, AttackLayer7TopAttacksParamsHTTPMethodUnlock, AttackLayer7TopAttacksParamsHTTPMethodUnsubscribe, AttackLayer7TopAttacksParamsHTTPMethodUpdate, AttackLayer7TopAttacksParamsHTTPMethodVersioncontrol, AttackLayer7TopAttacksParamsHTTPMethodBaselinecontrol, AttackLayer7TopAttacksParamsHTTPMethodXmsenumatts, AttackLayer7TopAttacksParamsHTTPMethodRpcOutData, AttackLayer7TopAttacksParamsHTTPMethodRpcInData, AttackLayer7TopAttacksParamsHTTPMethodJSON, AttackLayer7TopAttacksParamsHTTPMethodCook, AttackLayer7TopAttacksParamsHTTPMethodTrack: return true } return false @@ -856,13 +856,13 @@ func (r AttackLayer7TopIndustryParams) URLQuery() (v url.Values) { type AttackLayer7TopIndustryParamsFormat string const ( - AttackLayer7TopIndustryParamsFormatJson AttackLayer7TopIndustryParamsFormat = "JSON" + AttackLayer7TopIndustryParamsFormatJSON AttackLayer7TopIndustryParamsFormat = "JSON" AttackLayer7TopIndustryParamsFormatCsv AttackLayer7TopIndustryParamsFormat = "CSV" ) func (r AttackLayer7TopIndustryParamsFormat) IsKnown() bool { switch r { - case AttackLayer7TopIndustryParamsFormatJson, AttackLayer7TopIndustryParamsFormatCsv: + case AttackLayer7TopIndustryParamsFormatJSON, AttackLayer7TopIndustryParamsFormatCsv: return true } return false @@ -914,14 +914,14 @@ const ( AttackLayer7TopIndustryParamsHTTPMethodXmsenumatts AttackLayer7TopIndustryParamsHTTPMethod = "XMSENUMATTS" AttackLayer7TopIndustryParamsHTTPMethodRpcOutData AttackLayer7TopIndustryParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7TopIndustryParamsHTTPMethodRpcInData AttackLayer7TopIndustryParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7TopIndustryParamsHTTPMethodJson AttackLayer7TopIndustryParamsHTTPMethod = "JSON" + AttackLayer7TopIndustryParamsHTTPMethodJSON AttackLayer7TopIndustryParamsHTTPMethod = "JSON" AttackLayer7TopIndustryParamsHTTPMethodCook AttackLayer7TopIndustryParamsHTTPMethod = "COOK" AttackLayer7TopIndustryParamsHTTPMethodTrack AttackLayer7TopIndustryParamsHTTPMethod = "TRACK" ) func (r AttackLayer7TopIndustryParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7TopIndustryParamsHTTPMethodGet, AttackLayer7TopIndustryParamsHTTPMethodPost, AttackLayer7TopIndustryParamsHTTPMethodDelete, AttackLayer7TopIndustryParamsHTTPMethodPut, AttackLayer7TopIndustryParamsHTTPMethodHead, AttackLayer7TopIndustryParamsHTTPMethodPurge, AttackLayer7TopIndustryParamsHTTPMethodOptions, AttackLayer7TopIndustryParamsHTTPMethodPropfind, AttackLayer7TopIndustryParamsHTTPMethodMkcol, AttackLayer7TopIndustryParamsHTTPMethodPatch, AttackLayer7TopIndustryParamsHTTPMethodACL, AttackLayer7TopIndustryParamsHTTPMethodBcopy, AttackLayer7TopIndustryParamsHTTPMethodBdelete, AttackLayer7TopIndustryParamsHTTPMethodBmove, AttackLayer7TopIndustryParamsHTTPMethodBpropfind, AttackLayer7TopIndustryParamsHTTPMethodBproppatch, AttackLayer7TopIndustryParamsHTTPMethodCheckin, AttackLayer7TopIndustryParamsHTTPMethodCheckout, AttackLayer7TopIndustryParamsHTTPMethodConnect, AttackLayer7TopIndustryParamsHTTPMethodCopy, AttackLayer7TopIndustryParamsHTTPMethodLabel, AttackLayer7TopIndustryParamsHTTPMethodLock, AttackLayer7TopIndustryParamsHTTPMethodMerge, AttackLayer7TopIndustryParamsHTTPMethodMkactivity, AttackLayer7TopIndustryParamsHTTPMethodMkworkspace, AttackLayer7TopIndustryParamsHTTPMethodMove, AttackLayer7TopIndustryParamsHTTPMethodNotify, AttackLayer7TopIndustryParamsHTTPMethodOrderpatch, AttackLayer7TopIndustryParamsHTTPMethodPoll, AttackLayer7TopIndustryParamsHTTPMethodProppatch, AttackLayer7TopIndustryParamsHTTPMethodReport, AttackLayer7TopIndustryParamsHTTPMethodSearch, AttackLayer7TopIndustryParamsHTTPMethodSubscribe, AttackLayer7TopIndustryParamsHTTPMethodTrace, AttackLayer7TopIndustryParamsHTTPMethodUncheckout, AttackLayer7TopIndustryParamsHTTPMethodUnlock, AttackLayer7TopIndustryParamsHTTPMethodUnsubscribe, AttackLayer7TopIndustryParamsHTTPMethodUpdate, AttackLayer7TopIndustryParamsHTTPMethodVersioncontrol, AttackLayer7TopIndustryParamsHTTPMethodBaselinecontrol, AttackLayer7TopIndustryParamsHTTPMethodXmsenumatts, AttackLayer7TopIndustryParamsHTTPMethodRpcOutData, AttackLayer7TopIndustryParamsHTTPMethodRpcInData, AttackLayer7TopIndustryParamsHTTPMethodJson, AttackLayer7TopIndustryParamsHTTPMethodCook, AttackLayer7TopIndustryParamsHTTPMethodTrack: + case AttackLayer7TopIndustryParamsHTTPMethodGet, AttackLayer7TopIndustryParamsHTTPMethodPost, AttackLayer7TopIndustryParamsHTTPMethodDelete, AttackLayer7TopIndustryParamsHTTPMethodPut, AttackLayer7TopIndustryParamsHTTPMethodHead, AttackLayer7TopIndustryParamsHTTPMethodPurge, AttackLayer7TopIndustryParamsHTTPMethodOptions, AttackLayer7TopIndustryParamsHTTPMethodPropfind, AttackLayer7TopIndustryParamsHTTPMethodMkcol, AttackLayer7TopIndustryParamsHTTPMethodPatch, AttackLayer7TopIndustryParamsHTTPMethodACL, AttackLayer7TopIndustryParamsHTTPMethodBcopy, AttackLayer7TopIndustryParamsHTTPMethodBdelete, AttackLayer7TopIndustryParamsHTTPMethodBmove, AttackLayer7TopIndustryParamsHTTPMethodBpropfind, AttackLayer7TopIndustryParamsHTTPMethodBproppatch, AttackLayer7TopIndustryParamsHTTPMethodCheckin, AttackLayer7TopIndustryParamsHTTPMethodCheckout, AttackLayer7TopIndustryParamsHTTPMethodConnect, AttackLayer7TopIndustryParamsHTTPMethodCopy, AttackLayer7TopIndustryParamsHTTPMethodLabel, AttackLayer7TopIndustryParamsHTTPMethodLock, AttackLayer7TopIndustryParamsHTTPMethodMerge, AttackLayer7TopIndustryParamsHTTPMethodMkactivity, AttackLayer7TopIndustryParamsHTTPMethodMkworkspace, AttackLayer7TopIndustryParamsHTTPMethodMove, AttackLayer7TopIndustryParamsHTTPMethodNotify, AttackLayer7TopIndustryParamsHTTPMethodOrderpatch, AttackLayer7TopIndustryParamsHTTPMethodPoll, AttackLayer7TopIndustryParamsHTTPMethodProppatch, AttackLayer7TopIndustryParamsHTTPMethodReport, AttackLayer7TopIndustryParamsHTTPMethodSearch, AttackLayer7TopIndustryParamsHTTPMethodSubscribe, AttackLayer7TopIndustryParamsHTTPMethodTrace, AttackLayer7TopIndustryParamsHTTPMethodUncheckout, AttackLayer7TopIndustryParamsHTTPMethodUnlock, AttackLayer7TopIndustryParamsHTTPMethodUnsubscribe, AttackLayer7TopIndustryParamsHTTPMethodUpdate, AttackLayer7TopIndustryParamsHTTPMethodVersioncontrol, AttackLayer7TopIndustryParamsHTTPMethodBaselinecontrol, AttackLayer7TopIndustryParamsHTTPMethodXmsenumatts, AttackLayer7TopIndustryParamsHTTPMethodRpcOutData, AttackLayer7TopIndustryParamsHTTPMethodRpcInData, AttackLayer7TopIndustryParamsHTTPMethodJSON, AttackLayer7TopIndustryParamsHTTPMethodCook, AttackLayer7TopIndustryParamsHTTPMethodTrack: return true } return false @@ -1051,13 +1051,13 @@ func (r AttackLayer7TopVerticalParams) URLQuery() (v url.Values) { type AttackLayer7TopVerticalParamsFormat string const ( - AttackLayer7TopVerticalParamsFormatJson AttackLayer7TopVerticalParamsFormat = "JSON" + AttackLayer7TopVerticalParamsFormatJSON AttackLayer7TopVerticalParamsFormat = "JSON" AttackLayer7TopVerticalParamsFormatCsv AttackLayer7TopVerticalParamsFormat = "CSV" ) func (r AttackLayer7TopVerticalParamsFormat) IsKnown() bool { switch r { - case AttackLayer7TopVerticalParamsFormatJson, AttackLayer7TopVerticalParamsFormatCsv: + case AttackLayer7TopVerticalParamsFormatJSON, AttackLayer7TopVerticalParamsFormatCsv: return true } return false @@ -1109,14 +1109,14 @@ const ( AttackLayer7TopVerticalParamsHTTPMethodXmsenumatts AttackLayer7TopVerticalParamsHTTPMethod = "XMSENUMATTS" AttackLayer7TopVerticalParamsHTTPMethodRpcOutData AttackLayer7TopVerticalParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7TopVerticalParamsHTTPMethodRpcInData AttackLayer7TopVerticalParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7TopVerticalParamsHTTPMethodJson AttackLayer7TopVerticalParamsHTTPMethod = "JSON" + AttackLayer7TopVerticalParamsHTTPMethodJSON AttackLayer7TopVerticalParamsHTTPMethod = "JSON" AttackLayer7TopVerticalParamsHTTPMethodCook AttackLayer7TopVerticalParamsHTTPMethod = "COOK" AttackLayer7TopVerticalParamsHTTPMethodTrack AttackLayer7TopVerticalParamsHTTPMethod = "TRACK" ) func (r AttackLayer7TopVerticalParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7TopVerticalParamsHTTPMethodGet, AttackLayer7TopVerticalParamsHTTPMethodPost, AttackLayer7TopVerticalParamsHTTPMethodDelete, AttackLayer7TopVerticalParamsHTTPMethodPut, AttackLayer7TopVerticalParamsHTTPMethodHead, AttackLayer7TopVerticalParamsHTTPMethodPurge, AttackLayer7TopVerticalParamsHTTPMethodOptions, AttackLayer7TopVerticalParamsHTTPMethodPropfind, AttackLayer7TopVerticalParamsHTTPMethodMkcol, AttackLayer7TopVerticalParamsHTTPMethodPatch, AttackLayer7TopVerticalParamsHTTPMethodACL, AttackLayer7TopVerticalParamsHTTPMethodBcopy, AttackLayer7TopVerticalParamsHTTPMethodBdelete, AttackLayer7TopVerticalParamsHTTPMethodBmove, AttackLayer7TopVerticalParamsHTTPMethodBpropfind, AttackLayer7TopVerticalParamsHTTPMethodBproppatch, AttackLayer7TopVerticalParamsHTTPMethodCheckin, AttackLayer7TopVerticalParamsHTTPMethodCheckout, AttackLayer7TopVerticalParamsHTTPMethodConnect, AttackLayer7TopVerticalParamsHTTPMethodCopy, AttackLayer7TopVerticalParamsHTTPMethodLabel, AttackLayer7TopVerticalParamsHTTPMethodLock, AttackLayer7TopVerticalParamsHTTPMethodMerge, AttackLayer7TopVerticalParamsHTTPMethodMkactivity, AttackLayer7TopVerticalParamsHTTPMethodMkworkspace, AttackLayer7TopVerticalParamsHTTPMethodMove, AttackLayer7TopVerticalParamsHTTPMethodNotify, AttackLayer7TopVerticalParamsHTTPMethodOrderpatch, AttackLayer7TopVerticalParamsHTTPMethodPoll, AttackLayer7TopVerticalParamsHTTPMethodProppatch, AttackLayer7TopVerticalParamsHTTPMethodReport, AttackLayer7TopVerticalParamsHTTPMethodSearch, AttackLayer7TopVerticalParamsHTTPMethodSubscribe, AttackLayer7TopVerticalParamsHTTPMethodTrace, AttackLayer7TopVerticalParamsHTTPMethodUncheckout, AttackLayer7TopVerticalParamsHTTPMethodUnlock, AttackLayer7TopVerticalParamsHTTPMethodUnsubscribe, AttackLayer7TopVerticalParamsHTTPMethodUpdate, AttackLayer7TopVerticalParamsHTTPMethodVersioncontrol, AttackLayer7TopVerticalParamsHTTPMethodBaselinecontrol, AttackLayer7TopVerticalParamsHTTPMethodXmsenumatts, AttackLayer7TopVerticalParamsHTTPMethodRpcOutData, AttackLayer7TopVerticalParamsHTTPMethodRpcInData, AttackLayer7TopVerticalParamsHTTPMethodJson, AttackLayer7TopVerticalParamsHTTPMethodCook, AttackLayer7TopVerticalParamsHTTPMethodTrack: + case AttackLayer7TopVerticalParamsHTTPMethodGet, AttackLayer7TopVerticalParamsHTTPMethodPost, AttackLayer7TopVerticalParamsHTTPMethodDelete, AttackLayer7TopVerticalParamsHTTPMethodPut, AttackLayer7TopVerticalParamsHTTPMethodHead, AttackLayer7TopVerticalParamsHTTPMethodPurge, AttackLayer7TopVerticalParamsHTTPMethodOptions, AttackLayer7TopVerticalParamsHTTPMethodPropfind, AttackLayer7TopVerticalParamsHTTPMethodMkcol, AttackLayer7TopVerticalParamsHTTPMethodPatch, AttackLayer7TopVerticalParamsHTTPMethodACL, AttackLayer7TopVerticalParamsHTTPMethodBcopy, AttackLayer7TopVerticalParamsHTTPMethodBdelete, AttackLayer7TopVerticalParamsHTTPMethodBmove, AttackLayer7TopVerticalParamsHTTPMethodBpropfind, AttackLayer7TopVerticalParamsHTTPMethodBproppatch, AttackLayer7TopVerticalParamsHTTPMethodCheckin, AttackLayer7TopVerticalParamsHTTPMethodCheckout, AttackLayer7TopVerticalParamsHTTPMethodConnect, AttackLayer7TopVerticalParamsHTTPMethodCopy, AttackLayer7TopVerticalParamsHTTPMethodLabel, AttackLayer7TopVerticalParamsHTTPMethodLock, AttackLayer7TopVerticalParamsHTTPMethodMerge, AttackLayer7TopVerticalParamsHTTPMethodMkactivity, AttackLayer7TopVerticalParamsHTTPMethodMkworkspace, AttackLayer7TopVerticalParamsHTTPMethodMove, AttackLayer7TopVerticalParamsHTTPMethodNotify, AttackLayer7TopVerticalParamsHTTPMethodOrderpatch, AttackLayer7TopVerticalParamsHTTPMethodPoll, AttackLayer7TopVerticalParamsHTTPMethodProppatch, AttackLayer7TopVerticalParamsHTTPMethodReport, AttackLayer7TopVerticalParamsHTTPMethodSearch, AttackLayer7TopVerticalParamsHTTPMethodSubscribe, AttackLayer7TopVerticalParamsHTTPMethodTrace, AttackLayer7TopVerticalParamsHTTPMethodUncheckout, AttackLayer7TopVerticalParamsHTTPMethodUnlock, AttackLayer7TopVerticalParamsHTTPMethodUnsubscribe, AttackLayer7TopVerticalParamsHTTPMethodUpdate, AttackLayer7TopVerticalParamsHTTPMethodVersioncontrol, AttackLayer7TopVerticalParamsHTTPMethodBaselinecontrol, AttackLayer7TopVerticalParamsHTTPMethodXmsenumatts, AttackLayer7TopVerticalParamsHTTPMethodRpcOutData, AttackLayer7TopVerticalParamsHTTPMethodRpcInData, AttackLayer7TopVerticalParamsHTTPMethodJSON, AttackLayer7TopVerticalParamsHTTPMethodCook, AttackLayer7TopVerticalParamsHTTPMethodTrack: return true } return false diff --git a/radar/attacklayer7top_test.go b/radar/attacklayer7top_test.go index c73f00db583..1bd3ae445c4 100644 --- a/radar/attacklayer7top_test.go +++ b/radar/attacklayer7top_test.go @@ -34,7 +34,7 @@ func TestAttackLayer7TopAttacksWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7TopAttacksParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7TopAttacksParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7TopAttacksParamsHTTPMethod{radar.AttackLayer7TopAttacksParamsHTTPMethodGet}), HTTPVersion: cloudflare.F([]radar.AttackLayer7TopAttacksParamsHTTPVersion{radar.AttackLayer7TopAttacksParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.AttackLayer7TopAttacksParamsIPVersion{radar.AttackLayer7TopAttacksParamsIPVersionIPv4}), @@ -75,7 +75,7 @@ func TestAttackLayer7TopIndustryWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7TopIndustryParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7TopIndustryParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7TopIndustryParamsHTTPMethod{radar.AttackLayer7TopIndustryParamsHTTPMethodGet}), HTTPVersion: cloudflare.F([]radar.AttackLayer7TopIndustryParamsHTTPVersion{radar.AttackLayer7TopIndustryParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.AttackLayer7TopIndustryParamsIPVersion{radar.AttackLayer7TopIndustryParamsIPVersionIPv4}), @@ -112,7 +112,7 @@ func TestAttackLayer7TopVerticalWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7TopVerticalParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7TopVerticalParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7TopVerticalParamsHTTPMethod{radar.AttackLayer7TopVerticalParamsHTTPMethodGet}), HTTPVersion: cloudflare.F([]radar.AttackLayer7TopVerticalParamsHTTPVersion{radar.AttackLayer7TopVerticalParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.AttackLayer7TopVerticalParamsIPVersion{radar.AttackLayer7TopVerticalParamsIPVersionIPv4}), diff --git a/radar/attacklayer7topase.go b/radar/attacklayer7topase.go index 28ce91ab35d..a983a9aad74 100644 --- a/radar/attacklayer7topase.go +++ b/radar/attacklayer7topase.go @@ -252,13 +252,13 @@ func (r AttackLayer7TopAseOriginParams) URLQuery() (v url.Values) { type AttackLayer7TopAseOriginParamsFormat string const ( - AttackLayer7TopAseOriginParamsFormatJson AttackLayer7TopAseOriginParamsFormat = "JSON" + AttackLayer7TopAseOriginParamsFormatJSON AttackLayer7TopAseOriginParamsFormat = "JSON" AttackLayer7TopAseOriginParamsFormatCsv AttackLayer7TopAseOriginParamsFormat = "CSV" ) func (r AttackLayer7TopAseOriginParamsFormat) IsKnown() bool { switch r { - case AttackLayer7TopAseOriginParamsFormatJson, AttackLayer7TopAseOriginParamsFormatCsv: + case AttackLayer7TopAseOriginParamsFormatJSON, AttackLayer7TopAseOriginParamsFormatCsv: return true } return false @@ -310,14 +310,14 @@ const ( AttackLayer7TopAseOriginParamsHTTPMethodXmsenumatts AttackLayer7TopAseOriginParamsHTTPMethod = "XMSENUMATTS" AttackLayer7TopAseOriginParamsHTTPMethodRpcOutData AttackLayer7TopAseOriginParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7TopAseOriginParamsHTTPMethodRpcInData AttackLayer7TopAseOriginParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7TopAseOriginParamsHTTPMethodJson AttackLayer7TopAseOriginParamsHTTPMethod = "JSON" + AttackLayer7TopAseOriginParamsHTTPMethodJSON AttackLayer7TopAseOriginParamsHTTPMethod = "JSON" AttackLayer7TopAseOriginParamsHTTPMethodCook AttackLayer7TopAseOriginParamsHTTPMethod = "COOK" AttackLayer7TopAseOriginParamsHTTPMethodTrack AttackLayer7TopAseOriginParamsHTTPMethod = "TRACK" ) func (r AttackLayer7TopAseOriginParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7TopAseOriginParamsHTTPMethodGet, AttackLayer7TopAseOriginParamsHTTPMethodPost, AttackLayer7TopAseOriginParamsHTTPMethodDelete, AttackLayer7TopAseOriginParamsHTTPMethodPut, AttackLayer7TopAseOriginParamsHTTPMethodHead, AttackLayer7TopAseOriginParamsHTTPMethodPurge, AttackLayer7TopAseOriginParamsHTTPMethodOptions, AttackLayer7TopAseOriginParamsHTTPMethodPropfind, AttackLayer7TopAseOriginParamsHTTPMethodMkcol, AttackLayer7TopAseOriginParamsHTTPMethodPatch, AttackLayer7TopAseOriginParamsHTTPMethodACL, AttackLayer7TopAseOriginParamsHTTPMethodBcopy, AttackLayer7TopAseOriginParamsHTTPMethodBdelete, AttackLayer7TopAseOriginParamsHTTPMethodBmove, AttackLayer7TopAseOriginParamsHTTPMethodBpropfind, AttackLayer7TopAseOriginParamsHTTPMethodBproppatch, AttackLayer7TopAseOriginParamsHTTPMethodCheckin, AttackLayer7TopAseOriginParamsHTTPMethodCheckout, AttackLayer7TopAseOriginParamsHTTPMethodConnect, AttackLayer7TopAseOriginParamsHTTPMethodCopy, AttackLayer7TopAseOriginParamsHTTPMethodLabel, AttackLayer7TopAseOriginParamsHTTPMethodLock, AttackLayer7TopAseOriginParamsHTTPMethodMerge, AttackLayer7TopAseOriginParamsHTTPMethodMkactivity, AttackLayer7TopAseOriginParamsHTTPMethodMkworkspace, AttackLayer7TopAseOriginParamsHTTPMethodMove, AttackLayer7TopAseOriginParamsHTTPMethodNotify, AttackLayer7TopAseOriginParamsHTTPMethodOrderpatch, AttackLayer7TopAseOriginParamsHTTPMethodPoll, AttackLayer7TopAseOriginParamsHTTPMethodProppatch, AttackLayer7TopAseOriginParamsHTTPMethodReport, AttackLayer7TopAseOriginParamsHTTPMethodSearch, AttackLayer7TopAseOriginParamsHTTPMethodSubscribe, AttackLayer7TopAseOriginParamsHTTPMethodTrace, AttackLayer7TopAseOriginParamsHTTPMethodUncheckout, AttackLayer7TopAseOriginParamsHTTPMethodUnlock, AttackLayer7TopAseOriginParamsHTTPMethodUnsubscribe, AttackLayer7TopAseOriginParamsHTTPMethodUpdate, AttackLayer7TopAseOriginParamsHTTPMethodVersioncontrol, AttackLayer7TopAseOriginParamsHTTPMethodBaselinecontrol, AttackLayer7TopAseOriginParamsHTTPMethodXmsenumatts, AttackLayer7TopAseOriginParamsHTTPMethodRpcOutData, AttackLayer7TopAseOriginParamsHTTPMethodRpcInData, AttackLayer7TopAseOriginParamsHTTPMethodJson, AttackLayer7TopAseOriginParamsHTTPMethodCook, AttackLayer7TopAseOriginParamsHTTPMethodTrack: + case AttackLayer7TopAseOriginParamsHTTPMethodGet, AttackLayer7TopAseOriginParamsHTTPMethodPost, AttackLayer7TopAseOriginParamsHTTPMethodDelete, AttackLayer7TopAseOriginParamsHTTPMethodPut, AttackLayer7TopAseOriginParamsHTTPMethodHead, AttackLayer7TopAseOriginParamsHTTPMethodPurge, AttackLayer7TopAseOriginParamsHTTPMethodOptions, AttackLayer7TopAseOriginParamsHTTPMethodPropfind, AttackLayer7TopAseOriginParamsHTTPMethodMkcol, AttackLayer7TopAseOriginParamsHTTPMethodPatch, AttackLayer7TopAseOriginParamsHTTPMethodACL, AttackLayer7TopAseOriginParamsHTTPMethodBcopy, AttackLayer7TopAseOriginParamsHTTPMethodBdelete, AttackLayer7TopAseOriginParamsHTTPMethodBmove, AttackLayer7TopAseOriginParamsHTTPMethodBpropfind, AttackLayer7TopAseOriginParamsHTTPMethodBproppatch, AttackLayer7TopAseOriginParamsHTTPMethodCheckin, AttackLayer7TopAseOriginParamsHTTPMethodCheckout, AttackLayer7TopAseOriginParamsHTTPMethodConnect, AttackLayer7TopAseOriginParamsHTTPMethodCopy, AttackLayer7TopAseOriginParamsHTTPMethodLabel, AttackLayer7TopAseOriginParamsHTTPMethodLock, AttackLayer7TopAseOriginParamsHTTPMethodMerge, AttackLayer7TopAseOriginParamsHTTPMethodMkactivity, AttackLayer7TopAseOriginParamsHTTPMethodMkworkspace, AttackLayer7TopAseOriginParamsHTTPMethodMove, AttackLayer7TopAseOriginParamsHTTPMethodNotify, AttackLayer7TopAseOriginParamsHTTPMethodOrderpatch, AttackLayer7TopAseOriginParamsHTTPMethodPoll, AttackLayer7TopAseOriginParamsHTTPMethodProppatch, AttackLayer7TopAseOriginParamsHTTPMethodReport, AttackLayer7TopAseOriginParamsHTTPMethodSearch, AttackLayer7TopAseOriginParamsHTTPMethodSubscribe, AttackLayer7TopAseOriginParamsHTTPMethodTrace, AttackLayer7TopAseOriginParamsHTTPMethodUncheckout, AttackLayer7TopAseOriginParamsHTTPMethodUnlock, AttackLayer7TopAseOriginParamsHTTPMethodUnsubscribe, AttackLayer7TopAseOriginParamsHTTPMethodUpdate, AttackLayer7TopAseOriginParamsHTTPMethodVersioncontrol, AttackLayer7TopAseOriginParamsHTTPMethodBaselinecontrol, AttackLayer7TopAseOriginParamsHTTPMethodXmsenumatts, AttackLayer7TopAseOriginParamsHTTPMethodRpcOutData, AttackLayer7TopAseOriginParamsHTTPMethodRpcInData, AttackLayer7TopAseOriginParamsHTTPMethodJSON, AttackLayer7TopAseOriginParamsHTTPMethodCook, AttackLayer7TopAseOriginParamsHTTPMethodTrack: return true } return false diff --git a/radar/attacklayer7topase_test.go b/radar/attacklayer7topase_test.go index a2d2bef28d7..dd3c51c602a 100644 --- a/radar/attacklayer7topase_test.go +++ b/radar/attacklayer7topase_test.go @@ -33,7 +33,7 @@ func TestAttackLayer7TopAseOriginWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7TopAseOriginParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7TopAseOriginParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7TopAseOriginParamsHTTPMethod{radar.AttackLayer7TopAseOriginParamsHTTPMethodGet}), HTTPVersion: cloudflare.F([]radar.AttackLayer7TopAseOriginParamsHTTPVersion{radar.AttackLayer7TopAseOriginParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.AttackLayer7TopAseOriginParamsIPVersion{radar.AttackLayer7TopAseOriginParamsIPVersionIPv4}), diff --git a/radar/attacklayer7toplocation.go b/radar/attacklayer7toplocation.go index a464595d2b6..a5678418f8b 100644 --- a/radar/attacklayer7toplocation.go +++ b/radar/attacklayer7toplocation.go @@ -426,13 +426,13 @@ func (r AttackLayer7TopLocationOriginParams) URLQuery() (v url.Values) { type AttackLayer7TopLocationOriginParamsFormat string const ( - AttackLayer7TopLocationOriginParamsFormatJson AttackLayer7TopLocationOriginParamsFormat = "JSON" + AttackLayer7TopLocationOriginParamsFormatJSON AttackLayer7TopLocationOriginParamsFormat = "JSON" AttackLayer7TopLocationOriginParamsFormatCsv AttackLayer7TopLocationOriginParamsFormat = "CSV" ) func (r AttackLayer7TopLocationOriginParamsFormat) IsKnown() bool { switch r { - case AttackLayer7TopLocationOriginParamsFormatJson, AttackLayer7TopLocationOriginParamsFormatCsv: + case AttackLayer7TopLocationOriginParamsFormatJSON, AttackLayer7TopLocationOriginParamsFormatCsv: return true } return false @@ -484,14 +484,14 @@ const ( AttackLayer7TopLocationOriginParamsHTTPMethodXmsenumatts AttackLayer7TopLocationOriginParamsHTTPMethod = "XMSENUMATTS" AttackLayer7TopLocationOriginParamsHTTPMethodRpcOutData AttackLayer7TopLocationOriginParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7TopLocationOriginParamsHTTPMethodRpcInData AttackLayer7TopLocationOriginParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7TopLocationOriginParamsHTTPMethodJson AttackLayer7TopLocationOriginParamsHTTPMethod = "JSON" + AttackLayer7TopLocationOriginParamsHTTPMethodJSON AttackLayer7TopLocationOriginParamsHTTPMethod = "JSON" AttackLayer7TopLocationOriginParamsHTTPMethodCook AttackLayer7TopLocationOriginParamsHTTPMethod = "COOK" AttackLayer7TopLocationOriginParamsHTTPMethodTrack AttackLayer7TopLocationOriginParamsHTTPMethod = "TRACK" ) func (r AttackLayer7TopLocationOriginParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7TopLocationOriginParamsHTTPMethodGet, AttackLayer7TopLocationOriginParamsHTTPMethodPost, AttackLayer7TopLocationOriginParamsHTTPMethodDelete, AttackLayer7TopLocationOriginParamsHTTPMethodPut, AttackLayer7TopLocationOriginParamsHTTPMethodHead, AttackLayer7TopLocationOriginParamsHTTPMethodPurge, AttackLayer7TopLocationOriginParamsHTTPMethodOptions, AttackLayer7TopLocationOriginParamsHTTPMethodPropfind, AttackLayer7TopLocationOriginParamsHTTPMethodMkcol, AttackLayer7TopLocationOriginParamsHTTPMethodPatch, AttackLayer7TopLocationOriginParamsHTTPMethodACL, AttackLayer7TopLocationOriginParamsHTTPMethodBcopy, AttackLayer7TopLocationOriginParamsHTTPMethodBdelete, AttackLayer7TopLocationOriginParamsHTTPMethodBmove, AttackLayer7TopLocationOriginParamsHTTPMethodBpropfind, AttackLayer7TopLocationOriginParamsHTTPMethodBproppatch, AttackLayer7TopLocationOriginParamsHTTPMethodCheckin, AttackLayer7TopLocationOriginParamsHTTPMethodCheckout, AttackLayer7TopLocationOriginParamsHTTPMethodConnect, AttackLayer7TopLocationOriginParamsHTTPMethodCopy, AttackLayer7TopLocationOriginParamsHTTPMethodLabel, AttackLayer7TopLocationOriginParamsHTTPMethodLock, AttackLayer7TopLocationOriginParamsHTTPMethodMerge, AttackLayer7TopLocationOriginParamsHTTPMethodMkactivity, AttackLayer7TopLocationOriginParamsHTTPMethodMkworkspace, AttackLayer7TopLocationOriginParamsHTTPMethodMove, AttackLayer7TopLocationOriginParamsHTTPMethodNotify, AttackLayer7TopLocationOriginParamsHTTPMethodOrderpatch, AttackLayer7TopLocationOriginParamsHTTPMethodPoll, AttackLayer7TopLocationOriginParamsHTTPMethodProppatch, AttackLayer7TopLocationOriginParamsHTTPMethodReport, AttackLayer7TopLocationOriginParamsHTTPMethodSearch, AttackLayer7TopLocationOriginParamsHTTPMethodSubscribe, AttackLayer7TopLocationOriginParamsHTTPMethodTrace, AttackLayer7TopLocationOriginParamsHTTPMethodUncheckout, AttackLayer7TopLocationOriginParamsHTTPMethodUnlock, AttackLayer7TopLocationOriginParamsHTTPMethodUnsubscribe, AttackLayer7TopLocationOriginParamsHTTPMethodUpdate, AttackLayer7TopLocationOriginParamsHTTPMethodVersioncontrol, AttackLayer7TopLocationOriginParamsHTTPMethodBaselinecontrol, AttackLayer7TopLocationOriginParamsHTTPMethodXmsenumatts, AttackLayer7TopLocationOriginParamsHTTPMethodRpcOutData, AttackLayer7TopLocationOriginParamsHTTPMethodRpcInData, AttackLayer7TopLocationOriginParamsHTTPMethodJson, AttackLayer7TopLocationOriginParamsHTTPMethodCook, AttackLayer7TopLocationOriginParamsHTTPMethodTrack: + case AttackLayer7TopLocationOriginParamsHTTPMethodGet, AttackLayer7TopLocationOriginParamsHTTPMethodPost, AttackLayer7TopLocationOriginParamsHTTPMethodDelete, AttackLayer7TopLocationOriginParamsHTTPMethodPut, AttackLayer7TopLocationOriginParamsHTTPMethodHead, AttackLayer7TopLocationOriginParamsHTTPMethodPurge, AttackLayer7TopLocationOriginParamsHTTPMethodOptions, AttackLayer7TopLocationOriginParamsHTTPMethodPropfind, AttackLayer7TopLocationOriginParamsHTTPMethodMkcol, AttackLayer7TopLocationOriginParamsHTTPMethodPatch, AttackLayer7TopLocationOriginParamsHTTPMethodACL, AttackLayer7TopLocationOriginParamsHTTPMethodBcopy, AttackLayer7TopLocationOriginParamsHTTPMethodBdelete, AttackLayer7TopLocationOriginParamsHTTPMethodBmove, AttackLayer7TopLocationOriginParamsHTTPMethodBpropfind, AttackLayer7TopLocationOriginParamsHTTPMethodBproppatch, AttackLayer7TopLocationOriginParamsHTTPMethodCheckin, AttackLayer7TopLocationOriginParamsHTTPMethodCheckout, AttackLayer7TopLocationOriginParamsHTTPMethodConnect, AttackLayer7TopLocationOriginParamsHTTPMethodCopy, AttackLayer7TopLocationOriginParamsHTTPMethodLabel, AttackLayer7TopLocationOriginParamsHTTPMethodLock, AttackLayer7TopLocationOriginParamsHTTPMethodMerge, AttackLayer7TopLocationOriginParamsHTTPMethodMkactivity, AttackLayer7TopLocationOriginParamsHTTPMethodMkworkspace, AttackLayer7TopLocationOriginParamsHTTPMethodMove, AttackLayer7TopLocationOriginParamsHTTPMethodNotify, AttackLayer7TopLocationOriginParamsHTTPMethodOrderpatch, AttackLayer7TopLocationOriginParamsHTTPMethodPoll, AttackLayer7TopLocationOriginParamsHTTPMethodProppatch, AttackLayer7TopLocationOriginParamsHTTPMethodReport, AttackLayer7TopLocationOriginParamsHTTPMethodSearch, AttackLayer7TopLocationOriginParamsHTTPMethodSubscribe, AttackLayer7TopLocationOriginParamsHTTPMethodTrace, AttackLayer7TopLocationOriginParamsHTTPMethodUncheckout, AttackLayer7TopLocationOriginParamsHTTPMethodUnlock, AttackLayer7TopLocationOriginParamsHTTPMethodUnsubscribe, AttackLayer7TopLocationOriginParamsHTTPMethodUpdate, AttackLayer7TopLocationOriginParamsHTTPMethodVersioncontrol, AttackLayer7TopLocationOriginParamsHTTPMethodBaselinecontrol, AttackLayer7TopLocationOriginParamsHTTPMethodXmsenumatts, AttackLayer7TopLocationOriginParamsHTTPMethodRpcOutData, AttackLayer7TopLocationOriginParamsHTTPMethodRpcInData, AttackLayer7TopLocationOriginParamsHTTPMethodJSON, AttackLayer7TopLocationOriginParamsHTTPMethodCook, AttackLayer7TopLocationOriginParamsHTTPMethodTrack: return true } return false @@ -613,13 +613,13 @@ func (r AttackLayer7TopLocationTargetParams) URLQuery() (v url.Values) { type AttackLayer7TopLocationTargetParamsFormat string const ( - AttackLayer7TopLocationTargetParamsFormatJson AttackLayer7TopLocationTargetParamsFormat = "JSON" + AttackLayer7TopLocationTargetParamsFormatJSON AttackLayer7TopLocationTargetParamsFormat = "JSON" AttackLayer7TopLocationTargetParamsFormatCsv AttackLayer7TopLocationTargetParamsFormat = "CSV" ) func (r AttackLayer7TopLocationTargetParamsFormat) IsKnown() bool { switch r { - case AttackLayer7TopLocationTargetParamsFormatJson, AttackLayer7TopLocationTargetParamsFormatCsv: + case AttackLayer7TopLocationTargetParamsFormatJSON, AttackLayer7TopLocationTargetParamsFormatCsv: return true } return false @@ -671,14 +671,14 @@ const ( AttackLayer7TopLocationTargetParamsHTTPMethodXmsenumatts AttackLayer7TopLocationTargetParamsHTTPMethod = "XMSENUMATTS" AttackLayer7TopLocationTargetParamsHTTPMethodRpcOutData AttackLayer7TopLocationTargetParamsHTTPMethod = "RPC_OUT_DATA" AttackLayer7TopLocationTargetParamsHTTPMethodRpcInData AttackLayer7TopLocationTargetParamsHTTPMethod = "RPC_IN_DATA" - AttackLayer7TopLocationTargetParamsHTTPMethodJson AttackLayer7TopLocationTargetParamsHTTPMethod = "JSON" + AttackLayer7TopLocationTargetParamsHTTPMethodJSON AttackLayer7TopLocationTargetParamsHTTPMethod = "JSON" AttackLayer7TopLocationTargetParamsHTTPMethodCook AttackLayer7TopLocationTargetParamsHTTPMethod = "COOK" AttackLayer7TopLocationTargetParamsHTTPMethodTrack AttackLayer7TopLocationTargetParamsHTTPMethod = "TRACK" ) func (r AttackLayer7TopLocationTargetParamsHTTPMethod) IsKnown() bool { switch r { - case AttackLayer7TopLocationTargetParamsHTTPMethodGet, AttackLayer7TopLocationTargetParamsHTTPMethodPost, AttackLayer7TopLocationTargetParamsHTTPMethodDelete, AttackLayer7TopLocationTargetParamsHTTPMethodPut, AttackLayer7TopLocationTargetParamsHTTPMethodHead, AttackLayer7TopLocationTargetParamsHTTPMethodPurge, AttackLayer7TopLocationTargetParamsHTTPMethodOptions, AttackLayer7TopLocationTargetParamsHTTPMethodPropfind, AttackLayer7TopLocationTargetParamsHTTPMethodMkcol, AttackLayer7TopLocationTargetParamsHTTPMethodPatch, AttackLayer7TopLocationTargetParamsHTTPMethodACL, AttackLayer7TopLocationTargetParamsHTTPMethodBcopy, AttackLayer7TopLocationTargetParamsHTTPMethodBdelete, AttackLayer7TopLocationTargetParamsHTTPMethodBmove, AttackLayer7TopLocationTargetParamsHTTPMethodBpropfind, AttackLayer7TopLocationTargetParamsHTTPMethodBproppatch, AttackLayer7TopLocationTargetParamsHTTPMethodCheckin, AttackLayer7TopLocationTargetParamsHTTPMethodCheckout, AttackLayer7TopLocationTargetParamsHTTPMethodConnect, AttackLayer7TopLocationTargetParamsHTTPMethodCopy, AttackLayer7TopLocationTargetParamsHTTPMethodLabel, AttackLayer7TopLocationTargetParamsHTTPMethodLock, AttackLayer7TopLocationTargetParamsHTTPMethodMerge, AttackLayer7TopLocationTargetParamsHTTPMethodMkactivity, AttackLayer7TopLocationTargetParamsHTTPMethodMkworkspace, AttackLayer7TopLocationTargetParamsHTTPMethodMove, AttackLayer7TopLocationTargetParamsHTTPMethodNotify, AttackLayer7TopLocationTargetParamsHTTPMethodOrderpatch, AttackLayer7TopLocationTargetParamsHTTPMethodPoll, AttackLayer7TopLocationTargetParamsHTTPMethodProppatch, AttackLayer7TopLocationTargetParamsHTTPMethodReport, AttackLayer7TopLocationTargetParamsHTTPMethodSearch, AttackLayer7TopLocationTargetParamsHTTPMethodSubscribe, AttackLayer7TopLocationTargetParamsHTTPMethodTrace, AttackLayer7TopLocationTargetParamsHTTPMethodUncheckout, AttackLayer7TopLocationTargetParamsHTTPMethodUnlock, AttackLayer7TopLocationTargetParamsHTTPMethodUnsubscribe, AttackLayer7TopLocationTargetParamsHTTPMethodUpdate, AttackLayer7TopLocationTargetParamsHTTPMethodVersioncontrol, AttackLayer7TopLocationTargetParamsHTTPMethodBaselinecontrol, AttackLayer7TopLocationTargetParamsHTTPMethodXmsenumatts, AttackLayer7TopLocationTargetParamsHTTPMethodRpcOutData, AttackLayer7TopLocationTargetParamsHTTPMethodRpcInData, AttackLayer7TopLocationTargetParamsHTTPMethodJson, AttackLayer7TopLocationTargetParamsHTTPMethodCook, AttackLayer7TopLocationTargetParamsHTTPMethodTrack: + case AttackLayer7TopLocationTargetParamsHTTPMethodGet, AttackLayer7TopLocationTargetParamsHTTPMethodPost, AttackLayer7TopLocationTargetParamsHTTPMethodDelete, AttackLayer7TopLocationTargetParamsHTTPMethodPut, AttackLayer7TopLocationTargetParamsHTTPMethodHead, AttackLayer7TopLocationTargetParamsHTTPMethodPurge, AttackLayer7TopLocationTargetParamsHTTPMethodOptions, AttackLayer7TopLocationTargetParamsHTTPMethodPropfind, AttackLayer7TopLocationTargetParamsHTTPMethodMkcol, AttackLayer7TopLocationTargetParamsHTTPMethodPatch, AttackLayer7TopLocationTargetParamsHTTPMethodACL, AttackLayer7TopLocationTargetParamsHTTPMethodBcopy, AttackLayer7TopLocationTargetParamsHTTPMethodBdelete, AttackLayer7TopLocationTargetParamsHTTPMethodBmove, AttackLayer7TopLocationTargetParamsHTTPMethodBpropfind, AttackLayer7TopLocationTargetParamsHTTPMethodBproppatch, AttackLayer7TopLocationTargetParamsHTTPMethodCheckin, AttackLayer7TopLocationTargetParamsHTTPMethodCheckout, AttackLayer7TopLocationTargetParamsHTTPMethodConnect, AttackLayer7TopLocationTargetParamsHTTPMethodCopy, AttackLayer7TopLocationTargetParamsHTTPMethodLabel, AttackLayer7TopLocationTargetParamsHTTPMethodLock, AttackLayer7TopLocationTargetParamsHTTPMethodMerge, AttackLayer7TopLocationTargetParamsHTTPMethodMkactivity, AttackLayer7TopLocationTargetParamsHTTPMethodMkworkspace, AttackLayer7TopLocationTargetParamsHTTPMethodMove, AttackLayer7TopLocationTargetParamsHTTPMethodNotify, AttackLayer7TopLocationTargetParamsHTTPMethodOrderpatch, AttackLayer7TopLocationTargetParamsHTTPMethodPoll, AttackLayer7TopLocationTargetParamsHTTPMethodProppatch, AttackLayer7TopLocationTargetParamsHTTPMethodReport, AttackLayer7TopLocationTargetParamsHTTPMethodSearch, AttackLayer7TopLocationTargetParamsHTTPMethodSubscribe, AttackLayer7TopLocationTargetParamsHTTPMethodTrace, AttackLayer7TopLocationTargetParamsHTTPMethodUncheckout, AttackLayer7TopLocationTargetParamsHTTPMethodUnlock, AttackLayer7TopLocationTargetParamsHTTPMethodUnsubscribe, AttackLayer7TopLocationTargetParamsHTTPMethodUpdate, AttackLayer7TopLocationTargetParamsHTTPMethodVersioncontrol, AttackLayer7TopLocationTargetParamsHTTPMethodBaselinecontrol, AttackLayer7TopLocationTargetParamsHTTPMethodXmsenumatts, AttackLayer7TopLocationTargetParamsHTTPMethodRpcOutData, AttackLayer7TopLocationTargetParamsHTTPMethodRpcInData, AttackLayer7TopLocationTargetParamsHTTPMethodJSON, AttackLayer7TopLocationTargetParamsHTTPMethodCook, AttackLayer7TopLocationTargetParamsHTTPMethodTrack: return true } return false diff --git a/radar/attacklayer7toplocation_test.go b/radar/attacklayer7toplocation_test.go index 082ea5566cc..7b1cb54658b 100644 --- a/radar/attacklayer7toplocation_test.go +++ b/radar/attacklayer7toplocation_test.go @@ -34,7 +34,7 @@ func TestAttackLayer7TopLocationOriginWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7TopLocationOriginParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7TopLocationOriginParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7TopLocationOriginParamsHTTPMethod{radar.AttackLayer7TopLocationOriginParamsHTTPMethodGet}), HTTPVersion: cloudflare.F([]radar.AttackLayer7TopLocationOriginParamsHTTPVersion{radar.AttackLayer7TopLocationOriginParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.AttackLayer7TopLocationOriginParamsIPVersion{radar.AttackLayer7TopLocationOriginParamsIPVersionIPv4}), @@ -69,7 +69,7 @@ func TestAttackLayer7TopLocationTargetWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.AttackLayer7TopLocationTargetParamsFormatJson), + Format: cloudflare.F(radar.AttackLayer7TopLocationTargetParamsFormatJSON), HTTPMethod: cloudflare.F([]radar.AttackLayer7TopLocationTargetParamsHTTPMethod{radar.AttackLayer7TopLocationTargetParamsHTTPMethodGet}), HTTPVersion: cloudflare.F([]radar.AttackLayer7TopLocationTargetParamsHTTPVersion{radar.AttackLayer7TopLocationTargetParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.AttackLayer7TopLocationTargetParamsIPVersion{radar.AttackLayer7TopLocationTargetParamsIPVersionIPv4}), diff --git a/radar/bgp.go b/radar/bgp.go index cdef2a05b9c..2e326cb1786 100644 --- a/radar/bgp.go +++ b/radar/bgp.go @@ -272,13 +272,13 @@ func (r BGPTimeseriesParamsAggInterval) IsKnown() bool { type BGPTimeseriesParamsFormat string const ( - BGPTimeseriesParamsFormatJson BGPTimeseriesParamsFormat = "JSON" + BGPTimeseriesParamsFormatJSON BGPTimeseriesParamsFormat = "JSON" BGPTimeseriesParamsFormatCsv BGPTimeseriesParamsFormat = "CSV" ) func (r BGPTimeseriesParamsFormat) IsKnown() bool { switch r { - case BGPTimeseriesParamsFormatJson, BGPTimeseriesParamsFormatCsv: + case BGPTimeseriesParamsFormatJSON, BGPTimeseriesParamsFormatCsv: return true } return false diff --git a/radar/bgp_test.go b/radar/bgp_test.go index c826e0851a0..be0c44447b6 100644 --- a/radar/bgp_test.go +++ b/radar/bgp_test.go @@ -34,7 +34,7 @@ func TestBGPTimeseriesWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.BGPTimeseriesParamsFormatJson), + Format: cloudflare.F(radar.BGPTimeseriesParamsFormatJSON), Name: cloudflare.F([]string{"string"}), Prefix: cloudflare.F([]string{"1.1.1.0/24"}), UpdateType: cloudflare.F([]radar.BGPTimeseriesParamsUpdateType{radar.BGPTimeseriesParamsUpdateTypeAnnouncement}), diff --git a/radar/bgphijackevent.go b/radar/bgphijackevent.go index 7f5a394baef..22650bc3ee3 100644 --- a/radar/bgphijackevent.go +++ b/radar/bgphijackevent.go @@ -235,13 +235,13 @@ func (r BGPHijackEventListParams) URLQuery() (v url.Values) { type BGPHijackEventListParamsFormat string const ( - BGPHijackEventListParamsFormatJson BGPHijackEventListParamsFormat = "JSON" + BGPHijackEventListParamsFormatJSON BGPHijackEventListParamsFormat = "JSON" BGPHijackEventListParamsFormatCsv BGPHijackEventListParamsFormat = "CSV" ) func (r BGPHijackEventListParamsFormat) IsKnown() bool { switch r { - case BGPHijackEventListParamsFormatJson, BGPHijackEventListParamsFormatCsv: + case BGPHijackEventListParamsFormatJSON, BGPHijackEventListParamsFormatCsv: return true } return false diff --git a/radar/bgphijackevent_test.go b/radar/bgphijackevent_test.go index 287843ee94f..81b7e5e73b4 100644 --- a/radar/bgphijackevent_test.go +++ b/radar/bgphijackevent_test.go @@ -33,7 +33,7 @@ func TestBGPHijackEventListWithOptionalParams(t *testing.T) { DateRange: cloudflare.F("7d"), DateStart: cloudflare.F(time.Now()), EventID: cloudflare.F(int64(0)), - Format: cloudflare.F(radar.BGPHijackEventListParamsFormatJson), + Format: cloudflare.F(radar.BGPHijackEventListParamsFormatJSON), HijackerASN: cloudflare.F(int64(0)), InvolvedASN: cloudflare.F(int64(0)), InvolvedCountry: cloudflare.F("involvedCountry"), diff --git a/radar/bgpip.go b/radar/bgpip.go index 4753649c7cc..e4ac4bc1678 100644 --- a/radar/bgpip.go +++ b/radar/bgpip.go @@ -200,13 +200,13 @@ func (r BGPIPTimeseriesParams) URLQuery() (v url.Values) { type BgpipTimeseriesParamsFormat string const ( - BgpipTimeseriesParamsFormatJson BgpipTimeseriesParamsFormat = "JSON" + BgpipTimeseriesParamsFormatJSON BgpipTimeseriesParamsFormat = "JSON" BgpipTimeseriesParamsFormatCsv BgpipTimeseriesParamsFormat = "CSV" ) func (r BgpipTimeseriesParamsFormat) IsKnown() bool { switch r { - case BgpipTimeseriesParamsFormatJson, BgpipTimeseriesParamsFormatCsv: + case BgpipTimeseriesParamsFormatJSON, BgpipTimeseriesParamsFormatCsv: return true } return false diff --git a/radar/bgpip_test.go b/radar/bgpip_test.go index dc86b9a1b3c..912d2dda43d 100644 --- a/radar/bgpip_test.go +++ b/radar/bgpip_test.go @@ -33,7 +33,7 @@ func TestBGPIPTimeseriesWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.BgpipTimeseriesParamsFormatJson), + Format: cloudflare.F(radar.BgpipTimeseriesParamsFormatJSON), IncludeDelay: cloudflare.F(true), IPVersion: cloudflare.F([]radar.BgpipTimeseriesParamsIPVersion{radar.BgpipTimeseriesParamsIPVersionIPv4}), Location: cloudflare.F([]string{"string"}), diff --git a/radar/bgpleakevent.go b/radar/bgpleakevent.go index e1065e10efc..ab083bb8f13 100644 --- a/radar/bgpleakevent.go +++ b/radar/bgpleakevent.go @@ -191,13 +191,13 @@ func (r BGPLeakEventListParams) URLQuery() (v url.Values) { type BGPLeakEventListParamsFormat string const ( - BGPLeakEventListParamsFormatJson BGPLeakEventListParamsFormat = "JSON" + BGPLeakEventListParamsFormatJSON BGPLeakEventListParamsFormat = "JSON" BGPLeakEventListParamsFormatCsv BGPLeakEventListParamsFormat = "CSV" ) func (r BGPLeakEventListParamsFormat) IsKnown() bool { switch r { - case BGPLeakEventListParamsFormatJson, BGPLeakEventListParamsFormatCsv: + case BGPLeakEventListParamsFormatJSON, BGPLeakEventListParamsFormatCsv: return true } return false diff --git a/radar/bgpleakevent_test.go b/radar/bgpleakevent_test.go index f78ee7bb6ad..38e1e75dbd8 100644 --- a/radar/bgpleakevent_test.go +++ b/radar/bgpleakevent_test.go @@ -33,7 +33,7 @@ func TestBGPLeakEventListWithOptionalParams(t *testing.T) { DateRange: cloudflare.F("7d"), DateStart: cloudflare.F(time.Now()), EventID: cloudflare.F(int64(0)), - Format: cloudflare.F(radar.BGPLeakEventListParamsFormatJson), + Format: cloudflare.F(radar.BGPLeakEventListParamsFormatJSON), InvolvedASN: cloudflare.F(int64(0)), InvolvedCountry: cloudflare.F("involvedCountry"), LeakASN: cloudflare.F(int64(0)), diff --git a/radar/bgproute.go b/radar/bgproute.go index ddafb55dc2f..8919b73b832 100644 --- a/radar/bgproute.go +++ b/radar/bgproute.go @@ -483,13 +483,13 @@ func (r BGPRouteAsesParams) URLQuery() (v url.Values) { type BGPRouteAsesParamsFormat string const ( - BGPRouteAsesParamsFormatJson BGPRouteAsesParamsFormat = "JSON" + BGPRouteAsesParamsFormatJSON BGPRouteAsesParamsFormat = "JSON" BGPRouteAsesParamsFormatCsv BGPRouteAsesParamsFormat = "CSV" ) func (r BGPRouteAsesParamsFormat) IsKnown() bool { switch r { - case BGPRouteAsesParamsFormatJson, BGPRouteAsesParamsFormatCsv: + case BGPRouteAsesParamsFormatJSON, BGPRouteAsesParamsFormatCsv: return true } return false @@ -578,13 +578,13 @@ func (r BGPRouteMoasParams) URLQuery() (v url.Values) { type BGPRouteMoasParamsFormat string const ( - BGPRouteMoasParamsFormatJson BGPRouteMoasParamsFormat = "JSON" + BGPRouteMoasParamsFormatJSON BGPRouteMoasParamsFormat = "JSON" BGPRouteMoasParamsFormatCsv BGPRouteMoasParamsFormat = "CSV" ) func (r BGPRouteMoasParamsFormat) IsKnown() bool { switch r { - case BGPRouteMoasParamsFormatJson, BGPRouteMoasParamsFormatCsv: + case BGPRouteMoasParamsFormatJSON, BGPRouteMoasParamsFormatCsv: return true } return false @@ -639,13 +639,13 @@ func (r BGPRoutePfx2asParams) URLQuery() (v url.Values) { type BGPRoutePfx2asParamsFormat string const ( - BGPRoutePfx2asParamsFormatJson BGPRoutePfx2asParamsFormat = "JSON" + BGPRoutePfx2asParamsFormatJSON BGPRoutePfx2asParamsFormat = "JSON" BGPRoutePfx2asParamsFormatCsv BGPRoutePfx2asParamsFormat = "CSV" ) func (r BGPRoutePfx2asParamsFormat) IsKnown() bool { switch r { - case BGPRoutePfx2asParamsFormatJson, BGPRoutePfx2asParamsFormatCsv: + case BGPRoutePfx2asParamsFormatJSON, BGPRoutePfx2asParamsFormatCsv: return true } return false @@ -712,13 +712,13 @@ func (r BGPRouteStatsParams) URLQuery() (v url.Values) { type BGPRouteStatsParamsFormat string const ( - BGPRouteStatsParamsFormatJson BGPRouteStatsParamsFormat = "JSON" + BGPRouteStatsParamsFormatJSON BGPRouteStatsParamsFormat = "JSON" BGPRouteStatsParamsFormatCsv BGPRouteStatsParamsFormat = "CSV" ) func (r BGPRouteStatsParamsFormat) IsKnown() bool { switch r { - case BGPRouteStatsParamsFormatJson, BGPRouteStatsParamsFormatCsv: + case BGPRouteStatsParamsFormatJSON, BGPRouteStatsParamsFormatCsv: return true } return false diff --git a/radar/bgproute_test.go b/radar/bgproute_test.go index 824f052bf2c..f3041af2a15 100644 --- a/radar/bgproute_test.go +++ b/radar/bgproute_test.go @@ -28,7 +28,7 @@ func TestBGPRouteAsesWithOptionalParams(t *testing.T) { option.WithAPIEmail("user@example.com"), ) _, err := client.Radar.BGP.Routes.Ases(context.TODO(), radar.BGPRouteAsesParams{ - Format: cloudflare.F(radar.BGPRouteAsesParamsFormatJson), + Format: cloudflare.F(radar.BGPRouteAsesParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F("US"), SortBy: cloudflare.F(radar.BGPRouteAsesParamsSortByCone), @@ -57,7 +57,7 @@ func TestBGPRouteMoasWithOptionalParams(t *testing.T) { option.WithAPIEmail("user@example.com"), ) _, err := client.Radar.BGP.Routes.Moas(context.TODO(), radar.BGPRouteMoasParams{ - Format: cloudflare.F(radar.BGPRouteMoasParamsFormatJson), + Format: cloudflare.F(radar.BGPRouteMoasParamsFormatJSON), InvalidOnly: cloudflare.F(true), Origin: cloudflare.F(int64(0)), Prefix: cloudflare.F("1.1.1.0/24"), @@ -85,7 +85,7 @@ func TestBGPRoutePfx2asWithOptionalParams(t *testing.T) { option.WithAPIEmail("user@example.com"), ) _, err := client.Radar.BGP.Routes.Pfx2as(context.TODO(), radar.BGPRoutePfx2asParams{ - Format: cloudflare.F(radar.BGPRoutePfx2asParamsFormatJson), + Format: cloudflare.F(radar.BGPRoutePfx2asParamsFormatJSON), LongestPrefixMatch: cloudflare.F(true), Origin: cloudflare.F(int64(0)), Prefix: cloudflare.F("1.1.1.0/24"), @@ -115,7 +115,7 @@ func TestBGPRouteStatsWithOptionalParams(t *testing.T) { ) _, err := client.Radar.BGP.Routes.Stats(context.TODO(), radar.BGPRouteStatsParams{ ASN: cloudflare.F(int64(174)), - Format: cloudflare.F(radar.BGPRouteStatsParamsFormatJson), + Format: cloudflare.F(radar.BGPRouteStatsParamsFormatJSON), Location: cloudflare.F("US"), }) if err != nil { diff --git a/radar/bgptop.go b/radar/bgptop.go index 9a929e7d39f..9dadb4250ca 100644 --- a/radar/bgptop.go +++ b/radar/bgptop.go @@ -177,13 +177,13 @@ func (r BGPTopPrefixesParams) URLQuery() (v url.Values) { type BGPTopPrefixesParamsFormat string const ( - BGPTopPrefixesParamsFormatJson BGPTopPrefixesParamsFormat = "JSON" + BGPTopPrefixesParamsFormatJSON BGPTopPrefixesParamsFormat = "JSON" BGPTopPrefixesParamsFormatCsv BGPTopPrefixesParamsFormat = "CSV" ) func (r BGPTopPrefixesParamsFormat) IsKnown() bool { switch r { - case BGPTopPrefixesParamsFormatJson, BGPTopPrefixesParamsFormatCsv: + case BGPTopPrefixesParamsFormatJSON, BGPTopPrefixesParamsFormatCsv: return true } return false diff --git a/radar/bgptop_test.go b/radar/bgptop_test.go index 27df06ac7d2..9ebeaa8cd4d 100644 --- a/radar/bgptop_test.go +++ b/radar/bgptop_test.go @@ -33,7 +33,7 @@ func TestBGPTopPrefixesWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.BGPTopPrefixesParamsFormatJson), + Format: cloudflare.F(radar.BGPTopPrefixesParamsFormatJSON), Limit: cloudflare.F(int64(5)), Name: cloudflare.F([]string{"string"}), UpdateType: cloudflare.F([]radar.BGPTopPrefixesParamsUpdateType{radar.BGPTopPrefixesParamsUpdateTypeAnnouncement}), diff --git a/radar/bgptopase.go b/radar/bgptopase.go index d6cb22e9c79..a3b03377b9b 100644 --- a/radar/bgptopase.go +++ b/radar/bgptopase.go @@ -271,13 +271,13 @@ func (r BGPTopAseGetParams) URLQuery() (v url.Values) { type BGPTopAseGetParamsFormat string const ( - BGPTopAseGetParamsFormatJson BGPTopAseGetParamsFormat = "JSON" + BGPTopAseGetParamsFormatJSON BGPTopAseGetParamsFormat = "JSON" BGPTopAseGetParamsFormatCsv BGPTopAseGetParamsFormat = "CSV" ) func (r BGPTopAseGetParamsFormat) IsKnown() bool { switch r { - case BGPTopAseGetParamsFormatJson, BGPTopAseGetParamsFormatCsv: + case BGPTopAseGetParamsFormatJSON, BGPTopAseGetParamsFormatCsv: return true } return false @@ -343,13 +343,13 @@ func (r BGPTopAsePrefixesParams) URLQuery() (v url.Values) { type BGPTopAsePrefixesParamsFormat string const ( - BGPTopAsePrefixesParamsFormatJson BGPTopAsePrefixesParamsFormat = "JSON" + BGPTopAsePrefixesParamsFormatJSON BGPTopAsePrefixesParamsFormat = "JSON" BGPTopAsePrefixesParamsFormatCsv BGPTopAsePrefixesParamsFormat = "CSV" ) func (r BGPTopAsePrefixesParamsFormat) IsKnown() bool { switch r { - case BGPTopAsePrefixesParamsFormatJson, BGPTopAsePrefixesParamsFormatCsv: + case BGPTopAsePrefixesParamsFormatJSON, BGPTopAsePrefixesParamsFormatCsv: return true } return false diff --git a/radar/bgptopase_test.go b/radar/bgptopase_test.go index 83de7fe8e7c..c484b0e2f25 100644 --- a/radar/bgptopase_test.go +++ b/radar/bgptopase_test.go @@ -33,7 +33,7 @@ func TestBGPTopAseGetWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.BGPTopAseGetParamsFormatJson), + Format: cloudflare.F(radar.BGPTopAseGetParamsFormatJSON), Limit: cloudflare.F(int64(5)), Name: cloudflare.F([]string{"string"}), Prefix: cloudflare.F([]string{"1.1.1.0/24"}), @@ -63,7 +63,7 @@ func TestBGPTopAsePrefixesWithOptionalParams(t *testing.T) { ) _, err := client.Radar.BGP.Top.Ases.Prefixes(context.TODO(), radar.BGPTopAsePrefixesParams{ Country: cloudflare.F("NZ"), - Format: cloudflare.F(radar.BGPTopAsePrefixesParamsFormatJson), + Format: cloudflare.F(radar.BGPTopAsePrefixesParamsFormatJSON), Limit: cloudflare.F(int64(10)), }) if err != nil { diff --git a/radar/dataset.go b/radar/dataset.go index 2bc036ef761..702278cff89 100644 --- a/radar/dataset.go +++ b/radar/dataset.go @@ -209,13 +209,13 @@ func (r DatasetListParamsDatasetType) IsKnown() bool { type DatasetListParamsFormat string const ( - DatasetListParamsFormatJson DatasetListParamsFormat = "JSON" + DatasetListParamsFormatJSON DatasetListParamsFormat = "JSON" DatasetListParamsFormatCsv DatasetListParamsFormat = "CSV" ) func (r DatasetListParamsFormat) IsKnown() bool { switch r { - case DatasetListParamsFormatJson, DatasetListParamsFormatCsv: + case DatasetListParamsFormatJSON, DatasetListParamsFormatCsv: return true } return false @@ -266,13 +266,13 @@ func (r DatasetDownloadParams) URLQuery() (v url.Values) { type DatasetDownloadParamsFormat string const ( - DatasetDownloadParamsFormatJson DatasetDownloadParamsFormat = "JSON" + DatasetDownloadParamsFormatJSON DatasetDownloadParamsFormat = "JSON" DatasetDownloadParamsFormatCsv DatasetDownloadParamsFormat = "CSV" ) func (r DatasetDownloadParamsFormat) IsKnown() bool { switch r { - case DatasetDownloadParamsFormatJson, DatasetDownloadParamsFormatCsv: + case DatasetDownloadParamsFormatJSON, DatasetDownloadParamsFormatCsv: return true } return false diff --git a/radar/dataset_test.go b/radar/dataset_test.go index bf6bf8171c1..33505d82913 100644 --- a/radar/dataset_test.go +++ b/radar/dataset_test.go @@ -29,7 +29,7 @@ func TestDatasetListWithOptionalParams(t *testing.T) { ) _, err := client.Radar.Datasets.List(context.TODO(), radar.DatasetListParams{ DatasetType: cloudflare.F(radar.DatasetListParamsDatasetTypeRankingBucket), - Format: cloudflare.F(radar.DatasetListParamsFormatJson), + Format: cloudflare.F(radar.DatasetListParamsFormatJSON), Limit: cloudflare.F(int64(5)), Offset: cloudflare.F(int64(0)), }) @@ -57,7 +57,7 @@ func TestDatasetDownloadWithOptionalParams(t *testing.T) { ) _, err := client.Radar.Datasets.Download(context.TODO(), radar.DatasetDownloadParams{ DatasetID: cloudflare.F(int64(3)), - Format: cloudflare.F(radar.DatasetDownloadParamsFormatJson), + Format: cloudflare.F(radar.DatasetDownloadParamsFormatJSON), }) if err != nil { var apierr *cloudflare.Error diff --git a/radar/dnstop.go b/radar/dnstop.go index 889a6db9105..05b4e9ffdd3 100644 --- a/radar/dnstop.go +++ b/radar/dnstop.go @@ -408,13 +408,13 @@ func (r DNSTopAsesParams) URLQuery() (v url.Values) { type DNSTopAsesParamsFormat string const ( - DNSTopAsesParamsFormatJson DNSTopAsesParamsFormat = "JSON" + DNSTopAsesParamsFormatJSON DNSTopAsesParamsFormat = "JSON" DNSTopAsesParamsFormatCsv DNSTopAsesParamsFormat = "CSV" ) func (r DNSTopAsesParamsFormat) IsKnown() bool { switch r { - case DNSTopAsesParamsFormatJson, DNSTopAsesParamsFormatCsv: + case DNSTopAsesParamsFormatJSON, DNSTopAsesParamsFormatCsv: return true } return false @@ -486,13 +486,13 @@ func (r DNSTopLocationsParams) URLQuery() (v url.Values) { type DNSTopLocationsParamsFormat string const ( - DNSTopLocationsParamsFormatJson DNSTopLocationsParamsFormat = "JSON" + DNSTopLocationsParamsFormatJSON DNSTopLocationsParamsFormat = "JSON" DNSTopLocationsParamsFormatCsv DNSTopLocationsParamsFormat = "CSV" ) func (r DNSTopLocationsParamsFormat) IsKnown() bool { switch r { - case DNSTopLocationsParamsFormatJson, DNSTopLocationsParamsFormatCsv: + case DNSTopLocationsParamsFormatJSON, DNSTopLocationsParamsFormatCsv: return true } return false diff --git a/radar/dnstop_test.go b/radar/dnstop_test.go index e15c2a390d3..5c234c002bc 100644 --- a/radar/dnstop_test.go +++ b/radar/dnstop_test.go @@ -35,7 +35,7 @@ func TestDNSTopAsesWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.DNSTopAsesParamsFormatJson), + Format: cloudflare.F(radar.DNSTopAsesParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -69,7 +69,7 @@ func TestDNSTopLocationsWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.DNSTopLocationsParamsFormatJson), + Format: cloudflare.F(radar.DNSTopLocationsParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), diff --git a/radar/emailroutingsummary.go b/radar/emailroutingsummary.go index e6d66139c0f..75e8be43c48 100644 --- a/radar/emailroutingsummary.go +++ b/radar/emailroutingsummary.go @@ -1035,13 +1035,13 @@ func (r EmailRoutingSummaryARCParamsEncrypted) IsKnown() bool { type EmailRoutingSummaryARCParamsFormat string const ( - EmailRoutingSummaryARCParamsFormatJson EmailRoutingSummaryARCParamsFormat = "JSON" + EmailRoutingSummaryARCParamsFormatJSON EmailRoutingSummaryARCParamsFormat = "JSON" EmailRoutingSummaryARCParamsFormatCsv EmailRoutingSummaryARCParamsFormat = "CSV" ) func (r EmailRoutingSummaryARCParamsFormat) IsKnown() bool { switch r { - case EmailRoutingSummaryARCParamsFormatJson, EmailRoutingSummaryARCParamsFormatCsv: + case EmailRoutingSummaryARCParamsFormatJSON, EmailRoutingSummaryARCParamsFormatCsv: return true } return false @@ -1186,13 +1186,13 @@ func (r EmailRoutingSummaryDKIMParamsEncrypted) IsKnown() bool { type EmailRoutingSummaryDKIMParamsFormat string const ( - EmailRoutingSummaryDKIMParamsFormatJson EmailRoutingSummaryDKIMParamsFormat = "JSON" + EmailRoutingSummaryDKIMParamsFormatJSON EmailRoutingSummaryDKIMParamsFormat = "JSON" EmailRoutingSummaryDKIMParamsFormatCsv EmailRoutingSummaryDKIMParamsFormat = "CSV" ) func (r EmailRoutingSummaryDKIMParamsFormat) IsKnown() bool { switch r { - case EmailRoutingSummaryDKIMParamsFormatJson, EmailRoutingSummaryDKIMParamsFormatCsv: + case EmailRoutingSummaryDKIMParamsFormatJSON, EmailRoutingSummaryDKIMParamsFormatCsv: return true } return false @@ -1337,13 +1337,13 @@ func (r EmailRoutingSummaryDMARCParamsEncrypted) IsKnown() bool { type EmailRoutingSummaryDMARCParamsFormat string const ( - EmailRoutingSummaryDMARCParamsFormatJson EmailRoutingSummaryDMARCParamsFormat = "JSON" + EmailRoutingSummaryDMARCParamsFormatJSON EmailRoutingSummaryDMARCParamsFormat = "JSON" EmailRoutingSummaryDMARCParamsFormatCsv EmailRoutingSummaryDMARCParamsFormat = "CSV" ) func (r EmailRoutingSummaryDMARCParamsFormat) IsKnown() bool { switch r { - case EmailRoutingSummaryDMARCParamsFormatJson, EmailRoutingSummaryDMARCParamsFormatCsv: + case EmailRoutingSummaryDMARCParamsFormatJSON, EmailRoutingSummaryDMARCParamsFormatCsv: return true } return false @@ -1489,13 +1489,13 @@ func (r EmailRoutingSummaryEncryptedParamsDMARC) IsKnown() bool { type EmailRoutingSummaryEncryptedParamsFormat string const ( - EmailRoutingSummaryEncryptedParamsFormatJson EmailRoutingSummaryEncryptedParamsFormat = "JSON" + EmailRoutingSummaryEncryptedParamsFormatJSON EmailRoutingSummaryEncryptedParamsFormat = "JSON" EmailRoutingSummaryEncryptedParamsFormatCsv EmailRoutingSummaryEncryptedParamsFormat = "CSV" ) func (r EmailRoutingSummaryEncryptedParamsFormat) IsKnown() bool { switch r { - case EmailRoutingSummaryEncryptedParamsFormatJson, EmailRoutingSummaryEncryptedParamsFormatCsv: + case EmailRoutingSummaryEncryptedParamsFormatJSON, EmailRoutingSummaryEncryptedParamsFormatCsv: return true } return false @@ -1656,13 +1656,13 @@ func (r EmailRoutingSummaryIPVersionParamsEncrypted) IsKnown() bool { type EmailRoutingSummaryIPVersionParamsFormat string const ( - EmailRoutingSummaryIPVersionParamsFormatJson EmailRoutingSummaryIPVersionParamsFormat = "JSON" + EmailRoutingSummaryIPVersionParamsFormatJSON EmailRoutingSummaryIPVersionParamsFormat = "JSON" EmailRoutingSummaryIPVersionParamsFormatCsv EmailRoutingSummaryIPVersionParamsFormat = "CSV" ) func (r EmailRoutingSummaryIPVersionParamsFormat) IsKnown() bool { switch r { - case EmailRoutingSummaryIPVersionParamsFormatJson, EmailRoutingSummaryIPVersionParamsFormatCsv: + case EmailRoutingSummaryIPVersionParamsFormatJSON, EmailRoutingSummaryIPVersionParamsFormatCsv: return true } return false @@ -1808,13 +1808,13 @@ func (r EmailRoutingSummarySPFParamsEncrypted) IsKnown() bool { type EmailRoutingSummarySPFParamsFormat string const ( - EmailRoutingSummarySPFParamsFormatJson EmailRoutingSummarySPFParamsFormat = "JSON" + EmailRoutingSummarySPFParamsFormatJSON EmailRoutingSummarySPFParamsFormat = "JSON" EmailRoutingSummarySPFParamsFormatCsv EmailRoutingSummarySPFParamsFormat = "CSV" ) func (r EmailRoutingSummarySPFParamsFormat) IsKnown() bool { switch r { - case EmailRoutingSummarySPFParamsFormatJson, EmailRoutingSummarySPFParamsFormatCsv: + case EmailRoutingSummarySPFParamsFormatJSON, EmailRoutingSummarySPFParamsFormatCsv: return true } return false diff --git a/radar/emailroutingsummary_test.go b/radar/emailroutingsummary_test.go index 2d7446ca921..c05db1ea6c5 100644 --- a/radar/emailroutingsummary_test.go +++ b/radar/emailroutingsummary_test.go @@ -35,7 +35,7 @@ func TestEmailRoutingSummaryARCWithOptionalParams(t *testing.T) { DKIM: cloudflare.F([]radar.EmailRoutingSummaryARCParamsDKIM{radar.EmailRoutingSummaryARCParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailRoutingSummaryARCParamsDMARC{radar.EmailRoutingSummaryARCParamsDMARCPass}), Encrypted: cloudflare.F([]radar.EmailRoutingSummaryARCParamsEncrypted{radar.EmailRoutingSummaryARCParamsEncryptedEncrypted}), - Format: cloudflare.F(radar.EmailRoutingSummaryARCParamsFormatJson), + Format: cloudflare.F(radar.EmailRoutingSummaryARCParamsFormatJSON), IPVersion: cloudflare.F([]radar.EmailRoutingSummaryARCParamsIPVersion{radar.EmailRoutingSummaryARCParamsIPVersionIPv4}), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailRoutingSummaryARCParamsSPF{radar.EmailRoutingSummaryARCParamsSPFPass}), @@ -69,7 +69,7 @@ func TestEmailRoutingSummaryDKIMWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DMARC: cloudflare.F([]radar.EmailRoutingSummaryDKIMParamsDMARC{radar.EmailRoutingSummaryDKIMParamsDMARCPass}), Encrypted: cloudflare.F([]radar.EmailRoutingSummaryDKIMParamsEncrypted{radar.EmailRoutingSummaryDKIMParamsEncryptedEncrypted}), - Format: cloudflare.F(radar.EmailRoutingSummaryDKIMParamsFormatJson), + Format: cloudflare.F(radar.EmailRoutingSummaryDKIMParamsFormatJSON), IPVersion: cloudflare.F([]radar.EmailRoutingSummaryDKIMParamsIPVersion{radar.EmailRoutingSummaryDKIMParamsIPVersionIPv4}), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailRoutingSummaryDKIMParamsSPF{radar.EmailRoutingSummaryDKIMParamsSPFPass}), @@ -103,7 +103,7 @@ func TestEmailRoutingSummaryDMARCWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailRoutingSummaryDMARCParamsDKIM{radar.EmailRoutingSummaryDMARCParamsDKIMPass}), Encrypted: cloudflare.F([]radar.EmailRoutingSummaryDMARCParamsEncrypted{radar.EmailRoutingSummaryDMARCParamsEncryptedEncrypted}), - Format: cloudflare.F(radar.EmailRoutingSummaryDMARCParamsFormatJson), + Format: cloudflare.F(radar.EmailRoutingSummaryDMARCParamsFormatJSON), IPVersion: cloudflare.F([]radar.EmailRoutingSummaryDMARCParamsIPVersion{radar.EmailRoutingSummaryDMARCParamsIPVersionIPv4}), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailRoutingSummaryDMARCParamsSPF{radar.EmailRoutingSummaryDMARCParamsSPFPass}), @@ -137,7 +137,7 @@ func TestEmailRoutingSummaryEncryptedWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailRoutingSummaryEncryptedParamsDKIM{radar.EmailRoutingSummaryEncryptedParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailRoutingSummaryEncryptedParamsDMARC{radar.EmailRoutingSummaryEncryptedParamsDMARCPass}), - Format: cloudflare.F(radar.EmailRoutingSummaryEncryptedParamsFormatJson), + Format: cloudflare.F(radar.EmailRoutingSummaryEncryptedParamsFormatJSON), IPVersion: cloudflare.F([]radar.EmailRoutingSummaryEncryptedParamsIPVersion{radar.EmailRoutingSummaryEncryptedParamsIPVersionIPv4}), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailRoutingSummaryEncryptedParamsSPF{radar.EmailRoutingSummaryEncryptedParamsSPFPass}), @@ -172,7 +172,7 @@ func TestEmailRoutingSummaryIPVersionWithOptionalParams(t *testing.T) { DKIM: cloudflare.F([]radar.EmailRoutingSummaryIPVersionParamsDKIM{radar.EmailRoutingSummaryIPVersionParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailRoutingSummaryIPVersionParamsDMARC{radar.EmailRoutingSummaryIPVersionParamsDMARCPass}), Encrypted: cloudflare.F([]radar.EmailRoutingSummaryIPVersionParamsEncrypted{radar.EmailRoutingSummaryIPVersionParamsEncryptedEncrypted}), - Format: cloudflare.F(radar.EmailRoutingSummaryIPVersionParamsFormatJson), + Format: cloudflare.F(radar.EmailRoutingSummaryIPVersionParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailRoutingSummaryIPVersionParamsSPF{radar.EmailRoutingSummaryIPVersionParamsSPFPass}), }) @@ -206,7 +206,7 @@ func TestEmailRoutingSummarySPFWithOptionalParams(t *testing.T) { DKIM: cloudflare.F([]radar.EmailRoutingSummarySPFParamsDKIM{radar.EmailRoutingSummarySPFParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailRoutingSummarySPFParamsDMARC{radar.EmailRoutingSummarySPFParamsDMARCPass}), Encrypted: cloudflare.F([]radar.EmailRoutingSummarySPFParamsEncrypted{radar.EmailRoutingSummarySPFParamsEncryptedEncrypted}), - Format: cloudflare.F(radar.EmailRoutingSummarySPFParamsFormatJson), + Format: cloudflare.F(radar.EmailRoutingSummarySPFParamsFormatJSON), IPVersion: cloudflare.F([]radar.EmailRoutingSummarySPFParamsIPVersion{radar.EmailRoutingSummarySPFParamsIPVersionIPv4}), Name: cloudflare.F([]string{"string"}), }) diff --git a/radar/emailroutingtimeseriesgroup.go b/radar/emailroutingtimeseriesgroup.go index 34f0ba4df98..f2d3f326252 100644 --- a/radar/emailroutingtimeseriesgroup.go +++ b/radar/emailroutingtimeseriesgroup.go @@ -405,13 +405,13 @@ func (r EmailRoutingTimeseriesGroupARCParamsEncrypted) IsKnown() bool { type EmailRoutingTimeseriesGroupARCParamsFormat string const ( - EmailRoutingTimeseriesGroupARCParamsFormatJson EmailRoutingTimeseriesGroupARCParamsFormat = "JSON" + EmailRoutingTimeseriesGroupARCParamsFormatJSON EmailRoutingTimeseriesGroupARCParamsFormat = "JSON" EmailRoutingTimeseriesGroupARCParamsFormatCsv EmailRoutingTimeseriesGroupARCParamsFormat = "CSV" ) func (r EmailRoutingTimeseriesGroupARCParamsFormat) IsKnown() bool { switch r { - case EmailRoutingTimeseriesGroupARCParamsFormatJson, EmailRoutingTimeseriesGroupARCParamsFormatCsv: + case EmailRoutingTimeseriesGroupARCParamsFormatJSON, EmailRoutingTimeseriesGroupARCParamsFormatCsv: return true } return false @@ -580,13 +580,13 @@ func (r EmailRoutingTimeseriesGroupDKIMParamsEncrypted) IsKnown() bool { type EmailRoutingTimeseriesGroupDKIMParamsFormat string const ( - EmailRoutingTimeseriesGroupDKIMParamsFormatJson EmailRoutingTimeseriesGroupDKIMParamsFormat = "JSON" + EmailRoutingTimeseriesGroupDKIMParamsFormatJSON EmailRoutingTimeseriesGroupDKIMParamsFormat = "JSON" EmailRoutingTimeseriesGroupDKIMParamsFormatCsv EmailRoutingTimeseriesGroupDKIMParamsFormat = "CSV" ) func (r EmailRoutingTimeseriesGroupDKIMParamsFormat) IsKnown() bool { switch r { - case EmailRoutingTimeseriesGroupDKIMParamsFormatJson, EmailRoutingTimeseriesGroupDKIMParamsFormatCsv: + case EmailRoutingTimeseriesGroupDKIMParamsFormatJSON, EmailRoutingTimeseriesGroupDKIMParamsFormatCsv: return true } return false @@ -755,13 +755,13 @@ func (r EmailRoutingTimeseriesGroupDMARCParamsEncrypted) IsKnown() bool { type EmailRoutingTimeseriesGroupDMARCParamsFormat string const ( - EmailRoutingTimeseriesGroupDMARCParamsFormatJson EmailRoutingTimeseriesGroupDMARCParamsFormat = "JSON" + EmailRoutingTimeseriesGroupDMARCParamsFormatJSON EmailRoutingTimeseriesGroupDMARCParamsFormat = "JSON" EmailRoutingTimeseriesGroupDMARCParamsFormatCsv EmailRoutingTimeseriesGroupDMARCParamsFormat = "CSV" ) func (r EmailRoutingTimeseriesGroupDMARCParamsFormat) IsKnown() bool { switch r { - case EmailRoutingTimeseriesGroupDMARCParamsFormatJson, EmailRoutingTimeseriesGroupDMARCParamsFormatCsv: + case EmailRoutingTimeseriesGroupDMARCParamsFormatJSON, EmailRoutingTimeseriesGroupDMARCParamsFormatCsv: return true } return false @@ -931,13 +931,13 @@ func (r EmailRoutingTimeseriesGroupEncryptedParamsDMARC) IsKnown() bool { type EmailRoutingTimeseriesGroupEncryptedParamsFormat string const ( - EmailRoutingTimeseriesGroupEncryptedParamsFormatJson EmailRoutingTimeseriesGroupEncryptedParamsFormat = "JSON" + EmailRoutingTimeseriesGroupEncryptedParamsFormatJSON EmailRoutingTimeseriesGroupEncryptedParamsFormat = "JSON" EmailRoutingTimeseriesGroupEncryptedParamsFormatCsv EmailRoutingTimeseriesGroupEncryptedParamsFormat = "CSV" ) func (r EmailRoutingTimeseriesGroupEncryptedParamsFormat) IsKnown() bool { switch r { - case EmailRoutingTimeseriesGroupEncryptedParamsFormatJson, EmailRoutingTimeseriesGroupEncryptedParamsFormatCsv: + case EmailRoutingTimeseriesGroupEncryptedParamsFormatJSON, EmailRoutingTimeseriesGroupEncryptedParamsFormatCsv: return true } return false @@ -1122,13 +1122,13 @@ func (r EmailRoutingTimeseriesGroupIPVersionParamsEncrypted) IsKnown() bool { type EmailRoutingTimeseriesGroupIPVersionParamsFormat string const ( - EmailRoutingTimeseriesGroupIPVersionParamsFormatJson EmailRoutingTimeseriesGroupIPVersionParamsFormat = "JSON" + EmailRoutingTimeseriesGroupIPVersionParamsFormatJSON EmailRoutingTimeseriesGroupIPVersionParamsFormat = "JSON" EmailRoutingTimeseriesGroupIPVersionParamsFormatCsv EmailRoutingTimeseriesGroupIPVersionParamsFormat = "CSV" ) func (r EmailRoutingTimeseriesGroupIPVersionParamsFormat) IsKnown() bool { switch r { - case EmailRoutingTimeseriesGroupIPVersionParamsFormatJson, EmailRoutingTimeseriesGroupIPVersionParamsFormatCsv: + case EmailRoutingTimeseriesGroupIPVersionParamsFormatJSON, EmailRoutingTimeseriesGroupIPVersionParamsFormatCsv: return true } return false @@ -1298,13 +1298,13 @@ func (r EmailRoutingTimeseriesGroupSPFParamsEncrypted) IsKnown() bool { type EmailRoutingTimeseriesGroupSPFParamsFormat string const ( - EmailRoutingTimeseriesGroupSPFParamsFormatJson EmailRoutingTimeseriesGroupSPFParamsFormat = "JSON" + EmailRoutingTimeseriesGroupSPFParamsFormatJSON EmailRoutingTimeseriesGroupSPFParamsFormat = "JSON" EmailRoutingTimeseriesGroupSPFParamsFormatCsv EmailRoutingTimeseriesGroupSPFParamsFormat = "CSV" ) func (r EmailRoutingTimeseriesGroupSPFParamsFormat) IsKnown() bool { switch r { - case EmailRoutingTimeseriesGroupSPFParamsFormatJson, EmailRoutingTimeseriesGroupSPFParamsFormatCsv: + case EmailRoutingTimeseriesGroupSPFParamsFormatJSON, EmailRoutingTimeseriesGroupSPFParamsFormatCsv: return true } return false diff --git a/radar/emailroutingtimeseriesgroup_test.go b/radar/emailroutingtimeseriesgroup_test.go index 4eed0e50f54..a3b380f8a91 100644 --- a/radar/emailroutingtimeseriesgroup_test.go +++ b/radar/emailroutingtimeseriesgroup_test.go @@ -36,7 +36,7 @@ func TestEmailRoutingTimeseriesGroupARCWithOptionalParams(t *testing.T) { DKIM: cloudflare.F([]radar.EmailRoutingTimeseriesGroupARCParamsDKIM{radar.EmailRoutingTimeseriesGroupARCParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailRoutingTimeseriesGroupARCParamsDMARC{radar.EmailRoutingTimeseriesGroupARCParamsDMARCPass}), Encrypted: cloudflare.F([]radar.EmailRoutingTimeseriesGroupARCParamsEncrypted{radar.EmailRoutingTimeseriesGroupARCParamsEncryptedEncrypted}), - Format: cloudflare.F(radar.EmailRoutingTimeseriesGroupARCParamsFormatJson), + Format: cloudflare.F(radar.EmailRoutingTimeseriesGroupARCParamsFormatJSON), IPVersion: cloudflare.F([]radar.EmailRoutingTimeseriesGroupARCParamsIPVersion{radar.EmailRoutingTimeseriesGroupARCParamsIPVersionIPv4}), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailRoutingTimeseriesGroupARCParamsSPF{radar.EmailRoutingTimeseriesGroupARCParamsSPFPass}), @@ -71,7 +71,7 @@ func TestEmailRoutingTimeseriesGroupDKIMWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DMARC: cloudflare.F([]radar.EmailRoutingTimeseriesGroupDKIMParamsDMARC{radar.EmailRoutingTimeseriesGroupDKIMParamsDMARCPass}), Encrypted: cloudflare.F([]radar.EmailRoutingTimeseriesGroupDKIMParamsEncrypted{radar.EmailRoutingTimeseriesGroupDKIMParamsEncryptedEncrypted}), - Format: cloudflare.F(radar.EmailRoutingTimeseriesGroupDKIMParamsFormatJson), + Format: cloudflare.F(radar.EmailRoutingTimeseriesGroupDKIMParamsFormatJSON), IPVersion: cloudflare.F([]radar.EmailRoutingTimeseriesGroupDKIMParamsIPVersion{radar.EmailRoutingTimeseriesGroupDKIMParamsIPVersionIPv4}), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailRoutingTimeseriesGroupDKIMParamsSPF{radar.EmailRoutingTimeseriesGroupDKIMParamsSPFPass}), @@ -106,7 +106,7 @@ func TestEmailRoutingTimeseriesGroupDMARCWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailRoutingTimeseriesGroupDMARCParamsDKIM{radar.EmailRoutingTimeseriesGroupDMARCParamsDKIMPass}), Encrypted: cloudflare.F([]radar.EmailRoutingTimeseriesGroupDMARCParamsEncrypted{radar.EmailRoutingTimeseriesGroupDMARCParamsEncryptedEncrypted}), - Format: cloudflare.F(radar.EmailRoutingTimeseriesGroupDMARCParamsFormatJson), + Format: cloudflare.F(radar.EmailRoutingTimeseriesGroupDMARCParamsFormatJSON), IPVersion: cloudflare.F([]radar.EmailRoutingTimeseriesGroupDMARCParamsIPVersion{radar.EmailRoutingTimeseriesGroupDMARCParamsIPVersionIPv4}), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailRoutingTimeseriesGroupDMARCParamsSPF{radar.EmailRoutingTimeseriesGroupDMARCParamsSPFPass}), @@ -141,7 +141,7 @@ func TestEmailRoutingTimeseriesGroupEncryptedWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailRoutingTimeseriesGroupEncryptedParamsDKIM{radar.EmailRoutingTimeseriesGroupEncryptedParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailRoutingTimeseriesGroupEncryptedParamsDMARC{radar.EmailRoutingTimeseriesGroupEncryptedParamsDMARCPass}), - Format: cloudflare.F(radar.EmailRoutingTimeseriesGroupEncryptedParamsFormatJson), + Format: cloudflare.F(radar.EmailRoutingTimeseriesGroupEncryptedParamsFormatJSON), IPVersion: cloudflare.F([]radar.EmailRoutingTimeseriesGroupEncryptedParamsIPVersion{radar.EmailRoutingTimeseriesGroupEncryptedParamsIPVersionIPv4}), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailRoutingTimeseriesGroupEncryptedParamsSPF{radar.EmailRoutingTimeseriesGroupEncryptedParamsSPFPass}), @@ -177,7 +177,7 @@ func TestEmailRoutingTimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { DKIM: cloudflare.F([]radar.EmailRoutingTimeseriesGroupIPVersionParamsDKIM{radar.EmailRoutingTimeseriesGroupIPVersionParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailRoutingTimeseriesGroupIPVersionParamsDMARC{radar.EmailRoutingTimeseriesGroupIPVersionParamsDMARCPass}), Encrypted: cloudflare.F([]radar.EmailRoutingTimeseriesGroupIPVersionParamsEncrypted{radar.EmailRoutingTimeseriesGroupIPVersionParamsEncryptedEncrypted}), - Format: cloudflare.F(radar.EmailRoutingTimeseriesGroupIPVersionParamsFormatJson), + Format: cloudflare.F(radar.EmailRoutingTimeseriesGroupIPVersionParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailRoutingTimeseriesGroupIPVersionParamsSPF{radar.EmailRoutingTimeseriesGroupIPVersionParamsSPFPass}), }) @@ -212,7 +212,7 @@ func TestEmailRoutingTimeseriesGroupSPFWithOptionalParams(t *testing.T) { DKIM: cloudflare.F([]radar.EmailRoutingTimeseriesGroupSPFParamsDKIM{radar.EmailRoutingTimeseriesGroupSPFParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailRoutingTimeseriesGroupSPFParamsDMARC{radar.EmailRoutingTimeseriesGroupSPFParamsDMARCPass}), Encrypted: cloudflare.F([]radar.EmailRoutingTimeseriesGroupSPFParamsEncrypted{radar.EmailRoutingTimeseriesGroupSPFParamsEncryptedEncrypted}), - Format: cloudflare.F(radar.EmailRoutingTimeseriesGroupSPFParamsFormatJson), + Format: cloudflare.F(radar.EmailRoutingTimeseriesGroupSPFParamsFormatJSON), IPVersion: cloudflare.F([]radar.EmailRoutingTimeseriesGroupSPFParamsIPVersion{radar.EmailRoutingTimeseriesGroupSPFParamsIPVersionIPv4}), Name: cloudflare.F([]string{"string"}), }) diff --git a/radar/emailsecuritysummary.go b/radar/emailsecuritysummary.go index 0140f67b59f..02284922536 100644 --- a/radar/emailsecuritysummary.go +++ b/radar/emailsecuritysummary.go @@ -1534,13 +1534,13 @@ func (r EmailSecuritySummaryARCParamsDMARC) IsKnown() bool { type EmailSecuritySummaryARCParamsFormat string const ( - EmailSecuritySummaryARCParamsFormatJson EmailSecuritySummaryARCParamsFormat = "JSON" + EmailSecuritySummaryARCParamsFormatJSON EmailSecuritySummaryARCParamsFormat = "JSON" EmailSecuritySummaryARCParamsFormatCsv EmailSecuritySummaryARCParamsFormat = "CSV" ) func (r EmailSecuritySummaryARCParamsFormat) IsKnown() bool { switch r { - case EmailSecuritySummaryARCParamsFormatJson, EmailSecuritySummaryARCParamsFormatCsv: + case EmailSecuritySummaryARCParamsFormatJSON, EmailSecuritySummaryARCParamsFormatCsv: return true } return false @@ -1670,13 +1670,13 @@ func (r EmailSecuritySummaryDKIMParamsDMARC) IsKnown() bool { type EmailSecuritySummaryDKIMParamsFormat string const ( - EmailSecuritySummaryDKIMParamsFormatJson EmailSecuritySummaryDKIMParamsFormat = "JSON" + EmailSecuritySummaryDKIMParamsFormatJSON EmailSecuritySummaryDKIMParamsFormat = "JSON" EmailSecuritySummaryDKIMParamsFormatCsv EmailSecuritySummaryDKIMParamsFormat = "CSV" ) func (r EmailSecuritySummaryDKIMParamsFormat) IsKnown() bool { switch r { - case EmailSecuritySummaryDKIMParamsFormatJson, EmailSecuritySummaryDKIMParamsFormatCsv: + case EmailSecuritySummaryDKIMParamsFormatJSON, EmailSecuritySummaryDKIMParamsFormatCsv: return true } return false @@ -1806,13 +1806,13 @@ func (r EmailSecuritySummaryDMARCParamsDKIM) IsKnown() bool { type EmailSecuritySummaryDMARCParamsFormat string const ( - EmailSecuritySummaryDMARCParamsFormatJson EmailSecuritySummaryDMARCParamsFormat = "JSON" + EmailSecuritySummaryDMARCParamsFormatJSON EmailSecuritySummaryDMARCParamsFormat = "JSON" EmailSecuritySummaryDMARCParamsFormatCsv EmailSecuritySummaryDMARCParamsFormat = "CSV" ) func (r EmailSecuritySummaryDMARCParamsFormat) IsKnown() bool { switch r { - case EmailSecuritySummaryDMARCParamsFormatJson, EmailSecuritySummaryDMARCParamsFormatCsv: + case EmailSecuritySummaryDMARCParamsFormatJSON, EmailSecuritySummaryDMARCParamsFormatCsv: return true } return false @@ -1960,13 +1960,13 @@ func (r EmailSecuritySummaryMaliciousParamsDMARC) IsKnown() bool { type EmailSecuritySummaryMaliciousParamsFormat string const ( - EmailSecuritySummaryMaliciousParamsFormatJson EmailSecuritySummaryMaliciousParamsFormat = "JSON" + EmailSecuritySummaryMaliciousParamsFormatJSON EmailSecuritySummaryMaliciousParamsFormat = "JSON" EmailSecuritySummaryMaliciousParamsFormatCsv EmailSecuritySummaryMaliciousParamsFormat = "CSV" ) func (r EmailSecuritySummaryMaliciousParamsFormat) IsKnown() bool { switch r { - case EmailSecuritySummaryMaliciousParamsFormatJson, EmailSecuritySummaryMaliciousParamsFormatCsv: + case EmailSecuritySummaryMaliciousParamsFormatJSON, EmailSecuritySummaryMaliciousParamsFormatCsv: return true } return false @@ -2114,13 +2114,13 @@ func (r EmailSecuritySummarySpamParamsDMARC) IsKnown() bool { type EmailSecuritySummarySpamParamsFormat string const ( - EmailSecuritySummarySpamParamsFormatJson EmailSecuritySummarySpamParamsFormat = "JSON" + EmailSecuritySummarySpamParamsFormatJSON EmailSecuritySummarySpamParamsFormat = "JSON" EmailSecuritySummarySpamParamsFormatCsv EmailSecuritySummarySpamParamsFormat = "CSV" ) func (r EmailSecuritySummarySpamParamsFormat) IsKnown() bool { switch r { - case EmailSecuritySummarySpamParamsFormatJson, EmailSecuritySummarySpamParamsFormatCsv: + case EmailSecuritySummarySpamParamsFormatJSON, EmailSecuritySummarySpamParamsFormatCsv: return true } return false @@ -2266,13 +2266,13 @@ func (r EmailSecuritySummarySPFParamsDMARC) IsKnown() bool { type EmailSecuritySummarySPFParamsFormat string const ( - EmailSecuritySummarySPFParamsFormatJson EmailSecuritySummarySPFParamsFormat = "JSON" + EmailSecuritySummarySPFParamsFormatJSON EmailSecuritySummarySPFParamsFormat = "JSON" EmailSecuritySummarySPFParamsFormatCsv EmailSecuritySummarySPFParamsFormat = "CSV" ) func (r EmailSecuritySummarySPFParamsFormat) IsKnown() bool { switch r { - case EmailSecuritySummarySPFParamsFormatJson, EmailSecuritySummarySPFParamsFormatCsv: + case EmailSecuritySummarySPFParamsFormatJSON, EmailSecuritySummarySPFParamsFormatCsv: return true } return false @@ -2404,13 +2404,13 @@ func (r EmailSecuritySummarySpoofParamsDMARC) IsKnown() bool { type EmailSecuritySummarySpoofParamsFormat string const ( - EmailSecuritySummarySpoofParamsFormatJson EmailSecuritySummarySpoofParamsFormat = "JSON" + EmailSecuritySummarySpoofParamsFormatJSON EmailSecuritySummarySpoofParamsFormat = "JSON" EmailSecuritySummarySpoofParamsFormatCsv EmailSecuritySummarySpoofParamsFormat = "CSV" ) func (r EmailSecuritySummarySpoofParamsFormat) IsKnown() bool { switch r { - case EmailSecuritySummarySpoofParamsFormatJson, EmailSecuritySummarySpoofParamsFormatCsv: + case EmailSecuritySummarySpoofParamsFormatJSON, EmailSecuritySummarySpoofParamsFormatCsv: return true } return false @@ -2558,13 +2558,13 @@ func (r EmailSecuritySummaryThreatCategoryParamsDMARC) IsKnown() bool { type EmailSecuritySummaryThreatCategoryParamsFormat string const ( - EmailSecuritySummaryThreatCategoryParamsFormatJson EmailSecuritySummaryThreatCategoryParamsFormat = "JSON" + EmailSecuritySummaryThreatCategoryParamsFormatJSON EmailSecuritySummaryThreatCategoryParamsFormat = "JSON" EmailSecuritySummaryThreatCategoryParamsFormatCsv EmailSecuritySummaryThreatCategoryParamsFormat = "CSV" ) func (r EmailSecuritySummaryThreatCategoryParamsFormat) IsKnown() bool { switch r { - case EmailSecuritySummaryThreatCategoryParamsFormatJson, EmailSecuritySummaryThreatCategoryParamsFormatCsv: + case EmailSecuritySummaryThreatCategoryParamsFormatJSON, EmailSecuritySummaryThreatCategoryParamsFormatCsv: return true } return false @@ -2710,13 +2710,13 @@ func (r EmailSecuritySummaryTLSVersionParamsDMARC) IsKnown() bool { type EmailSecuritySummaryTLSVersionParamsFormat string const ( - EmailSecuritySummaryTLSVersionParamsFormatJson EmailSecuritySummaryTLSVersionParamsFormat = "JSON" + EmailSecuritySummaryTLSVersionParamsFormatJSON EmailSecuritySummaryTLSVersionParamsFormat = "JSON" EmailSecuritySummaryTLSVersionParamsFormatCsv EmailSecuritySummaryTLSVersionParamsFormat = "CSV" ) func (r EmailSecuritySummaryTLSVersionParamsFormat) IsKnown() bool { switch r { - case EmailSecuritySummaryTLSVersionParamsFormatJson, EmailSecuritySummaryTLSVersionParamsFormatCsv: + case EmailSecuritySummaryTLSVersionParamsFormatJSON, EmailSecuritySummaryTLSVersionParamsFormatCsv: return true } return false diff --git a/radar/emailsecuritysummary_test.go b/radar/emailsecuritysummary_test.go index 46e150b56f9..babfc0ff98b 100644 --- a/radar/emailsecuritysummary_test.go +++ b/radar/emailsecuritysummary_test.go @@ -34,7 +34,7 @@ func TestEmailSecuritySummaryARCWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecuritySummaryARCParamsDKIM{radar.EmailSecuritySummaryARCParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecuritySummaryARCParamsDMARC{radar.EmailSecuritySummaryARCParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecuritySummaryARCParamsFormatJson), + Format: cloudflare.F(radar.EmailSecuritySummaryARCParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecuritySummaryARCParamsSPF{radar.EmailSecuritySummaryARCParamsSPFPass}), TLSVersion: cloudflare.F([]radar.EmailSecuritySummaryARCParamsTLSVersion{radar.EmailSecuritySummaryARCParamsTLSVersionTlSv1_0}), @@ -67,7 +67,7 @@ func TestEmailSecuritySummaryDKIMWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DMARC: cloudflare.F([]radar.EmailSecuritySummaryDKIMParamsDMARC{radar.EmailSecuritySummaryDKIMParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecuritySummaryDKIMParamsFormatJson), + Format: cloudflare.F(radar.EmailSecuritySummaryDKIMParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecuritySummaryDKIMParamsSPF{radar.EmailSecuritySummaryDKIMParamsSPFPass}), TLSVersion: cloudflare.F([]radar.EmailSecuritySummaryDKIMParamsTLSVersion{radar.EmailSecuritySummaryDKIMParamsTLSVersionTlSv1_0}), @@ -100,7 +100,7 @@ func TestEmailSecuritySummaryDMARCWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecuritySummaryDMARCParamsDKIM{radar.EmailSecuritySummaryDMARCParamsDKIMPass}), - Format: cloudflare.F(radar.EmailSecuritySummaryDMARCParamsFormatJson), + Format: cloudflare.F(radar.EmailSecuritySummaryDMARCParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecuritySummaryDMARCParamsSPF{radar.EmailSecuritySummaryDMARCParamsSPFPass}), TLSVersion: cloudflare.F([]radar.EmailSecuritySummaryDMARCParamsTLSVersion{radar.EmailSecuritySummaryDMARCParamsTLSVersionTlSv1_0}), @@ -134,7 +134,7 @@ func TestEmailSecuritySummaryMaliciousWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecuritySummaryMaliciousParamsDKIM{radar.EmailSecuritySummaryMaliciousParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecuritySummaryMaliciousParamsDMARC{radar.EmailSecuritySummaryMaliciousParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecuritySummaryMaliciousParamsFormatJson), + Format: cloudflare.F(radar.EmailSecuritySummaryMaliciousParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecuritySummaryMaliciousParamsSPF{radar.EmailSecuritySummaryMaliciousParamsSPFPass}), TLSVersion: cloudflare.F([]radar.EmailSecuritySummaryMaliciousParamsTLSVersion{radar.EmailSecuritySummaryMaliciousParamsTLSVersionTlSv1_0}), @@ -168,7 +168,7 @@ func TestEmailSecuritySummarySpamWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecuritySummarySpamParamsDKIM{radar.EmailSecuritySummarySpamParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecuritySummarySpamParamsDMARC{radar.EmailSecuritySummarySpamParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecuritySummarySpamParamsFormatJson), + Format: cloudflare.F(radar.EmailSecuritySummarySpamParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecuritySummarySpamParamsSPF{radar.EmailSecuritySummarySpamParamsSPFPass}), TLSVersion: cloudflare.F([]radar.EmailSecuritySummarySpamParamsTLSVersion{radar.EmailSecuritySummarySpamParamsTLSVersionTlSv1_0}), @@ -202,7 +202,7 @@ func TestEmailSecuritySummarySPFWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecuritySummarySPFParamsDKIM{radar.EmailSecuritySummarySPFParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecuritySummarySPFParamsDMARC{radar.EmailSecuritySummarySPFParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecuritySummarySPFParamsFormatJson), + Format: cloudflare.F(radar.EmailSecuritySummarySPFParamsFormatJSON), Name: cloudflare.F([]string{"string"}), TLSVersion: cloudflare.F([]radar.EmailSecuritySummarySPFParamsTLSVersion{radar.EmailSecuritySummarySPFParamsTLSVersionTlSv1_0}), }) @@ -235,7 +235,7 @@ func TestEmailSecuritySummarySpoofWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecuritySummarySpoofParamsDKIM{radar.EmailSecuritySummarySpoofParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecuritySummarySpoofParamsDMARC{radar.EmailSecuritySummarySpoofParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecuritySummarySpoofParamsFormatJson), + Format: cloudflare.F(radar.EmailSecuritySummarySpoofParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecuritySummarySpoofParamsSPF{radar.EmailSecuritySummarySpoofParamsSPFPass}), TLSVersion: cloudflare.F([]radar.EmailSecuritySummarySpoofParamsTLSVersion{radar.EmailSecuritySummarySpoofParamsTLSVersionTlSv1_0}), @@ -269,7 +269,7 @@ func TestEmailSecuritySummaryThreatCategoryWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecuritySummaryThreatCategoryParamsDKIM{radar.EmailSecuritySummaryThreatCategoryParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecuritySummaryThreatCategoryParamsDMARC{radar.EmailSecuritySummaryThreatCategoryParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecuritySummaryThreatCategoryParamsFormatJson), + Format: cloudflare.F(radar.EmailSecuritySummaryThreatCategoryParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecuritySummaryThreatCategoryParamsSPF{radar.EmailSecuritySummaryThreatCategoryParamsSPFPass}), TLSVersion: cloudflare.F([]radar.EmailSecuritySummaryThreatCategoryParamsTLSVersion{radar.EmailSecuritySummaryThreatCategoryParamsTLSVersionTlSv1_0}), @@ -303,7 +303,7 @@ func TestEmailSecuritySummaryTLSVersionWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecuritySummaryTLSVersionParamsDKIM{radar.EmailSecuritySummaryTLSVersionParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecuritySummaryTLSVersionParamsDMARC{radar.EmailSecuritySummaryTLSVersionParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecuritySummaryTLSVersionParamsFormatJson), + Format: cloudflare.F(radar.EmailSecuritySummaryTLSVersionParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecuritySummaryTLSVersionParamsSPF{radar.EmailSecuritySummaryTLSVersionParamsSPFPass}), }) diff --git a/radar/emailsecuritytimeseriesgroup.go b/radar/emailsecuritytimeseriesgroup.go index f77168afe12..ed4fec7509e 100644 --- a/radar/emailsecuritytimeseriesgroup.go +++ b/radar/emailsecuritytimeseriesgroup.go @@ -574,13 +574,13 @@ func (r EmailSecurityTimeseriesGroupARCParamsDMARC) IsKnown() bool { type EmailSecurityTimeseriesGroupARCParamsFormat string const ( - EmailSecurityTimeseriesGroupARCParamsFormatJson EmailSecurityTimeseriesGroupARCParamsFormat = "JSON" + EmailSecurityTimeseriesGroupARCParamsFormatJSON EmailSecurityTimeseriesGroupARCParamsFormat = "JSON" EmailSecurityTimeseriesGroupARCParamsFormatCsv EmailSecurityTimeseriesGroupARCParamsFormat = "CSV" ) func (r EmailSecurityTimeseriesGroupARCParamsFormat) IsKnown() bool { switch r { - case EmailSecurityTimeseriesGroupARCParamsFormatJson, EmailSecurityTimeseriesGroupARCParamsFormatCsv: + case EmailSecurityTimeseriesGroupARCParamsFormatJSON, EmailSecurityTimeseriesGroupARCParamsFormatCsv: return true } return false @@ -734,13 +734,13 @@ func (r EmailSecurityTimeseriesGroupDKIMParamsDMARC) IsKnown() bool { type EmailSecurityTimeseriesGroupDKIMParamsFormat string const ( - EmailSecurityTimeseriesGroupDKIMParamsFormatJson EmailSecurityTimeseriesGroupDKIMParamsFormat = "JSON" + EmailSecurityTimeseriesGroupDKIMParamsFormatJSON EmailSecurityTimeseriesGroupDKIMParamsFormat = "JSON" EmailSecurityTimeseriesGroupDKIMParamsFormatCsv EmailSecurityTimeseriesGroupDKIMParamsFormat = "CSV" ) func (r EmailSecurityTimeseriesGroupDKIMParamsFormat) IsKnown() bool { switch r { - case EmailSecurityTimeseriesGroupDKIMParamsFormatJson, EmailSecurityTimeseriesGroupDKIMParamsFormatCsv: + case EmailSecurityTimeseriesGroupDKIMParamsFormatJSON, EmailSecurityTimeseriesGroupDKIMParamsFormatCsv: return true } return false @@ -894,13 +894,13 @@ func (r EmailSecurityTimeseriesGroupDMARCParamsDKIM) IsKnown() bool { type EmailSecurityTimeseriesGroupDMARCParamsFormat string const ( - EmailSecurityTimeseriesGroupDMARCParamsFormatJson EmailSecurityTimeseriesGroupDMARCParamsFormat = "JSON" + EmailSecurityTimeseriesGroupDMARCParamsFormatJSON EmailSecurityTimeseriesGroupDMARCParamsFormat = "JSON" EmailSecurityTimeseriesGroupDMARCParamsFormatCsv EmailSecurityTimeseriesGroupDMARCParamsFormat = "CSV" ) func (r EmailSecurityTimeseriesGroupDMARCParamsFormat) IsKnown() bool { switch r { - case EmailSecurityTimeseriesGroupDMARCParamsFormatJson, EmailSecurityTimeseriesGroupDMARCParamsFormatCsv: + case EmailSecurityTimeseriesGroupDMARCParamsFormatJSON, EmailSecurityTimeseriesGroupDMARCParamsFormatCsv: return true } return false @@ -1072,13 +1072,13 @@ func (r EmailSecurityTimeseriesGroupMaliciousParamsDMARC) IsKnown() bool { type EmailSecurityTimeseriesGroupMaliciousParamsFormat string const ( - EmailSecurityTimeseriesGroupMaliciousParamsFormatJson EmailSecurityTimeseriesGroupMaliciousParamsFormat = "JSON" + EmailSecurityTimeseriesGroupMaliciousParamsFormatJSON EmailSecurityTimeseriesGroupMaliciousParamsFormat = "JSON" EmailSecurityTimeseriesGroupMaliciousParamsFormatCsv EmailSecurityTimeseriesGroupMaliciousParamsFormat = "CSV" ) func (r EmailSecurityTimeseriesGroupMaliciousParamsFormat) IsKnown() bool { switch r { - case EmailSecurityTimeseriesGroupMaliciousParamsFormatJson, EmailSecurityTimeseriesGroupMaliciousParamsFormatCsv: + case EmailSecurityTimeseriesGroupMaliciousParamsFormatJSON, EmailSecurityTimeseriesGroupMaliciousParamsFormatCsv: return true } return false @@ -1250,13 +1250,13 @@ func (r EmailSecurityTimeseriesGroupSpamParamsDMARC) IsKnown() bool { type EmailSecurityTimeseriesGroupSpamParamsFormat string const ( - EmailSecurityTimeseriesGroupSpamParamsFormatJson EmailSecurityTimeseriesGroupSpamParamsFormat = "JSON" + EmailSecurityTimeseriesGroupSpamParamsFormatJSON EmailSecurityTimeseriesGroupSpamParamsFormat = "JSON" EmailSecurityTimeseriesGroupSpamParamsFormatCsv EmailSecurityTimeseriesGroupSpamParamsFormat = "CSV" ) func (r EmailSecurityTimeseriesGroupSpamParamsFormat) IsKnown() bool { switch r { - case EmailSecurityTimeseriesGroupSpamParamsFormatJson, EmailSecurityTimeseriesGroupSpamParamsFormatCsv: + case EmailSecurityTimeseriesGroupSpamParamsFormatJSON, EmailSecurityTimeseriesGroupSpamParamsFormatCsv: return true } return false @@ -1426,13 +1426,13 @@ func (r EmailSecurityTimeseriesGroupSPFParamsDMARC) IsKnown() bool { type EmailSecurityTimeseriesGroupSPFParamsFormat string const ( - EmailSecurityTimeseriesGroupSPFParamsFormatJson EmailSecurityTimeseriesGroupSPFParamsFormat = "JSON" + EmailSecurityTimeseriesGroupSPFParamsFormatJSON EmailSecurityTimeseriesGroupSPFParamsFormat = "JSON" EmailSecurityTimeseriesGroupSPFParamsFormatCsv EmailSecurityTimeseriesGroupSPFParamsFormat = "CSV" ) func (r EmailSecurityTimeseriesGroupSPFParamsFormat) IsKnown() bool { switch r { - case EmailSecurityTimeseriesGroupSPFParamsFormatJson, EmailSecurityTimeseriesGroupSPFParamsFormatCsv: + case EmailSecurityTimeseriesGroupSPFParamsFormatJSON, EmailSecurityTimeseriesGroupSPFParamsFormatCsv: return true } return false @@ -1588,13 +1588,13 @@ func (r EmailSecurityTimeseriesGroupSpoofParamsDMARC) IsKnown() bool { type EmailSecurityTimeseriesGroupSpoofParamsFormat string const ( - EmailSecurityTimeseriesGroupSpoofParamsFormatJson EmailSecurityTimeseriesGroupSpoofParamsFormat = "JSON" + EmailSecurityTimeseriesGroupSpoofParamsFormatJSON EmailSecurityTimeseriesGroupSpoofParamsFormat = "JSON" EmailSecurityTimeseriesGroupSpoofParamsFormatCsv EmailSecurityTimeseriesGroupSpoofParamsFormat = "CSV" ) func (r EmailSecurityTimeseriesGroupSpoofParamsFormat) IsKnown() bool { switch r { - case EmailSecurityTimeseriesGroupSpoofParamsFormatJson, EmailSecurityTimeseriesGroupSpoofParamsFormatCsv: + case EmailSecurityTimeseriesGroupSpoofParamsFormatJSON, EmailSecurityTimeseriesGroupSpoofParamsFormatCsv: return true } return false @@ -1766,13 +1766,13 @@ func (r EmailSecurityTimeseriesGroupThreatCategoryParamsDMARC) IsKnown() bool { type EmailSecurityTimeseriesGroupThreatCategoryParamsFormat string const ( - EmailSecurityTimeseriesGroupThreatCategoryParamsFormatJson EmailSecurityTimeseriesGroupThreatCategoryParamsFormat = "JSON" + EmailSecurityTimeseriesGroupThreatCategoryParamsFormatJSON EmailSecurityTimeseriesGroupThreatCategoryParamsFormat = "JSON" EmailSecurityTimeseriesGroupThreatCategoryParamsFormatCsv EmailSecurityTimeseriesGroupThreatCategoryParamsFormat = "CSV" ) func (r EmailSecurityTimeseriesGroupThreatCategoryParamsFormat) IsKnown() bool { switch r { - case EmailSecurityTimeseriesGroupThreatCategoryParamsFormatJson, EmailSecurityTimeseriesGroupThreatCategoryParamsFormatCsv: + case EmailSecurityTimeseriesGroupThreatCategoryParamsFormatJSON, EmailSecurityTimeseriesGroupThreatCategoryParamsFormatCsv: return true } return false @@ -1943,13 +1943,13 @@ func (r EmailSecurityTimeseriesGroupTLSVersionParamsDMARC) IsKnown() bool { type EmailSecurityTimeseriesGroupTLSVersionParamsFormat string const ( - EmailSecurityTimeseriesGroupTLSVersionParamsFormatJson EmailSecurityTimeseriesGroupTLSVersionParamsFormat = "JSON" + EmailSecurityTimeseriesGroupTLSVersionParamsFormatJSON EmailSecurityTimeseriesGroupTLSVersionParamsFormat = "JSON" EmailSecurityTimeseriesGroupTLSVersionParamsFormatCsv EmailSecurityTimeseriesGroupTLSVersionParamsFormat = "CSV" ) func (r EmailSecurityTimeseriesGroupTLSVersionParamsFormat) IsKnown() bool { switch r { - case EmailSecurityTimeseriesGroupTLSVersionParamsFormatJson, EmailSecurityTimeseriesGroupTLSVersionParamsFormatCsv: + case EmailSecurityTimeseriesGroupTLSVersionParamsFormatJSON, EmailSecurityTimeseriesGroupTLSVersionParamsFormatCsv: return true } return false diff --git a/radar/emailsecuritytimeseriesgroup_test.go b/radar/emailsecuritytimeseriesgroup_test.go index bf952368bcc..9b7807c3936 100644 --- a/radar/emailsecuritytimeseriesgroup_test.go +++ b/radar/emailsecuritytimeseriesgroup_test.go @@ -35,7 +35,7 @@ func TestEmailSecurityTimeseriesGroupARCWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecurityTimeseriesGroupARCParamsDKIM{radar.EmailSecurityTimeseriesGroupARCParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecurityTimeseriesGroupARCParamsDMARC{radar.EmailSecurityTimeseriesGroupARCParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupARCParamsFormatJson), + Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupARCParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecurityTimeseriesGroupARCParamsSPF{radar.EmailSecurityTimeseriesGroupARCParamsSPFPass}), TLSVersion: cloudflare.F([]radar.EmailSecurityTimeseriesGroupARCParamsTLSVersion{radar.EmailSecurityTimeseriesGroupARCParamsTLSVersionTlSv1_0}), @@ -69,7 +69,7 @@ func TestEmailSecurityTimeseriesGroupDKIMWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DMARC: cloudflare.F([]radar.EmailSecurityTimeseriesGroupDKIMParamsDMARC{radar.EmailSecurityTimeseriesGroupDKIMParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupDKIMParamsFormatJson), + Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupDKIMParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecurityTimeseriesGroupDKIMParamsSPF{radar.EmailSecurityTimeseriesGroupDKIMParamsSPFPass}), TLSVersion: cloudflare.F([]radar.EmailSecurityTimeseriesGroupDKIMParamsTLSVersion{radar.EmailSecurityTimeseriesGroupDKIMParamsTLSVersionTlSv1_0}), @@ -103,7 +103,7 @@ func TestEmailSecurityTimeseriesGroupDMARCWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecurityTimeseriesGroupDMARCParamsDKIM{radar.EmailSecurityTimeseriesGroupDMARCParamsDKIMPass}), - Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupDMARCParamsFormatJson), + Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupDMARCParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecurityTimeseriesGroupDMARCParamsSPF{radar.EmailSecurityTimeseriesGroupDMARCParamsSPFPass}), TLSVersion: cloudflare.F([]radar.EmailSecurityTimeseriesGroupDMARCParamsTLSVersion{radar.EmailSecurityTimeseriesGroupDMARCParamsTLSVersionTlSv1_0}), @@ -138,7 +138,7 @@ func TestEmailSecurityTimeseriesGroupMaliciousWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecurityTimeseriesGroupMaliciousParamsDKIM{radar.EmailSecurityTimeseriesGroupMaliciousParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecurityTimeseriesGroupMaliciousParamsDMARC{radar.EmailSecurityTimeseriesGroupMaliciousParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupMaliciousParamsFormatJson), + Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupMaliciousParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecurityTimeseriesGroupMaliciousParamsSPF{radar.EmailSecurityTimeseriesGroupMaliciousParamsSPFPass}), TLSVersion: cloudflare.F([]radar.EmailSecurityTimeseriesGroupMaliciousParamsTLSVersion{radar.EmailSecurityTimeseriesGroupMaliciousParamsTLSVersionTlSv1_0}), @@ -173,7 +173,7 @@ func TestEmailSecurityTimeseriesGroupSpamWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecurityTimeseriesGroupSpamParamsDKIM{radar.EmailSecurityTimeseriesGroupSpamParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecurityTimeseriesGroupSpamParamsDMARC{radar.EmailSecurityTimeseriesGroupSpamParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupSpamParamsFormatJson), + Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupSpamParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecurityTimeseriesGroupSpamParamsSPF{radar.EmailSecurityTimeseriesGroupSpamParamsSPFPass}), TLSVersion: cloudflare.F([]radar.EmailSecurityTimeseriesGroupSpamParamsTLSVersion{radar.EmailSecurityTimeseriesGroupSpamParamsTLSVersionTlSv1_0}), @@ -208,7 +208,7 @@ func TestEmailSecurityTimeseriesGroupSPFWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecurityTimeseriesGroupSPFParamsDKIM{radar.EmailSecurityTimeseriesGroupSPFParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecurityTimeseriesGroupSPFParamsDMARC{radar.EmailSecurityTimeseriesGroupSPFParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupSPFParamsFormatJson), + Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupSPFParamsFormatJSON), Name: cloudflare.F([]string{"string"}), TLSVersion: cloudflare.F([]radar.EmailSecurityTimeseriesGroupSPFParamsTLSVersion{radar.EmailSecurityTimeseriesGroupSPFParamsTLSVersionTlSv1_0}), }) @@ -242,7 +242,7 @@ func TestEmailSecurityTimeseriesGroupSpoofWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecurityTimeseriesGroupSpoofParamsDKIM{radar.EmailSecurityTimeseriesGroupSpoofParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecurityTimeseriesGroupSpoofParamsDMARC{radar.EmailSecurityTimeseriesGroupSpoofParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupSpoofParamsFormatJson), + Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupSpoofParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecurityTimeseriesGroupSpoofParamsSPF{radar.EmailSecurityTimeseriesGroupSpoofParamsSPFPass}), TLSVersion: cloudflare.F([]radar.EmailSecurityTimeseriesGroupSpoofParamsTLSVersion{radar.EmailSecurityTimeseriesGroupSpoofParamsTLSVersionTlSv1_0}), @@ -277,7 +277,7 @@ func TestEmailSecurityTimeseriesGroupThreatCategoryWithOptionalParams(t *testing DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecurityTimeseriesGroupThreatCategoryParamsDKIM{radar.EmailSecurityTimeseriesGroupThreatCategoryParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecurityTimeseriesGroupThreatCategoryParamsDMARC{radar.EmailSecurityTimeseriesGroupThreatCategoryParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupThreatCategoryParamsFormatJson), + Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupThreatCategoryParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecurityTimeseriesGroupThreatCategoryParamsSPF{radar.EmailSecurityTimeseriesGroupThreatCategoryParamsSPFPass}), TLSVersion: cloudflare.F([]radar.EmailSecurityTimeseriesGroupThreatCategoryParamsTLSVersion{radar.EmailSecurityTimeseriesGroupThreatCategoryParamsTLSVersionTlSv1_0}), @@ -312,7 +312,7 @@ func TestEmailSecurityTimeseriesGroupTLSVersionWithOptionalParams(t *testing.T) DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecurityTimeseriesGroupTLSVersionParamsDKIM{radar.EmailSecurityTimeseriesGroupTLSVersionParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecurityTimeseriesGroupTLSVersionParamsDMARC{radar.EmailSecurityTimeseriesGroupTLSVersionParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupTLSVersionParamsFormatJson), + Format: cloudflare.F(radar.EmailSecurityTimeseriesGroupTLSVersionParamsFormatJSON), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecurityTimeseriesGroupTLSVersionParamsSPF{radar.EmailSecurityTimeseriesGroupTLSVersionParamsSPFPass}), }) diff --git a/radar/emailsecuritytoptld.go b/radar/emailsecuritytoptld.go index b2c98438d4e..bb8e6ca34d0 100644 --- a/radar/emailsecuritytoptld.go +++ b/radar/emailsecuritytoptld.go @@ -297,13 +297,13 @@ func (r EmailSecurityTopTldGetParamsDMARC) IsKnown() bool { type EmailSecurityTopTldGetParamsFormat string const ( - EmailSecurityTopTldGetParamsFormatJson EmailSecurityTopTldGetParamsFormat = "JSON" + EmailSecurityTopTldGetParamsFormatJSON EmailSecurityTopTldGetParamsFormat = "JSON" EmailSecurityTopTldGetParamsFormatCsv EmailSecurityTopTldGetParamsFormat = "CSV" ) func (r EmailSecurityTopTldGetParamsFormat) IsKnown() bool { switch r { - case EmailSecurityTopTldGetParamsFormatJson, EmailSecurityTopTldGetParamsFormatCsv: + case EmailSecurityTopTldGetParamsFormatJSON, EmailSecurityTopTldGetParamsFormatCsv: return true } return false diff --git a/radar/emailsecuritytoptld_test.go b/radar/emailsecuritytoptld_test.go index aac1f926d0a..a35b7b68a11 100644 --- a/radar/emailsecuritytoptld_test.go +++ b/radar/emailsecuritytoptld_test.go @@ -35,7 +35,7 @@ func TestEmailSecurityTopTldGetWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecurityTopTldGetParamsDKIM{radar.EmailSecurityTopTldGetParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecurityTopTldGetParamsDMARC{radar.EmailSecurityTopTldGetParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecurityTopTldGetParamsFormatJson), + Format: cloudflare.F(radar.EmailSecurityTopTldGetParamsFormatJSON), Limit: cloudflare.F(int64(5)), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecurityTopTldGetParamsSPF{radar.EmailSecurityTopTldGetParamsSPFPass}), diff --git a/radar/emailsecuritytoptldmalicious.go b/radar/emailsecuritytoptldmalicious.go index 6866c1c792e..82d02fe1e02 100644 --- a/radar/emailsecuritytoptldmalicious.go +++ b/radar/emailsecuritytoptldmalicious.go @@ -308,13 +308,13 @@ func (r EmailSecurityTopTldMaliciousGetParamsDMARC) IsKnown() bool { type EmailSecurityTopTldMaliciousGetParamsFormat string const ( - EmailSecurityTopTldMaliciousGetParamsFormatJson EmailSecurityTopTldMaliciousGetParamsFormat = "JSON" + EmailSecurityTopTldMaliciousGetParamsFormatJSON EmailSecurityTopTldMaliciousGetParamsFormat = "JSON" EmailSecurityTopTldMaliciousGetParamsFormatCsv EmailSecurityTopTldMaliciousGetParamsFormat = "CSV" ) func (r EmailSecurityTopTldMaliciousGetParamsFormat) IsKnown() bool { switch r { - case EmailSecurityTopTldMaliciousGetParamsFormatJson, EmailSecurityTopTldMaliciousGetParamsFormatCsv: + case EmailSecurityTopTldMaliciousGetParamsFormatJSON, EmailSecurityTopTldMaliciousGetParamsFormatCsv: return true } return false diff --git a/radar/emailsecuritytoptldmalicious_test.go b/radar/emailsecuritytoptldmalicious_test.go index 40df2b3b2b0..609d193ca62 100644 --- a/radar/emailsecuritytoptldmalicious_test.go +++ b/radar/emailsecuritytoptldmalicious_test.go @@ -38,7 +38,7 @@ func TestEmailSecurityTopTldMaliciousGetWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecurityTopTldMaliciousGetParamsDKIM{radar.EmailSecurityTopTldMaliciousGetParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecurityTopTldMaliciousGetParamsDMARC{radar.EmailSecurityTopTldMaliciousGetParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecurityTopTldMaliciousGetParamsFormatJson), + Format: cloudflare.F(radar.EmailSecurityTopTldMaliciousGetParamsFormatJSON), Limit: cloudflare.F(int64(5)), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecurityTopTldMaliciousGetParamsSPF{radar.EmailSecurityTopTldMaliciousGetParamsSPFPass}), diff --git a/radar/emailsecuritytoptldspam.go b/radar/emailsecuritytoptldspam.go index 956e03cbe76..de85374b4a5 100644 --- a/radar/emailsecuritytoptldspam.go +++ b/radar/emailsecuritytoptldspam.go @@ -307,13 +307,13 @@ func (r EmailSecurityTopTldSpamGetParamsDMARC) IsKnown() bool { type EmailSecurityTopTldSpamGetParamsFormat string const ( - EmailSecurityTopTldSpamGetParamsFormatJson EmailSecurityTopTldSpamGetParamsFormat = "JSON" + EmailSecurityTopTldSpamGetParamsFormatJSON EmailSecurityTopTldSpamGetParamsFormat = "JSON" EmailSecurityTopTldSpamGetParamsFormatCsv EmailSecurityTopTldSpamGetParamsFormat = "CSV" ) func (r EmailSecurityTopTldSpamGetParamsFormat) IsKnown() bool { switch r { - case EmailSecurityTopTldSpamGetParamsFormatJson, EmailSecurityTopTldSpamGetParamsFormatCsv: + case EmailSecurityTopTldSpamGetParamsFormatJSON, EmailSecurityTopTldSpamGetParamsFormatCsv: return true } return false diff --git a/radar/emailsecuritytoptldspam_test.go b/radar/emailsecuritytoptldspam_test.go index 064bbe41d60..a91861e64b9 100644 --- a/radar/emailsecuritytoptldspam_test.go +++ b/radar/emailsecuritytoptldspam_test.go @@ -38,7 +38,7 @@ func TestEmailSecurityTopTldSpamGetWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecurityTopTldSpamGetParamsDKIM{radar.EmailSecurityTopTldSpamGetParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecurityTopTldSpamGetParamsDMARC{radar.EmailSecurityTopTldSpamGetParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecurityTopTldSpamGetParamsFormatJson), + Format: cloudflare.F(radar.EmailSecurityTopTldSpamGetParamsFormatJSON), Limit: cloudflare.F(int64(5)), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecurityTopTldSpamGetParamsSPF{radar.EmailSecurityTopTldSpamGetParamsSPFPass}), diff --git a/radar/emailsecuritytoptldspoof.go b/radar/emailsecuritytoptldspoof.go index 5b89c432d78..f7bce71981b 100644 --- a/radar/emailsecuritytoptldspoof.go +++ b/radar/emailsecuritytoptldspoof.go @@ -307,13 +307,13 @@ func (r EmailSecurityTopTldSpoofGetParamsDMARC) IsKnown() bool { type EmailSecurityTopTldSpoofGetParamsFormat string const ( - EmailSecurityTopTldSpoofGetParamsFormatJson EmailSecurityTopTldSpoofGetParamsFormat = "JSON" + EmailSecurityTopTldSpoofGetParamsFormatJSON EmailSecurityTopTldSpoofGetParamsFormat = "JSON" EmailSecurityTopTldSpoofGetParamsFormatCsv EmailSecurityTopTldSpoofGetParamsFormat = "CSV" ) func (r EmailSecurityTopTldSpoofGetParamsFormat) IsKnown() bool { switch r { - case EmailSecurityTopTldSpoofGetParamsFormatJson, EmailSecurityTopTldSpoofGetParamsFormatCsv: + case EmailSecurityTopTldSpoofGetParamsFormatJSON, EmailSecurityTopTldSpoofGetParamsFormatCsv: return true } return false diff --git a/radar/emailsecuritytoptldspoof_test.go b/radar/emailsecuritytoptldspoof_test.go index 13b68731aac..de654ce07ec 100644 --- a/radar/emailsecuritytoptldspoof_test.go +++ b/radar/emailsecuritytoptldspoof_test.go @@ -38,7 +38,7 @@ func TestEmailSecurityTopTldSpoofGetWithOptionalParams(t *testing.T) { DateStart: cloudflare.F([]time.Time{time.Now()}), DKIM: cloudflare.F([]radar.EmailSecurityTopTldSpoofGetParamsDKIM{radar.EmailSecurityTopTldSpoofGetParamsDKIMPass}), DMARC: cloudflare.F([]radar.EmailSecurityTopTldSpoofGetParamsDMARC{radar.EmailSecurityTopTldSpoofGetParamsDMARCPass}), - Format: cloudflare.F(radar.EmailSecurityTopTldSpoofGetParamsFormatJson), + Format: cloudflare.F(radar.EmailSecurityTopTldSpoofGetParamsFormatJSON), Limit: cloudflare.F(int64(5)), Name: cloudflare.F([]string{"string"}), SPF: cloudflare.F([]radar.EmailSecurityTopTldSpoofGetParamsSPF{radar.EmailSecurityTopTldSpoofGetParamsSPFPass}), diff --git a/radar/entity.go b/radar/entity.go index 2e44b4c2df2..d7e13521116 100644 --- a/radar/entity.go +++ b/radar/entity.go @@ -125,13 +125,13 @@ func (r EntityGetParams) URLQuery() (v url.Values) { type EntityGetParamsFormat string const ( - EntityGetParamsFormatJson EntityGetParamsFormat = "JSON" + EntityGetParamsFormatJSON EntityGetParamsFormat = "JSON" EntityGetParamsFormatCsv EntityGetParamsFormat = "CSV" ) func (r EntityGetParamsFormat) IsKnown() bool { switch r { - case EntityGetParamsFormatJson, EntityGetParamsFormatCsv: + case EntityGetParamsFormatJSON, EntityGetParamsFormatCsv: return true } return false diff --git a/radar/entity_test.go b/radar/entity_test.go index b2d6f388f51..c58dc231156 100644 --- a/radar/entity_test.go +++ b/radar/entity_test.go @@ -29,7 +29,7 @@ func TestEntityGetWithOptionalParams(t *testing.T) { ) _, err := client.Radar.Entities.Get(context.TODO(), radar.EntityGetParams{ IP: cloudflare.F("8.8.8.8"), - Format: cloudflare.F(radar.EntityGetParamsFormatJson), + Format: cloudflare.F(radar.EntityGetParamsFormatJSON), }) if err != nil { var apierr *cloudflare.Error diff --git a/radar/entityasn.go b/radar/entityasn.go index 2207e13adf8..b159609f05a 100644 --- a/radar/entityasn.go +++ b/radar/entityasn.go @@ -541,13 +541,13 @@ func (r EntityASNListParams) URLQuery() (v url.Values) { type EntityASNListParamsFormat string const ( - EntityASNListParamsFormatJson EntityASNListParamsFormat = "JSON" + EntityASNListParamsFormatJSON EntityASNListParamsFormat = "JSON" EntityASNListParamsFormatCsv EntityASNListParamsFormat = "CSV" ) func (r EntityASNListParamsFormat) IsKnown() bool { switch r { - case EntityASNListParamsFormatJson, EntityASNListParamsFormatCsv: + case EntityASNListParamsFormatJSON, EntityASNListParamsFormatCsv: return true } return false @@ -609,13 +609,13 @@ func (r EntityASNGetParams) URLQuery() (v url.Values) { type EntityASNGetParamsFormat string const ( - EntityASNGetParamsFormatJson EntityASNGetParamsFormat = "JSON" + EntityASNGetParamsFormatJSON EntityASNGetParamsFormat = "JSON" EntityASNGetParamsFormatCsv EntityASNGetParamsFormat = "CSV" ) func (r EntityASNGetParamsFormat) IsKnown() bool { switch r { - case EntityASNGetParamsFormatJson, EntityASNGetParamsFormatCsv: + case EntityASNGetParamsFormatJSON, EntityASNGetParamsFormatCsv: return true } return false @@ -663,13 +663,13 @@ func (r EntityASNIPParams) URLQuery() (v url.Values) { type EntityAsnipParamsFormat string const ( - EntityAsnipParamsFormatJson EntityAsnipParamsFormat = "JSON" + EntityAsnipParamsFormatJSON EntityAsnipParamsFormat = "JSON" EntityAsnipParamsFormatCsv EntityAsnipParamsFormat = "CSV" ) func (r EntityAsnipParamsFormat) IsKnown() bool { switch r { - case EntityAsnipParamsFormatJson, EntityAsnipParamsFormatCsv: + case EntityAsnipParamsFormatJSON, EntityAsnipParamsFormatCsv: return true } return false @@ -717,13 +717,13 @@ func (r EntityASNRelParams) URLQuery() (v url.Values) { type EntityASNRelParamsFormat string const ( - EntityASNRelParamsFormatJson EntityASNRelParamsFormat = "JSON" + EntityASNRelParamsFormatJSON EntityASNRelParamsFormat = "JSON" EntityASNRelParamsFormatCsv EntityASNRelParamsFormat = "CSV" ) func (r EntityASNRelParamsFormat) IsKnown() bool { switch r { - case EntityASNRelParamsFormatJson, EntityASNRelParamsFormatCsv: + case EntityASNRelParamsFormatJSON, EntityASNRelParamsFormatCsv: return true } return false diff --git a/radar/entityasn_test.go b/radar/entityasn_test.go index 1a356dea2b6..2b90103a3c8 100644 --- a/radar/entityasn_test.go +++ b/radar/entityasn_test.go @@ -29,7 +29,7 @@ func TestEntityASNListWithOptionalParams(t *testing.T) { ) _, err := client.Radar.Entities.ASNs.List(context.TODO(), radar.EntityASNListParams{ ASN: cloudflare.F("174,7922"), - Format: cloudflare.F(radar.EntityASNListParamsFormatJson), + Format: cloudflare.F(radar.EntityASNListParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F("US"), Offset: cloudflare.F(int64(0)), @@ -61,7 +61,7 @@ func TestEntityASNGetWithOptionalParams(t *testing.T) { context.TODO(), int64(3), radar.EntityASNGetParams{ - Format: cloudflare.F(radar.EntityASNGetParamsFormatJson), + Format: cloudflare.F(radar.EntityASNGetParamsFormatJSON), }, ) if err != nil { @@ -88,7 +88,7 @@ func TestEntityASNIPWithOptionalParams(t *testing.T) { ) _, err := client.Radar.Entities.ASNs.IP(context.TODO(), radar.EntityASNIPParams{ IP: cloudflare.F("8.8.8.8"), - Format: cloudflare.F(radar.EntityAsnipParamsFormatJson), + Format: cloudflare.F(radar.EntityAsnipParamsFormatJSON), }) if err != nil { var apierr *cloudflare.Error @@ -117,7 +117,7 @@ func TestEntityASNRelWithOptionalParams(t *testing.T) { int64(3), radar.EntityASNRelParams{ Asn2: cloudflare.F(int64(0)), - Format: cloudflare.F(radar.EntityASNRelParamsFormatJson), + Format: cloudflare.F(radar.EntityASNRelParamsFormatJSON), }, ) if err != nil { diff --git a/radar/entitylocation.go b/radar/entitylocation.go index e4ac5bed41b..9d71facd604 100644 --- a/radar/entitylocation.go +++ b/radar/entitylocation.go @@ -193,13 +193,13 @@ func (r EntityLocationListParams) URLQuery() (v url.Values) { type EntityLocationListParamsFormat string const ( - EntityLocationListParamsFormatJson EntityLocationListParamsFormat = "JSON" + EntityLocationListParamsFormatJSON EntityLocationListParamsFormat = "JSON" EntityLocationListParamsFormatCsv EntityLocationListParamsFormat = "CSV" ) func (r EntityLocationListParamsFormat) IsKnown() bool { switch r { - case EntityLocationListParamsFormatJson, EntityLocationListParamsFormatCsv: + case EntityLocationListParamsFormatJSON, EntityLocationListParamsFormatCsv: return true } return false @@ -246,13 +246,13 @@ func (r EntityLocationGetParams) URLQuery() (v url.Values) { type EntityLocationGetParamsFormat string const ( - EntityLocationGetParamsFormatJson EntityLocationGetParamsFormat = "JSON" + EntityLocationGetParamsFormatJSON EntityLocationGetParamsFormat = "JSON" EntityLocationGetParamsFormatCsv EntityLocationGetParamsFormat = "CSV" ) func (r EntityLocationGetParamsFormat) IsKnown() bool { switch r { - case EntityLocationGetParamsFormatJson, EntityLocationGetParamsFormatCsv: + case EntityLocationGetParamsFormatJSON, EntityLocationGetParamsFormatCsv: return true } return false diff --git a/radar/entitylocation_test.go b/radar/entitylocation_test.go index 03e733a5e69..32a5c5508a8 100644 --- a/radar/entitylocation_test.go +++ b/radar/entitylocation_test.go @@ -28,7 +28,7 @@ func TestEntityLocationListWithOptionalParams(t *testing.T) { option.WithAPIEmail("user@example.com"), ) _, err := client.Radar.Entities.Locations.List(context.TODO(), radar.EntityLocationListParams{ - Format: cloudflare.F(radar.EntityLocationListParamsFormatJson), + Format: cloudflare.F(radar.EntityLocationListParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F("US,CA"), Offset: cloudflare.F(int64(0)), @@ -59,7 +59,7 @@ func TestEntityLocationGetWithOptionalParams(t *testing.T) { context.TODO(), "US", radar.EntityLocationGetParams{ - Format: cloudflare.F(radar.EntityLocationGetParamsFormatJson), + Format: cloudflare.F(radar.EntityLocationGetParamsFormatJSON), }, ) if err != nil { diff --git a/radar/http.go b/radar/http.go index 19dc7516559..e34233f5107 100644 --- a/radar/http.go +++ b/radar/http.go @@ -323,13 +323,13 @@ func (r HTTPTimeseriesParamsDeviceType) IsKnown() bool { type HTTPTimeseriesParamsFormat string const ( - HTTPTimeseriesParamsFormatJson HTTPTimeseriesParamsFormat = "JSON" + HTTPTimeseriesParamsFormatJSON HTTPTimeseriesParamsFormat = "JSON" HTTPTimeseriesParamsFormatCsv HTTPTimeseriesParamsFormat = "CSV" ) func (r HTTPTimeseriesParamsFormat) IsKnown() bool { switch r { - case HTTPTimeseriesParamsFormatJson, HTTPTimeseriesParamsFormatCsv: + case HTTPTimeseriesParamsFormatJSON, HTTPTimeseriesParamsFormatCsv: return true } return false diff --git a/radar/http_test.go b/radar/http_test.go index f22f770321d..007980072a2 100644 --- a/radar/http_test.go +++ b/radar/http_test.go @@ -37,7 +37,7 @@ func TestHTTPTimeseriesWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPTimeseriesParamsDeviceType{radar.HTTPTimeseriesParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPTimeseriesParamsFormatJson), + Format: cloudflare.F(radar.HTTPTimeseriesParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPTimeseriesParamsHTTPProtocol{radar.HTTPTimeseriesParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPTimeseriesParamsHTTPVersion{radar.HTTPTimeseriesParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPTimeseriesParamsIPVersion{radar.HTTPTimeseriesParamsIPVersionIPv4}), diff --git a/radar/httpase.go b/radar/httpase.go index a45632b6c5a..568ae6c8dc1 100644 --- a/radar/httpase.go +++ b/radar/httpase.go @@ -324,13 +324,13 @@ func (r HTTPAseGetParamsDeviceType) IsKnown() bool { type HTTPAseGetParamsFormat string const ( - HTTPAseGetParamsFormatJson HTTPAseGetParamsFormat = "JSON" + HTTPAseGetParamsFormatJSON HTTPAseGetParamsFormat = "JSON" HTTPAseGetParamsFormatCsv HTTPAseGetParamsFormat = "CSV" ) func (r HTTPAseGetParamsFormat) IsKnown() bool { switch r { - case HTTPAseGetParamsFormatJson, HTTPAseGetParamsFormatCsv: + case HTTPAseGetParamsFormatJSON, HTTPAseGetParamsFormatCsv: return true } return false diff --git a/radar/httpase_test.go b/radar/httpase_test.go index 92f09b34f02..d1f1266bc49 100644 --- a/radar/httpase_test.go +++ b/radar/httpase_test.go @@ -37,7 +37,7 @@ func TestHTTPAseGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPAseGetParamsDeviceType{radar.HTTPAseGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPAseGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPAseGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPAseGetParamsHTTPProtocol{radar.HTTPAseGetParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPAseGetParamsHTTPVersion{radar.HTTPAseGetParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPAseGetParamsIPVersion{radar.HTTPAseGetParamsIPVersionIPv4}), diff --git a/radar/httpasebotclass.go b/radar/httpasebotclass.go index 087e2c0d17d..cf2f2234d0a 100644 --- a/radar/httpasebotclass.go +++ b/radar/httpasebotclass.go @@ -310,13 +310,13 @@ func (r HTTPAseBotClassGetParamsDeviceType) IsKnown() bool { type HTTPAseBotClassGetParamsFormat string const ( - HTTPAseBotClassGetParamsFormatJson HTTPAseBotClassGetParamsFormat = "JSON" + HTTPAseBotClassGetParamsFormatJSON HTTPAseBotClassGetParamsFormat = "JSON" HTTPAseBotClassGetParamsFormatCsv HTTPAseBotClassGetParamsFormat = "CSV" ) func (r HTTPAseBotClassGetParamsFormat) IsKnown() bool { switch r { - case HTTPAseBotClassGetParamsFormatJson, HTTPAseBotClassGetParamsFormatCsv: + case HTTPAseBotClassGetParamsFormatJSON, HTTPAseBotClassGetParamsFormatCsv: return true } return false diff --git a/radar/httpasebotclass_test.go b/radar/httpasebotclass_test.go index 06582eb20a1..37eadc823ef 100644 --- a/radar/httpasebotclass_test.go +++ b/radar/httpasebotclass_test.go @@ -39,7 +39,7 @@ func TestHTTPAseBotClassGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPAseBotClassGetParamsDeviceType{radar.HTTPAseBotClassGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPAseBotClassGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPAseBotClassGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPAseBotClassGetParamsHTTPProtocol{radar.HTTPAseBotClassGetParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPAseBotClassGetParamsHTTPVersion{radar.HTTPAseBotClassGetParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPAseBotClassGetParamsIPVersion{radar.HTTPAseBotClassGetParamsIPVersionIPv4}), diff --git a/radar/httpasebrowserfamily.go b/radar/httpasebrowserfamily.go index dfda5858b97..5b6d5c903b6 100644 --- a/radar/httpasebrowserfamily.go +++ b/radar/httpasebrowserfamily.go @@ -310,13 +310,13 @@ func (r HTTPAseBrowserFamilyGetParamsDeviceType) IsKnown() bool { type HTTPAseBrowserFamilyGetParamsFormat string const ( - HTTPAseBrowserFamilyGetParamsFormatJson HTTPAseBrowserFamilyGetParamsFormat = "JSON" + HTTPAseBrowserFamilyGetParamsFormatJSON HTTPAseBrowserFamilyGetParamsFormat = "JSON" HTTPAseBrowserFamilyGetParamsFormatCsv HTTPAseBrowserFamilyGetParamsFormat = "CSV" ) func (r HTTPAseBrowserFamilyGetParamsFormat) IsKnown() bool { switch r { - case HTTPAseBrowserFamilyGetParamsFormatJson, HTTPAseBrowserFamilyGetParamsFormatCsv: + case HTTPAseBrowserFamilyGetParamsFormatJSON, HTTPAseBrowserFamilyGetParamsFormatCsv: return true } return false diff --git a/radar/httpasebrowserfamily_test.go b/radar/httpasebrowserfamily_test.go index b142b12f24e..6ae9182af90 100644 --- a/radar/httpasebrowserfamily_test.go +++ b/radar/httpasebrowserfamily_test.go @@ -39,7 +39,7 @@ func TestHTTPAseBrowserFamilyGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPAseBrowserFamilyGetParamsDeviceType{radar.HTTPAseBrowserFamilyGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPAseBrowserFamilyGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPAseBrowserFamilyGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPAseBrowserFamilyGetParamsHTTPProtocol{radar.HTTPAseBrowserFamilyGetParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPAseBrowserFamilyGetParamsHTTPVersion{radar.HTTPAseBrowserFamilyGetParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPAseBrowserFamilyGetParamsIPVersion{radar.HTTPAseBrowserFamilyGetParamsIPVersionIPv4}), diff --git a/radar/httpasedevicetype.go b/radar/httpasedevicetype.go index d09408301e2..5b266d9d6aa 100644 --- a/radar/httpasedevicetype.go +++ b/radar/httpasedevicetype.go @@ -310,13 +310,13 @@ func (r HTTPAseDeviceTypeGetParamsBrowserFamily) IsKnown() bool { type HTTPAseDeviceTypeGetParamsFormat string const ( - HTTPAseDeviceTypeGetParamsFormatJson HTTPAseDeviceTypeGetParamsFormat = "JSON" + HTTPAseDeviceTypeGetParamsFormatJSON HTTPAseDeviceTypeGetParamsFormat = "JSON" HTTPAseDeviceTypeGetParamsFormatCsv HTTPAseDeviceTypeGetParamsFormat = "CSV" ) func (r HTTPAseDeviceTypeGetParamsFormat) IsKnown() bool { switch r { - case HTTPAseDeviceTypeGetParamsFormatJson, HTTPAseDeviceTypeGetParamsFormatCsv: + case HTTPAseDeviceTypeGetParamsFormatJSON, HTTPAseDeviceTypeGetParamsFormatCsv: return true } return false diff --git a/radar/httpasedevicetype_test.go b/radar/httpasedevicetype_test.go index 2b4a7822f08..658804c2ea9 100644 --- a/radar/httpasedevicetype_test.go +++ b/radar/httpasedevicetype_test.go @@ -39,7 +39,7 @@ func TestHTTPAseDeviceTypeGetWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.HTTPAseDeviceTypeGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPAseDeviceTypeGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPAseDeviceTypeGetParamsHTTPProtocol{radar.HTTPAseDeviceTypeGetParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPAseDeviceTypeGetParamsHTTPVersion{radar.HTTPAseDeviceTypeGetParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPAseDeviceTypeGetParamsIPVersion{radar.HTTPAseDeviceTypeGetParamsIPVersionIPv4}), diff --git a/radar/httpasehttpmethod.go b/radar/httpasehttpmethod.go index 14433e76138..a894f8f38a3 100644 --- a/radar/httpasehttpmethod.go +++ b/radar/httpasehttpmethod.go @@ -326,13 +326,13 @@ func (r HTTPAseHTTPMethodGetParamsDeviceType) IsKnown() bool { type HTTPAseHTTPMethodGetParamsFormat string const ( - HTTPAseHTTPMethodGetParamsFormatJson HTTPAseHTTPMethodGetParamsFormat = "JSON" + HTTPAseHTTPMethodGetParamsFormatJSON HTTPAseHTTPMethodGetParamsFormat = "JSON" HTTPAseHTTPMethodGetParamsFormatCsv HTTPAseHTTPMethodGetParamsFormat = "CSV" ) func (r HTTPAseHTTPMethodGetParamsFormat) IsKnown() bool { switch r { - case HTTPAseHTTPMethodGetParamsFormatJson, HTTPAseHTTPMethodGetParamsFormatCsv: + case HTTPAseHTTPMethodGetParamsFormatJSON, HTTPAseHTTPMethodGetParamsFormatCsv: return true } return false diff --git a/radar/httpasehttpmethod_test.go b/radar/httpasehttpmethod_test.go index bdd28b85022..e9edf970448 100644 --- a/radar/httpasehttpmethod_test.go +++ b/radar/httpasehttpmethod_test.go @@ -40,7 +40,7 @@ func TestHTTPAseHTTPMethodGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPAseHTTPMethodGetParamsDeviceType{radar.HTTPAseHTTPMethodGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPAseHTTPMethodGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPAseHTTPMethodGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPAseHTTPMethodGetParamsHTTPProtocol{radar.HTTPAseHTTPMethodGetParamsHTTPProtocolHTTP}), IPVersion: cloudflare.F([]radar.HTTPAseHTTPMethodGetParamsIPVersion{radar.HTTPAseHTTPMethodGetParamsIPVersionIPv4}), Limit: cloudflare.F(int64(5)), diff --git a/radar/httpasehttpprotocol.go b/radar/httpasehttpprotocol.go index 57c11e415af..f1e27f55898 100644 --- a/radar/httpasehttpprotocol.go +++ b/radar/httpasehttpprotocol.go @@ -323,13 +323,13 @@ func (r HTTPAseHTTPProtocolGetParamsDeviceType) IsKnown() bool { type HTTPAseHTTPProtocolGetParamsFormat string const ( - HTTPAseHTTPProtocolGetParamsFormatJson HTTPAseHTTPProtocolGetParamsFormat = "JSON" + HTTPAseHTTPProtocolGetParamsFormatJSON HTTPAseHTTPProtocolGetParamsFormat = "JSON" HTTPAseHTTPProtocolGetParamsFormatCsv HTTPAseHTTPProtocolGetParamsFormat = "CSV" ) func (r HTTPAseHTTPProtocolGetParamsFormat) IsKnown() bool { switch r { - case HTTPAseHTTPProtocolGetParamsFormatJson, HTTPAseHTTPProtocolGetParamsFormatCsv: + case HTTPAseHTTPProtocolGetParamsFormatJSON, HTTPAseHTTPProtocolGetParamsFormatCsv: return true } return false diff --git a/radar/httpasehttpprotocol_test.go b/radar/httpasehttpprotocol_test.go index 60cb76d9fbd..2d1e07ef9c4 100644 --- a/radar/httpasehttpprotocol_test.go +++ b/radar/httpasehttpprotocol_test.go @@ -40,7 +40,7 @@ func TestHTTPAseHTTPProtocolGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPAseHTTPProtocolGetParamsDeviceType{radar.HTTPAseHTTPProtocolGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPAseHTTPProtocolGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPAseHTTPProtocolGetParamsFormatJSON), IPVersion: cloudflare.F([]radar.HTTPAseHTTPProtocolGetParamsIPVersion{radar.HTTPAseHTTPProtocolGetParamsIPVersionIPv4}), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), diff --git a/radar/httpaseipversion.go b/radar/httpaseipversion.go index 585e6b14cd8..9ffe34722d6 100644 --- a/radar/httpaseipversion.go +++ b/radar/httpaseipversion.go @@ -325,13 +325,13 @@ func (r HTTPAseIPVersionGetParamsDeviceType) IsKnown() bool { type HTTPAseIPVersionGetParamsFormat string const ( - HTTPAseIPVersionGetParamsFormatJson HTTPAseIPVersionGetParamsFormat = "JSON" + HTTPAseIPVersionGetParamsFormatJSON HTTPAseIPVersionGetParamsFormat = "JSON" HTTPAseIPVersionGetParamsFormatCsv HTTPAseIPVersionGetParamsFormat = "CSV" ) func (r HTTPAseIPVersionGetParamsFormat) IsKnown() bool { switch r { - case HTTPAseIPVersionGetParamsFormatJson, HTTPAseIPVersionGetParamsFormatCsv: + case HTTPAseIPVersionGetParamsFormatJSON, HTTPAseIPVersionGetParamsFormatCsv: return true } return false diff --git a/radar/httpaseipversion_test.go b/radar/httpaseipversion_test.go index d6c91de334f..7f3ca141142 100644 --- a/radar/httpaseipversion_test.go +++ b/radar/httpaseipversion_test.go @@ -40,7 +40,7 @@ func TestHTTPAseIPVersionGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPAseIPVersionGetParamsDeviceType{radar.HTTPAseIPVersionGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPAseIPVersionGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPAseIPVersionGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPAseIPVersionGetParamsHTTPProtocol{radar.HTTPAseIPVersionGetParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPAseIPVersionGetParamsHTTPVersion{radar.HTTPAseIPVersionGetParamsHTTPVersionHttPv1}), Limit: cloudflare.F(int64(5)), diff --git a/radar/httpaseos.go b/radar/httpaseos.go index 530609940d3..61c821355a8 100644 --- a/radar/httpaseos.go +++ b/radar/httpaseos.go @@ -328,13 +328,13 @@ func (r HTTPAseOSGetParamsDeviceType) IsKnown() bool { type HTTPAseOSGetParamsFormat string const ( - HTTPAseOSGetParamsFormatJson HTTPAseOSGetParamsFormat = "JSON" + HTTPAseOSGetParamsFormatJSON HTTPAseOSGetParamsFormat = "JSON" HTTPAseOSGetParamsFormatCsv HTTPAseOSGetParamsFormat = "CSV" ) func (r HTTPAseOSGetParamsFormat) IsKnown() bool { switch r { - case HTTPAseOSGetParamsFormatJson, HTTPAseOSGetParamsFormatCsv: + case HTTPAseOSGetParamsFormatJSON, HTTPAseOSGetParamsFormatCsv: return true } return false diff --git a/radar/httpaseos_test.go b/radar/httpaseos_test.go index e3bb6f34888..4ace02e4bb8 100644 --- a/radar/httpaseos_test.go +++ b/radar/httpaseos_test.go @@ -40,7 +40,7 @@ func TestHTTPAseOSGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPAseOSGetParamsDeviceType{radar.HTTPAseOSGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPAseOSGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPAseOSGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPAseOSGetParamsHTTPProtocol{radar.HTTPAseOSGetParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPAseOSGetParamsHTTPVersion{radar.HTTPAseOSGetParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPAseOSGetParamsIPVersion{radar.HTTPAseOSGetParamsIPVersionIPv4}), diff --git a/radar/httpasetlsversion.go b/radar/httpasetlsversion.go index b559825b99f..9014cca9101 100644 --- a/radar/httpasetlsversion.go +++ b/radar/httpasetlsversion.go @@ -328,13 +328,13 @@ func (r HTTPAseTLSVersionGetParamsDeviceType) IsKnown() bool { type HTTPAseTLSVersionGetParamsFormat string const ( - HTTPAseTLSVersionGetParamsFormatJson HTTPAseTLSVersionGetParamsFormat = "JSON" + HTTPAseTLSVersionGetParamsFormatJSON HTTPAseTLSVersionGetParamsFormat = "JSON" HTTPAseTLSVersionGetParamsFormatCsv HTTPAseTLSVersionGetParamsFormat = "CSV" ) func (r HTTPAseTLSVersionGetParamsFormat) IsKnown() bool { switch r { - case HTTPAseTLSVersionGetParamsFormatJson, HTTPAseTLSVersionGetParamsFormatCsv: + case HTTPAseTLSVersionGetParamsFormatJSON, HTTPAseTLSVersionGetParamsFormatCsv: return true } return false diff --git a/radar/httpasetlsversion_test.go b/radar/httpasetlsversion_test.go index d4f6c0188e2..693c2cbc82d 100644 --- a/radar/httpasetlsversion_test.go +++ b/radar/httpasetlsversion_test.go @@ -40,7 +40,7 @@ func TestHTTPAseTLSVersionGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPAseTLSVersionGetParamsDeviceType{radar.HTTPAseTLSVersionGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPAseTLSVersionGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPAseTLSVersionGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPAseTLSVersionGetParamsHTTPProtocol{radar.HTTPAseTLSVersionGetParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPAseTLSVersionGetParamsHTTPVersion{radar.HTTPAseTLSVersionGetParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPAseTLSVersionGetParamsIPVersion{radar.HTTPAseTLSVersionGetParamsIPVersionIPv4}), diff --git a/radar/httplocation.go b/radar/httplocation.go index bda9e43c5d3..6084edadfc2 100644 --- a/radar/httplocation.go +++ b/radar/httplocation.go @@ -324,13 +324,13 @@ func (r HTTPLocationGetParamsDeviceType) IsKnown() bool { type HTTPLocationGetParamsFormat string const ( - HTTPLocationGetParamsFormatJson HTTPLocationGetParamsFormat = "JSON" + HTTPLocationGetParamsFormatJSON HTTPLocationGetParamsFormat = "JSON" HTTPLocationGetParamsFormatCsv HTTPLocationGetParamsFormat = "CSV" ) func (r HTTPLocationGetParamsFormat) IsKnown() bool { switch r { - case HTTPLocationGetParamsFormatJson, HTTPLocationGetParamsFormatCsv: + case HTTPLocationGetParamsFormatJSON, HTTPLocationGetParamsFormatCsv: return true } return false diff --git a/radar/httplocation_test.go b/radar/httplocation_test.go index 1fceb8a7f86..d75aca4ea22 100644 --- a/radar/httplocation_test.go +++ b/radar/httplocation_test.go @@ -37,7 +37,7 @@ func TestHTTPLocationGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPLocationGetParamsDeviceType{radar.HTTPLocationGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPLocationGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPLocationGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPLocationGetParamsHTTPProtocol{radar.HTTPLocationGetParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPLocationGetParamsHTTPVersion{radar.HTTPLocationGetParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPLocationGetParamsIPVersion{radar.HTTPLocationGetParamsIPVersionIPv4}), diff --git a/radar/httplocationbotclass.go b/radar/httplocationbotclass.go index 3d9d48d971c..e5f6e8319c2 100644 --- a/radar/httplocationbotclass.go +++ b/radar/httplocationbotclass.go @@ -311,13 +311,13 @@ func (r HTTPLocationBotClassGetParamsDeviceType) IsKnown() bool { type HTTPLocationBotClassGetParamsFormat string const ( - HTTPLocationBotClassGetParamsFormatJson HTTPLocationBotClassGetParamsFormat = "JSON" + HTTPLocationBotClassGetParamsFormatJSON HTTPLocationBotClassGetParamsFormat = "JSON" HTTPLocationBotClassGetParamsFormatCsv HTTPLocationBotClassGetParamsFormat = "CSV" ) func (r HTTPLocationBotClassGetParamsFormat) IsKnown() bool { switch r { - case HTTPLocationBotClassGetParamsFormatJson, HTTPLocationBotClassGetParamsFormatCsv: + case HTTPLocationBotClassGetParamsFormatJSON, HTTPLocationBotClassGetParamsFormatCsv: return true } return false diff --git a/radar/httplocationbotclass_test.go b/radar/httplocationbotclass_test.go index 47d202c6a8b..c966d883baf 100644 --- a/radar/httplocationbotclass_test.go +++ b/radar/httplocationbotclass_test.go @@ -39,7 +39,7 @@ func TestHTTPLocationBotClassGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPLocationBotClassGetParamsDeviceType{radar.HTTPLocationBotClassGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPLocationBotClassGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPLocationBotClassGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPLocationBotClassGetParamsHTTPProtocol{radar.HTTPLocationBotClassGetParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPLocationBotClassGetParamsHTTPVersion{radar.HTTPLocationBotClassGetParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPLocationBotClassGetParamsIPVersion{radar.HTTPLocationBotClassGetParamsIPVersionIPv4}), diff --git a/radar/httplocationbrowserfamily.go b/radar/httplocationbrowserfamily.go index fd10af2adc5..bc1a453333c 100644 --- a/radar/httplocationbrowserfamily.go +++ b/radar/httplocationbrowserfamily.go @@ -310,13 +310,13 @@ func (r HTTPLocationBrowserFamilyGetParamsDeviceType) IsKnown() bool { type HTTPLocationBrowserFamilyGetParamsFormat string const ( - HTTPLocationBrowserFamilyGetParamsFormatJson HTTPLocationBrowserFamilyGetParamsFormat = "JSON" + HTTPLocationBrowserFamilyGetParamsFormatJSON HTTPLocationBrowserFamilyGetParamsFormat = "JSON" HTTPLocationBrowserFamilyGetParamsFormatCsv HTTPLocationBrowserFamilyGetParamsFormat = "CSV" ) func (r HTTPLocationBrowserFamilyGetParamsFormat) IsKnown() bool { switch r { - case HTTPLocationBrowserFamilyGetParamsFormatJson, HTTPLocationBrowserFamilyGetParamsFormatCsv: + case HTTPLocationBrowserFamilyGetParamsFormatJSON, HTTPLocationBrowserFamilyGetParamsFormatCsv: return true } return false diff --git a/radar/httplocationbrowserfamily_test.go b/radar/httplocationbrowserfamily_test.go index 04812e06643..8b74e6494e7 100644 --- a/radar/httplocationbrowserfamily_test.go +++ b/radar/httplocationbrowserfamily_test.go @@ -39,7 +39,7 @@ func TestHTTPLocationBrowserFamilyGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPLocationBrowserFamilyGetParamsDeviceType{radar.HTTPLocationBrowserFamilyGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPLocationBrowserFamilyGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPLocationBrowserFamilyGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPLocationBrowserFamilyGetParamsHTTPProtocol{radar.HTTPLocationBrowserFamilyGetParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPLocationBrowserFamilyGetParamsHTTPVersion{radar.HTTPLocationBrowserFamilyGetParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPLocationBrowserFamilyGetParamsIPVersion{radar.HTTPLocationBrowserFamilyGetParamsIPVersionIPv4}), diff --git a/radar/httplocationdevicetype.go b/radar/httplocationdevicetype.go index 7dd5cdaf715..5e53a50376f 100644 --- a/radar/httplocationdevicetype.go +++ b/radar/httplocationdevicetype.go @@ -310,13 +310,13 @@ func (r HTTPLocationDeviceTypeGetParamsBrowserFamily) IsKnown() bool { type HTTPLocationDeviceTypeGetParamsFormat string const ( - HTTPLocationDeviceTypeGetParamsFormatJson HTTPLocationDeviceTypeGetParamsFormat = "JSON" + HTTPLocationDeviceTypeGetParamsFormatJSON HTTPLocationDeviceTypeGetParamsFormat = "JSON" HTTPLocationDeviceTypeGetParamsFormatCsv HTTPLocationDeviceTypeGetParamsFormat = "CSV" ) func (r HTTPLocationDeviceTypeGetParamsFormat) IsKnown() bool { switch r { - case HTTPLocationDeviceTypeGetParamsFormatJson, HTTPLocationDeviceTypeGetParamsFormatCsv: + case HTTPLocationDeviceTypeGetParamsFormatJSON, HTTPLocationDeviceTypeGetParamsFormatCsv: return true } return false diff --git a/radar/httplocationdevicetype_test.go b/radar/httplocationdevicetype_test.go index f2cb96c0af6..b36a0d1ee03 100644 --- a/radar/httplocationdevicetype_test.go +++ b/radar/httplocationdevicetype_test.go @@ -39,7 +39,7 @@ func TestHTTPLocationDeviceTypeGetWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.HTTPLocationDeviceTypeGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPLocationDeviceTypeGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPLocationDeviceTypeGetParamsHTTPProtocol{radar.HTTPLocationDeviceTypeGetParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPLocationDeviceTypeGetParamsHTTPVersion{radar.HTTPLocationDeviceTypeGetParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPLocationDeviceTypeGetParamsIPVersion{radar.HTTPLocationDeviceTypeGetParamsIPVersionIPv4}), diff --git a/radar/httplocationhttpmethod.go b/radar/httplocationhttpmethod.go index d0cf854b22b..ead7572da98 100644 --- a/radar/httplocationhttpmethod.go +++ b/radar/httplocationhttpmethod.go @@ -326,13 +326,13 @@ func (r HTTPLocationHTTPMethodGetParamsDeviceType) IsKnown() bool { type HTTPLocationHTTPMethodGetParamsFormat string const ( - HTTPLocationHTTPMethodGetParamsFormatJson HTTPLocationHTTPMethodGetParamsFormat = "JSON" + HTTPLocationHTTPMethodGetParamsFormatJSON HTTPLocationHTTPMethodGetParamsFormat = "JSON" HTTPLocationHTTPMethodGetParamsFormatCsv HTTPLocationHTTPMethodGetParamsFormat = "CSV" ) func (r HTTPLocationHTTPMethodGetParamsFormat) IsKnown() bool { switch r { - case HTTPLocationHTTPMethodGetParamsFormatJson, HTTPLocationHTTPMethodGetParamsFormatCsv: + case HTTPLocationHTTPMethodGetParamsFormatJSON, HTTPLocationHTTPMethodGetParamsFormatCsv: return true } return false diff --git a/radar/httplocationhttpmethod_test.go b/radar/httplocationhttpmethod_test.go index acdeb84195b..24f58140a15 100644 --- a/radar/httplocationhttpmethod_test.go +++ b/radar/httplocationhttpmethod_test.go @@ -40,7 +40,7 @@ func TestHTTPLocationHTTPMethodGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPLocationHTTPMethodGetParamsDeviceType{radar.HTTPLocationHTTPMethodGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPLocationHTTPMethodGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPLocationHTTPMethodGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPLocationHTTPMethodGetParamsHTTPProtocol{radar.HTTPLocationHTTPMethodGetParamsHTTPProtocolHTTP}), IPVersion: cloudflare.F([]radar.HTTPLocationHTTPMethodGetParamsIPVersion{radar.HTTPLocationHTTPMethodGetParamsIPVersionIPv4}), Limit: cloudflare.F(int64(5)), diff --git a/radar/httplocationhttpprotocol.go b/radar/httplocationhttpprotocol.go index 0c9fa012cac..b5cc7d62339 100644 --- a/radar/httplocationhttpprotocol.go +++ b/radar/httplocationhttpprotocol.go @@ -323,13 +323,13 @@ func (r HTTPLocationHTTPProtocolGetParamsDeviceType) IsKnown() bool { type HTTPLocationHTTPProtocolGetParamsFormat string const ( - HTTPLocationHTTPProtocolGetParamsFormatJson HTTPLocationHTTPProtocolGetParamsFormat = "JSON" + HTTPLocationHTTPProtocolGetParamsFormatJSON HTTPLocationHTTPProtocolGetParamsFormat = "JSON" HTTPLocationHTTPProtocolGetParamsFormatCsv HTTPLocationHTTPProtocolGetParamsFormat = "CSV" ) func (r HTTPLocationHTTPProtocolGetParamsFormat) IsKnown() bool { switch r { - case HTTPLocationHTTPProtocolGetParamsFormatJson, HTTPLocationHTTPProtocolGetParamsFormatCsv: + case HTTPLocationHTTPProtocolGetParamsFormatJSON, HTTPLocationHTTPProtocolGetParamsFormatCsv: return true } return false diff --git a/radar/httplocationhttpprotocol_test.go b/radar/httplocationhttpprotocol_test.go index 72b56b6e27b..d97d9be7898 100644 --- a/radar/httplocationhttpprotocol_test.go +++ b/radar/httplocationhttpprotocol_test.go @@ -40,7 +40,7 @@ func TestHTTPLocationHTTPProtocolGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPLocationHTTPProtocolGetParamsDeviceType{radar.HTTPLocationHTTPProtocolGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPLocationHTTPProtocolGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPLocationHTTPProtocolGetParamsFormatJSON), IPVersion: cloudflare.F([]radar.HTTPLocationHTTPProtocolGetParamsIPVersion{radar.HTTPLocationHTTPProtocolGetParamsIPVersionIPv4}), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), diff --git a/radar/httplocationipversion.go b/radar/httplocationipversion.go index 4f9d243c06f..e5f3e3d9c48 100644 --- a/radar/httplocationipversion.go +++ b/radar/httplocationipversion.go @@ -325,13 +325,13 @@ func (r HTTPLocationIPVersionGetParamsDeviceType) IsKnown() bool { type HTTPLocationIPVersionGetParamsFormat string const ( - HTTPLocationIPVersionGetParamsFormatJson HTTPLocationIPVersionGetParamsFormat = "JSON" + HTTPLocationIPVersionGetParamsFormatJSON HTTPLocationIPVersionGetParamsFormat = "JSON" HTTPLocationIPVersionGetParamsFormatCsv HTTPLocationIPVersionGetParamsFormat = "CSV" ) func (r HTTPLocationIPVersionGetParamsFormat) IsKnown() bool { switch r { - case HTTPLocationIPVersionGetParamsFormatJson, HTTPLocationIPVersionGetParamsFormatCsv: + case HTTPLocationIPVersionGetParamsFormatJSON, HTTPLocationIPVersionGetParamsFormatCsv: return true } return false diff --git a/radar/httplocationipversion_test.go b/radar/httplocationipversion_test.go index 33bc0a7ca3e..e0f0be69265 100644 --- a/radar/httplocationipversion_test.go +++ b/radar/httplocationipversion_test.go @@ -40,7 +40,7 @@ func TestHTTPLocationIPVersionGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPLocationIPVersionGetParamsDeviceType{radar.HTTPLocationIPVersionGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPLocationIPVersionGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPLocationIPVersionGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPLocationIPVersionGetParamsHTTPProtocol{radar.HTTPLocationIPVersionGetParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPLocationIPVersionGetParamsHTTPVersion{radar.HTTPLocationIPVersionGetParamsHTTPVersionHttPv1}), Limit: cloudflare.F(int64(5)), diff --git a/radar/httplocationos.go b/radar/httplocationos.go index 64b174a225b..45be8733e1c 100644 --- a/radar/httplocationos.go +++ b/radar/httplocationos.go @@ -329,13 +329,13 @@ func (r HTTPLocationOSGetParamsDeviceType) IsKnown() bool { type HTTPLocationOSGetParamsFormat string const ( - HTTPLocationOSGetParamsFormatJson HTTPLocationOSGetParamsFormat = "JSON" + HTTPLocationOSGetParamsFormatJSON HTTPLocationOSGetParamsFormat = "JSON" HTTPLocationOSGetParamsFormatCsv HTTPLocationOSGetParamsFormat = "CSV" ) func (r HTTPLocationOSGetParamsFormat) IsKnown() bool { switch r { - case HTTPLocationOSGetParamsFormatJson, HTTPLocationOSGetParamsFormatCsv: + case HTTPLocationOSGetParamsFormatJSON, HTTPLocationOSGetParamsFormatCsv: return true } return false diff --git a/radar/httplocationos_test.go b/radar/httplocationos_test.go index 9f28d6a6a42..96e380a6952 100644 --- a/radar/httplocationos_test.go +++ b/radar/httplocationos_test.go @@ -40,7 +40,7 @@ func TestHTTPLocationOSGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPLocationOSGetParamsDeviceType{radar.HTTPLocationOSGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPLocationOSGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPLocationOSGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPLocationOSGetParamsHTTPProtocol{radar.HTTPLocationOSGetParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPLocationOSGetParamsHTTPVersion{radar.HTTPLocationOSGetParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPLocationOSGetParamsIPVersion{radar.HTTPLocationOSGetParamsIPVersionIPv4}), diff --git a/radar/httplocationtlsversion.go b/radar/httplocationtlsversion.go index 4d0b9ea402f..e185cd67bd6 100644 --- a/radar/httplocationtlsversion.go +++ b/radar/httplocationtlsversion.go @@ -328,13 +328,13 @@ func (r HTTPLocationTLSVersionGetParamsDeviceType) IsKnown() bool { type HTTPLocationTLSVersionGetParamsFormat string const ( - HTTPLocationTLSVersionGetParamsFormatJson HTTPLocationTLSVersionGetParamsFormat = "JSON" + HTTPLocationTLSVersionGetParamsFormatJSON HTTPLocationTLSVersionGetParamsFormat = "JSON" HTTPLocationTLSVersionGetParamsFormatCsv HTTPLocationTLSVersionGetParamsFormat = "CSV" ) func (r HTTPLocationTLSVersionGetParamsFormat) IsKnown() bool { switch r { - case HTTPLocationTLSVersionGetParamsFormatJson, HTTPLocationTLSVersionGetParamsFormatCsv: + case HTTPLocationTLSVersionGetParamsFormatJSON, HTTPLocationTLSVersionGetParamsFormatCsv: return true } return false diff --git a/radar/httplocationtlsversion_test.go b/radar/httplocationtlsversion_test.go index 6bb106a25bc..fc8824f401b 100644 --- a/radar/httplocationtlsversion_test.go +++ b/radar/httplocationtlsversion_test.go @@ -40,7 +40,7 @@ func TestHTTPLocationTLSVersionGetWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPLocationTLSVersionGetParamsDeviceType{radar.HTTPLocationTLSVersionGetParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPLocationTLSVersionGetParamsFormatJson), + Format: cloudflare.F(radar.HTTPLocationTLSVersionGetParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPLocationTLSVersionGetParamsHTTPProtocol{radar.HTTPLocationTLSVersionGetParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPLocationTLSVersionGetParamsHTTPVersion{radar.HTTPLocationTLSVersionGetParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPLocationTLSVersionGetParamsIPVersion{radar.HTTPLocationTLSVersionGetParamsIPVersionIPv4}), diff --git a/radar/httpsummary.go b/radar/httpsummary.go index 4b74a20309c..f1a25db48e8 100644 --- a/radar/httpsummary.go +++ b/radar/httpsummary.go @@ -1463,13 +1463,13 @@ func (r HTTPSummaryBotClassParamsDeviceType) IsKnown() bool { type HTTPSummaryBotClassParamsFormat string const ( - HTTPSummaryBotClassParamsFormatJson HTTPSummaryBotClassParamsFormat = "JSON" + HTTPSummaryBotClassParamsFormatJSON HTTPSummaryBotClassParamsFormat = "JSON" HTTPSummaryBotClassParamsFormatCsv HTTPSummaryBotClassParamsFormat = "CSV" ) func (r HTTPSummaryBotClassParamsFormat) IsKnown() bool { switch r { - case HTTPSummaryBotClassParamsFormatJson, HTTPSummaryBotClassParamsFormatCsv: + case HTTPSummaryBotClassParamsFormatJSON, HTTPSummaryBotClassParamsFormatCsv: return true } return false @@ -1650,13 +1650,13 @@ func (r HTTPSummaryDeviceTypeParamsBotClass) IsKnown() bool { type HTTPSummaryDeviceTypeParamsFormat string const ( - HTTPSummaryDeviceTypeParamsFormatJson HTTPSummaryDeviceTypeParamsFormat = "JSON" + HTTPSummaryDeviceTypeParamsFormatJSON HTTPSummaryDeviceTypeParamsFormat = "JSON" HTTPSummaryDeviceTypeParamsFormatCsv HTTPSummaryDeviceTypeParamsFormat = "CSV" ) func (r HTTPSummaryDeviceTypeParamsFormat) IsKnown() bool { switch r { - case HTTPSummaryDeviceTypeParamsFormatJson, HTTPSummaryDeviceTypeParamsFormatCsv: + case HTTPSummaryDeviceTypeParamsFormatJSON, HTTPSummaryDeviceTypeParamsFormatCsv: return true } return false @@ -1853,13 +1853,13 @@ func (r HTTPSummaryHTTPProtocolParamsDeviceType) IsKnown() bool { type HTTPSummaryHTTPProtocolParamsFormat string const ( - HTTPSummaryHTTPProtocolParamsFormatJson HTTPSummaryHTTPProtocolParamsFormat = "JSON" + HTTPSummaryHTTPProtocolParamsFormatJSON HTTPSummaryHTTPProtocolParamsFormat = "JSON" HTTPSummaryHTTPProtocolParamsFormatCsv HTTPSummaryHTTPProtocolParamsFormat = "CSV" ) func (r HTTPSummaryHTTPProtocolParamsFormat) IsKnown() bool { switch r { - case HTTPSummaryHTTPProtocolParamsFormatJson, HTTPSummaryHTTPProtocolParamsFormatCsv: + case HTTPSummaryHTTPProtocolParamsFormatJSON, HTTPSummaryHTTPProtocolParamsFormatCsv: return true } return false @@ -2041,13 +2041,13 @@ func (r HTTPSummaryHTTPVersionParamsDeviceType) IsKnown() bool { type HTTPSummaryHTTPVersionParamsFormat string const ( - HTTPSummaryHTTPVersionParamsFormatJson HTTPSummaryHTTPVersionParamsFormat = "JSON" + HTTPSummaryHTTPVersionParamsFormatJSON HTTPSummaryHTTPVersionParamsFormat = "JSON" HTTPSummaryHTTPVersionParamsFormatCsv HTTPSummaryHTTPVersionParamsFormat = "CSV" ) func (r HTTPSummaryHTTPVersionParamsFormat) IsKnown() bool { switch r { - case HTTPSummaryHTTPVersionParamsFormatJson, HTTPSummaryHTTPVersionParamsFormatCsv: + case HTTPSummaryHTTPVersionParamsFormatJSON, HTTPSummaryHTTPVersionParamsFormatCsv: return true } return false @@ -2228,13 +2228,13 @@ func (r HTTPSummaryIPVersionParamsDeviceType) IsKnown() bool { type HTTPSummaryIPVersionParamsFormat string const ( - HTTPSummaryIPVersionParamsFormatJson HTTPSummaryIPVersionParamsFormat = "JSON" + HTTPSummaryIPVersionParamsFormatJSON HTTPSummaryIPVersionParamsFormat = "JSON" HTTPSummaryIPVersionParamsFormatCsv HTTPSummaryIPVersionParamsFormat = "CSV" ) func (r HTTPSummaryIPVersionParamsFormat) IsKnown() bool { switch r { - case HTTPSummaryIPVersionParamsFormatJson, HTTPSummaryIPVersionParamsFormatCsv: + case HTTPSummaryIPVersionParamsFormatJSON, HTTPSummaryIPVersionParamsFormatCsv: return true } return false @@ -2415,13 +2415,13 @@ func (r HTTPSummaryOSParamsDeviceType) IsKnown() bool { type HTTPSummaryOSParamsFormat string const ( - HTTPSummaryOSParamsFormatJson HTTPSummaryOSParamsFormat = "JSON" + HTTPSummaryOSParamsFormatJSON HTTPSummaryOSParamsFormat = "JSON" HTTPSummaryOSParamsFormatCsv HTTPSummaryOSParamsFormat = "CSV" ) func (r HTTPSummaryOSParamsFormat) IsKnown() bool { switch r { - case HTTPSummaryOSParamsFormatJson, HTTPSummaryOSParamsFormatCsv: + case HTTPSummaryOSParamsFormatJSON, HTTPSummaryOSParamsFormatCsv: return true } return false @@ -2600,13 +2600,13 @@ func (r HTTPSummaryPostQuantumParamsDeviceType) IsKnown() bool { type HTTPSummaryPostQuantumParamsFormat string const ( - HTTPSummaryPostQuantumParamsFormatJson HTTPSummaryPostQuantumParamsFormat = "JSON" + HTTPSummaryPostQuantumParamsFormatJSON HTTPSummaryPostQuantumParamsFormat = "JSON" HTTPSummaryPostQuantumParamsFormatCsv HTTPSummaryPostQuantumParamsFormat = "CSV" ) func (r HTTPSummaryPostQuantumParamsFormat) IsKnown() bool { switch r { - case HTTPSummaryPostQuantumParamsFormatJson, HTTPSummaryPostQuantumParamsFormatCsv: + case HTTPSummaryPostQuantumParamsFormatJSON, HTTPSummaryPostQuantumParamsFormatCsv: return true } return false @@ -2803,13 +2803,13 @@ func (r HTTPSummaryTLSVersionParamsDeviceType) IsKnown() bool { type HTTPSummaryTLSVersionParamsFormat string const ( - HTTPSummaryTLSVersionParamsFormatJson HTTPSummaryTLSVersionParamsFormat = "JSON" + HTTPSummaryTLSVersionParamsFormatJSON HTTPSummaryTLSVersionParamsFormat = "JSON" HTTPSummaryTLSVersionParamsFormatCsv HTTPSummaryTLSVersionParamsFormat = "CSV" ) func (r HTTPSummaryTLSVersionParamsFormat) IsKnown() bool { switch r { - case HTTPSummaryTLSVersionParamsFormatJson, HTTPSummaryTLSVersionParamsFormatCsv: + case HTTPSummaryTLSVersionParamsFormatJSON, HTTPSummaryTLSVersionParamsFormatCsv: return true } return false diff --git a/radar/httpsummary_test.go b/radar/httpsummary_test.go index b936a993c24..01830e926c8 100644 --- a/radar/httpsummary_test.go +++ b/radar/httpsummary_test.go @@ -35,7 +35,7 @@ func TestHTTPSummaryBotClassWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPSummaryBotClassParamsDeviceType{radar.HTTPSummaryBotClassParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPSummaryBotClassParamsFormatJson), + Format: cloudflare.F(radar.HTTPSummaryBotClassParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPSummaryBotClassParamsHTTPProtocol{radar.HTTPSummaryBotClassParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPSummaryBotClassParamsHTTPVersion{radar.HTTPSummaryBotClassParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPSummaryBotClassParamsIPVersion{radar.HTTPSummaryBotClassParamsIPVersionIPv4}), @@ -73,7 +73,7 @@ func TestHTTPSummaryDeviceTypeWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.HTTPSummaryDeviceTypeParamsFormatJson), + Format: cloudflare.F(radar.HTTPSummaryDeviceTypeParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPSummaryDeviceTypeParamsHTTPProtocol{radar.HTTPSummaryDeviceTypeParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPSummaryDeviceTypeParamsHTTPVersion{radar.HTTPSummaryDeviceTypeParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPSummaryDeviceTypeParamsIPVersion{radar.HTTPSummaryDeviceTypeParamsIPVersionIPv4}), @@ -112,7 +112,7 @@ func TestHTTPSummaryHTTPProtocolWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPSummaryHTTPProtocolParamsDeviceType{radar.HTTPSummaryHTTPProtocolParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPSummaryHTTPProtocolParamsFormatJson), + Format: cloudflare.F(radar.HTTPSummaryHTTPProtocolParamsFormatJSON), HTTPVersion: cloudflare.F([]radar.HTTPSummaryHTTPProtocolParamsHTTPVersion{radar.HTTPSummaryHTTPProtocolParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPSummaryHTTPProtocolParamsIPVersion{radar.HTTPSummaryHTTPProtocolParamsIPVersionIPv4}), Location: cloudflare.F([]string{"string"}), @@ -150,7 +150,7 @@ func TestHTTPSummaryHTTPVersionWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPSummaryHTTPVersionParamsDeviceType{radar.HTTPSummaryHTTPVersionParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPSummaryHTTPVersionParamsFormatJson), + Format: cloudflare.F(radar.HTTPSummaryHTTPVersionParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPSummaryHTTPVersionParamsHTTPProtocol{radar.HTTPSummaryHTTPVersionParamsHTTPProtocolHTTP}), IPVersion: cloudflare.F([]radar.HTTPSummaryHTTPVersionParamsIPVersion{radar.HTTPSummaryHTTPVersionParamsIPVersionIPv4}), Location: cloudflare.F([]string{"string"}), @@ -188,7 +188,7 @@ func TestHTTPSummaryIPVersionWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPSummaryIPVersionParamsDeviceType{radar.HTTPSummaryIPVersionParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPSummaryIPVersionParamsFormatJson), + Format: cloudflare.F(radar.HTTPSummaryIPVersionParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPSummaryIPVersionParamsHTTPProtocol{radar.HTTPSummaryIPVersionParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPSummaryIPVersionParamsHTTPVersion{radar.HTTPSummaryIPVersionParamsHTTPVersionHttPv1}), Location: cloudflare.F([]string{"string"}), @@ -226,7 +226,7 @@ func TestHTTPSummaryOSWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPSummaryOSParamsDeviceType{radar.HTTPSummaryOSParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPSummaryOSParamsFormatJson), + Format: cloudflare.F(radar.HTTPSummaryOSParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPSummaryOSParamsHTTPProtocol{radar.HTTPSummaryOSParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPSummaryOSParamsHTTPVersion{radar.HTTPSummaryOSParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPSummaryOSParamsIPVersion{radar.HTTPSummaryOSParamsIPVersionIPv4}), @@ -264,7 +264,7 @@ func TestHTTPSummaryPostQuantumWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPSummaryPostQuantumParamsDeviceType{radar.HTTPSummaryPostQuantumParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPSummaryPostQuantumParamsFormatJson), + Format: cloudflare.F(radar.HTTPSummaryPostQuantumParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPSummaryPostQuantumParamsHTTPProtocol{radar.HTTPSummaryPostQuantumParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPSummaryPostQuantumParamsHTTPVersion{radar.HTTPSummaryPostQuantumParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPSummaryPostQuantumParamsIPVersion{radar.HTTPSummaryPostQuantumParamsIPVersionIPv4}), @@ -303,7 +303,7 @@ func TestHTTPSummaryTLSVersionWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPSummaryTLSVersionParamsDeviceType{radar.HTTPSummaryTLSVersionParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPSummaryTLSVersionParamsFormatJson), + Format: cloudflare.F(radar.HTTPSummaryTLSVersionParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPSummaryTLSVersionParamsHTTPProtocol{radar.HTTPSummaryTLSVersionParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPSummaryTLSVersionParamsHTTPVersion{radar.HTTPSummaryTLSVersionParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPSummaryTLSVersionParamsIPVersion{radar.HTTPSummaryTLSVersionParamsIPVersionIPv4}), diff --git a/radar/httptimeseriesgroup.go b/radar/httptimeseriesgroup.go index b2de9522238..d64c5792140 100644 --- a/radar/httptimeseriesgroup.go +++ b/radar/httptimeseriesgroup.go @@ -745,13 +745,13 @@ func (r HTTPTimeseriesGroupBotClassParamsDeviceType) IsKnown() bool { type HTTPTimeseriesGroupBotClassParamsFormat string const ( - HTTPTimeseriesGroupBotClassParamsFormatJson HTTPTimeseriesGroupBotClassParamsFormat = "JSON" + HTTPTimeseriesGroupBotClassParamsFormatJSON HTTPTimeseriesGroupBotClassParamsFormat = "JSON" HTTPTimeseriesGroupBotClassParamsFormatCsv HTTPTimeseriesGroupBotClassParamsFormat = "CSV" ) func (r HTTPTimeseriesGroupBotClassParamsFormat) IsKnown() bool { switch r { - case HTTPTimeseriesGroupBotClassParamsFormatJson, HTTPTimeseriesGroupBotClassParamsFormatCsv: + case HTTPTimeseriesGroupBotClassParamsFormatJSON, HTTPTimeseriesGroupBotClassParamsFormatCsv: return true } return false @@ -977,13 +977,13 @@ func (r HTTPTimeseriesGroupBrowserParamsDeviceType) IsKnown() bool { type HTTPTimeseriesGroupBrowserParamsFormat string const ( - HTTPTimeseriesGroupBrowserParamsFormatJson HTTPTimeseriesGroupBrowserParamsFormat = "JSON" + HTTPTimeseriesGroupBrowserParamsFormatJSON HTTPTimeseriesGroupBrowserParamsFormat = "JSON" HTTPTimeseriesGroupBrowserParamsFormatCsv HTTPTimeseriesGroupBrowserParamsFormat = "CSV" ) func (r HTTPTimeseriesGroupBrowserParamsFormat) IsKnown() bool { switch r { - case HTTPTimeseriesGroupBrowserParamsFormatJson, HTTPTimeseriesGroupBrowserParamsFormatCsv: + case HTTPTimeseriesGroupBrowserParamsFormatJSON, HTTPTimeseriesGroupBrowserParamsFormatCsv: return true } return false @@ -1209,13 +1209,13 @@ func (r HTTPTimeseriesGroupBrowserFamilyParamsDeviceType) IsKnown() bool { type HTTPTimeseriesGroupBrowserFamilyParamsFormat string const ( - HTTPTimeseriesGroupBrowserFamilyParamsFormatJson HTTPTimeseriesGroupBrowserFamilyParamsFormat = "JSON" + HTTPTimeseriesGroupBrowserFamilyParamsFormatJSON HTTPTimeseriesGroupBrowserFamilyParamsFormat = "JSON" HTTPTimeseriesGroupBrowserFamilyParamsFormatCsv HTTPTimeseriesGroupBrowserFamilyParamsFormat = "CSV" ) func (r HTTPTimeseriesGroupBrowserFamilyParamsFormat) IsKnown() bool { switch r { - case HTTPTimeseriesGroupBrowserFamilyParamsFormatJson, HTTPTimeseriesGroupBrowserFamilyParamsFormatCsv: + case HTTPTimeseriesGroupBrowserFamilyParamsFormatJSON, HTTPTimeseriesGroupBrowserFamilyParamsFormatCsv: return true } return false @@ -1420,13 +1420,13 @@ func (r HTTPTimeseriesGroupDeviceTypeParamsBotClass) IsKnown() bool { type HTTPTimeseriesGroupDeviceTypeParamsFormat string const ( - HTTPTimeseriesGroupDeviceTypeParamsFormatJson HTTPTimeseriesGroupDeviceTypeParamsFormat = "JSON" + HTTPTimeseriesGroupDeviceTypeParamsFormatJSON HTTPTimeseriesGroupDeviceTypeParamsFormat = "JSON" HTTPTimeseriesGroupDeviceTypeParamsFormatCsv HTTPTimeseriesGroupDeviceTypeParamsFormat = "CSV" ) func (r HTTPTimeseriesGroupDeviceTypeParamsFormat) IsKnown() bool { switch r { - case HTTPTimeseriesGroupDeviceTypeParamsFormatJson, HTTPTimeseriesGroupDeviceTypeParamsFormatCsv: + case HTTPTimeseriesGroupDeviceTypeParamsFormatJSON, HTTPTimeseriesGroupDeviceTypeParamsFormatCsv: return true } return false @@ -1647,13 +1647,13 @@ func (r HTTPTimeseriesGroupHTTPProtocolParamsDeviceType) IsKnown() bool { type HTTPTimeseriesGroupHTTPProtocolParamsFormat string const ( - HTTPTimeseriesGroupHTTPProtocolParamsFormatJson HTTPTimeseriesGroupHTTPProtocolParamsFormat = "JSON" + HTTPTimeseriesGroupHTTPProtocolParamsFormatJSON HTTPTimeseriesGroupHTTPProtocolParamsFormat = "JSON" HTTPTimeseriesGroupHTTPProtocolParamsFormatCsv HTTPTimeseriesGroupHTTPProtocolParamsFormat = "CSV" ) func (r HTTPTimeseriesGroupHTTPProtocolParamsFormat) IsKnown() bool { switch r { - case HTTPTimeseriesGroupHTTPProtocolParamsFormatJson, HTTPTimeseriesGroupHTTPProtocolParamsFormatCsv: + case HTTPTimeseriesGroupHTTPProtocolParamsFormatJSON, HTTPTimeseriesGroupHTTPProtocolParamsFormatCsv: return true } return false @@ -1859,13 +1859,13 @@ func (r HTTPTimeseriesGroupHTTPVersionParamsDeviceType) IsKnown() bool { type HTTPTimeseriesGroupHTTPVersionParamsFormat string const ( - HTTPTimeseriesGroupHTTPVersionParamsFormatJson HTTPTimeseriesGroupHTTPVersionParamsFormat = "JSON" + HTTPTimeseriesGroupHTTPVersionParamsFormatJSON HTTPTimeseriesGroupHTTPVersionParamsFormat = "JSON" HTTPTimeseriesGroupHTTPVersionParamsFormatCsv HTTPTimeseriesGroupHTTPVersionParamsFormat = "CSV" ) func (r HTTPTimeseriesGroupHTTPVersionParamsFormat) IsKnown() bool { switch r { - case HTTPTimeseriesGroupHTTPVersionParamsFormatJson, HTTPTimeseriesGroupHTTPVersionParamsFormatCsv: + case HTTPTimeseriesGroupHTTPVersionParamsFormatJSON, HTTPTimeseriesGroupHTTPVersionParamsFormatCsv: return true } return false @@ -2070,13 +2070,13 @@ func (r HTTPTimeseriesGroupIPVersionParamsDeviceType) IsKnown() bool { type HTTPTimeseriesGroupIPVersionParamsFormat string const ( - HTTPTimeseriesGroupIPVersionParamsFormatJson HTTPTimeseriesGroupIPVersionParamsFormat = "JSON" + HTTPTimeseriesGroupIPVersionParamsFormatJSON HTTPTimeseriesGroupIPVersionParamsFormat = "JSON" HTTPTimeseriesGroupIPVersionParamsFormatCsv HTTPTimeseriesGroupIPVersionParamsFormat = "CSV" ) func (r HTTPTimeseriesGroupIPVersionParamsFormat) IsKnown() bool { switch r { - case HTTPTimeseriesGroupIPVersionParamsFormatJson, HTTPTimeseriesGroupIPVersionParamsFormatCsv: + case HTTPTimeseriesGroupIPVersionParamsFormatJSON, HTTPTimeseriesGroupIPVersionParamsFormatCsv: return true } return false @@ -2282,13 +2282,13 @@ func (r HTTPTimeseriesGroupOSParamsDeviceType) IsKnown() bool { type HTTPTimeseriesGroupOSParamsFormat string const ( - HTTPTimeseriesGroupOSParamsFormatJson HTTPTimeseriesGroupOSParamsFormat = "JSON" + HTTPTimeseriesGroupOSParamsFormatJSON HTTPTimeseriesGroupOSParamsFormat = "JSON" HTTPTimeseriesGroupOSParamsFormatCsv HTTPTimeseriesGroupOSParamsFormat = "CSV" ) func (r HTTPTimeseriesGroupOSParamsFormat) IsKnown() bool { switch r { - case HTTPTimeseriesGroupOSParamsFormatJson, HTTPTimeseriesGroupOSParamsFormatCsv: + case HTTPTimeseriesGroupOSParamsFormatJSON, HTTPTimeseriesGroupOSParamsFormatCsv: return true } return false @@ -2491,13 +2491,13 @@ func (r HTTPTimeseriesGroupPostQuantumParamsDeviceType) IsKnown() bool { type HTTPTimeseriesGroupPostQuantumParamsFormat string const ( - HTTPTimeseriesGroupPostQuantumParamsFormatJson HTTPTimeseriesGroupPostQuantumParamsFormat = "JSON" + HTTPTimeseriesGroupPostQuantumParamsFormatJSON HTTPTimeseriesGroupPostQuantumParamsFormat = "JSON" HTTPTimeseriesGroupPostQuantumParamsFormatCsv HTTPTimeseriesGroupPostQuantumParamsFormat = "CSV" ) func (r HTTPTimeseriesGroupPostQuantumParamsFormat) IsKnown() bool { switch r { - case HTTPTimeseriesGroupPostQuantumParamsFormatJson, HTTPTimeseriesGroupPostQuantumParamsFormatCsv: + case HTTPTimeseriesGroupPostQuantumParamsFormatJSON, HTTPTimeseriesGroupPostQuantumParamsFormatCsv: return true } return false @@ -2718,13 +2718,13 @@ func (r HTTPTimeseriesGroupTLSVersionParamsDeviceType) IsKnown() bool { type HTTPTimeseriesGroupTLSVersionParamsFormat string const ( - HTTPTimeseriesGroupTLSVersionParamsFormatJson HTTPTimeseriesGroupTLSVersionParamsFormat = "JSON" + HTTPTimeseriesGroupTLSVersionParamsFormatJSON HTTPTimeseriesGroupTLSVersionParamsFormat = "JSON" HTTPTimeseriesGroupTLSVersionParamsFormatCsv HTTPTimeseriesGroupTLSVersionParamsFormat = "CSV" ) func (r HTTPTimeseriesGroupTLSVersionParamsFormat) IsKnown() bool { switch r { - case HTTPTimeseriesGroupTLSVersionParamsFormatJson, HTTPTimeseriesGroupTLSVersionParamsFormatCsv: + case HTTPTimeseriesGroupTLSVersionParamsFormatJSON, HTTPTimeseriesGroupTLSVersionParamsFormatCsv: return true } return false diff --git a/radar/httptimeseriesgroup_test.go b/radar/httptimeseriesgroup_test.go index 2e803325d49..db5c15db064 100644 --- a/radar/httptimeseriesgroup_test.go +++ b/radar/httptimeseriesgroup_test.go @@ -36,7 +36,7 @@ func TestHTTPTimeseriesGroupBotClassWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPTimeseriesGroupBotClassParamsDeviceType{radar.HTTPTimeseriesGroupBotClassParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPTimeseriesGroupBotClassParamsFormatJson), + Format: cloudflare.F(radar.HTTPTimeseriesGroupBotClassParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPTimeseriesGroupBotClassParamsHTTPProtocol{radar.HTTPTimeseriesGroupBotClassParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupBotClassParamsHTTPVersion{radar.HTTPTimeseriesGroupBotClassParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupBotClassParamsIPVersion{radar.HTTPTimeseriesGroupBotClassParamsIPVersionIPv4}), @@ -76,7 +76,7 @@ func TestHTTPTimeseriesGroupBrowserWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPTimeseriesGroupBrowserParamsDeviceType{radar.HTTPTimeseriesGroupBrowserParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPTimeseriesGroupBrowserParamsFormatJson), + Format: cloudflare.F(radar.HTTPTimeseriesGroupBrowserParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPTimeseriesGroupBrowserParamsHTTPProtocol{radar.HTTPTimeseriesGroupBrowserParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupBrowserParamsHTTPVersion{radar.HTTPTimeseriesGroupBrowserParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupBrowserParamsIPVersion{radar.HTTPTimeseriesGroupBrowserParamsIPVersionIPv4}), @@ -117,7 +117,7 @@ func TestHTTPTimeseriesGroupBrowserFamilyWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPTimeseriesGroupBrowserFamilyParamsDeviceType{radar.HTTPTimeseriesGroupBrowserFamilyParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPTimeseriesGroupBrowserFamilyParamsFormatJson), + Format: cloudflare.F(radar.HTTPTimeseriesGroupBrowserFamilyParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPTimeseriesGroupBrowserFamilyParamsHTTPProtocol{radar.HTTPTimeseriesGroupBrowserFamilyParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupBrowserFamilyParamsHTTPVersion{radar.HTTPTimeseriesGroupBrowserFamilyParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupBrowserFamilyParamsIPVersion{radar.HTTPTimeseriesGroupBrowserFamilyParamsIPVersionIPv4}), @@ -157,7 +157,7 @@ func TestHTTPTimeseriesGroupDeviceTypeWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.HTTPTimeseriesGroupDeviceTypeParamsFormatJson), + Format: cloudflare.F(radar.HTTPTimeseriesGroupDeviceTypeParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPTimeseriesGroupDeviceTypeParamsHTTPProtocol{radar.HTTPTimeseriesGroupDeviceTypeParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupDeviceTypeParamsHTTPVersion{radar.HTTPTimeseriesGroupDeviceTypeParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupDeviceTypeParamsIPVersion{radar.HTTPTimeseriesGroupDeviceTypeParamsIPVersionIPv4}), @@ -197,7 +197,7 @@ func TestHTTPTimeseriesGroupHTTPProtocolWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPTimeseriesGroupHTTPProtocolParamsDeviceType{radar.HTTPTimeseriesGroupHTTPProtocolParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPTimeseriesGroupHTTPProtocolParamsFormatJson), + Format: cloudflare.F(radar.HTTPTimeseriesGroupHTTPProtocolParamsFormatJSON), HTTPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupHTTPProtocolParamsHTTPVersion{radar.HTTPTimeseriesGroupHTTPProtocolParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupHTTPProtocolParamsIPVersion{radar.HTTPTimeseriesGroupHTTPProtocolParamsIPVersionIPv4}), Location: cloudflare.F([]string{"string"}), @@ -236,7 +236,7 @@ func TestHTTPTimeseriesGroupHTTPVersionWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPTimeseriesGroupHTTPVersionParamsDeviceType{radar.HTTPTimeseriesGroupHTTPVersionParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPTimeseriesGroupHTTPVersionParamsFormatJson), + Format: cloudflare.F(radar.HTTPTimeseriesGroupHTTPVersionParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPTimeseriesGroupHTTPVersionParamsHTTPProtocol{radar.HTTPTimeseriesGroupHTTPVersionParamsHTTPProtocolHTTP}), IPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupHTTPVersionParamsIPVersion{radar.HTTPTimeseriesGroupHTTPVersionParamsIPVersionIPv4}), Location: cloudflare.F([]string{"string"}), @@ -275,7 +275,7 @@ func TestHTTPTimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPTimeseriesGroupIPVersionParamsDeviceType{radar.HTTPTimeseriesGroupIPVersionParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPTimeseriesGroupIPVersionParamsFormatJson), + Format: cloudflare.F(radar.HTTPTimeseriesGroupIPVersionParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPTimeseriesGroupIPVersionParamsHTTPProtocol{radar.HTTPTimeseriesGroupIPVersionParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupIPVersionParamsHTTPVersion{radar.HTTPTimeseriesGroupIPVersionParamsHTTPVersionHttPv1}), Location: cloudflare.F([]string{"string"}), @@ -314,7 +314,7 @@ func TestHTTPTimeseriesGroupOSWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPTimeseriesGroupOSParamsDeviceType{radar.HTTPTimeseriesGroupOSParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPTimeseriesGroupOSParamsFormatJson), + Format: cloudflare.F(radar.HTTPTimeseriesGroupOSParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPTimeseriesGroupOSParamsHTTPProtocol{radar.HTTPTimeseriesGroupOSParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupOSParamsHTTPVersion{radar.HTTPTimeseriesGroupOSParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupOSParamsIPVersion{radar.HTTPTimeseriesGroupOSParamsIPVersionIPv4}), @@ -353,7 +353,7 @@ func TestHTTPTimeseriesGroupPostQuantumWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPTimeseriesGroupPostQuantumParamsDeviceType{radar.HTTPTimeseriesGroupPostQuantumParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPTimeseriesGroupPostQuantumParamsFormatJson), + Format: cloudflare.F(radar.HTTPTimeseriesGroupPostQuantumParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPTimeseriesGroupPostQuantumParamsHTTPProtocol{radar.HTTPTimeseriesGroupPostQuantumParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupPostQuantumParamsHTTPVersion{radar.HTTPTimeseriesGroupPostQuantumParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupPostQuantumParamsIPVersion{radar.HTTPTimeseriesGroupPostQuantumParamsIPVersionIPv4}), @@ -393,7 +393,7 @@ func TestHTTPTimeseriesGroupTLSVersionWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPTimeseriesGroupTLSVersionParamsDeviceType{radar.HTTPTimeseriesGroupTLSVersionParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPTimeseriesGroupTLSVersionParamsFormatJson), + Format: cloudflare.F(radar.HTTPTimeseriesGroupTLSVersionParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPTimeseriesGroupTLSVersionParamsHTTPProtocol{radar.HTTPTimeseriesGroupTLSVersionParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupTLSVersionParamsHTTPVersion{radar.HTTPTimeseriesGroupTLSVersionParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPTimeseriesGroupTLSVersionParamsIPVersion{radar.HTTPTimeseriesGroupTLSVersionParamsIPVersionIPv4}), diff --git a/radar/httptop.go b/radar/httptop.go index 3e1893f0f6a..f35b3519871 100644 --- a/radar/httptop.go +++ b/radar/httptop.go @@ -473,13 +473,13 @@ func (r HTTPTopBrowserParamsDeviceType) IsKnown() bool { type HTTPTopBrowserParamsFormat string const ( - HTTPTopBrowserParamsFormatJson HTTPTopBrowserParamsFormat = "JSON" + HTTPTopBrowserParamsFormatJSON HTTPTopBrowserParamsFormat = "JSON" HTTPTopBrowserParamsFormatCsv HTTPTopBrowserParamsFormat = "CSV" ) func (r HTTPTopBrowserParamsFormat) IsKnown() bool { switch r { - case HTTPTopBrowserParamsFormatJson, HTTPTopBrowserParamsFormatCsv: + case HTTPTopBrowserParamsFormatJSON, HTTPTopBrowserParamsFormatCsv: return true } return false @@ -699,13 +699,13 @@ func (r HTTPTopBrowserFamilyParamsDeviceType) IsKnown() bool { type HTTPTopBrowserFamilyParamsFormat string const ( - HTTPTopBrowserFamilyParamsFormatJson HTTPTopBrowserFamilyParamsFormat = "JSON" + HTTPTopBrowserFamilyParamsFormatJSON HTTPTopBrowserFamilyParamsFormat = "JSON" HTTPTopBrowserFamilyParamsFormatCsv HTTPTopBrowserFamilyParamsFormat = "CSV" ) func (r HTTPTopBrowserFamilyParamsFormat) IsKnown() bool { switch r { - case HTTPTopBrowserFamilyParamsFormatJson, HTTPTopBrowserFamilyParamsFormatCsv: + case HTTPTopBrowserFamilyParamsFormatJSON, HTTPTopBrowserFamilyParamsFormatCsv: return true } return false diff --git a/radar/httptop_test.go b/radar/httptop_test.go index e65e83fb8bd..9ab03e17a20 100644 --- a/radar/httptop_test.go +++ b/radar/httptop_test.go @@ -37,7 +37,7 @@ func TestHTTPTopBrowserWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPTopBrowserParamsDeviceType{radar.HTTPTopBrowserParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPTopBrowserParamsFormatJson), + Format: cloudflare.F(radar.HTTPTopBrowserParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPTopBrowserParamsHTTPProtocol{radar.HTTPTopBrowserParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPTopBrowserParamsHTTPVersion{radar.HTTPTopBrowserParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPTopBrowserParamsIPVersion{radar.HTTPTopBrowserParamsIPVersionIPv4}), @@ -78,7 +78,7 @@ func TestHTTPTopBrowserFamilyWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), DeviceType: cloudflare.F([]radar.HTTPTopBrowserFamilyParamsDeviceType{radar.HTTPTopBrowserFamilyParamsDeviceTypeDesktop}), - Format: cloudflare.F(radar.HTTPTopBrowserFamilyParamsFormatJson), + Format: cloudflare.F(radar.HTTPTopBrowserFamilyParamsFormatJSON), HTTPProtocol: cloudflare.F([]radar.HTTPTopBrowserFamilyParamsHTTPProtocol{radar.HTTPTopBrowserFamilyParamsHTTPProtocolHTTP}), HTTPVersion: cloudflare.F([]radar.HTTPTopBrowserFamilyParamsHTTPVersion{radar.HTTPTopBrowserFamilyParamsHTTPVersionHttPv1}), IPVersion: cloudflare.F([]radar.HTTPTopBrowserFamilyParamsIPVersion{radar.HTTPTopBrowserFamilyParamsIPVersionIPv4}), diff --git a/radar/netflow.go b/radar/netflow.go index 29d9efcfd6e..67b90133340 100644 --- a/radar/netflow.go +++ b/radar/netflow.go @@ -407,13 +407,13 @@ func (r NetflowSummaryParams) URLQuery() (v url.Values) { type NetflowSummaryParamsFormat string const ( - NetflowSummaryParamsFormatJson NetflowSummaryParamsFormat = "JSON" + NetflowSummaryParamsFormatJSON NetflowSummaryParamsFormat = "JSON" NetflowSummaryParamsFormatCsv NetflowSummaryParamsFormat = "CSV" ) func (r NetflowSummaryParamsFormat) IsKnown() bool { switch r { - case NetflowSummaryParamsFormatJson, NetflowSummaryParamsFormatCsv: + case NetflowSummaryParamsFormatJSON, NetflowSummaryParamsFormatCsv: return true } return false @@ -511,13 +511,13 @@ func (r NetflowTimeseriesParamsAggInterval) IsKnown() bool { type NetflowTimeseriesParamsFormat string const ( - NetflowTimeseriesParamsFormatJson NetflowTimeseriesParamsFormat = "JSON" + NetflowTimeseriesParamsFormatJSON NetflowTimeseriesParamsFormat = "JSON" NetflowTimeseriesParamsFormatCsv NetflowTimeseriesParamsFormat = "CSV" ) func (r NetflowTimeseriesParamsFormat) IsKnown() bool { switch r { - case NetflowTimeseriesParamsFormatJson, NetflowTimeseriesParamsFormatCsv: + case NetflowTimeseriesParamsFormatJSON, NetflowTimeseriesParamsFormatCsv: return true } return false diff --git a/radar/netflow_test.go b/radar/netflow_test.go index e98bf9be90e..a9152618757 100644 --- a/radar/netflow_test.go +++ b/radar/netflow_test.go @@ -34,7 +34,7 @@ func TestNetflowSummaryWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.NetflowSummaryParamsFormatJson), + Format: cloudflare.F(radar.NetflowSummaryParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) @@ -67,7 +67,7 @@ func TestNetflowTimeseriesWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.NetflowTimeseriesParamsFormatJson), + Format: cloudflare.F(radar.NetflowTimeseriesParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), Normalization: cloudflare.F(radar.NetflowTimeseriesParamsNormalizationPercentageChange), diff --git a/radar/netflowtop.go b/radar/netflowtop.go index 05fb5a05efa..e434228b17b 100644 --- a/radar/netflowtop.go +++ b/radar/netflowtop.go @@ -195,13 +195,13 @@ func (r NetflowTopAsesParams) URLQuery() (v url.Values) { type NetflowTopAsesParamsFormat string const ( - NetflowTopAsesParamsFormatJson NetflowTopAsesParamsFormat = "JSON" + NetflowTopAsesParamsFormatJSON NetflowTopAsesParamsFormat = "JSON" NetflowTopAsesParamsFormatCsv NetflowTopAsesParamsFormat = "CSV" ) func (r NetflowTopAsesParamsFormat) IsKnown() bool { switch r { - case NetflowTopAsesParamsFormatJson, NetflowTopAsesParamsFormatCsv: + case NetflowTopAsesParamsFormatJSON, NetflowTopAsesParamsFormatCsv: return true } return false @@ -272,13 +272,13 @@ func (r NetflowTopLocationsParams) URLQuery() (v url.Values) { type NetflowTopLocationsParamsFormat string const ( - NetflowTopLocationsParamsFormatJson NetflowTopLocationsParamsFormat = "JSON" + NetflowTopLocationsParamsFormatJSON NetflowTopLocationsParamsFormat = "JSON" NetflowTopLocationsParamsFormatCsv NetflowTopLocationsParamsFormat = "CSV" ) func (r NetflowTopLocationsParamsFormat) IsKnown() bool { switch r { - case NetflowTopLocationsParamsFormatJson, NetflowTopLocationsParamsFormatCsv: + case NetflowTopLocationsParamsFormatJSON, NetflowTopLocationsParamsFormatCsv: return true } return false diff --git a/radar/netflowtop_test.go b/radar/netflowtop_test.go index 5f20886fd80..b1701583bac 100644 --- a/radar/netflowtop_test.go +++ b/radar/netflowtop_test.go @@ -34,7 +34,7 @@ func TestNetflowTopAsesWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.NetflowTopAsesParamsFormatJson), + Format: cloudflare.F(radar.NetflowTopAsesParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -67,7 +67,7 @@ func TestNetflowTopLocationsWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.NetflowTopLocationsParamsFormatJson), + Format: cloudflare.F(radar.NetflowTopLocationsParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), diff --git a/radar/qualityiqi.go b/radar/qualityiqi.go index 6bc8ca9698d..97f7c0dfea1 100644 --- a/radar/qualityiqi.go +++ b/radar/qualityiqi.go @@ -327,13 +327,13 @@ func (r QualityIQISummaryParamsMetric) IsKnown() bool { type QualityIQISummaryParamsFormat string const ( - QualityIQISummaryParamsFormatJson QualityIQISummaryParamsFormat = "JSON" + QualityIQISummaryParamsFormatJSON QualityIQISummaryParamsFormat = "JSON" QualityIQISummaryParamsFormatCsv QualityIQISummaryParamsFormat = "CSV" ) func (r QualityIQISummaryParamsFormat) IsKnown() bool { switch r { - case QualityIQISummaryParamsFormatJson, QualityIQISummaryParamsFormatCsv: + case QualityIQISummaryParamsFormatJSON, QualityIQISummaryParamsFormatCsv: return true } return false @@ -447,13 +447,13 @@ func (r QualityIQITimeseriesGroupsParamsAggInterval) IsKnown() bool { type QualityIQITimeseriesGroupsParamsFormat string const ( - QualityIQITimeseriesGroupsParamsFormatJson QualityIQITimeseriesGroupsParamsFormat = "JSON" + QualityIQITimeseriesGroupsParamsFormatJSON QualityIQITimeseriesGroupsParamsFormat = "JSON" QualityIQITimeseriesGroupsParamsFormatCsv QualityIQITimeseriesGroupsParamsFormat = "CSV" ) func (r QualityIQITimeseriesGroupsParamsFormat) IsKnown() bool { switch r { - case QualityIQITimeseriesGroupsParamsFormatJson, QualityIQITimeseriesGroupsParamsFormatCsv: + case QualityIQITimeseriesGroupsParamsFormatJSON, QualityIQITimeseriesGroupsParamsFormatCsv: return true } return false diff --git a/radar/qualityiqi_test.go b/radar/qualityiqi_test.go index 92abbb76fb7..2ed1882d3cb 100644 --- a/radar/qualityiqi_test.go +++ b/radar/qualityiqi_test.go @@ -35,7 +35,7 @@ func TestQualityIQISummaryWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.QualityIQISummaryParamsFormatJson), + Format: cloudflare.F(radar.QualityIQISummaryParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) @@ -69,7 +69,7 @@ func TestQualityIQITimeseriesGroupsWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.QualityIQITimeseriesGroupsParamsFormatJson), + Format: cloudflare.F(radar.QualityIQITimeseriesGroupsParamsFormatJSON), Interpolation: cloudflare.F(true), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), diff --git a/radar/qualityspeed.go b/radar/qualityspeed.go index 873834fb84b..257ba446076 100644 --- a/radar/qualityspeed.go +++ b/radar/qualityspeed.go @@ -315,13 +315,13 @@ func (r QualitySpeedHistogramParams) URLQuery() (v url.Values) { type QualitySpeedHistogramParamsFormat string const ( - QualitySpeedHistogramParamsFormatJson QualitySpeedHistogramParamsFormat = "JSON" + QualitySpeedHistogramParamsFormatJSON QualitySpeedHistogramParamsFormat = "JSON" QualitySpeedHistogramParamsFormatCsv QualitySpeedHistogramParamsFormat = "CSV" ) func (r QualitySpeedHistogramParamsFormat) IsKnown() bool { switch r { - case QualitySpeedHistogramParamsFormatJson, QualitySpeedHistogramParamsFormatCsv: + case QualitySpeedHistogramParamsFormatJSON, QualitySpeedHistogramParamsFormatCsv: return true } return false @@ -401,13 +401,13 @@ func (r QualitySpeedSummaryParams) URLQuery() (v url.Values) { type QualitySpeedSummaryParamsFormat string const ( - QualitySpeedSummaryParamsFormatJson QualitySpeedSummaryParamsFormat = "JSON" + QualitySpeedSummaryParamsFormatJSON QualitySpeedSummaryParamsFormat = "JSON" QualitySpeedSummaryParamsFormatCsv QualitySpeedSummaryParamsFormat = "CSV" ) func (r QualitySpeedSummaryParamsFormat) IsKnown() bool { switch r { - case QualitySpeedSummaryParamsFormatJson, QualitySpeedSummaryParamsFormatCsv: + case QualitySpeedSummaryParamsFormatJSON, QualitySpeedSummaryParamsFormatCsv: return true } return false diff --git a/radar/qualityspeed_test.go b/radar/qualityspeed_test.go index 389f53e98f0..652651ed776 100644 --- a/radar/qualityspeed_test.go +++ b/radar/qualityspeed_test.go @@ -33,7 +33,7 @@ func TestQualitySpeedHistogramWithOptionalParams(t *testing.T) { BucketSize: cloudflare.F(int64(0)), Continent: cloudflare.F([]string{"string"}), DateEnd: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.QualitySpeedHistogramParamsFormatJson), + Format: cloudflare.F(radar.QualitySpeedHistogramParamsFormatJSON), Location: cloudflare.F([]string{"string"}), MetricGroup: cloudflare.F(radar.QualitySpeedHistogramParamsMetricGroupBandwidth), Name: cloudflare.F([]string{"string"}), @@ -64,7 +64,7 @@ func TestQualitySpeedSummaryWithOptionalParams(t *testing.T) { ASN: cloudflare.F([]string{"string"}), Continent: cloudflare.F([]string{"string"}), DateEnd: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.QualitySpeedSummaryParamsFormatJson), + Format: cloudflare.F(radar.QualitySpeedSummaryParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) diff --git a/radar/qualityspeedtop.go b/radar/qualityspeedtop.go index 0bd342e67cf..5a8e8d39965 100644 --- a/radar/qualityspeedtop.go +++ b/radar/qualityspeedtop.go @@ -440,13 +440,13 @@ func (r QualitySpeedTopAsesParams) URLQuery() (v url.Values) { type QualitySpeedTopAsesParamsFormat string const ( - QualitySpeedTopAsesParamsFormatJson QualitySpeedTopAsesParamsFormat = "JSON" + QualitySpeedTopAsesParamsFormatJSON QualitySpeedTopAsesParamsFormat = "JSON" QualitySpeedTopAsesParamsFormatCsv QualitySpeedTopAsesParamsFormat = "CSV" ) func (r QualitySpeedTopAsesParamsFormat) IsKnown() bool { switch r { - case QualitySpeedTopAsesParamsFormatJson, QualitySpeedTopAsesParamsFormatCsv: + case QualitySpeedTopAsesParamsFormatJSON, QualitySpeedTopAsesParamsFormatCsv: return true } return false @@ -535,13 +535,13 @@ func (r QualitySpeedTopLocationsParams) URLQuery() (v url.Values) { type QualitySpeedTopLocationsParamsFormat string const ( - QualitySpeedTopLocationsParamsFormatJson QualitySpeedTopLocationsParamsFormat = "JSON" + QualitySpeedTopLocationsParamsFormatJSON QualitySpeedTopLocationsParamsFormat = "JSON" QualitySpeedTopLocationsParamsFormatCsv QualitySpeedTopLocationsParamsFormat = "CSV" ) func (r QualitySpeedTopLocationsParamsFormat) IsKnown() bool { switch r { - case QualitySpeedTopLocationsParamsFormatJson, QualitySpeedTopLocationsParamsFormatCsv: + case QualitySpeedTopLocationsParamsFormatJSON, QualitySpeedTopLocationsParamsFormatCsv: return true } return false diff --git a/radar/qualityspeedtop_test.go b/radar/qualityspeedtop_test.go index 07db0bcf5ed..4aca727a404 100644 --- a/radar/qualityspeedtop_test.go +++ b/radar/qualityspeedtop_test.go @@ -32,7 +32,7 @@ func TestQualitySpeedTopAsesWithOptionalParams(t *testing.T) { ASN: cloudflare.F([]string{"string"}), Continent: cloudflare.F([]string{"string"}), DateEnd: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.QualitySpeedTopAsesParamsFormatJson), + Format: cloudflare.F(radar.QualitySpeedTopAsesParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -65,7 +65,7 @@ func TestQualitySpeedTopLocationsWithOptionalParams(t *testing.T) { ASN: cloudflare.F([]string{"string"}), Continent: cloudflare.F([]string{"string"}), DateEnd: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.QualitySpeedTopLocationsParamsFormatJson), + Format: cloudflare.F(radar.QualitySpeedTopLocationsParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), diff --git a/radar/ranking.go b/radar/ranking.go index 0b85115463b..831edc6b0d3 100644 --- a/radar/ranking.go +++ b/radar/ranking.go @@ -333,13 +333,13 @@ func (r RankingTimeseriesGroupsParams) URLQuery() (v url.Values) { type RankingTimeseriesGroupsParamsFormat string const ( - RankingTimeseriesGroupsParamsFormatJson RankingTimeseriesGroupsParamsFormat = "JSON" + RankingTimeseriesGroupsParamsFormatJSON RankingTimeseriesGroupsParamsFormat = "JSON" RankingTimeseriesGroupsParamsFormatCsv RankingTimeseriesGroupsParamsFormat = "CSV" ) func (r RankingTimeseriesGroupsParamsFormat) IsKnown() bool { switch r { - case RankingTimeseriesGroupsParamsFormatJson, RankingTimeseriesGroupsParamsFormatCsv: + case RankingTimeseriesGroupsParamsFormatJSON, RankingTimeseriesGroupsParamsFormatCsv: return true } return false @@ -412,13 +412,13 @@ func (r RankingTopParams) URLQuery() (v url.Values) { type RankingTopParamsFormat string const ( - RankingTopParamsFormatJson RankingTopParamsFormat = "JSON" + RankingTopParamsFormatJSON RankingTopParamsFormat = "JSON" RankingTopParamsFormatCsv RankingTopParamsFormat = "CSV" ) func (r RankingTopParamsFormat) IsKnown() bool { switch r { - case RankingTopParamsFormatJson, RankingTopParamsFormatCsv: + case RankingTopParamsFormatJSON, RankingTopParamsFormatCsv: return true } return false diff --git a/radar/ranking_test.go b/radar/ranking_test.go index dbd6b2e0c77..5f357ed25ea 100644 --- a/radar/ranking_test.go +++ b/radar/ranking_test.go @@ -33,7 +33,7 @@ func TestRankingTimeseriesGroupsWithOptionalParams(t *testing.T) { DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), Domains: cloudflare.F([]string{"string"}), - Format: cloudflare.F(radar.RankingTimeseriesGroupsParamsFormatJson), + Format: cloudflare.F(radar.RankingTimeseriesGroupsParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -63,7 +63,7 @@ func TestRankingTopWithOptionalParams(t *testing.T) { ) _, err := client.Radar.Ranking.Top(context.TODO(), radar.RankingTopParams{ Date: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.RankingTopParamsFormatJson), + Format: cloudflare.F(radar.RankingTopParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), diff --git a/radar/rankingdomain.go b/radar/rankingdomain.go index 6d08ec5bc6a..418446f836d 100644 --- a/radar/rankingdomain.go +++ b/radar/rankingdomain.go @@ -182,13 +182,13 @@ func (r RankingDomainGetParams) URLQuery() (v url.Values) { type RankingDomainGetParamsFormat string const ( - RankingDomainGetParamsFormatJson RankingDomainGetParamsFormat = "JSON" + RankingDomainGetParamsFormatJSON RankingDomainGetParamsFormat = "JSON" RankingDomainGetParamsFormatCsv RankingDomainGetParamsFormat = "CSV" ) func (r RankingDomainGetParamsFormat) IsKnown() bool { switch r { - case RankingDomainGetParamsFormatJson, RankingDomainGetParamsFormatCsv: + case RankingDomainGetParamsFormatJSON, RankingDomainGetParamsFormatCsv: return true } return false diff --git a/radar/rankingdomain_test.go b/radar/rankingdomain_test.go index 2d93cf1a291..a50b31d645b 100644 --- a/radar/rankingdomain_test.go +++ b/radar/rankingdomain_test.go @@ -33,7 +33,7 @@ func TestRankingDomainGetWithOptionalParams(t *testing.T) { "google.com", radar.RankingDomainGetParams{ Date: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.RankingDomainGetParamsFormatJson), + Format: cloudflare.F(radar.RankingDomainGetParamsFormatJSON), IncludeTopLocations: cloudflare.F(true), Limit: cloudflare.F(int64(5)), Name: cloudflare.F([]string{"string"}), diff --git a/radar/search.go b/radar/search.go index fdfa6f59d9a..516ee0b46d2 100644 --- a/radar/search.go +++ b/radar/search.go @@ -136,13 +136,13 @@ func (r SearchGlobalParamsExclude) IsKnown() bool { type SearchGlobalParamsFormat string const ( - SearchGlobalParamsFormatJson SearchGlobalParamsFormat = "JSON" + SearchGlobalParamsFormatJSON SearchGlobalParamsFormat = "JSON" SearchGlobalParamsFormatCsv SearchGlobalParamsFormat = "CSV" ) func (r SearchGlobalParamsFormat) IsKnown() bool { switch r { - case SearchGlobalParamsFormatJson, SearchGlobalParamsFormatCsv: + case SearchGlobalParamsFormatJSON, SearchGlobalParamsFormatCsv: return true } return false diff --git a/radar/search_test.go b/radar/search_test.go index 7e05f67b015..a945927c8b6 100644 --- a/radar/search_test.go +++ b/radar/search_test.go @@ -30,7 +30,7 @@ func TestSearchGlobalWithOptionalParams(t *testing.T) { _, err := client.Radar.Search.Global(context.TODO(), radar.SearchGlobalParams{ Query: cloudflare.F("United"), Exclude: cloudflare.F([]radar.SearchGlobalParamsExclude{radar.SearchGlobalParamsExcludeSpecialEvents}), - Format: cloudflare.F(radar.SearchGlobalParamsFormatJson), + Format: cloudflare.F(radar.SearchGlobalParamsFormatJSON), Include: cloudflare.F([]radar.SearchGlobalParamsInclude{radar.SearchGlobalParamsIncludeSpecialEvents}), Limit: cloudflare.F(int64(5)), LimitPerGroup: cloudflare.F(0.000000), diff --git a/radar/tcpresetstimeout.go b/radar/tcpresetstimeout.go index b95cf7e6f76..1c03eecc96d 100644 --- a/radar/tcpresetstimeout.go +++ b/radar/tcpresetstimeout.go @@ -432,13 +432,13 @@ func (r TCPResetsTimeoutSummaryParams) URLQuery() (v url.Values) { type TCPResetsTimeoutSummaryParamsFormat string const ( - TCPResetsTimeoutSummaryParamsFormatJson TCPResetsTimeoutSummaryParamsFormat = "JSON" + TCPResetsTimeoutSummaryParamsFormatJSON TCPResetsTimeoutSummaryParamsFormat = "JSON" TCPResetsTimeoutSummaryParamsFormatCsv TCPResetsTimeoutSummaryParamsFormat = "CSV" ) func (r TCPResetsTimeoutSummaryParamsFormat) IsKnown() bool { switch r { - case TCPResetsTimeoutSummaryParamsFormatJson, TCPResetsTimeoutSummaryParamsFormatCsv: + case TCPResetsTimeoutSummaryParamsFormatJSON, TCPResetsTimeoutSummaryParamsFormatCsv: return true } return false @@ -531,13 +531,13 @@ func (r TCPResetsTimeoutTimeseriesGroupsParamsAggInterval) IsKnown() bool { type TCPResetsTimeoutTimeseriesGroupsParamsFormat string const ( - TCPResetsTimeoutTimeseriesGroupsParamsFormatJson TCPResetsTimeoutTimeseriesGroupsParamsFormat = "JSON" + TCPResetsTimeoutTimeseriesGroupsParamsFormatJSON TCPResetsTimeoutTimeseriesGroupsParamsFormat = "JSON" TCPResetsTimeoutTimeseriesGroupsParamsFormatCsv TCPResetsTimeoutTimeseriesGroupsParamsFormat = "CSV" ) func (r TCPResetsTimeoutTimeseriesGroupsParamsFormat) IsKnown() bool { switch r { - case TCPResetsTimeoutTimeseriesGroupsParamsFormatJson, TCPResetsTimeoutTimeseriesGroupsParamsFormatCsv: + case TCPResetsTimeoutTimeseriesGroupsParamsFormatJSON, TCPResetsTimeoutTimeseriesGroupsParamsFormatCsv: return true } return false diff --git a/radar/tcpresetstimeout_test.go b/radar/tcpresetstimeout_test.go index eaf692a43ae..dc3e3259455 100644 --- a/radar/tcpresetstimeout_test.go +++ b/radar/tcpresetstimeout_test.go @@ -34,7 +34,7 @@ func TestTCPResetsTimeoutSummaryWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.TCPResetsTimeoutSummaryParamsFormatJson), + Format: cloudflare.F(radar.TCPResetsTimeoutSummaryParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) @@ -67,7 +67,7 @@ func TestTCPResetsTimeoutTimeseriesGroupsWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.TCPResetsTimeoutTimeseriesGroupsParamsFormatJson), + Format: cloudflare.F(radar.TCPResetsTimeoutTimeseriesGroupsParamsFormatJSON), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), }) diff --git a/radar/trafficanomaly.go b/radar/trafficanomaly.go index acc0e7a54ed..7bd341e2763 100644 --- a/radar/trafficanomaly.go +++ b/radar/trafficanomaly.go @@ -214,13 +214,13 @@ func (r TrafficAnomalyGetParams) URLQuery() (v url.Values) { type TrafficAnomalyGetParamsFormat string const ( - TrafficAnomalyGetParamsFormatJson TrafficAnomalyGetParamsFormat = "JSON" + TrafficAnomalyGetParamsFormatJSON TrafficAnomalyGetParamsFormat = "JSON" TrafficAnomalyGetParamsFormatCsv TrafficAnomalyGetParamsFormat = "CSV" ) func (r TrafficAnomalyGetParamsFormat) IsKnown() bool { switch r { - case TrafficAnomalyGetParamsFormatJson, TrafficAnomalyGetParamsFormatCsv: + case TrafficAnomalyGetParamsFormatJSON, TrafficAnomalyGetParamsFormatCsv: return true } return false diff --git a/radar/trafficanomaly_test.go b/radar/trafficanomaly_test.go index a06eabecae0..d17045b4953 100644 --- a/radar/trafficanomaly_test.go +++ b/radar/trafficanomaly_test.go @@ -33,7 +33,7 @@ func TestTrafficAnomalyGetWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F(time.Now()), DateRange: cloudflare.F("7d"), DateStart: cloudflare.F(time.Now()), - Format: cloudflare.F(radar.TrafficAnomalyGetParamsFormatJson), + Format: cloudflare.F(radar.TrafficAnomalyGetParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F("US"), Offset: cloudflare.F(int64(0)), diff --git a/radar/trafficanomalylocation.go b/radar/trafficanomalylocation.go index 15f26ac6991..21be689e17c 100644 --- a/radar/trafficanomalylocation.go +++ b/radar/trafficanomalylocation.go @@ -123,13 +123,13 @@ func (r TrafficAnomalyLocationGetParams) URLQuery() (v url.Values) { type TrafficAnomalyLocationGetParamsFormat string const ( - TrafficAnomalyLocationGetParamsFormatJson TrafficAnomalyLocationGetParamsFormat = "JSON" + TrafficAnomalyLocationGetParamsFormatJSON TrafficAnomalyLocationGetParamsFormat = "JSON" TrafficAnomalyLocationGetParamsFormatCsv TrafficAnomalyLocationGetParamsFormat = "CSV" ) func (r TrafficAnomalyLocationGetParamsFormat) IsKnown() bool { switch r { - case TrafficAnomalyLocationGetParamsFormatJson, TrafficAnomalyLocationGetParamsFormatCsv: + case TrafficAnomalyLocationGetParamsFormatJSON, TrafficAnomalyLocationGetParamsFormatCsv: return true } return false diff --git a/radar/trafficanomalylocation_test.go b/radar/trafficanomalylocation_test.go index bbdaa340a09..b7187106cd6 100644 --- a/radar/trafficanomalylocation_test.go +++ b/radar/trafficanomalylocation_test.go @@ -32,7 +32,7 @@ func TestTrafficAnomalyLocationGetWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F(time.Now()), DateRange: cloudflare.F("7d"), DateStart: cloudflare.F(time.Now()), - Format: cloudflare.F(radar.TrafficAnomalyLocationGetParamsFormatJson), + Format: cloudflare.F(radar.TrafficAnomalyLocationGetParamsFormatJSON), Limit: cloudflare.F(int64(5)), Status: cloudflare.F(radar.TrafficAnomalyLocationGetParamsStatusVerified), }) diff --git a/radar/verifiedbottop.go b/radar/verifiedbottop.go index 73efb844f99..f39dd35cbe1 100644 --- a/radar/verifiedbottop.go +++ b/radar/verifiedbottop.go @@ -408,13 +408,13 @@ func (r VerifiedBotTopBotsParams) URLQuery() (v url.Values) { type VerifiedBotTopBotsParamsFormat string const ( - VerifiedBotTopBotsParamsFormatJson VerifiedBotTopBotsParamsFormat = "JSON" + VerifiedBotTopBotsParamsFormatJSON VerifiedBotTopBotsParamsFormat = "JSON" VerifiedBotTopBotsParamsFormatCsv VerifiedBotTopBotsParamsFormat = "CSV" ) func (r VerifiedBotTopBotsParamsFormat) IsKnown() bool { switch r { - case VerifiedBotTopBotsParamsFormatJson, VerifiedBotTopBotsParamsFormatCsv: + case VerifiedBotTopBotsParamsFormatJSON, VerifiedBotTopBotsParamsFormatCsv: return true } return false @@ -485,13 +485,13 @@ func (r VerifiedBotTopCategoriesParams) URLQuery() (v url.Values) { type VerifiedBotTopCategoriesParamsFormat string const ( - VerifiedBotTopCategoriesParamsFormatJson VerifiedBotTopCategoriesParamsFormat = "JSON" + VerifiedBotTopCategoriesParamsFormatJSON VerifiedBotTopCategoriesParamsFormat = "JSON" VerifiedBotTopCategoriesParamsFormatCsv VerifiedBotTopCategoriesParamsFormat = "CSV" ) func (r VerifiedBotTopCategoriesParamsFormat) IsKnown() bool { switch r { - case VerifiedBotTopCategoriesParamsFormatJson, VerifiedBotTopCategoriesParamsFormatCsv: + case VerifiedBotTopCategoriesParamsFormatJSON, VerifiedBotTopCategoriesParamsFormatCsv: return true } return false diff --git a/radar/verifiedbottop_test.go b/radar/verifiedbottop_test.go index 4c108b05b50..087be39a4dc 100644 --- a/radar/verifiedbottop_test.go +++ b/radar/verifiedbottop_test.go @@ -34,7 +34,7 @@ func TestVerifiedBotTopBotsWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.VerifiedBotTopBotsParamsFormatJson), + Format: cloudflare.F(radar.VerifiedBotTopBotsParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), @@ -67,7 +67,7 @@ func TestVerifiedBotTopCategoriesWithOptionalParams(t *testing.T) { DateEnd: cloudflare.F([]time.Time{time.Now()}), DateRange: cloudflare.F([]string{"7d"}), DateStart: cloudflare.F([]time.Time{time.Now()}), - Format: cloudflare.F(radar.VerifiedBotTopCategoriesParamsFormatJson), + Format: cloudflare.F(radar.VerifiedBotTopCategoriesParamsFormatJSON), Limit: cloudflare.F(int64(5)), Location: cloudflare.F([]string{"string"}), Name: cloudflare.F([]string{"string"}), diff --git a/request_tracers/trace.go b/request_tracers/trace.go index 3e87928ab6f..da2a3d4f60e 100644 --- a/request_tracers/trace.go +++ b/request_tracers/trace.go @@ -154,7 +154,7 @@ type TraceNewParamsBody struct { // Base64 encoded request body Base64 param.Field[string] `json:"base64"` // Arbitrary json as request body - Json param.Field[interface{}] `json:"json"` + JSON param.Field[interface{}] `json:"json"` // Request body as plain text PlainText param.Field[string] `json:"plain_text"` } diff --git a/request_tracers/trace_test.go b/request_tracers/trace_test.go index 306f2066c73..080a4237e0e 100644 --- a/request_tracers/trace_test.go +++ b/request_tracers/trace_test.go @@ -33,7 +33,7 @@ func TestTraceNewWithOptionalParams(t *testing.T) { URL: cloudflare.F("https://some.zone/some_path"), Body: cloudflare.F(request_tracers.TraceNewParamsBody{ Base64: cloudflare.F("c29tZV9yZXF1ZXN0X2JvZHk="), - Json: cloudflare.F[any](map[string]interface{}{}), + JSON: cloudflare.F[any](map[string]interface{}{}), PlainText: cloudflare.F("plain_text"), }), Context: cloudflare.F(request_tracers.TraceNewParamsContext{ diff --git a/rulesets/rule.go b/rulesets/rule.go index 1f7a6e60b4d..7adf3f80612 100644 --- a/rulesets/rule.go +++ b/rulesets/rule.go @@ -5043,7 +5043,7 @@ func (r serveErrorRuleActionParametersJSON) RawJSON() string { type ServeErrorRuleActionParametersContentType string const ( - ServeErrorRuleActionParametersContentTypeApplicationJson ServeErrorRuleActionParametersContentType = "application/json" + ServeErrorRuleActionParametersContentTypeApplicationJSON ServeErrorRuleActionParametersContentType = "application/json" ServeErrorRuleActionParametersContentTypeTextXml ServeErrorRuleActionParametersContentType = "text/xml" ServeErrorRuleActionParametersContentTypeTextPlain ServeErrorRuleActionParametersContentType = "text/plain" ServeErrorRuleActionParametersContentTypeTextHTML ServeErrorRuleActionParametersContentType = "text/html" @@ -5051,7 +5051,7 @@ const ( func (r ServeErrorRuleActionParametersContentType) IsKnown() bool { switch r { - case ServeErrorRuleActionParametersContentTypeApplicationJson, ServeErrorRuleActionParametersContentTypeTextXml, ServeErrorRuleActionParametersContentTypeTextPlain, ServeErrorRuleActionParametersContentTypeTextHTML: + case ServeErrorRuleActionParametersContentTypeApplicationJSON, ServeErrorRuleActionParametersContentTypeTextXml, ServeErrorRuleActionParametersContentTypeTextPlain, ServeErrorRuleActionParametersContentTypeTextHTML: return true } return false diff --git a/speed/speed.go b/speed/speed.go index eb9a62cd4f2..90ebeff8757 100644 --- a/speed/speed.go +++ b/speed/speed.go @@ -101,7 +101,7 @@ type LighthouseReport struct { // First Contentful Paint. Fcp float64 `json:"fcp"` // The URL to the full Lighthouse JSON report. - JsonReportURL string `json:"jsonReportUrl"` + JSONReportURL string `json:"jsonReportUrl"` // Largest Contentful Paint. Lcp float64 `json:"lcp"` // The Lighthouse performance score. @@ -126,7 +126,7 @@ type lighthouseReportJSON struct { DeviceType apijson.Field Error apijson.Field Fcp apijson.Field - JsonReportURL apijson.Field + JSONReportURL apijson.Field Lcp apijson.Field PerformanceScore apijson.Field Si apijson.Field diff --git a/waiting_rooms/waitingroom.go b/waiting_rooms/waitingroom.go index a988985ca8d..22605b91fb2 100644 --- a/waiting_rooms/waitingroom.go +++ b/waiting_rooms/waitingroom.go @@ -526,7 +526,7 @@ type QueryParam struct { // "shuffleAtEventStart": true // } // }. - JsonResponseEnabled param.Field[bool] `json:"json_response_enabled"` + JSONResponseEnabled param.Field[bool] `json:"json_response_enabled"` // Sets the path within the host to enable the waiting room on. The waiting room // will be enabled for all subpaths as well. If there are two waiting rooms on the // same subpath, the waiting room for the most specific path will be chosen. @@ -960,7 +960,7 @@ type WaitingRoom struct { // "shuffleAtEventStart": true // } // }. - JsonResponseEnabled bool `json:"json_response_enabled"` + JSONResponseEnabled bool `json:"json_response_enabled"` ModifiedOn time.Time `json:"modified_on" format:"date-time"` // A unique name to identify the waiting room. Only alphanumeric characters, // hyphens and underscores are allowed. @@ -1055,7 +1055,7 @@ type waitingRoomJSON struct { DisableSessionRenewal apijson.Field EnabledOriginCommands apijson.Field Host apijson.Field - JsonResponseEnabled apijson.Field + JSONResponseEnabled apijson.Field ModifiedOn apijson.Field Name apijson.Field NewUsersPerMinute apijson.Field diff --git a/waiting_rooms/waitingroom_test.go b/waiting_rooms/waitingroom_test.go index 421ec29f37a..7909fb5c609 100644 --- a/waiting_rooms/waitingroom_test.go +++ b/waiting_rooms/waitingroom_test.go @@ -48,7 +48,7 @@ func TestWaitingRoomNewWithOptionalParams(t *testing.T) { Description: cloudflare.F("Production - DO NOT MODIFY"), DisableSessionRenewal: cloudflare.F(false), EnabledOriginCommands: cloudflare.F([]waiting_rooms.QueryEnabledOriginCommand{waiting_rooms.QueryEnabledOriginCommandRevoke}), - JsonResponseEnabled: cloudflare.F(false), + JSONResponseEnabled: cloudflare.F(false), Path: cloudflare.F("/shop/checkout"), QueueAll: cloudflare.F(true), QueueingMethod: cloudflare.F(waiting_rooms.QueryQueueingMethodFifo), @@ -105,7 +105,7 @@ func TestWaitingRoomUpdateWithOptionalParams(t *testing.T) { Description: cloudflare.F("Production - DO NOT MODIFY"), DisableSessionRenewal: cloudflare.F(false), EnabledOriginCommands: cloudflare.F([]waiting_rooms.QueryEnabledOriginCommand{waiting_rooms.QueryEnabledOriginCommandRevoke}), - JsonResponseEnabled: cloudflare.F(false), + JSONResponseEnabled: cloudflare.F(false), Path: cloudflare.F("/shop/checkout"), QueueAll: cloudflare.F(true), QueueingMethod: cloudflare.F(waiting_rooms.QueryQueueingMethodFifo), @@ -219,7 +219,7 @@ func TestWaitingRoomEditWithOptionalParams(t *testing.T) { Description: cloudflare.F("Production - DO NOT MODIFY"), DisableSessionRenewal: cloudflare.F(false), EnabledOriginCommands: cloudflare.F([]waiting_rooms.QueryEnabledOriginCommand{waiting_rooms.QueryEnabledOriginCommandRevoke}), - JsonResponseEnabled: cloudflare.F(false), + JSONResponseEnabled: cloudflare.F(false), Path: cloudflare.F("/shop/checkout"), QueueAll: cloudflare.F(true), QueueingMethod: cloudflare.F(waiting_rooms.QueryQueueingMethodFifo), diff --git a/workers/script.go b/workers/script.go index 3a5818e6e4f..3feaa732082 100644 --- a/workers/script.go +++ b/workers/script.go @@ -642,7 +642,7 @@ type ScriptUpdateParamsMetadataBinding struct { // Name of the Vectorize index to bind to. IndexName param.Field[string] `json:"index_name"` // JSON data to use. - Json param.Field[string] `json:"json"` + JSON param.Field[string] `json:"json"` // Namespace to bind to. Namespace param.Field[string] `json:"namespace"` // Namespace identifier tag. @@ -677,7 +677,7 @@ func (r ScriptUpdateParamsMetadataBinding) implementsWorkersScriptUpdateParamsMe // [workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace], // [workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindDo], // [workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive], -// [workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindJson], +// [workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindJSON], // [workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace], // [workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERT], // [workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText], @@ -984,32 +984,32 @@ func (r ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType) IsKn return false } -type ScriptUpdateParamsMetadataBindingsWorkersBindingKindJson struct { +type ScriptUpdateParamsMetadataBindingsWorkersBindingKindJSON struct { // JSON data to use. - Json param.Field[string] `json:"json,required"` + JSON param.Field[string] `json:"json,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. - Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType] `json:"type,required"` + Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindJSONType] `json:"type,required"` } -func (r ScriptUpdateParamsMetadataBindingsWorkersBindingKindJson) MarshalJSON() (data []byte, err error) { +func (r ScriptUpdateParamsMetadataBindingsWorkersBindingKindJSON) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -func (r ScriptUpdateParamsMetadataBindingsWorkersBindingKindJson) implementsWorkersScriptUpdateParamsMetadataBindingUnion() { +func (r ScriptUpdateParamsMetadataBindingsWorkersBindingKindJSON) implementsWorkersScriptUpdateParamsMetadataBindingUnion() { } // The kind of resource that the binding provides. -type ScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType string +type ScriptUpdateParamsMetadataBindingsWorkersBindingKindJSONType string const ( - ScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonTypeJson ScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType = "json" + ScriptUpdateParamsMetadataBindingsWorkersBindingKindJSONTypeJSON ScriptUpdateParamsMetadataBindingsWorkersBindingKindJSONType = "json" ) -func (r ScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType) IsKnown() bool { +func (r ScriptUpdateParamsMetadataBindingsWorkersBindingKindJSONType) IsKnown() bool { switch r { - case ScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonTypeJson: + case ScriptUpdateParamsMetadataBindingsWorkersBindingKindJSONTypeJSON: return true } return false diff --git a/workers/scriptversion.go b/workers/scriptversion.go index ba9aee1a596..69650ec39f4 100644 --- a/workers/scriptversion.go +++ b/workers/scriptversion.go @@ -282,7 +282,7 @@ type ScriptVersionNewParamsMetadataBinding struct { // Name of the Vectorize index to bind to. IndexName param.Field[string] `json:"index_name"` // JSON data to use. - Json param.Field[string] `json:"json"` + JSON param.Field[string] `json:"json"` // Namespace to bind to. Namespace param.Field[string] `json:"namespace"` // Namespace identifier tag. @@ -318,7 +318,7 @@ func (r ScriptVersionNewParamsMetadataBinding) implementsWorkersScriptVersionNew // [workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespace], // [workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDo], // [workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdrive], -// [workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJson], +// [workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJSON], // [workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindKVNamespace], // [workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMTLSCERT], // [workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPlainText], @@ -625,32 +625,32 @@ func (r ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdriveType) return false } -type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJson struct { +type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJSON struct { // JSON data to use. - Json param.Field[string] `json:"json,required"` + JSON param.Field[string] `json:"json,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. - Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJsonType] `json:"type,required"` + Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJSONType] `json:"type,required"` } -func (r ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJson) MarshalJSON() (data []byte, err error) { +func (r ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJSON) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -func (r ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJson) implementsWorkersScriptVersionNewParamsMetadataBindingUnion() { +func (r ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJSON) implementsWorkersScriptVersionNewParamsMetadataBindingUnion() { } // The kind of resource that the binding provides. -type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJsonType string +type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJSONType string const ( - ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJsonTypeJson ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJsonType = "json" + ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJSONTypeJSON ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJSONType = "json" ) -func (r ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJsonType) IsKnown() bool { +func (r ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJSONType) IsKnown() bool { switch r { - case ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJsonTypeJson: + case ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJSONTypeJSON: return true } return false diff --git a/workers_for_platforms/dispatchnamespacescript.go b/workers_for_platforms/dispatchnamespacescript.go index 71e4fd68f02..dd0704d190e 100644 --- a/workers_for_platforms/dispatchnamespacescript.go +++ b/workers_for_platforms/dispatchnamespacescript.go @@ -440,7 +440,7 @@ type DispatchNamespaceScriptUpdateParamsMetadataBinding struct { // Name of the Vectorize index to bind to. IndexName param.Field[string] `json:"index_name"` // JSON data to use. - Json param.Field[string] `json:"json"` + JSON param.Field[string] `json:"json"` // Namespace to bind to. Namespace param.Field[string] `json:"namespace"` // Namespace identifier tag. @@ -476,7 +476,7 @@ func (r DispatchNamespaceScriptUpdateParamsMetadataBinding) implementsWorkersFor // [workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace], // [workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDo], // [workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive], -// [workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJson], +// [workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJSON], // [workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace], // [workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERT], // [workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText], @@ -783,32 +783,32 @@ func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyp return false } -type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJson struct { +type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJSON struct { // JSON data to use. - Json param.Field[string] `json:"json,required"` + JSON param.Field[string] `json:"json,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. - Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType] `json:"type,required"` + Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJSONType] `json:"type,required"` } -func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJson) MarshalJSON() (data []byte, err error) { +func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJSON) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJson) implementsWorkersForPlatformsDispatchNamespaceScriptUpdateParamsMetadataBindingUnion() { +func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJSON) implementsWorkersForPlatformsDispatchNamespaceScriptUpdateParamsMetadataBindingUnion() { } // The kind of resource that the binding provides. -type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType string +type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJSONType string const ( - DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonTypeJson DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType = "json" + DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJSONTypeJSON DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJSONType = "json" ) -func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType) IsKnown() bool { +func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJSONType) IsKnown() bool { switch r { - case DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonTypeJson: + case DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJSONTypeJSON: return true } return false diff --git a/workers_for_platforms/dispatchnamespacescriptbinding.go b/workers_for_platforms/dispatchnamespacescriptbinding.go index c77820626c3..b904864f0f8 100644 --- a/workers_for_platforms/dispatchnamespacescriptbinding.go +++ b/workers_for_platforms/dispatchnamespacescriptbinding.go @@ -83,7 +83,7 @@ type DispatchNamespaceScriptBindingGetResponse struct { // Name of the Vectorize index to bind to. IndexName string `json:"index_name"` // JSON data to use. - Json string `json:"json"` + JSON string `json:"json"` // Namespace to bind to. Namespace string `json:"namespace"` // Namespace identifier tag. @@ -116,7 +116,7 @@ type dispatchNamespaceScriptBindingGetResponseJSON struct { Dataset apijson.Field Environment apijson.Field IndexName apijson.Field - Json apijson.Field + JSON apijson.Field Namespace apijson.Field NamespaceID apijson.Field Outbound apijson.Field @@ -154,7 +154,7 @@ func (r *DispatchNamespaceScriptBindingGetResponse) UnmarshalJSON(data []byte) ( // [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespace], // [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDo], // [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdrive], -// [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson], +// [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSON], // [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespace], // [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERT], // [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainText], @@ -181,7 +181,7 @@ func (r DispatchNamespaceScriptBindingGetResponse) AsUnion() DispatchNamespaceSc // [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespace], // [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDo], // [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdrive], -// [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson], +// [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSON], // [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespace], // [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERT], // [workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainText], @@ -239,7 +239,7 @@ func init() { }, apijson.UnionVariant{ TypeFilter: gjson.JSON, - Type: reflect.TypeOf(DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson{}), + Type: reflect.TypeOf(DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSON{}), }, apijson.UnionVariant{ TypeFilter: gjson.JSON, @@ -749,48 +749,48 @@ func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveTyp return false } -type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson struct { +type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSON struct { // JSON data to use. - Json string `json:"json,required"` + JSON string `json:"json,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. - Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType `json:"type,required"` - JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonJSON `json:"-"` + Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSONType `json:"type,required"` + JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSONJSON `json:"-"` } -// dispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonJSON contains the +// dispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSONJSON contains the // JSON metadata for the struct -// [DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson] -type dispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonJSON struct { - Json apijson.Field +// [DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSON] +type dispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSONJSON struct { + JSON apijson.Field Name apijson.Field Type apijson.Field raw string ExtraFields map[string]apijson.Field } -func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson) UnmarshalJSON(data []byte) (err error) { +func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSON) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r dispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonJSON) RawJSON() string { +func (r dispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSONJSON) RawJSON() string { return r.raw } -func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson) implementsWorkersForPlatformsDispatchNamespaceScriptBindingGetResponse() { +func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSON) implementsWorkersForPlatformsDispatchNamespaceScriptBindingGetResponse() { } // The kind of resource that the binding provides. -type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType string +type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSONType string const ( - DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonTypeJson DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType = "json" + DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSONTypeJSON DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSONType = "json" ) -func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType) IsKnown() bool { +func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSONType) IsKnown() bool { switch r { - case DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonTypeJson: + case DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJSONTypeJSON: return true } return false diff --git a/workers_for_platforms/dispatchnamespacescriptsetting.go b/workers_for_platforms/dispatchnamespacescriptsetting.go index f630b8fedec..7ae83c07278 100644 --- a/workers_for_platforms/dispatchnamespacescriptsetting.go +++ b/workers_for_platforms/dispatchnamespacescriptsetting.go @@ -169,7 +169,7 @@ type DispatchNamespaceScriptSettingEditResponseBinding struct { // Name of the Vectorize index to bind to. IndexName string `json:"index_name"` // JSON data to use. - Json string `json:"json"` + JSON string `json:"json"` // Namespace to bind to. Namespace string `json:"namespace"` // Namespace identifier tag. @@ -202,7 +202,7 @@ type dispatchNamespaceScriptSettingEditResponseBindingJSON struct { Dataset apijson.Field Environment apijson.Field IndexName apijson.Field - Json apijson.Field + JSON apijson.Field Namespace apijson.Field NamespaceID apijson.Field Outbound apijson.Field @@ -240,7 +240,7 @@ func (r *DispatchNamespaceScriptSettingEditResponseBinding) UnmarshalJSON(data [ // [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespace], // [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDo], // [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdrive], -// [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson], +// [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSON], // [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespace], // [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERT], // [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainText], @@ -267,7 +267,7 @@ func (r DispatchNamespaceScriptSettingEditResponseBinding) AsUnion() DispatchNam // [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespace], // [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDo], // [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdrive], -// [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson], +// [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSON], // [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespace], // [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERT], // [workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainText], @@ -325,7 +325,7 @@ func init() { }, apijson.UnionVariant{ TypeFilter: gjson.JSON, - Type: reflect.TypeOf(DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson{}), + Type: reflect.TypeOf(DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSON{}), }, apijson.UnionVariant{ TypeFilter: gjson.JSON, @@ -835,48 +835,48 @@ func (r DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHype return false } -type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson struct { +type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSON struct { // JSON data to use. - Json string `json:"json,required"` + JSON string `json:"json,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. - Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType `json:"type,required"` - JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonJSON `json:"-"` + Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSONType `json:"type,required"` + JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSONJSON `json:"-"` } -// dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonJSON +// dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSONJSON // contains the JSON metadata for the struct -// [DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson] -type dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonJSON struct { - Json apijson.Field +// [DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSON] +type dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSONJSON struct { + JSON apijson.Field Name apijson.Field Type apijson.Field raw string ExtraFields map[string]apijson.Field } -func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson) UnmarshalJSON(data []byte) (err error) { +func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSON) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonJSON) RawJSON() string { +func (r dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSONJSON) RawJSON() string { return r.raw } -func (r DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson) implementsWorkersForPlatformsDispatchNamespaceScriptSettingEditResponseBinding() { +func (r DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSON) implementsWorkersForPlatformsDispatchNamespaceScriptSettingEditResponseBinding() { } // The kind of resource that the binding provides. -type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType string +type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSONType string const ( - DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonTypeJson DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType = "json" + DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSONTypeJSON DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSONType = "json" ) -func (r DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType) IsKnown() bool { +func (r DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSONType) IsKnown() bool { switch r { - case DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonTypeJson: + case DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJSONTypeJSON: return true } return false @@ -1656,7 +1656,7 @@ type DispatchNamespaceScriptSettingGetResponseBinding struct { // Name of the Vectorize index to bind to. IndexName string `json:"index_name"` // JSON data to use. - Json string `json:"json"` + JSON string `json:"json"` // Namespace to bind to. Namespace string `json:"namespace"` // Namespace identifier tag. @@ -1689,7 +1689,7 @@ type dispatchNamespaceScriptSettingGetResponseBindingJSON struct { Dataset apijson.Field Environment apijson.Field IndexName apijson.Field - Json apijson.Field + JSON apijson.Field Namespace apijson.Field NamespaceID apijson.Field Outbound apijson.Field @@ -1727,7 +1727,7 @@ func (r *DispatchNamespaceScriptSettingGetResponseBinding) UnmarshalJSON(data [] // [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespace], // [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDo], // [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdrive], -// [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson], +// [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSON], // [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespace], // [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERT], // [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainText], @@ -1754,7 +1754,7 @@ func (r DispatchNamespaceScriptSettingGetResponseBinding) AsUnion() DispatchName // [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespace], // [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDo], // [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdrive], -// [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson], +// [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSON], // [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespace], // [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERT], // [workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainText], @@ -1812,7 +1812,7 @@ func init() { }, apijson.UnionVariant{ TypeFilter: gjson.JSON, - Type: reflect.TypeOf(DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson{}), + Type: reflect.TypeOf(DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSON{}), }, apijson.UnionVariant{ TypeFilter: gjson.JSON, @@ -2322,48 +2322,48 @@ func (r DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyper return false } -type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson struct { +type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSON struct { // JSON data to use. - Json string `json:"json,required"` + JSON string `json:"json,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. - Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType `json:"type,required"` - JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonJSON `json:"-"` + Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSONType `json:"type,required"` + JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSONJSON `json:"-"` } -// dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonJSON +// dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSONJSON // contains the JSON metadata for the struct -// [DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson] -type dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonJSON struct { - Json apijson.Field +// [DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSON] +type dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSONJSON struct { + JSON apijson.Field Name apijson.Field Type apijson.Field raw string ExtraFields map[string]apijson.Field } -func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson) UnmarshalJSON(data []byte) (err error) { +func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSON) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonJSON) RawJSON() string { +func (r dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSONJSON) RawJSON() string { return r.raw } -func (r DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson) implementsWorkersForPlatformsDispatchNamespaceScriptSettingGetResponseBinding() { +func (r DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSON) implementsWorkersForPlatformsDispatchNamespaceScriptSettingGetResponseBinding() { } // The kind of resource that the binding provides. -type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType string +type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSONType string const ( - DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonTypeJson DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType = "json" + DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSONTypeJSON DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSONType = "json" ) -func (r DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType) IsKnown() bool { +func (r DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSONType) IsKnown() bool { switch r { - case DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonTypeJson: + case DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJSONTypeJSON: return true } return false @@ -3140,7 +3140,7 @@ type DispatchNamespaceScriptSettingEditParamsSettingsBinding struct { // Name of the Vectorize index to bind to. IndexName param.Field[string] `json:"index_name"` // JSON data to use. - Json param.Field[string] `json:"json"` + JSON param.Field[string] `json:"json"` // Namespace to bind to. Namespace param.Field[string] `json:"namespace"` // Namespace identifier tag. @@ -3176,7 +3176,7 @@ func (r DispatchNamespaceScriptSettingEditParamsSettingsBinding) implementsWorke // [workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace], // [workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDo], // [workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive], -// [workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJson], +// [workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJSON], // [workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace], // [workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERT], // [workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainText], @@ -3483,32 +3483,32 @@ func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKi return false } -type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJson struct { +type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJSON struct { // JSON data to use. - Json param.Field[string] `json:"json,required"` + JSON param.Field[string] `json:"json,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. - Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonType] `json:"type,required"` + Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJSONType] `json:"type,required"` } -func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJson) MarshalJSON() (data []byte, err error) { +func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJSON) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJson) implementsWorkersForPlatformsDispatchNamespaceScriptSettingEditParamsSettingsBindingUnion() { +func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJSON) implementsWorkersForPlatformsDispatchNamespaceScriptSettingEditParamsSettingsBindingUnion() { } // The kind of resource that the binding provides. -type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonType string +type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJSONType string const ( - DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonTypeJson DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonType = "json" + DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJSONTypeJSON DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJSONType = "json" ) -func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonType) IsKnown() bool { +func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJSONType) IsKnown() bool { switch r { - case DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonTypeJson: + case DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJSONTypeJSON: return true } return false