diff --git a/.stats.yml b/.stats.yml
index 6ad25796dd8..b47d0a34bfc 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,2 +1,2 @@
-configured_endpoints: 1342
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-02e713089d6f667b3c197d0b2c90547a939434be8f8c458ff007fd5dfc4da058.yml
+configured_endpoints: 1336
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-40cba2df64bb65d7c04f311361fd786305223e674540a2c3fc4442b2fba34bd3.yml
diff --git a/api.md b/api.md
index 7e7a181f9fc..0f0d14bcf35 100644
--- a/api.md
+++ b/api.md
@@ -5800,32 +5800,8 @@ Methods:
#### Summary
-Response Types:
-
-- radar.AIGatewaySummaryModelResponse
-- radar.AIGatewaySummaryProviderResponse
-- radar.AIGatewaySummaryTaskResponse
-
-Methods:
-
-- client.Radar.AI.Gateway.Summary.Model(ctx context.Context, query radar.AIGatewaySummaryModelParams) (radar.AIGatewaySummaryModelResponse, error)
-- client.Radar.AI.Gateway.Summary.Provider(ctx context.Context, query radar.AIGatewaySummaryProviderParams) (radar.AIGatewaySummaryProviderResponse, error)
-- client.Radar.AI.Gateway.Summary.Task(ctx context.Context, query radar.AIGatewaySummaryTaskParams) (radar.AIGatewaySummaryTaskResponse, error)
-
#### TimeseriesGroups
-Response Types:
-
-- radar.AIGatewayTimeseriesGroupModelResponse
-- radar.AIGatewayTimeseriesGroupProviderResponse
-- radar.AIGatewayTimeseriesGroupTaskResponse
-
-Methods:
-
-- client.Radar.AI.Gateway.TimeseriesGroups.Model(ctx context.Context, query radar.AIGatewayTimeseriesGroupModelParams) (radar.AIGatewayTimeseriesGroupModelResponse, error)
-- client.Radar.AI.Gateway.TimeseriesGroups.Provider(ctx context.Context, query radar.AIGatewayTimeseriesGroupProviderParams) (radar.AIGatewayTimeseriesGroupProviderResponse, error)
-- client.Radar.AI.Gateway.TimeseriesGroups.Task(ctx context.Context, query radar.AIGatewayTimeseriesGroupTaskParams) (radar.AIGatewayTimeseriesGroupTaskResponse, error)
-
## Annotations
Response Types:
@@ -6799,13 +6775,13 @@ Methods:
Response Types:
-- origin_post_quantum_encryption.OriginPostQuantumEncryptionUpdateResponse
-- origin_post_quantum_encryption.OriginPostQuantumEncryptionGetResponse
+- origin_post_quantum_encryption.interface{}
+- origin_post_quantum_encryption.interface{}
Methods:
-- client.OriginPostQuantumEncryption.Update(ctx context.Context, params origin_post_quantum_encryption.OriginPostQuantumEncryptionUpdateParams) (origin_post_quantum_encryption.OriginPostQuantumEncryptionUpdateResponse, error)
-- client.OriginPostQuantumEncryption.Get(ctx context.Context, query origin_post_quantum_encryption.OriginPostQuantumEncryptionGetParams) (origin_post_quantum_encryption.OriginPostQuantumEncryptionGetResponse, error)
+- client.OriginPostQuantumEncryption.Update(ctx context.Context, params origin_post_quantum_encryption.OriginPostQuantumEncryptionUpdateParams) (origin_post_quantum_encryption.interface{}, error)
+- client.OriginPostQuantumEncryption.Get(ctx context.Context, query origin_post_quantum_encryption.OriginPostQuantumEncryptionGetParams) (origin_post_quantum_encryption.interface{}, error)
# Speed
diff --git a/argo/tieredcaching.go b/argo/tieredcaching.go
index a1d2db8f514..4b54c2e7a6c 100644
--- a/argo/tieredcaching.go
+++ b/argo/tieredcaching.go
@@ -191,11 +191,11 @@ func (r TieredCachingEditParamsValue) IsKnown() bool {
}
type TieredCachingEditResponseEnvelope struct {
- Errors []shared.ResponseInfo `json:"errors,required"`
- Messages []shared.ResponseInfo `json:"messages,required"`
+ Errors []shared.ResponseInfo `json:"errors,required"`
+ Messages []shared.ResponseInfo `json:"messages,required"`
+ Result TieredCachingEditResponse `json:"result,required"`
// Whether the API call was successful
Success TieredCachingEditResponseEnvelopeSuccess `json:"success,required"`
- Result TieredCachingEditResponse `json:"result"`
JSON tieredCachingEditResponseEnvelopeJSON `json:"-"`
}
@@ -204,8 +204,8 @@ type TieredCachingEditResponseEnvelope struct {
type tieredCachingEditResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
@@ -239,11 +239,11 @@ type TieredCachingGetParams struct {
}
type TieredCachingGetResponseEnvelope struct {
- Errors []shared.ResponseInfo `json:"errors,required"`
- Messages []shared.ResponseInfo `json:"messages,required"`
+ Errors []shared.ResponseInfo `json:"errors,required"`
+ Messages []shared.ResponseInfo `json:"messages,required"`
+ Result TieredCachingGetResponse `json:"result,required"`
// Whether the API call was successful
Success TieredCachingGetResponseEnvelopeSuccess `json:"success,required"`
- Result TieredCachingGetResponse `json:"result"`
JSON tieredCachingGetResponseEnvelopeJSON `json:"-"`
}
@@ -252,8 +252,8 @@ type TieredCachingGetResponseEnvelope struct {
type tieredCachingGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
diff --git a/cache/cachereserve.go b/cache/cachereserve.go
index 91510b4d8ae..1506d03110f 100644
--- a/cache/cachereserve.go
+++ b/cache/cachereserve.go
@@ -354,14 +354,14 @@ func (r CacheReserveClearParams) MarshalJSON() (data []byte, err error) {
type CacheReserveClearResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- // Whether the API call was successful
- Success CacheReserveClearResponseEnvelopeSuccess `json:"success,required"`
// You can use Cache Reserve Clear to clear your Cache Reserve, but you must first
// disable Cache Reserve. In most cases, this will be accomplished within 24 hours.
// You cannot re-enable Cache Reserve while this process is ongoing. Keep in mind
// that you cannot undo or cancel this operation.
- Result CacheReserveClearResponse `json:"result"`
- JSON cacheReserveClearResponseEnvelopeJSON `json:"-"`
+ Result CacheReserveClearResponse `json:"result,required"`
+ // Whether the API call was successful
+ Success CacheReserveClearResponseEnvelopeSuccess `json:"success,required"`
+ JSON cacheReserveClearResponseEnvelopeJSON `json:"-"`
}
// cacheReserveClearResponseEnvelopeJSON contains the JSON metadata for the struct
@@ -369,8 +369,8 @@ type CacheReserveClearResponseEnvelope struct {
type cacheReserveClearResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
@@ -428,16 +428,16 @@ func (r CacheReserveEditParamsValue) IsKnown() bool {
type CacheReserveEditResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- // Whether the API call was successful
- Success CacheReserveEditResponseEnvelopeSuccess `json:"success,required"`
// Increase cache lifetimes by automatically storing all cacheable files into
// Cloudflare's persistent object storage buckets. Requires Cache Reserve
// subscription. Note: using Tiered Cache with Cache Reserve is highly recommended
// to reduce Reserve operations costs. See the
// [developer docs](https://developers.cloudflare.com/cache/about/cache-reserve)
// for more information.
- Result CacheReserveEditResponse `json:"result"`
- JSON cacheReserveEditResponseEnvelopeJSON `json:"-"`
+ Result CacheReserveEditResponse `json:"result,required"`
+ // Whether the API call was successful
+ Success CacheReserveEditResponseEnvelopeSuccess `json:"success,required"`
+ JSON cacheReserveEditResponseEnvelopeJSON `json:"-"`
}
// cacheReserveEditResponseEnvelopeJSON contains the JSON metadata for the struct
@@ -445,8 +445,8 @@ type CacheReserveEditResponseEnvelope struct {
type cacheReserveEditResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
@@ -482,16 +482,16 @@ type CacheReserveGetParams struct {
type CacheReserveGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- // Whether the API call was successful
- Success CacheReserveGetResponseEnvelopeSuccess `json:"success,required"`
// Increase cache lifetimes by automatically storing all cacheable files into
// Cloudflare's persistent object storage buckets. Requires Cache Reserve
// subscription. Note: using Tiered Cache with Cache Reserve is highly recommended
// to reduce Reserve operations costs. See the
// [developer docs](https://developers.cloudflare.com/cache/about/cache-reserve)
// for more information.
- Result CacheReserveGetResponse `json:"result"`
- JSON cacheReserveGetResponseEnvelopeJSON `json:"-"`
+ Result CacheReserveGetResponse `json:"result,required"`
+ // Whether the API call was successful
+ Success CacheReserveGetResponseEnvelopeSuccess `json:"success,required"`
+ JSON cacheReserveGetResponseEnvelopeJSON `json:"-"`
}
// cacheReserveGetResponseEnvelopeJSON contains the JSON metadata for the struct
@@ -499,8 +499,8 @@ type CacheReserveGetResponseEnvelope struct {
type cacheReserveGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
@@ -536,14 +536,14 @@ type CacheReserveStatusParams struct {
type CacheReserveStatusResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- // Whether the API call was successful
- Success CacheReserveStatusResponseEnvelopeSuccess `json:"success,required"`
// You can use Cache Reserve Clear to clear your Cache Reserve, but you must first
// disable Cache Reserve. In most cases, this will be accomplished within 24 hours.
// You cannot re-enable Cache Reserve while this process is ongoing. Keep in mind
// that you cannot undo or cancel this operation.
- Result CacheReserveStatusResponse `json:"result"`
- JSON cacheReserveStatusResponseEnvelopeJSON `json:"-"`
+ Result CacheReserveStatusResponse `json:"result,required"`
+ // Whether the API call was successful
+ Success CacheReserveStatusResponseEnvelopeSuccess `json:"success,required"`
+ JSON cacheReserveStatusResponseEnvelopeJSON `json:"-"`
}
// cacheReserveStatusResponseEnvelopeJSON contains the JSON metadata for the struct
@@ -551,8 +551,8 @@ type CacheReserveStatusResponseEnvelope struct {
type cacheReserveStatusResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
diff --git a/cache/regionaltieredcache.go b/cache/regionaltieredcache.go
index 8e55f77790b..062592974e5 100644
--- a/cache/regionaltieredcache.go
+++ b/cache/regionaltieredcache.go
@@ -240,13 +240,13 @@ func (r RegionalTieredCacheEditParamsValue) IsKnown() bool {
type RegionalTieredCacheEditResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- // Whether the API call was successful
- Success RegionalTieredCacheEditResponseEnvelopeSuccess `json:"success,required"`
// Instructs Cloudflare to check a regional hub data center on the way to your
// upper tier. This can help improve performance for smart and custom tiered cache
// topologies.
- Result RegionalTieredCacheEditResponse `json:"result"`
- JSON regionalTieredCacheEditResponseEnvelopeJSON `json:"-"`
+ Result RegionalTieredCacheEditResponse `json:"result,required"`
+ // Whether the API call was successful
+ Success RegionalTieredCacheEditResponseEnvelopeSuccess `json:"success,required"`
+ JSON regionalTieredCacheEditResponseEnvelopeJSON `json:"-"`
}
// regionalTieredCacheEditResponseEnvelopeJSON contains the JSON metadata for the
@@ -254,8 +254,8 @@ type RegionalTieredCacheEditResponseEnvelope struct {
type regionalTieredCacheEditResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
@@ -291,13 +291,13 @@ type RegionalTieredCacheGetParams struct {
type RegionalTieredCacheGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- // Whether the API call was successful
- Success RegionalTieredCacheGetResponseEnvelopeSuccess `json:"success,required"`
// Instructs Cloudflare to check a regional hub data center on the way to your
// upper tier. This can help improve performance for smart and custom tiered cache
// topologies.
- Result RegionalTieredCacheGetResponse `json:"result"`
- JSON regionalTieredCacheGetResponseEnvelopeJSON `json:"-"`
+ Result RegionalTieredCacheGetResponse `json:"result,required"`
+ // Whether the API call was successful
+ Success RegionalTieredCacheGetResponseEnvelopeSuccess `json:"success,required"`
+ JSON regionalTieredCacheGetResponseEnvelopeJSON `json:"-"`
}
// regionalTieredCacheGetResponseEnvelopeJSON contains the JSON metadata for the
@@ -305,8 +305,8 @@ type RegionalTieredCacheGetResponseEnvelope struct {
type regionalTieredCacheGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
diff --git a/cache/smarttieredcache.go b/cache/smarttieredcache.go
index 324849b4b46..9078b481859 100644
--- a/cache/smarttieredcache.go
+++ b/cache/smarttieredcache.go
@@ -233,11 +233,11 @@ type SmartTieredCacheDeleteParams struct {
}
type SmartTieredCacheDeleteResponseEnvelope struct {
- Errors []shared.ResponseInfo `json:"errors,required"`
- Messages []shared.ResponseInfo `json:"messages,required"`
+ Errors []shared.ResponseInfo `json:"errors,required"`
+ Messages []shared.ResponseInfo `json:"messages,required"`
+ Result SmartTieredCacheDeleteResponse `json:"result,required"`
// Whether the API call was successful
Success SmartTieredCacheDeleteResponseEnvelopeSuccess `json:"success,required"`
- Result SmartTieredCacheDeleteResponse `json:"result"`
JSON smartTieredCacheDeleteResponseEnvelopeJSON `json:"-"`
}
@@ -246,8 +246,8 @@ type SmartTieredCacheDeleteResponseEnvelope struct {
type smartTieredCacheDeleteResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
@@ -303,11 +303,11 @@ func (r SmartTieredCacheEditParamsValue) IsKnown() bool {
}
type SmartTieredCacheEditResponseEnvelope struct {
- Errors []shared.ResponseInfo `json:"errors,required"`
- Messages []shared.ResponseInfo `json:"messages,required"`
+ Errors []shared.ResponseInfo `json:"errors,required"`
+ Messages []shared.ResponseInfo `json:"messages,required"`
+ Result SmartTieredCacheEditResponse `json:"result,required"`
// Whether the API call was successful
Success SmartTieredCacheEditResponseEnvelopeSuccess `json:"success,required"`
- Result SmartTieredCacheEditResponse `json:"result"`
JSON smartTieredCacheEditResponseEnvelopeJSON `json:"-"`
}
@@ -316,8 +316,8 @@ type SmartTieredCacheEditResponseEnvelope struct {
type smartTieredCacheEditResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
@@ -351,11 +351,11 @@ type SmartTieredCacheGetParams struct {
}
type SmartTieredCacheGetResponseEnvelope struct {
- Errors []shared.ResponseInfo `json:"errors,required"`
- Messages []shared.ResponseInfo `json:"messages,required"`
+ Errors []shared.ResponseInfo `json:"errors,required"`
+ Messages []shared.ResponseInfo `json:"messages,required"`
+ Result SmartTieredCacheGetResponse `json:"result,required"`
// Whether the API call was successful
Success SmartTieredCacheGetResponseEnvelopeSuccess `json:"success,required"`
- Result SmartTieredCacheGetResponse `json:"result"`
JSON smartTieredCacheGetResponseEnvelopeJSON `json:"-"`
}
@@ -364,8 +364,8 @@ type SmartTieredCacheGetResponseEnvelope struct {
type smartTieredCacheGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
diff --git a/cache/variant.go b/cache/variant.go
index acac7f7a0b6..54e8cd0e6fc 100644
--- a/cache/variant.go
+++ b/cache/variant.go
@@ -344,15 +344,15 @@ type VariantDeleteParams struct {
type VariantDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- // Whether the API call was successful
- Success VariantDeleteResponseEnvelopeSuccess `json:"success,required"`
// Variant support enables caching variants of images with certain file extensions
// in addition to the original. This only applies when the origin server sends the
// 'Vary: Accept' response header. If the origin server sends 'Vary: Accept' but
// does not serve the variant requested, the response will not be cached. This will
// be indicated with BYPASS cache status in the response headers.
- Result CacheVariant `json:"result"`
- JSON variantDeleteResponseEnvelopeJSON `json:"-"`
+ Result CacheVariant `json:"result,required"`
+ // Whether the API call was successful
+ Success VariantDeleteResponseEnvelopeSuccess `json:"success,required"`
+ JSON variantDeleteResponseEnvelopeJSON `json:"-"`
}
// variantDeleteResponseEnvelopeJSON contains the JSON metadata for the struct
@@ -360,8 +360,8 @@ type VariantDeleteResponseEnvelope struct {
type variantDeleteResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
@@ -444,15 +444,15 @@ func (r VariantEditParamsValue) MarshalJSON() (data []byte, err error) {
type VariantEditResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- // Whether the API call was successful
- Success VariantEditResponseEnvelopeSuccess `json:"success,required"`
// Variant support enables caching variants of images with certain file extensions
// in addition to the original. This only applies when the origin server sends the
// 'Vary: Accept' response header. If the origin server sends 'Vary: Accept' but
// does not serve the variant requested, the response will not be cached. This will
// be indicated with BYPASS cache status in the response headers.
- Result VariantEditResponse `json:"result"`
- JSON variantEditResponseEnvelopeJSON `json:"-"`
+ Result VariantEditResponse `json:"result,required"`
+ // Whether the API call was successful
+ Success VariantEditResponseEnvelopeSuccess `json:"success,required"`
+ JSON variantEditResponseEnvelopeJSON `json:"-"`
}
// variantEditResponseEnvelopeJSON contains the JSON metadata for the struct
@@ -460,8 +460,8 @@ type VariantEditResponseEnvelope struct {
type variantEditResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
@@ -497,15 +497,15 @@ type VariantGetParams struct {
type VariantGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- // Whether the API call was successful
- Success VariantGetResponseEnvelopeSuccess `json:"success,required"`
// Variant support enables caching variants of images with certain file extensions
// in addition to the original. This only applies when the origin server sends the
// 'Vary: Accept' response header. If the origin server sends 'Vary: Accept' but
// does not serve the variant requested, the response will not be cached. This will
// be indicated with BYPASS cache status in the response headers.
- Result VariantGetResponse `json:"result"`
- JSON variantGetResponseEnvelopeJSON `json:"-"`
+ Result VariantGetResponse `json:"result,required"`
+ // Whether the API call was successful
+ Success VariantGetResponseEnvelopeSuccess `json:"success,required"`
+ JSON variantGetResponseEnvelopeJSON `json:"-"`
}
// variantGetResponseEnvelopeJSON contains the JSON metadata for the struct
@@ -513,8 +513,8 @@ type VariantGetResponseEnvelope struct {
type variantGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
diff --git a/dns/record.go b/dns/record.go
index cbe180599fd..e84bcc08b12 100644
--- a/dns/record.go
+++ b/dns/record.go
@@ -65,7 +65,9 @@ func (r *RecordService) New(ctx context.Context, params RecordNewParams, opts ..
return
}
-// Overwrite an existing DNS record. Notes:
+// Overwrite an existing DNS record.
+//
+// Notes:
//
// - A/AAAA records cannot exist on the same name as CNAME records.
// - NS records cannot exist on the same name as any other record type.
@@ -139,7 +141,9 @@ func (r *RecordService) Delete(ctx context.Context, dnsRecordID string, body Rec
return
}
-// Update an existing DNS record. Notes:
+// Update an existing DNS record.
+//
+// Notes:
//
// - A/AAAA records cannot exist on the same name as CNAME records.
// - NS records cannot exist on the same name as any other record type.
diff --git a/hyperdrive/config.go b/hyperdrive/config.go
index aa625137154..f23f024c3e1 100644
--- a/hyperdrive/config.go
+++ b/hyperdrive/config.go
@@ -283,7 +283,7 @@ type ConfigDeleteParams struct {
type ConfigDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- Result interface{} `json:"result,required,nullable"`
+ Result interface{} `json:"result,required"`
// Whether the API call was successful
Success ConfigDeleteResponseEnvelopeSuccess `json:"success,required"`
JSON configDeleteResponseEnvelopeJSON `json:"-"`
diff --git a/kv/namespace.go b/kv/namespace.go
index 07d6d7a87fd..5ec1ca96a41 100644
--- a/kv/namespace.go
+++ b/kv/namespace.go
@@ -182,9 +182,43 @@ func (r namespaceJSON) RawJSON() string {
return r.raw
}
-type NamespaceUpdateResponse = interface{}
+type NamespaceUpdateResponse struct {
+ JSON namespaceUpdateResponseJSON `json:"-"`
+}
+
+// namespaceUpdateResponseJSON contains the JSON metadata for the struct
+// [NamespaceUpdateResponse]
+type namespaceUpdateResponseJSON struct {
+ raw string
+ ExtraFields map[string]apijson.Field
+}
+
+func (r *NamespaceUpdateResponse) UnmarshalJSON(data []byte) (err error) {
+ return apijson.UnmarshalRoot(data, r)
+}
+
+func (r namespaceUpdateResponseJSON) RawJSON() string {
+ return r.raw
+}
-type NamespaceDeleteResponse = interface{}
+type NamespaceDeleteResponse struct {
+ JSON namespaceDeleteResponseJSON `json:"-"`
+}
+
+// namespaceDeleteResponseJSON contains the JSON metadata for the struct
+// [NamespaceDeleteResponse]
+type namespaceDeleteResponseJSON struct {
+ raw string
+ ExtraFields map[string]apijson.Field
+}
+
+func (r *NamespaceDeleteResponse) UnmarshalJSON(data []byte) (err error) {
+ return apijson.UnmarshalRoot(data, r)
+}
+
+func (r namespaceDeleteResponseJSON) RawJSON() string {
+ return r.raw
+}
type NamespaceNewParams struct {
// Identifier
@@ -256,7 +290,7 @@ type NamespaceUpdateResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success NamespaceUpdateResponseEnvelopeSuccess `json:"success,required"`
- Result NamespaceUpdateResponse `json:"result"`
+ Result NamespaceUpdateResponse `json:"result,nullable"`
JSON namespaceUpdateResponseEnvelopeJSON `json:"-"`
}
@@ -357,7 +391,7 @@ type NamespaceDeleteResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success NamespaceDeleteResponseEnvelopeSuccess `json:"success,required"`
- Result NamespaceDeleteResponse `json:"result"`
+ Result NamespaceDeleteResponse `json:"result,nullable"`
JSON namespaceDeleteResponseEnvelopeJSON `json:"-"`
}
diff --git a/kv/namespacebulk.go b/kv/namespacebulk.go
index 209364ba27e..5ae3a59687b 100644
--- a/kv/namespacebulk.go
+++ b/kv/namespacebulk.go
@@ -82,9 +82,43 @@ func (r *NamespaceBulkService) Delete(ctx context.Context, namespaceID string, b
return
}
-type NamespaceBulkUpdateResponse = interface{}
+type NamespaceBulkUpdateResponse struct {
+ JSON namespaceBulkUpdateResponseJSON `json:"-"`
+}
+
+// namespaceBulkUpdateResponseJSON contains the JSON metadata for the struct
+// [NamespaceBulkUpdateResponse]
+type namespaceBulkUpdateResponseJSON struct {
+ raw string
+ ExtraFields map[string]apijson.Field
+}
+
+func (r *NamespaceBulkUpdateResponse) UnmarshalJSON(data []byte) (err error) {
+ return apijson.UnmarshalRoot(data, r)
+}
+
+func (r namespaceBulkUpdateResponseJSON) RawJSON() string {
+ return r.raw
+}
-type NamespaceBulkDeleteResponse = interface{}
+type NamespaceBulkDeleteResponse struct {
+ JSON namespaceBulkDeleteResponseJSON `json:"-"`
+}
+
+// namespaceBulkDeleteResponseJSON contains the JSON metadata for the struct
+// [NamespaceBulkDeleteResponse]
+type namespaceBulkDeleteResponseJSON struct {
+ raw string
+ ExtraFields map[string]apijson.Field
+}
+
+func (r *NamespaceBulkDeleteResponse) UnmarshalJSON(data []byte) (err error) {
+ return apijson.UnmarshalRoot(data, r)
+}
+
+func (r namespaceBulkDeleteResponseJSON) RawJSON() string {
+ return r.raw
+}
type NamespaceBulkUpdateParams struct {
// Identifier
@@ -125,7 +159,7 @@ type NamespaceBulkUpdateResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success NamespaceBulkUpdateResponseEnvelopeSuccess `json:"success,required"`
- Result NamespaceBulkUpdateResponse `json:"result"`
+ Result NamespaceBulkUpdateResponse `json:"result,nullable"`
JSON namespaceBulkUpdateResponseEnvelopeJSON `json:"-"`
}
@@ -173,7 +207,7 @@ type NamespaceBulkDeleteResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success NamespaceBulkDeleteResponseEnvelopeSuccess `json:"success,required"`
- Result NamespaceBulkDeleteResponse `json:"result"`
+ Result NamespaceBulkDeleteResponse `json:"result,nullable"`
JSON namespaceBulkDeleteResponseEnvelopeJSON `json:"-"`
}
diff --git a/kv/namespacevalue.go b/kv/namespacevalue.go
index db2b229d52f..7178ffe9997 100644
--- a/kv/namespacevalue.go
+++ b/kv/namespacevalue.go
@@ -115,9 +115,43 @@ func (r *NamespaceValueService) Get(ctx context.Context, namespaceID string, key
return
}
-type NamespaceValueUpdateResponse = interface{}
+type NamespaceValueUpdateResponse struct {
+ JSON namespaceValueUpdateResponseJSON `json:"-"`
+}
+
+// namespaceValueUpdateResponseJSON contains the JSON metadata for the struct
+// [NamespaceValueUpdateResponse]
+type namespaceValueUpdateResponseJSON struct {
+ raw string
+ ExtraFields map[string]apijson.Field
+}
+
+func (r *NamespaceValueUpdateResponse) UnmarshalJSON(data []byte) (err error) {
+ return apijson.UnmarshalRoot(data, r)
+}
+
+func (r namespaceValueUpdateResponseJSON) RawJSON() string {
+ return r.raw
+}
-type NamespaceValueDeleteResponse = interface{}
+type NamespaceValueDeleteResponse struct {
+ JSON namespaceValueDeleteResponseJSON `json:"-"`
+}
+
+// namespaceValueDeleteResponseJSON contains the JSON metadata for the struct
+// [NamespaceValueDeleteResponse]
+type namespaceValueDeleteResponseJSON struct {
+ raw string
+ ExtraFields map[string]apijson.Field
+}
+
+func (r *NamespaceValueDeleteResponse) UnmarshalJSON(data []byte) (err error) {
+ return apijson.UnmarshalRoot(data, r)
+}
+
+func (r namespaceValueDeleteResponseJSON) RawJSON() string {
+ return r.raw
+}
type NamespaceValueUpdateParams struct {
// Identifier
@@ -137,7 +171,7 @@ type NamespaceValueUpdateResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success NamespaceValueUpdateResponseEnvelopeSuccess `json:"success,required"`
- Result NamespaceValueUpdateResponse `json:"result"`
+ Result NamespaceValueUpdateResponse `json:"result,nullable"`
JSON namespaceValueUpdateResponseEnvelopeJSON `json:"-"`
}
@@ -185,7 +219,7 @@ type NamespaceValueDeleteResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success NamespaceValueDeleteResponseEnvelopeSuccess `json:"success,required"`
- Result NamespaceValueDeleteResponse `json:"result"`
+ Result NamespaceValueDeleteResponse `json:"result,nullable"`
JSON namespaceValueDeleteResponseEnvelopeJSON `json:"-"`
}
diff --git a/origin_post_quantum_encryption/originpostquantumencryption.go b/origin_post_quantum_encryption/originpostquantumencryption.go
index 80a9208e3c4..b38ba27624a 100644
--- a/origin_post_quantum_encryption/originpostquantumencryption.go
+++ b/origin_post_quantum_encryption/originpostquantumencryption.go
@@ -40,7 +40,7 @@ func NewOriginPostQuantumEncryptionService(opts ...option.RequestOption) (r *Ori
// connections when the origin supports and prefers PQ), supported means that PQ
// algorithms are advertised but only used when requested by the origin, and off
// means that PQ algorithms are not advertised
-func (r *OriginPostQuantumEncryptionService) Update(ctx context.Context, params OriginPostQuantumEncryptionUpdateParams, opts ...option.RequestOption) (res *OriginPostQuantumEncryptionUpdateResponse, err error) {
+func (r *OriginPostQuantumEncryptionService) Update(ctx context.Context, params OriginPostQuantumEncryptionUpdateParams, opts ...option.RequestOption) (res *interface{}, err error) {
var env OriginPostQuantumEncryptionUpdateResponseEnvelope
opts = append(r.Options[:], opts...)
if params.ZoneID.Value == "" {
@@ -62,7 +62,7 @@ func (r *OriginPostQuantumEncryptionService) Update(ctx context.Context, params
// connections when the origin supports and prefers PQ), supported means that PQ
// algorithms are advertised but only used when requested by the origin, and off
// means that PQ algorithms are not advertised
-func (r *OriginPostQuantumEncryptionService) Get(ctx context.Context, query OriginPostQuantumEncryptionGetParams, opts ...option.RequestOption) (res *OriginPostQuantumEncryptionGetResponse, err error) {
+func (r *OriginPostQuantumEncryptionService) Get(ctx context.Context, query OriginPostQuantumEncryptionGetParams, opts ...option.RequestOption) (res *interface{}, err error) {
var env OriginPostQuantumEncryptionGetResponseEnvelope
opts = append(r.Options[:], opts...)
if query.ZoneID.Value == "" {
@@ -78,10 +78,6 @@ func (r *OriginPostQuantumEncryptionService) Get(ctx context.Context, query Orig
return
}
-type OriginPostQuantumEncryptionUpdateResponse = interface{}
-
-type OriginPostQuantumEncryptionGetResponse = interface{}
-
type OriginPostQuantumEncryptionUpdateParams struct {
// Identifier
ZoneID param.Field[string] `path:"zone_id,required"`
@@ -113,9 +109,9 @@ func (r OriginPostQuantumEncryptionUpdateParamsValue) IsKnown() bool {
type OriginPostQuantumEncryptionUpdateResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
+ Result interface{} `json:"result,required"`
// Whether the API call was successful
Success OriginPostQuantumEncryptionUpdateResponseEnvelopeSuccess `json:"success,required"`
- Result OriginPostQuantumEncryptionUpdateResponse `json:"result"`
JSON originPostQuantumEncryptionUpdateResponseEnvelopeJSON `json:"-"`
}
@@ -124,8 +120,8 @@ type OriginPostQuantumEncryptionUpdateResponseEnvelope struct {
type originPostQuantumEncryptionUpdateResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
@@ -161,9 +157,9 @@ type OriginPostQuantumEncryptionGetParams struct {
type OriginPostQuantumEncryptionGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
+ Result interface{} `json:"result,required"`
// Whether the API call was successful
Success OriginPostQuantumEncryptionGetResponseEnvelopeSuccess `json:"success,required"`
- Result OriginPostQuantumEncryptionGetResponse `json:"result"`
JSON originPostQuantumEncryptionGetResponseEnvelopeJSON `json:"-"`
}
@@ -172,8 +168,8 @@ type OriginPostQuantumEncryptionGetResponseEnvelope struct {
type originPostQuantumEncryptionGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
- Success apijson.Field
Result apijson.Field
+ Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
diff --git a/pages/project.go b/pages/project.go
index fa5de7fb3ae..27a68c3dc08 100644
--- a/pages/project.go
+++ b/pages/project.go
@@ -2030,7 +2030,7 @@ type ProjectDeleteParams struct {
type ProjectDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- Result ProjectDeleteResponse `json:"result,required"`
+ Result ProjectDeleteResponse `json:"result,required,nullable"`
// Whether the API call was successful
Success ProjectDeleteResponseEnvelopeSuccess `json:"success,required"`
JSON projectDeleteResponseEnvelopeJSON `json:"-"`
@@ -2182,7 +2182,7 @@ type ProjectPurgeBuildCacheParams struct {
type ProjectPurgeBuildCacheResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- Result ProjectPurgeBuildCacheResponse `json:"result,required"`
+ Result ProjectPurgeBuildCacheResponse `json:"result,required,nullable"`
// Whether the API call was successful
Success ProjectPurgeBuildCacheResponseEnvelopeSuccess `json:"success,required"`
JSON projectPurgeBuildCacheResponseEnvelopeJSON `json:"-"`
diff --git a/pages/projectdeployment.go b/pages/projectdeployment.go
index 0e6b29a6712..5cdeff044ac 100644
--- a/pages/projectdeployment.go
+++ b/pages/projectdeployment.go
@@ -305,7 +305,7 @@ type ProjectDeploymentDeleteParams struct {
type ProjectDeploymentDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- Result ProjectDeploymentDeleteResponse `json:"result,required"`
+ Result ProjectDeploymentDeleteResponse `json:"result,required,nullable"`
// Whether the API call was successful
Success ProjectDeploymentDeleteResponseEnvelopeSuccess `json:"success,required"`
JSON projectDeploymentDeleteResponseEnvelopeJSON `json:"-"`
diff --git a/pages/projectdomain.go b/pages/projectdomain.go
index b81cd50846e..09934172d23 100644
--- a/pages/projectdomain.go
+++ b/pages/projectdomain.go
@@ -927,7 +927,7 @@ type ProjectDomainDeleteParams struct {
type ProjectDomainDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- Result ProjectDomainDeleteResponse `json:"result,required"`
+ Result ProjectDomainDeleteResponse `json:"result,required,nullable"`
// Whether the API call was successful
Success ProjectDomainDeleteResponseEnvelopeSuccess `json:"success,required"`
JSON projectDomainDeleteResponseEnvelopeJSON `json:"-"`
diff --git a/radar/aigatewaysummary.go b/radar/aigatewaysummary.go
index c03b8ed3eb2..8bba5df32a6 100644
--- a/radar/aigatewaysummary.go
+++ b/radar/aigatewaysummary.go
@@ -3,15 +3,6 @@
package radar
import (
- "context"
- "net/http"
- "net/url"
- "time"
-
- "github.com/cloudflare/cloudflare-go/v3/internal/apijson"
- "github.com/cloudflare/cloudflare-go/v3/internal/apiquery"
- "github.com/cloudflare/cloudflare-go/v3/internal/param"
- "github.com/cloudflare/cloudflare-go/v3/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v3/option"
)
@@ -33,627 +24,3 @@ func NewAIGatewaySummaryService(opts ...option.RequestOption) (r *AIGatewaySumma
r.Options = opts
return
}
-
-// Percentage distribution of unique accounts per model.
-func (r *AIGatewaySummaryService) Model(ctx context.Context, query AIGatewaySummaryModelParams, opts ...option.RequestOption) (res *AIGatewaySummaryModelResponse, err error) {
- var env AIGatewaySummaryModelResponseEnvelope
- opts = append(r.Options[:], opts...)
- path := "radar/ai/inference/summary/model"
- err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
- if err != nil {
- return
- }
- res = &env.Result
- return
-}
-
-// Percentage distribution of unique accounts per provider.
-func (r *AIGatewaySummaryService) Provider(ctx context.Context, query AIGatewaySummaryProviderParams, opts ...option.RequestOption) (res *AIGatewaySummaryProviderResponse, err error) {
- var env AIGatewaySummaryProviderResponseEnvelope
- opts = append(r.Options[:], opts...)
- path := "radar/ai/gateway/summary/provider"
- err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
- if err != nil {
- return
- }
- res = &env.Result
- return
-}
-
-// Percentage distribution of unique accounts per task.
-func (r *AIGatewaySummaryService) Task(ctx context.Context, query AIGatewaySummaryTaskParams, opts ...option.RequestOption) (res *AIGatewaySummaryTaskResponse, err error) {
- var env AIGatewaySummaryTaskResponseEnvelope
- opts = append(r.Options[:], opts...)
- path := "radar/ai/inference/summary/task"
- err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
- if err != nil {
- return
- }
- res = &env.Result
- return
-}
-
-type AIGatewaySummaryModelResponse struct {
- Meta AIGatewaySummaryModelResponseMeta `json:"meta,required"`
- Summary0 map[string][]string `json:"summary_0,required"`
- JSON aiGatewaySummaryModelResponseJSON `json:"-"`
-}
-
-// aiGatewaySummaryModelResponseJSON contains the JSON metadata for the struct
-// [AIGatewaySummaryModelResponse]
-type aiGatewaySummaryModelResponseJSON struct {
- Meta apijson.Field
- Summary0 apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryModelResponse) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryModelResponseJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryModelResponseMeta struct {
- DateRange []AIGatewaySummaryModelResponseMetaDateRange `json:"dateRange,required"`
- LastUpdated string `json:"lastUpdated,required"`
- Normalization string `json:"normalization,required"`
- ConfidenceInfo AIGatewaySummaryModelResponseMetaConfidenceInfo `json:"confidenceInfo"`
- JSON aiGatewaySummaryModelResponseMetaJSON `json:"-"`
-}
-
-// aiGatewaySummaryModelResponseMetaJSON contains the JSON metadata for the struct
-// [AIGatewaySummaryModelResponseMeta]
-type aiGatewaySummaryModelResponseMetaJSON struct {
- DateRange apijson.Field
- LastUpdated apijson.Field
- Normalization apijson.Field
- ConfidenceInfo apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryModelResponseMeta) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryModelResponseMetaJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryModelResponseMetaDateRange struct {
- // Adjusted end of date range.
- EndTime time.Time `json:"endTime,required" format:"date-time"`
- // Adjusted start of date range.
- StartTime time.Time `json:"startTime,required" format:"date-time"`
- JSON aiGatewaySummaryModelResponseMetaDateRangeJSON `json:"-"`
-}
-
-// aiGatewaySummaryModelResponseMetaDateRangeJSON contains the JSON metadata for
-// the struct [AIGatewaySummaryModelResponseMetaDateRange]
-type aiGatewaySummaryModelResponseMetaDateRangeJSON struct {
- EndTime apijson.Field
- StartTime apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryModelResponseMetaDateRange) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryModelResponseMetaDateRangeJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryModelResponseMetaConfidenceInfo struct {
- Annotations []AIGatewaySummaryModelResponseMetaConfidenceInfoAnnotation `json:"annotations"`
- Level int64 `json:"level"`
- JSON aiGatewaySummaryModelResponseMetaConfidenceInfoJSON `json:"-"`
-}
-
-// aiGatewaySummaryModelResponseMetaConfidenceInfoJSON contains the JSON metadata
-// for the struct [AIGatewaySummaryModelResponseMetaConfidenceInfo]
-type aiGatewaySummaryModelResponseMetaConfidenceInfoJSON struct {
- Annotations apijson.Field
- Level apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryModelResponseMetaConfidenceInfo) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryModelResponseMetaConfidenceInfoJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryModelResponseMetaConfidenceInfoAnnotation struct {
- DataSource string `json:"dataSource,required"`
- Description string `json:"description,required"`
- EventType string `json:"eventType,required"`
- IsInstantaneous bool `json:"isInstantaneous,required"`
- EndTime time.Time `json:"endTime" format:"date-time"`
- LinkedURL string `json:"linkedUrl"`
- StartTime time.Time `json:"startTime" format:"date-time"`
- JSON aiGatewaySummaryModelResponseMetaConfidenceInfoAnnotationJSON `json:"-"`
-}
-
-// aiGatewaySummaryModelResponseMetaConfidenceInfoAnnotationJSON contains the JSON
-// metadata for the struct
-// [AIGatewaySummaryModelResponseMetaConfidenceInfoAnnotation]
-type aiGatewaySummaryModelResponseMetaConfidenceInfoAnnotationJSON struct {
- DataSource apijson.Field
- Description apijson.Field
- EventType apijson.Field
- IsInstantaneous apijson.Field
- EndTime apijson.Field
- LinkedURL apijson.Field
- StartTime apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryModelResponseMetaConfidenceInfoAnnotation) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryModelResponseMetaConfidenceInfoAnnotationJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryProviderResponse struct {
- Meta AIGatewaySummaryProviderResponseMeta `json:"meta,required"`
- Summary0 map[string][]string `json:"summary_0,required"`
- JSON aiGatewaySummaryProviderResponseJSON `json:"-"`
-}
-
-// aiGatewaySummaryProviderResponseJSON contains the JSON metadata for the struct
-// [AIGatewaySummaryProviderResponse]
-type aiGatewaySummaryProviderResponseJSON struct {
- Meta apijson.Field
- Summary0 apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryProviderResponse) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryProviderResponseJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryProviderResponseMeta struct {
- DateRange []AIGatewaySummaryProviderResponseMetaDateRange `json:"dateRange,required"`
- LastUpdated string `json:"lastUpdated,required"`
- Normalization string `json:"normalization,required"`
- ConfidenceInfo AIGatewaySummaryProviderResponseMetaConfidenceInfo `json:"confidenceInfo"`
- JSON aiGatewaySummaryProviderResponseMetaJSON `json:"-"`
-}
-
-// aiGatewaySummaryProviderResponseMetaJSON contains the JSON metadata for the
-// struct [AIGatewaySummaryProviderResponseMeta]
-type aiGatewaySummaryProviderResponseMetaJSON struct {
- DateRange apijson.Field
- LastUpdated apijson.Field
- Normalization apijson.Field
- ConfidenceInfo apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryProviderResponseMeta) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryProviderResponseMetaJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryProviderResponseMetaDateRange struct {
- // Adjusted end of date range.
- EndTime time.Time `json:"endTime,required" format:"date-time"`
- // Adjusted start of date range.
- StartTime time.Time `json:"startTime,required" format:"date-time"`
- JSON aiGatewaySummaryProviderResponseMetaDateRangeJSON `json:"-"`
-}
-
-// aiGatewaySummaryProviderResponseMetaDateRangeJSON contains the JSON metadata for
-// the struct [AIGatewaySummaryProviderResponseMetaDateRange]
-type aiGatewaySummaryProviderResponseMetaDateRangeJSON struct {
- EndTime apijson.Field
- StartTime apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryProviderResponseMetaDateRange) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryProviderResponseMetaDateRangeJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryProviderResponseMetaConfidenceInfo struct {
- Annotations []AIGatewaySummaryProviderResponseMetaConfidenceInfoAnnotation `json:"annotations"`
- Level int64 `json:"level"`
- JSON aiGatewaySummaryProviderResponseMetaConfidenceInfoJSON `json:"-"`
-}
-
-// aiGatewaySummaryProviderResponseMetaConfidenceInfoJSON contains the JSON
-// metadata for the struct [AIGatewaySummaryProviderResponseMetaConfidenceInfo]
-type aiGatewaySummaryProviderResponseMetaConfidenceInfoJSON struct {
- Annotations apijson.Field
- Level apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryProviderResponseMetaConfidenceInfo) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryProviderResponseMetaConfidenceInfoJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryProviderResponseMetaConfidenceInfoAnnotation struct {
- DataSource string `json:"dataSource,required"`
- Description string `json:"description,required"`
- EventType string `json:"eventType,required"`
- IsInstantaneous bool `json:"isInstantaneous,required"`
- EndTime time.Time `json:"endTime" format:"date-time"`
- LinkedURL string `json:"linkedUrl"`
- StartTime time.Time `json:"startTime" format:"date-time"`
- JSON aiGatewaySummaryProviderResponseMetaConfidenceInfoAnnotationJSON `json:"-"`
-}
-
-// aiGatewaySummaryProviderResponseMetaConfidenceInfoAnnotationJSON contains the
-// JSON metadata for the struct
-// [AIGatewaySummaryProviderResponseMetaConfidenceInfoAnnotation]
-type aiGatewaySummaryProviderResponseMetaConfidenceInfoAnnotationJSON struct {
- DataSource apijson.Field
- Description apijson.Field
- EventType apijson.Field
- IsInstantaneous apijson.Field
- EndTime apijson.Field
- LinkedURL apijson.Field
- StartTime apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryProviderResponseMetaConfidenceInfoAnnotation) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryProviderResponseMetaConfidenceInfoAnnotationJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryTaskResponse struct {
- Meta AIGatewaySummaryTaskResponseMeta `json:"meta,required"`
- Summary0 map[string][]string `json:"summary_0,required"`
- JSON aiGatewaySummaryTaskResponseJSON `json:"-"`
-}
-
-// aiGatewaySummaryTaskResponseJSON contains the JSON metadata for the struct
-// [AIGatewaySummaryTaskResponse]
-type aiGatewaySummaryTaskResponseJSON struct {
- Meta apijson.Field
- Summary0 apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryTaskResponse) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryTaskResponseJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryTaskResponseMeta struct {
- DateRange []AIGatewaySummaryTaskResponseMetaDateRange `json:"dateRange,required"`
- LastUpdated string `json:"lastUpdated,required"`
- Normalization string `json:"normalization,required"`
- ConfidenceInfo AIGatewaySummaryTaskResponseMetaConfidenceInfo `json:"confidenceInfo"`
- JSON aiGatewaySummaryTaskResponseMetaJSON `json:"-"`
-}
-
-// aiGatewaySummaryTaskResponseMetaJSON contains the JSON metadata for the struct
-// [AIGatewaySummaryTaskResponseMeta]
-type aiGatewaySummaryTaskResponseMetaJSON struct {
- DateRange apijson.Field
- LastUpdated apijson.Field
- Normalization apijson.Field
- ConfidenceInfo apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryTaskResponseMeta) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryTaskResponseMetaJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryTaskResponseMetaDateRange struct {
- // Adjusted end of date range.
- EndTime time.Time `json:"endTime,required" format:"date-time"`
- // Adjusted start of date range.
- StartTime time.Time `json:"startTime,required" format:"date-time"`
- JSON aiGatewaySummaryTaskResponseMetaDateRangeJSON `json:"-"`
-}
-
-// aiGatewaySummaryTaskResponseMetaDateRangeJSON contains the JSON metadata for the
-// struct [AIGatewaySummaryTaskResponseMetaDateRange]
-type aiGatewaySummaryTaskResponseMetaDateRangeJSON struct {
- EndTime apijson.Field
- StartTime apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryTaskResponseMetaDateRange) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryTaskResponseMetaDateRangeJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryTaskResponseMetaConfidenceInfo struct {
- Annotations []AIGatewaySummaryTaskResponseMetaConfidenceInfoAnnotation `json:"annotations"`
- Level int64 `json:"level"`
- JSON aiGatewaySummaryTaskResponseMetaConfidenceInfoJSON `json:"-"`
-}
-
-// aiGatewaySummaryTaskResponseMetaConfidenceInfoJSON contains the JSON metadata
-// for the struct [AIGatewaySummaryTaskResponseMetaConfidenceInfo]
-type aiGatewaySummaryTaskResponseMetaConfidenceInfoJSON struct {
- Annotations apijson.Field
- Level apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryTaskResponseMetaConfidenceInfo) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryTaskResponseMetaConfidenceInfoJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryTaskResponseMetaConfidenceInfoAnnotation struct {
- DataSource string `json:"dataSource,required"`
- Description string `json:"description,required"`
- EventType string `json:"eventType,required"`
- IsInstantaneous bool `json:"isInstantaneous,required"`
- EndTime time.Time `json:"endTime" format:"date-time"`
- LinkedURL string `json:"linkedUrl"`
- StartTime time.Time `json:"startTime" format:"date-time"`
- JSON aiGatewaySummaryTaskResponseMetaConfidenceInfoAnnotationJSON `json:"-"`
-}
-
-// aiGatewaySummaryTaskResponseMetaConfidenceInfoAnnotationJSON contains the JSON
-// metadata for the struct
-// [AIGatewaySummaryTaskResponseMetaConfidenceInfoAnnotation]
-type aiGatewaySummaryTaskResponseMetaConfidenceInfoAnnotationJSON struct {
- DataSource apijson.Field
- Description apijson.Field
- EventType apijson.Field
- IsInstantaneous apijson.Field
- EndTime apijson.Field
- LinkedURL apijson.Field
- StartTime apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryTaskResponseMetaConfidenceInfoAnnotation) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryTaskResponseMetaConfidenceInfoAnnotationJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryModelParams struct {
- // End of the date range (inclusive).
- DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
- // For example, use `7d` and `7dControl` to compare this week with the previous
- // week. Use this parameter or set specific start and end dates (`dateStart` and
- // `dateEnd` parameters).
- DateRange param.Field[[]string] `query:"dateRange"`
- // Array of datetimes to filter the start of a series.
- DateStart param.Field[[]time.Time] `query:"dateStart" format:"date-time"`
- // Format results are returned in.
- Format param.Field[AIGatewaySummaryModelParamsFormat] `query:"format"`
- // Array of names that will be used to name the series in responses.
- Name param.Field[[]string] `query:"name"`
-}
-
-// URLQuery serializes [AIGatewaySummaryModelParams]'s query parameters as
-// `url.Values`.
-func (r AIGatewaySummaryModelParams) URLQuery() (v url.Values) {
- return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
- ArrayFormat: apiquery.ArrayQueryFormatRepeat,
- NestedFormat: apiquery.NestedQueryFormatDots,
- })
-}
-
-// Format results are returned in.
-type AIGatewaySummaryModelParamsFormat string
-
-const (
- AIGatewaySummaryModelParamsFormatJson AIGatewaySummaryModelParamsFormat = "JSON"
- AIGatewaySummaryModelParamsFormatCsv AIGatewaySummaryModelParamsFormat = "CSV"
-)
-
-func (r AIGatewaySummaryModelParamsFormat) IsKnown() bool {
- switch r {
- case AIGatewaySummaryModelParamsFormatJson, AIGatewaySummaryModelParamsFormatCsv:
- return true
- }
- return false
-}
-
-type AIGatewaySummaryModelResponseEnvelope struct {
- Result AIGatewaySummaryModelResponse `json:"result,required"`
- Success bool `json:"success,required"`
- JSON aiGatewaySummaryModelResponseEnvelopeJSON `json:"-"`
-}
-
-// aiGatewaySummaryModelResponseEnvelopeJSON contains the JSON metadata for the
-// struct [AIGatewaySummaryModelResponseEnvelope]
-type aiGatewaySummaryModelResponseEnvelopeJSON struct {
- Result apijson.Field
- Success apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryModelResponseEnvelope) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryModelResponseEnvelopeJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryProviderParams struct {
- // End of the date range (inclusive).
- DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
- // For example, use `7d` and `7dControl` to compare this week with the previous
- // week. Use this parameter or set specific start and end dates (`dateStart` and
- // `dateEnd` parameters).
- DateRange param.Field[[]string] `query:"dateRange"`
- // Array of datetimes to filter the start of a series.
- DateStart param.Field[[]time.Time] `query:"dateStart" format:"date-time"`
- // Format results are returned in.
- Format param.Field[AIGatewaySummaryProviderParamsFormat] `query:"format"`
- // Array of names that will be used to name the series in responses.
- Name param.Field[[]string] `query:"name"`
-}
-
-// URLQuery serializes [AIGatewaySummaryProviderParams]'s query parameters as
-// `url.Values`.
-func (r AIGatewaySummaryProviderParams) URLQuery() (v url.Values) {
- return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
- ArrayFormat: apiquery.ArrayQueryFormatRepeat,
- NestedFormat: apiquery.NestedQueryFormatDots,
- })
-}
-
-// Format results are returned in.
-type AIGatewaySummaryProviderParamsFormat string
-
-const (
- AIGatewaySummaryProviderParamsFormatJson AIGatewaySummaryProviderParamsFormat = "JSON"
- AIGatewaySummaryProviderParamsFormatCsv AIGatewaySummaryProviderParamsFormat = "CSV"
-)
-
-func (r AIGatewaySummaryProviderParamsFormat) IsKnown() bool {
- switch r {
- case AIGatewaySummaryProviderParamsFormatJson, AIGatewaySummaryProviderParamsFormatCsv:
- return true
- }
- return false
-}
-
-type AIGatewaySummaryProviderResponseEnvelope struct {
- Result AIGatewaySummaryProviderResponse `json:"result,required"`
- Success bool `json:"success,required"`
- JSON aiGatewaySummaryProviderResponseEnvelopeJSON `json:"-"`
-}
-
-// aiGatewaySummaryProviderResponseEnvelopeJSON contains the JSON metadata for the
-// struct [AIGatewaySummaryProviderResponseEnvelope]
-type aiGatewaySummaryProviderResponseEnvelopeJSON struct {
- Result apijson.Field
- Success apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryProviderResponseEnvelope) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryProviderResponseEnvelopeJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewaySummaryTaskParams struct {
- // End of the date range (inclusive).
- DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
- // For example, use `7d` and `7dControl` to compare this week with the previous
- // week. Use this parameter or set specific start and end dates (`dateStart` and
- // `dateEnd` parameters).
- DateRange param.Field[[]string] `query:"dateRange"`
- // Array of datetimes to filter the start of a series.
- DateStart param.Field[[]time.Time] `query:"dateStart" format:"date-time"`
- // Format results are returned in.
- Format param.Field[AIGatewaySummaryTaskParamsFormat] `query:"format"`
- // Array of names that will be used to name the series in responses.
- Name param.Field[[]string] `query:"name"`
-}
-
-// URLQuery serializes [AIGatewaySummaryTaskParams]'s query parameters as
-// `url.Values`.
-func (r AIGatewaySummaryTaskParams) URLQuery() (v url.Values) {
- return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
- ArrayFormat: apiquery.ArrayQueryFormatRepeat,
- NestedFormat: apiquery.NestedQueryFormatDots,
- })
-}
-
-// Format results are returned in.
-type AIGatewaySummaryTaskParamsFormat string
-
-const (
- AIGatewaySummaryTaskParamsFormatJson AIGatewaySummaryTaskParamsFormat = "JSON"
- AIGatewaySummaryTaskParamsFormatCsv AIGatewaySummaryTaskParamsFormat = "CSV"
-)
-
-func (r AIGatewaySummaryTaskParamsFormat) IsKnown() bool {
- switch r {
- case AIGatewaySummaryTaskParamsFormatJson, AIGatewaySummaryTaskParamsFormatCsv:
- return true
- }
- return false
-}
-
-type AIGatewaySummaryTaskResponseEnvelope struct {
- Result AIGatewaySummaryTaskResponse `json:"result,required"`
- Success bool `json:"success,required"`
- JSON aiGatewaySummaryTaskResponseEnvelopeJSON `json:"-"`
-}
-
-// aiGatewaySummaryTaskResponseEnvelopeJSON contains the JSON metadata for the
-// struct [AIGatewaySummaryTaskResponseEnvelope]
-type aiGatewaySummaryTaskResponseEnvelopeJSON struct {
- Result apijson.Field
- Success apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewaySummaryTaskResponseEnvelope) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewaySummaryTaskResponseEnvelopeJSON) RawJSON() string {
- return r.raw
-}
diff --git a/radar/aigatewaysummary_test.go b/radar/aigatewaysummary_test.go
deleted file mode 100644
index d5f76c1581e..00000000000
--- a/radar/aigatewaysummary_test.go
+++ /dev/null
@@ -1,103 +0,0 @@
-// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-package radar_test
-
-import (
- "context"
- "errors"
- "os"
- "testing"
- "time"
-
- "github.com/cloudflare/cloudflare-go/v3"
- "github.com/cloudflare/cloudflare-go/v3/internal/testutil"
- "github.com/cloudflare/cloudflare-go/v3/option"
- "github.com/cloudflare/cloudflare-go/v3/radar"
-)
-
-func TestAIGatewaySummaryModelWithOptionalParams(t *testing.T) {
- baseURL := "http://localhost:4010"
- if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
- baseURL = envURL
- }
- if !testutil.CheckTestServer(t, baseURL) {
- return
- }
- client := cloudflare.NewClient(
- option.WithBaseURL(baseURL),
- option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
- option.WithAPIEmail("user@example.com"),
- )
- _, err := client.Radar.AI.Gateway.Summary.Model(context.TODO(), radar.AIGatewaySummaryModelParams{
- DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
- DateRange: cloudflare.F([]string{"7d", "7d", "7d"}),
- DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
- Format: cloudflare.F(radar.AIGatewaySummaryModelParamsFormatJson),
- Name: cloudflare.F([]string{"string", "string", "string"}),
- })
- if err != nil {
- var apierr *cloudflare.Error
- if errors.As(err, &apierr) {
- t.Log(string(apierr.DumpRequest(true)))
- }
- t.Fatalf("err should be nil: %s", err.Error())
- }
-}
-
-func TestAIGatewaySummaryProviderWithOptionalParams(t *testing.T) {
- baseURL := "http://localhost:4010"
- if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
- baseURL = envURL
- }
- if !testutil.CheckTestServer(t, baseURL) {
- return
- }
- client := cloudflare.NewClient(
- option.WithBaseURL(baseURL),
- option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
- option.WithAPIEmail("user@example.com"),
- )
- _, err := client.Radar.AI.Gateway.Summary.Provider(context.TODO(), radar.AIGatewaySummaryProviderParams{
- DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
- DateRange: cloudflare.F([]string{"7d", "7d", "7d"}),
- DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
- Format: cloudflare.F(radar.AIGatewaySummaryProviderParamsFormatJson),
- Name: cloudflare.F([]string{"string", "string", "string"}),
- })
- if err != nil {
- var apierr *cloudflare.Error
- if errors.As(err, &apierr) {
- t.Log(string(apierr.DumpRequest(true)))
- }
- t.Fatalf("err should be nil: %s", err.Error())
- }
-}
-
-func TestAIGatewaySummaryTaskWithOptionalParams(t *testing.T) {
- baseURL := "http://localhost:4010"
- if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
- baseURL = envURL
- }
- if !testutil.CheckTestServer(t, baseURL) {
- return
- }
- client := cloudflare.NewClient(
- option.WithBaseURL(baseURL),
- option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
- option.WithAPIEmail("user@example.com"),
- )
- _, err := client.Radar.AI.Gateway.Summary.Task(context.TODO(), radar.AIGatewaySummaryTaskParams{
- DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
- DateRange: cloudflare.F([]string{"7d", "7d", "7d"}),
- DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
- Format: cloudflare.F(radar.AIGatewaySummaryTaskParamsFormatJson),
- Name: cloudflare.F([]string{"string", "string", "string"}),
- })
- if err != nil {
- var apierr *cloudflare.Error
- if errors.As(err, &apierr) {
- t.Log(string(apierr.DumpRequest(true)))
- }
- t.Fatalf("err should be nil: %s", err.Error())
- }
-}
diff --git a/radar/aigatewaytimeseriesgroup.go b/radar/aigatewaytimeseriesgroup.go
index 1f7ff2304f3..95985412fec 100644
--- a/radar/aigatewaytimeseriesgroup.go
+++ b/radar/aigatewaytimeseriesgroup.go
@@ -3,15 +3,6 @@
package radar
import (
- "context"
- "net/http"
- "net/url"
- "time"
-
- "github.com/cloudflare/cloudflare-go/v3/internal/apijson"
- "github.com/cloudflare/cloudflare-go/v3/internal/apiquery"
- "github.com/cloudflare/cloudflare-go/v3/internal/param"
- "github.com/cloudflare/cloudflare-go/v3/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v3/option"
)
@@ -33,447 +24,3 @@ func NewAIGatewayTimeseriesGroupService(opts ...option.RequestOption) (r *AIGate
r.Options = opts
return
}
-
-// Percentage distribution of unique accounts per model over time.
-func (r *AIGatewayTimeseriesGroupService) Model(ctx context.Context, query AIGatewayTimeseriesGroupModelParams, opts ...option.RequestOption) (res *AIGatewayTimeseriesGroupModelResponse, err error) {
- var env AIGatewayTimeseriesGroupModelResponseEnvelope
- opts = append(r.Options[:], opts...)
- path := "radar/ai/inference/timeseries_groups/model"
- err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
- if err != nil {
- return
- }
- res = &env.Result
- return
-}
-
-// Percentage distribution of unique accounts per provider over time.
-func (r *AIGatewayTimeseriesGroupService) Provider(ctx context.Context, query AIGatewayTimeseriesGroupProviderParams, opts ...option.RequestOption) (res *AIGatewayTimeseriesGroupProviderResponse, err error) {
- var env AIGatewayTimeseriesGroupProviderResponseEnvelope
- opts = append(r.Options[:], opts...)
- path := "radar/ai/gateway/timeseries_groups/provider"
- err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
- if err != nil {
- return
- }
- res = &env.Result
- return
-}
-
-// Percentage distribution of unique accounts per task over time.
-func (r *AIGatewayTimeseriesGroupService) Task(ctx context.Context, query AIGatewayTimeseriesGroupTaskParams, opts ...option.RequestOption) (res *AIGatewayTimeseriesGroupTaskResponse, err error) {
- var env AIGatewayTimeseriesGroupTaskResponseEnvelope
- opts = append(r.Options[:], opts...)
- path := "radar/ai/inference/timeseries_groups/task"
- err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
- if err != nil {
- return
- }
- res = &env.Result
- return
-}
-
-type AIGatewayTimeseriesGroupModelResponse struct {
- Meta interface{} `json:"meta,required"`
- Serie0 AIGatewayTimeseriesGroupModelResponseSerie0 `json:"serie_0,required"`
- JSON aiGatewayTimeseriesGroupModelResponseJSON `json:"-"`
-}
-
-// aiGatewayTimeseriesGroupModelResponseJSON contains the JSON metadata for the
-// struct [AIGatewayTimeseriesGroupModelResponse]
-type aiGatewayTimeseriesGroupModelResponseJSON struct {
- Meta apijson.Field
- Serie0 apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewayTimeseriesGroupModelResponse) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewayTimeseriesGroupModelResponseJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewayTimeseriesGroupModelResponseSerie0 struct {
- Timestamps []string `json:"timestamps,required"`
- ExtraFields map[string][]string `json:"-,extras"`
- JSON aiGatewayTimeseriesGroupModelResponseSerie0JSON `json:"-"`
-}
-
-// aiGatewayTimeseriesGroupModelResponseSerie0JSON contains the JSON metadata for
-// the struct [AIGatewayTimeseriesGroupModelResponseSerie0]
-type aiGatewayTimeseriesGroupModelResponseSerie0JSON struct {
- Timestamps apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewayTimeseriesGroupModelResponseSerie0) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewayTimeseriesGroupModelResponseSerie0JSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewayTimeseriesGroupProviderResponse struct {
- Meta interface{} `json:"meta,required"`
- Serie0 AIGatewayTimeseriesGroupProviderResponseSerie0 `json:"serie_0,required"`
- JSON aiGatewayTimeseriesGroupProviderResponseJSON `json:"-"`
-}
-
-// aiGatewayTimeseriesGroupProviderResponseJSON contains the JSON metadata for the
-// struct [AIGatewayTimeseriesGroupProviderResponse]
-type aiGatewayTimeseriesGroupProviderResponseJSON struct {
- Meta apijson.Field
- Serie0 apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewayTimeseriesGroupProviderResponse) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewayTimeseriesGroupProviderResponseJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewayTimeseriesGroupProviderResponseSerie0 struct {
- Timestamps []string `json:"timestamps,required"`
- ExtraFields map[string][]string `json:"-,extras"`
- JSON aiGatewayTimeseriesGroupProviderResponseSerie0JSON `json:"-"`
-}
-
-// aiGatewayTimeseriesGroupProviderResponseSerie0JSON contains the JSON metadata
-// for the struct [AIGatewayTimeseriesGroupProviderResponseSerie0]
-type aiGatewayTimeseriesGroupProviderResponseSerie0JSON struct {
- Timestamps apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewayTimeseriesGroupProviderResponseSerie0) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewayTimeseriesGroupProviderResponseSerie0JSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewayTimeseriesGroupTaskResponse struct {
- Meta interface{} `json:"meta,required"`
- Serie0 AIGatewayTimeseriesGroupTaskResponseSerie0 `json:"serie_0,required"`
- JSON aiGatewayTimeseriesGroupTaskResponseJSON `json:"-"`
-}
-
-// aiGatewayTimeseriesGroupTaskResponseJSON contains the JSON metadata for the
-// struct [AIGatewayTimeseriesGroupTaskResponse]
-type aiGatewayTimeseriesGroupTaskResponseJSON struct {
- Meta apijson.Field
- Serie0 apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewayTimeseriesGroupTaskResponse) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewayTimeseriesGroupTaskResponseJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewayTimeseriesGroupTaskResponseSerie0 struct {
- Timestamps []string `json:"timestamps,required"`
- ExtraFields map[string][]string `json:"-,extras"`
- JSON aiGatewayTimeseriesGroupTaskResponseSerie0JSON `json:"-"`
-}
-
-// aiGatewayTimeseriesGroupTaskResponseSerie0JSON contains the JSON metadata for
-// the struct [AIGatewayTimeseriesGroupTaskResponseSerie0]
-type aiGatewayTimeseriesGroupTaskResponseSerie0JSON struct {
- Timestamps apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewayTimeseriesGroupTaskResponseSerie0) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewayTimeseriesGroupTaskResponseSerie0JSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewayTimeseriesGroupModelParams struct {
- // Aggregation interval results should be returned in (for example, in 15 minutes
- // or 1 hour intervals). Refer to
- // [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
- AggInterval param.Field[AIGatewayTimeseriesGroupModelParamsAggInterval] `query:"aggInterval"`
- // End of the date range (inclusive).
- DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
- // For example, use `7d` and `7dControl` to compare this week with the previous
- // week. Use this parameter or set specific start and end dates (`dateStart` and
- // `dateEnd` parameters).
- DateRange param.Field[[]string] `query:"dateRange"`
- // Array of datetimes to filter the start of a series.
- DateStart param.Field[[]time.Time] `query:"dateStart" format:"date-time"`
- // Format results are returned in.
- Format param.Field[AIGatewayTimeseriesGroupModelParamsFormat] `query:"format"`
- // Limit the number of objects (eg browsers, verticals, etc) to the top items over
- // the time range.
- LimitPerGroup param.Field[int64] `query:"limitPerGroup"`
- // Array of names that will be used to name the series in responses.
- Name param.Field[[]string] `query:"name"`
-}
-
-// URLQuery serializes [AIGatewayTimeseriesGroupModelParams]'s query parameters as
-// `url.Values`.
-func (r AIGatewayTimeseriesGroupModelParams) URLQuery() (v url.Values) {
- return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
- ArrayFormat: apiquery.ArrayQueryFormatRepeat,
- NestedFormat: apiquery.NestedQueryFormatDots,
- })
-}
-
-// Aggregation interval results should be returned in (for example, in 15 minutes
-// or 1 hour intervals). Refer to
-// [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
-type AIGatewayTimeseriesGroupModelParamsAggInterval string
-
-const (
- AIGatewayTimeseriesGroupModelParamsAggInterval15m AIGatewayTimeseriesGroupModelParamsAggInterval = "15m"
- AIGatewayTimeseriesGroupModelParamsAggInterval1h AIGatewayTimeseriesGroupModelParamsAggInterval = "1h"
- AIGatewayTimeseriesGroupModelParamsAggInterval1d AIGatewayTimeseriesGroupModelParamsAggInterval = "1d"
- AIGatewayTimeseriesGroupModelParamsAggInterval1w AIGatewayTimeseriesGroupModelParamsAggInterval = "1w"
-)
-
-func (r AIGatewayTimeseriesGroupModelParamsAggInterval) IsKnown() bool {
- switch r {
- case AIGatewayTimeseriesGroupModelParamsAggInterval15m, AIGatewayTimeseriesGroupModelParamsAggInterval1h, AIGatewayTimeseriesGroupModelParamsAggInterval1d, AIGatewayTimeseriesGroupModelParamsAggInterval1w:
- return true
- }
- return false
-}
-
-// Format results are returned in.
-type AIGatewayTimeseriesGroupModelParamsFormat string
-
-const (
- AIGatewayTimeseriesGroupModelParamsFormatJson AIGatewayTimeseriesGroupModelParamsFormat = "JSON"
- AIGatewayTimeseriesGroupModelParamsFormatCsv AIGatewayTimeseriesGroupModelParamsFormat = "CSV"
-)
-
-func (r AIGatewayTimeseriesGroupModelParamsFormat) IsKnown() bool {
- switch r {
- case AIGatewayTimeseriesGroupModelParamsFormatJson, AIGatewayTimeseriesGroupModelParamsFormatCsv:
- return true
- }
- return false
-}
-
-type AIGatewayTimeseriesGroupModelResponseEnvelope struct {
- Result AIGatewayTimeseriesGroupModelResponse `json:"result,required"`
- Success bool `json:"success,required"`
- JSON aiGatewayTimeseriesGroupModelResponseEnvelopeJSON `json:"-"`
-}
-
-// aiGatewayTimeseriesGroupModelResponseEnvelopeJSON contains the JSON metadata for
-// the struct [AIGatewayTimeseriesGroupModelResponseEnvelope]
-type aiGatewayTimeseriesGroupModelResponseEnvelopeJSON struct {
- Result apijson.Field
- Success apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewayTimeseriesGroupModelResponseEnvelope) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewayTimeseriesGroupModelResponseEnvelopeJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewayTimeseriesGroupProviderParams struct {
- // Aggregation interval results should be returned in (for example, in 15 minutes
- // or 1 hour intervals). Refer to
- // [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
- AggInterval param.Field[AIGatewayTimeseriesGroupProviderParamsAggInterval] `query:"aggInterval"`
- // End of the date range (inclusive).
- DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
- // For example, use `7d` and `7dControl` to compare this week with the previous
- // week. Use this parameter or set specific start and end dates (`dateStart` and
- // `dateEnd` parameters).
- DateRange param.Field[[]string] `query:"dateRange"`
- // Array of datetimes to filter the start of a series.
- DateStart param.Field[[]time.Time] `query:"dateStart" format:"date-time"`
- // Format results are returned in.
- Format param.Field[AIGatewayTimeseriesGroupProviderParamsFormat] `query:"format"`
- // Limit the number of objects (eg browsers, verticals, etc) to the top items over
- // the time range.
- LimitPerGroup param.Field[int64] `query:"limitPerGroup"`
- // Array of names that will be used to name the series in responses.
- Name param.Field[[]string] `query:"name"`
-}
-
-// URLQuery serializes [AIGatewayTimeseriesGroupProviderParams]'s query parameters
-// as `url.Values`.
-func (r AIGatewayTimeseriesGroupProviderParams) URLQuery() (v url.Values) {
- return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
- ArrayFormat: apiquery.ArrayQueryFormatRepeat,
- NestedFormat: apiquery.NestedQueryFormatDots,
- })
-}
-
-// Aggregation interval results should be returned in (for example, in 15 minutes
-// or 1 hour intervals). Refer to
-// [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
-type AIGatewayTimeseriesGroupProviderParamsAggInterval string
-
-const (
- AIGatewayTimeseriesGroupProviderParamsAggInterval15m AIGatewayTimeseriesGroupProviderParamsAggInterval = "15m"
- AIGatewayTimeseriesGroupProviderParamsAggInterval1h AIGatewayTimeseriesGroupProviderParamsAggInterval = "1h"
- AIGatewayTimeseriesGroupProviderParamsAggInterval1d AIGatewayTimeseriesGroupProviderParamsAggInterval = "1d"
- AIGatewayTimeseriesGroupProviderParamsAggInterval1w AIGatewayTimeseriesGroupProviderParamsAggInterval = "1w"
-)
-
-func (r AIGatewayTimeseriesGroupProviderParamsAggInterval) IsKnown() bool {
- switch r {
- case AIGatewayTimeseriesGroupProviderParamsAggInterval15m, AIGatewayTimeseriesGroupProviderParamsAggInterval1h, AIGatewayTimeseriesGroupProviderParamsAggInterval1d, AIGatewayTimeseriesGroupProviderParamsAggInterval1w:
- return true
- }
- return false
-}
-
-// Format results are returned in.
-type AIGatewayTimeseriesGroupProviderParamsFormat string
-
-const (
- AIGatewayTimeseriesGroupProviderParamsFormatJson AIGatewayTimeseriesGroupProviderParamsFormat = "JSON"
- AIGatewayTimeseriesGroupProviderParamsFormatCsv AIGatewayTimeseriesGroupProviderParamsFormat = "CSV"
-)
-
-func (r AIGatewayTimeseriesGroupProviderParamsFormat) IsKnown() bool {
- switch r {
- case AIGatewayTimeseriesGroupProviderParamsFormatJson, AIGatewayTimeseriesGroupProviderParamsFormatCsv:
- return true
- }
- return false
-}
-
-type AIGatewayTimeseriesGroupProviderResponseEnvelope struct {
- Result AIGatewayTimeseriesGroupProviderResponse `json:"result,required"`
- Success bool `json:"success,required"`
- JSON aiGatewayTimeseriesGroupProviderResponseEnvelopeJSON `json:"-"`
-}
-
-// aiGatewayTimeseriesGroupProviderResponseEnvelopeJSON contains the JSON metadata
-// for the struct [AIGatewayTimeseriesGroupProviderResponseEnvelope]
-type aiGatewayTimeseriesGroupProviderResponseEnvelopeJSON struct {
- Result apijson.Field
- Success apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewayTimeseriesGroupProviderResponseEnvelope) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewayTimeseriesGroupProviderResponseEnvelopeJSON) RawJSON() string {
- return r.raw
-}
-
-type AIGatewayTimeseriesGroupTaskParams struct {
- // Aggregation interval results should be returned in (for example, in 15 minutes
- // or 1 hour intervals). Refer to
- // [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
- AggInterval param.Field[AIGatewayTimeseriesGroupTaskParamsAggInterval] `query:"aggInterval"`
- // End of the date range (inclusive).
- DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
- // For example, use `7d` and `7dControl` to compare this week with the previous
- // week. Use this parameter or set specific start and end dates (`dateStart` and
- // `dateEnd` parameters).
- DateRange param.Field[[]string] `query:"dateRange"`
- // Array of datetimes to filter the start of a series.
- DateStart param.Field[[]time.Time] `query:"dateStart" format:"date-time"`
- // Format results are returned in.
- Format param.Field[AIGatewayTimeseriesGroupTaskParamsFormat] `query:"format"`
- // Limit the number of objects (eg browsers, verticals, etc) to the top items over
- // the time range.
- LimitPerGroup param.Field[int64] `query:"limitPerGroup"`
- // Array of names that will be used to name the series in responses.
- Name param.Field[[]string] `query:"name"`
-}
-
-// URLQuery serializes [AIGatewayTimeseriesGroupTaskParams]'s query parameters as
-// `url.Values`.
-func (r AIGatewayTimeseriesGroupTaskParams) URLQuery() (v url.Values) {
- return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
- ArrayFormat: apiquery.ArrayQueryFormatRepeat,
- NestedFormat: apiquery.NestedQueryFormatDots,
- })
-}
-
-// Aggregation interval results should be returned in (for example, in 15 minutes
-// or 1 hour intervals). Refer to
-// [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
-type AIGatewayTimeseriesGroupTaskParamsAggInterval string
-
-const (
- AIGatewayTimeseriesGroupTaskParamsAggInterval15m AIGatewayTimeseriesGroupTaskParamsAggInterval = "15m"
- AIGatewayTimeseriesGroupTaskParamsAggInterval1h AIGatewayTimeseriesGroupTaskParamsAggInterval = "1h"
- AIGatewayTimeseriesGroupTaskParamsAggInterval1d AIGatewayTimeseriesGroupTaskParamsAggInterval = "1d"
- AIGatewayTimeseriesGroupTaskParamsAggInterval1w AIGatewayTimeseriesGroupTaskParamsAggInterval = "1w"
-)
-
-func (r AIGatewayTimeseriesGroupTaskParamsAggInterval) IsKnown() bool {
- switch r {
- case AIGatewayTimeseriesGroupTaskParamsAggInterval15m, AIGatewayTimeseriesGroupTaskParamsAggInterval1h, AIGatewayTimeseriesGroupTaskParamsAggInterval1d, AIGatewayTimeseriesGroupTaskParamsAggInterval1w:
- return true
- }
- return false
-}
-
-// Format results are returned in.
-type AIGatewayTimeseriesGroupTaskParamsFormat string
-
-const (
- AIGatewayTimeseriesGroupTaskParamsFormatJson AIGatewayTimeseriesGroupTaskParamsFormat = "JSON"
- AIGatewayTimeseriesGroupTaskParamsFormatCsv AIGatewayTimeseriesGroupTaskParamsFormat = "CSV"
-)
-
-func (r AIGatewayTimeseriesGroupTaskParamsFormat) IsKnown() bool {
- switch r {
- case AIGatewayTimeseriesGroupTaskParamsFormatJson, AIGatewayTimeseriesGroupTaskParamsFormatCsv:
- return true
- }
- return false
-}
-
-type AIGatewayTimeseriesGroupTaskResponseEnvelope struct {
- Result AIGatewayTimeseriesGroupTaskResponse `json:"result,required"`
- Success bool `json:"success,required"`
- JSON aiGatewayTimeseriesGroupTaskResponseEnvelopeJSON `json:"-"`
-}
-
-// aiGatewayTimeseriesGroupTaskResponseEnvelopeJSON contains the JSON metadata for
-// the struct [AIGatewayTimeseriesGroupTaskResponseEnvelope]
-type aiGatewayTimeseriesGroupTaskResponseEnvelopeJSON struct {
- Result apijson.Field
- Success apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *AIGatewayTimeseriesGroupTaskResponseEnvelope) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r aiGatewayTimeseriesGroupTaskResponseEnvelopeJSON) RawJSON() string {
- return r.raw
-}
diff --git a/radar/aigatewaytimeseriesgroup_test.go b/radar/aigatewaytimeseriesgroup_test.go
deleted file mode 100644
index ac1d1f09727..00000000000
--- a/radar/aigatewaytimeseriesgroup_test.go
+++ /dev/null
@@ -1,109 +0,0 @@
-// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-package radar_test
-
-import (
- "context"
- "errors"
- "os"
- "testing"
- "time"
-
- "github.com/cloudflare/cloudflare-go/v3"
- "github.com/cloudflare/cloudflare-go/v3/internal/testutil"
- "github.com/cloudflare/cloudflare-go/v3/option"
- "github.com/cloudflare/cloudflare-go/v3/radar"
-)
-
-func TestAIGatewayTimeseriesGroupModelWithOptionalParams(t *testing.T) {
- baseURL := "http://localhost:4010"
- if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
- baseURL = envURL
- }
- if !testutil.CheckTestServer(t, baseURL) {
- return
- }
- client := cloudflare.NewClient(
- option.WithBaseURL(baseURL),
- option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
- option.WithAPIEmail("user@example.com"),
- )
- _, err := client.Radar.AI.Gateway.TimeseriesGroups.Model(context.TODO(), radar.AIGatewayTimeseriesGroupModelParams{
- AggInterval: cloudflare.F(radar.AIGatewayTimeseriesGroupModelParamsAggInterval15m),
- DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
- DateRange: cloudflare.F([]string{"7d", "7d", "7d"}),
- DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
- Format: cloudflare.F(radar.AIGatewayTimeseriesGroupModelParamsFormatJson),
- LimitPerGroup: cloudflare.F(int64(4)),
- Name: cloudflare.F([]string{"string", "string", "string"}),
- })
- if err != nil {
- var apierr *cloudflare.Error
- if errors.As(err, &apierr) {
- t.Log(string(apierr.DumpRequest(true)))
- }
- t.Fatalf("err should be nil: %s", err.Error())
- }
-}
-
-func TestAIGatewayTimeseriesGroupProviderWithOptionalParams(t *testing.T) {
- baseURL := "http://localhost:4010"
- if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
- baseURL = envURL
- }
- if !testutil.CheckTestServer(t, baseURL) {
- return
- }
- client := cloudflare.NewClient(
- option.WithBaseURL(baseURL),
- option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
- option.WithAPIEmail("user@example.com"),
- )
- _, err := client.Radar.AI.Gateway.TimeseriesGroups.Provider(context.TODO(), radar.AIGatewayTimeseriesGroupProviderParams{
- AggInterval: cloudflare.F(radar.AIGatewayTimeseriesGroupProviderParamsAggInterval15m),
- DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
- DateRange: cloudflare.F([]string{"7d", "7d", "7d"}),
- DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
- Format: cloudflare.F(radar.AIGatewayTimeseriesGroupProviderParamsFormatJson),
- LimitPerGroup: cloudflare.F(int64(4)),
- Name: cloudflare.F([]string{"string", "string", "string"}),
- })
- if err != nil {
- var apierr *cloudflare.Error
- if errors.As(err, &apierr) {
- t.Log(string(apierr.DumpRequest(true)))
- }
- t.Fatalf("err should be nil: %s", err.Error())
- }
-}
-
-func TestAIGatewayTimeseriesGroupTaskWithOptionalParams(t *testing.T) {
- baseURL := "http://localhost:4010"
- if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
- baseURL = envURL
- }
- if !testutil.CheckTestServer(t, baseURL) {
- return
- }
- client := cloudflare.NewClient(
- option.WithBaseURL(baseURL),
- option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
- option.WithAPIEmail("user@example.com"),
- )
- _, err := client.Radar.AI.Gateway.TimeseriesGroups.Task(context.TODO(), radar.AIGatewayTimeseriesGroupTaskParams{
- AggInterval: cloudflare.F(radar.AIGatewayTimeseriesGroupTaskParamsAggInterval15m),
- DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
- DateRange: cloudflare.F([]string{"7d", "7d", "7d"}),
- DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
- Format: cloudflare.F(radar.AIGatewayTimeseriesGroupTaskParamsFormatJson),
- LimitPerGroup: cloudflare.F(int64(4)),
- Name: cloudflare.F([]string{"string", "string", "string"}),
- })
- if err != nil {
- var apierr *cloudflare.Error
- if errors.As(err, &apierr) {
- t.Log(string(apierr.DumpRequest(true)))
- }
- t.Fatalf("err should be nil: %s", err.Error())
- }
-}
diff --git a/radar/annotation.go b/radar/annotation.go
index a2adcf0dd06..5f43acd04c8 100644
--- a/radar/annotation.go
+++ b/radar/annotation.go
@@ -36,7 +36,7 @@ func NewAnnotationService(opts ...option.RequestOption) (r *AnnotationService) {
return
}
-// Get latest annotations.
+// Get the latest annotations.
func (r *AnnotationService) List(ctx context.Context, query AnnotationListParams, opts ...option.RequestOption) (res *AnnotationListResponse, err error) {
var env AnnotationListResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/annotationoutage.go b/radar/annotationoutage.go
index eb119f217c5..5b3eb65b0ff 100644
--- a/radar/annotationoutage.go
+++ b/radar/annotationoutage.go
@@ -47,7 +47,7 @@ func (r *AnnotationOutageService) Get(ctx context.Context, query AnnotationOutag
return
}
-// Get the number of outages for locations.
+// Get the number of outages by location.
func (r *AnnotationOutageService) Locations(ctx context.Context, query AnnotationOutageLocationsParams, opts ...option.RequestOption) (res *AnnotationOutageLocationsResponse, err error) {
var env AnnotationOutageLocationsResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/as112summary.go b/radar/as112summary.go
index a9d7a20e1e2..fc8d1645063 100644
--- a/radar/as112summary.go
+++ b/radar/as112summary.go
@@ -47,7 +47,7 @@ func (r *AS112SummaryService) DNSSEC(ctx context.Context, query AS112SummaryDNSS
return
}
-// Percentage distribution of DNS queries, to AS112, by EDNS support.
+// Percentage distribution of DNS queries to AS112 by EDNS support.
func (r *AS112SummaryService) Edns(ctx context.Context, query AS112SummaryEdnsParams, opts ...option.RequestOption) (res *AS112SummaryEdnsResponse, err error) {
var env AS112SummaryEdnsResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -86,7 +86,7 @@ func (r *AS112SummaryService) Protocol(ctx context.Context, query AS112SummaryPr
return
}
-// Percentage distribution of DNS queries to AS112 by Query Type.
+// Percentage distribution of DNS queries to AS112 by query type.
func (r *AS112SummaryService) QueryType(ctx context.Context, query AS112SummaryQueryTypeParams, opts ...option.RequestOption) (res *AS112SummaryQueryTypeResponse, err error) {
var env AS112SummaryQueryTypeResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -99,7 +99,7 @@ func (r *AS112SummaryService) QueryType(ctx context.Context, query AS112SummaryQ
return
}
-// Percentage distribution of AS112 dns requests classified per Response Codes.
+// Percentage distribution of AS112 DNS requests classified by response code.
func (r *AS112SummaryService) ResponseCodes(ctx context.Context, query AS112SummaryResponseCodesParams, opts ...option.RequestOption) (res *AS112SummaryResponseCodesResponse, err error) {
var env AS112SummaryResponseCodesResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/as112timeseriesgroup.go b/radar/as112timeseriesgroup.go
index bb0f4d13543..c025b633144 100644
--- a/radar/as112timeseriesgroup.go
+++ b/radar/as112timeseriesgroup.go
@@ -60,7 +60,7 @@ func (r *AS112TimeseriesGroupService) Edns(ctx context.Context, query AS112Times
return
}
-// Percentage distribution of AS112 DNS queries by IP Version over time.
+// Percentage distribution of AS112 DNS queries by IP version over time.
func (r *AS112TimeseriesGroupService) IPVersion(ctx context.Context, query AS112TimeseriesGroupIPVersionParams, opts ...option.RequestOption) (res *AS112TimeseriesGroupIPVersionResponse, err error) {
var env AS112TimeseriesGroupIPVersionResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -73,7 +73,7 @@ func (r *AS112TimeseriesGroupService) IPVersion(ctx context.Context, query AS112
return
}
-// Percentage distribution of AS112 dns requests classified per Protocol over time.
+// Percentage distribution of AS112 DNS requests classified by protocol over time.
func (r *AS112TimeseriesGroupService) Protocol(ctx context.Context, query AS112TimeseriesGroupProtocolParams, opts ...option.RequestOption) (res *AS112TimeseriesGroupProtocolResponse, err error) {
var env AS112TimeseriesGroupProtocolResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -86,7 +86,7 @@ func (r *AS112TimeseriesGroupService) Protocol(ctx context.Context, query AS112T
return
}
-// Percentage distribution of AS112 DNS queries by Query Type over time.
+// Percentage distribution of AS112 DNS queries by query type over time.
func (r *AS112TimeseriesGroupService) QueryType(ctx context.Context, query AS112TimeseriesGroupQueryTypeParams, opts ...option.RequestOption) (res *AS112TimeseriesGroupQueryTypeResponse, err error) {
var env AS112TimeseriesGroupQueryTypeResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -99,7 +99,7 @@ func (r *AS112TimeseriesGroupService) QueryType(ctx context.Context, query AS112
return
}
-// Percentage distribution of AS112 dns requests classified per Response Codes over
+// Percentage distribution of AS112 DNS requests classified by response code over
// time.
func (r *AS112TimeseriesGroupService) ResponseCodes(ctx context.Context, query AS112TimeseriesGroupResponseCodesParams, opts ...option.RequestOption) (res *AS112TimeseriesGroupResponseCodesResponse, err error) {
var env AS112TimeseriesGroupResponseCodesResponseEnvelope
diff --git a/radar/as112top.go b/radar/as112top.go
index 034695aa67a..69706fb2c92 100644
--- a/radar/as112top.go
+++ b/radar/as112top.go
@@ -35,7 +35,7 @@ func NewAS112TopService(opts ...option.RequestOption) (r *AS112TopService) {
return
}
-// Get the top locations by DNS queries DNSSEC support to AS112.
+// Get the top locations of DNS queries to AS112 with DNSSEC.
func (r *AS112TopService) DNSSEC(ctx context.Context, dnssec AS112TopDNSSECParamsDNSSEC, query AS112TopDNSSECParams, opts ...option.RequestOption) (res *AS112TopDNSSECResponse, err error) {
var env AS112TopDNSSECResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -48,7 +48,7 @@ func (r *AS112TopService) DNSSEC(ctx context.Context, dnssec AS112TopDNSSECParam
return
}
-// Get the top locations, by DNS queries EDNS support to AS112.
+// Get the top locations of DNS queries to AS112 with EDNS support.
func (r *AS112TopService) Edns(ctx context.Context, edns AS112TopEdnsParamsEdns, query AS112TopEdnsParams, opts ...option.RequestOption) (res *AS112TopEdnsResponse, err error) {
var env AS112TopEdnsResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -61,7 +61,7 @@ func (r *AS112TopService) Edns(ctx context.Context, edns AS112TopEdnsParamsEdns,
return
}
-// Get the top locations by DNS queries IP version to AS112.
+// Get the top locations of DNS queries to AS112 by IP version.
func (r *AS112TopService) IPVersion(ctx context.Context, ipVersion AS112TopIPVersionParamsIPVersion, query AS112TopIPVersionParams, opts ...option.RequestOption) (res *AS112TopIPVersionResponse, err error) {
var env AS112TopIPVersionResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/attacklayer3summary.go b/radar/attacklayer3summary.go
index 603c229d95a..bede84303ba 100644
--- a/radar/attacklayer3summary.go
+++ b/radar/attacklayer3summary.go
@@ -60,7 +60,7 @@ func (r *AttackLayer3SummaryService) Duration(ctx context.Context, query AttackL
return
}
-// Percentage distribution of network protocols in layer 3/4 attacks over a given
+// Percentage distribution of network protocols in Layer 3/4 attacks over a given
// time period.
func (r *AttackLayer3SummaryService) Get(ctx context.Context, query AttackLayer3SummaryGetParams, opts ...option.RequestOption) (res *AttackLayer3SummaryGetResponse, err error) {
var env AttackLayer3SummaryGetResponseEnvelope
diff --git a/radar/attacklayer3timeseriesgroup.go b/radar/attacklayer3timeseriesgroup.go
index bdaeec15c2a..6849bdd1253 100644
--- a/radar/attacklayer3timeseriesgroup.go
+++ b/radar/attacklayer3timeseriesgroup.go
@@ -60,7 +60,7 @@ func (r *AttackLayer3TimeseriesGroupService) Duration(ctx context.Context, query
return
}
-// Get a timeseries of the percentage distribution of network protocols in Layer
+// Get a time series of the percentage distribution of network protocols in Layer
// 3/4 attacks.
func (r *AttackLayer3TimeseriesGroupService) Get(ctx context.Context, query AttackLayer3TimeseriesGroupGetParams, opts ...option.RequestOption) (res *AttackLayer3TimeseriesGroupGetResponse, err error) {
var env AttackLayer3TimeseriesGroupGetResponseEnvelope
diff --git a/radar/attacklayer3top.go b/radar/attacklayer3top.go
index ddd096517e7..900c5e8d992 100644
--- a/radar/attacklayer3top.go
+++ b/radar/attacklayer3top.go
@@ -52,7 +52,7 @@ func (r *AttackLayer3TopService) Attacks(ctx context.Context, query AttackLayer3
return
}
-// Get the Industry of attacks.
+// Get the industries targeted by attacks.
func (r *AttackLayer3TopService) Industry(ctx context.Context, query AttackLayer3TopIndustryParams, opts ...option.RequestOption) (res *AttackLayer3TopIndustryResponse, err error) {
var env AttackLayer3TopIndustryResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -65,7 +65,7 @@ func (r *AttackLayer3TopService) Industry(ctx context.Context, query AttackLayer
return
}
-// Get the Verticals of attacks.
+// Get the verticals targeted by attacks.
func (r *AttackLayer3TopService) Vertical(ctx context.Context, query AttackLayer3TopVerticalParams, opts ...option.RequestOption) (res *AttackLayer3TopVerticalResponse, err error) {
var env AttackLayer3TopVerticalResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/attacklayer7timeseriesgroup.go b/radar/attacklayer7timeseriesgroup.go
index 59533f620d9..7150af1407e 100644
--- a/radar/attacklayer7timeseriesgroup.go
+++ b/radar/attacklayer7timeseriesgroup.go
@@ -34,8 +34,7 @@ func NewAttackLayer7TimeseriesGroupService(opts ...option.RequestOption) (r *Att
return
}
-// Get a time series of the percentual distribution of mitigation techniques, over
-// time.
+// Get a time series of the distribution of mitigation techniques over time.
func (r *AttackLayer7TimeseriesGroupService) Get(ctx context.Context, query AttackLayer7TimeseriesGroupGetParams, opts ...option.RequestOption) (res *AttackLayer7TimeseriesGroupGetResponse, err error) {
var env AttackLayer7TimeseriesGroupGetResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -74,7 +73,7 @@ func (r *AttackLayer7TimeseriesGroupService) HTTPVersion(ctx context.Context, qu
return
}
-// Percentage distribution of attacks by industry used over time.
+// Percentage distribution of attacks by targeted industry over time.
func (r *AttackLayer7TimeseriesGroupService) Industry(ctx context.Context, query AttackLayer7TimeseriesGroupIndustryParams, opts ...option.RequestOption) (res *AttackLayer7TimeseriesGroupIndustryResponse, err error) {
var env AttackLayer7TimeseriesGroupIndustryResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -126,7 +125,7 @@ func (r *AttackLayer7TimeseriesGroupService) MitigationProduct(ctx context.Conte
return
}
-// Percentage distribution of attacks by vertical used over time.
+// Percentage distribution of attacks by targeted vertical over time.
func (r *AttackLayer7TimeseriesGroupService) Vertical(ctx context.Context, query AttackLayer7TimeseriesGroupVerticalParams, opts ...option.RequestOption) (res *AttackLayer7TimeseriesGroupVerticalResponse, err error) {
var env AttackLayer7TimeseriesGroupVerticalResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/attacklayer7top.go b/radar/attacklayer7top.go
index 0e74c0b34fd..becd3769902 100644
--- a/radar/attacklayer7top.go
+++ b/radar/attacklayer7top.go
@@ -39,10 +39,10 @@ func NewAttackLayer7TopService(opts ...option.RequestOption) (r *AttackLayer7Top
}
// Get the top attacks from origin to target location. Values are a percentage out
-// of the total layer 7 attacks (with billing country). The attack magnitude can be
+// of the total Layer 7 attacks (with billing country). The attack magnitude can be
// defined by the number of mitigated requests or by the number of zones affected.
-// You can optionally limit the number of attacks per origin/target location
-// (useful if all the top attacks are from or to the same location).
+// You can optionally limit the number of attacks by origin/target location (useful
+// if all the top attacks are from or to the same location).
func (r *AttackLayer7TopService) Attacks(ctx context.Context, query AttackLayer7TopAttacksParams, opts ...option.RequestOption) (res *AttackLayer7TopAttacksResponse, err error) {
var env AttackLayer7TopAttacksResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -55,7 +55,7 @@ func (r *AttackLayer7TopService) Attacks(ctx context.Context, query AttackLayer7
return
}
-// Get the Industry of attacks.
+// Get the industries targeted by attacks.
func (r *AttackLayer7TopService) Industry(ctx context.Context, query AttackLayer7TopIndustryParams, opts ...option.RequestOption) (res *AttackLayer7TopIndustryResponse, err error) {
var env AttackLayer7TopIndustryResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -68,7 +68,7 @@ func (r *AttackLayer7TopService) Industry(ctx context.Context, query AttackLayer
return
}
-// Get the Verticals of attacks.
+// Get the verticals targeted by attacks.
func (r *AttackLayer7TopService) Vertical(ctx context.Context, query AttackLayer7TopVerticalParams, opts ...option.RequestOption) (res *AttackLayer7TopVerticalResponse, err error) {
var env AttackLayer7TopVerticalResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/attacklayer7topase.go b/radar/attacklayer7topase.go
index 993d38229c4..28ce91ab35d 100644
--- a/radar/attacklayer7topase.go
+++ b/radar/attacklayer7topase.go
@@ -34,9 +34,9 @@ func NewAttackLayer7TopAseService(opts ...option.RequestOption) (r *AttackLayer7
return
}
-// Get the top origin Autonomous Systems of and by layer 7 attacks. Values are a
-// percentage out of the total layer 7 attacks. The origin Autonomous Systems is
-// determined by the client IP.
+// Get the top origin Autonomous Systems of and by Layer 7 attacks. Values are a
+// percentage out of the total Layer 7 attacks. The origin Autonomous Systems is
+// determined by the client IP address.
func (r *AttackLayer7TopAseService) Origin(ctx context.Context, query AttackLayer7TopAseOriginParams, opts ...option.RequestOption) (res *AttackLayer7TopAseOriginResponse, err error) {
var env AttackLayer7TopAseOriginResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/attacklayer7toplocation.go b/radar/attacklayer7toplocation.go
index 2b3d1c78367..a464595d2b6 100644
--- a/radar/attacklayer7toplocation.go
+++ b/radar/attacklayer7toplocation.go
@@ -34,9 +34,9 @@ func NewAttackLayer7TopLocationService(opts ...option.RequestOption) (r *AttackL
return
}
-// Get the top origin locations of and by layer 7 attacks. Values are a percentage
-// out of the total layer 7 attacks. The origin location is determined by the
-// client IP.
+// Get the top origin locations of and by Layer 7 attacks. Values are a percentage
+// out of the total Layer 7 attacks. The origin location is determined by the
+// client IP address.
func (r *AttackLayer7TopLocationService) Origin(ctx context.Context, query AttackLayer7TopLocationOriginParams, opts ...option.RequestOption) (res *AttackLayer7TopLocationOriginResponse, err error) {
var env AttackLayer7TopLocationOriginResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/bgp.go b/radar/bgp.go
index 1ccf3a867db..cdef2a05b9c 100644
--- a/radar/bgp.go
+++ b/radar/bgp.go
@@ -44,8 +44,8 @@ func NewBGPService(opts ...option.RequestOption) (r *BGPService) {
return
}
-// Gets BGP updates change over time. Raw values are returned. When requesting
-// updates of an autonomous system (AS), only BGP updates of type announcement are
+// Get BGP updates change over time. Raw values are returned. When requesting
+// updates for an autonomous system (AS), only BGP updates of type announcement are
// returned.
func (r *BGPService) Timeseries(ctx context.Context, query BGPTimeseriesParams, opts ...option.RequestOption) (res *BGPTimeseriesResponse, err error) {
var env BGPTimeseriesResponseEnvelope
diff --git a/radar/bgpip.go b/radar/bgpip.go
index 142f792621a..4753649c7cc 100644
--- a/radar/bgpip.go
+++ b/radar/bgpip.go
@@ -34,8 +34,8 @@ func NewBGPIPService(opts ...option.RequestOption) (r *BGPIPService) {
return
}
-// Gets time-series data for the announced IP space count, represented as the
-// number of IPv4 /24s and IPv6 /48s, for a given ASN.
+// Get time series data for the announced IP space count, represented as the number
+// of IPv4 /24s and IPv6 /48s, for a given ASN.
func (r *BGPIPService) Timeseries(ctx context.Context, query BGPIPTimeseriesParams, opts ...option.RequestOption) (res *BgpipTimeseriesResponse, err error) {
var env BgpipTimeseriesResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/bgproute.go b/radar/bgproute.go
index 7ed0c3f0911..ddafb55dc2f 100644
--- a/radar/bgproute.go
+++ b/radar/bgproute.go
@@ -33,7 +33,7 @@ func NewBGPRouteService(opts ...option.RequestOption) (r *BGPRouteService) {
return
}
-// List all ASes on current global routing tables with routing statistics
+// List all ASes in current global routing tables with routing statistics
func (r *BGPRouteService) Ases(ctx context.Context, query BGPRouteAsesParams, opts ...option.RequestOption) (res *BGPRouteAsesResponse, err error) {
var env BGPRouteAsesResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -46,7 +46,7 @@ func (r *BGPRouteService) Ases(ctx context.Context, query BGPRouteAsesParams, op
return
}
-// List all Multi-origin AS (MOAS) prefixes on the global routing tables.
+// List all Multi-Origin AS (MOAS) prefixes on the global routing tables.
func (r *BGPRouteService) Moas(ctx context.Context, query BGPRouteMoasParams, opts ...option.RequestOption) (res *BGPRouteMoasResponse, err error) {
var env BGPRouteMoasResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/bgptopase.go b/radar/bgptopase.go
index af26dfa1598..d6cb22e9c79 100644
--- a/radar/bgptopase.go
+++ b/radar/bgptopase.go
@@ -34,8 +34,8 @@ func NewBGPTopAseService(opts ...option.RequestOption) (r *BGPTopAseService) {
return
}
-// Get the top autonomous systems (AS) by BGP updates (announcements only). Values
-// are a percentage out of the total updates.
+// Get the top autonomous systems (ASes) by BGP updates (announcements only).
+// Values are a percentage out of the total updates.
func (r *BGPTopAseService) Get(ctx context.Context, query BGPTopAseGetParams, opts ...option.RequestOption) (res *BGPTopAseGetResponse, err error) {
var env BGPTopAseGetResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/dataset.go b/radar/dataset.go
index e0dbd2d8d72..2bc036ef761 100644
--- a/radar/dataset.go
+++ b/radar/dataset.go
@@ -61,7 +61,7 @@ func (r *DatasetService) Download(ctx context.Context, params DatasetDownloadPar
return
}
-// Get the csv content of a given dataset by alias or id. When getting the content
+// Get the CSV content of a given dataset by alias or ID. When getting the content
// by alias the latest dataset is returned, optionally filtered by the latest
// available at a given date.
func (r *DatasetService) Get(ctx context.Context, alias string, opts ...option.RequestOption) (res *string, err error) {
diff --git a/radar/emailroutingsummary.go b/radar/emailroutingsummary.go
index a2fa47854a0..e6d66139c0f 100644
--- a/radar/emailroutingsummary.go
+++ b/radar/emailroutingsummary.go
@@ -34,7 +34,7 @@ func NewEmailRoutingSummaryService(opts ...option.RequestOption) (r *EmailRoutin
return
}
-// Percentage distribution of emails classified per ARC validation.
+// Percentage distribution of emails classified by ARC validation.
func (r *EmailRoutingSummaryService) ARC(ctx context.Context, query EmailRoutingSummaryARCParams, opts ...option.RequestOption) (res *EmailRoutingSummaryARCResponse, err error) {
var env EmailRoutingSummaryARCResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -47,7 +47,7 @@ func (r *EmailRoutingSummaryService) ARC(ctx context.Context, query EmailRouting
return
}
-// Percentage distribution of emails classified per DKIM validation.
+// Percentage distribution of emails classified by DKIM validation.
func (r *EmailRoutingSummaryService) DKIM(ctx context.Context, query EmailRoutingSummaryDKIMParams, opts ...option.RequestOption) (res *EmailRoutingSummaryDKIMResponse, err error) {
var env EmailRoutingSummaryDKIMResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -60,7 +60,7 @@ func (r *EmailRoutingSummaryService) DKIM(ctx context.Context, query EmailRoutin
return
}
-// Percentage distribution of emails classified per DMARC validation.
+// Percentage distribution of emails classified by DMARC validation.
func (r *EmailRoutingSummaryService) DMARC(ctx context.Context, query EmailRoutingSummaryDMARCParams, opts ...option.RequestOption) (res *EmailRoutingSummaryDMARCResponse, err error) {
var env EmailRoutingSummaryDMARCResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -73,7 +73,7 @@ func (r *EmailRoutingSummaryService) DMARC(ctx context.Context, query EmailRouti
return
}
-// Percentage distribution of emails by Encrypted
+// Percentage distribution of emails by encryption status.
func (r *EmailRoutingSummaryService) Encrypted(ctx context.Context, query EmailRoutingSummaryEncryptedParams, opts ...option.RequestOption) (res *EmailRoutingSummaryEncryptedResponse, err error) {
var env EmailRoutingSummaryEncryptedResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -86,7 +86,7 @@ func (r *EmailRoutingSummaryService) Encrypted(ctx context.Context, query EmailR
return
}
-// Percentage distribution of emails by Ip Version.
+// Percentage distribution of emails by IP version.
func (r *EmailRoutingSummaryService) IPVersion(ctx context.Context, query EmailRoutingSummaryIPVersionParams, opts ...option.RequestOption) (res *EmailRoutingSummaryIPVersionResponse, err error) {
var env EmailRoutingSummaryIPVersionResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -99,7 +99,7 @@ func (r *EmailRoutingSummaryService) IPVersion(ctx context.Context, query EmailR
return
}
-// Percentage distribution of emails classified per SPF validation.
+// Percentage distribution of emails classified by SPF validation.
func (r *EmailRoutingSummaryService) SPF(ctx context.Context, query EmailRoutingSummarySPFParams, opts ...option.RequestOption) (res *EmailRoutingSummarySPFResponse, err error) {
var env EmailRoutingSummarySPFResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/emailroutingtimeseriesgroup.go b/radar/emailroutingtimeseriesgroup.go
index f76fe8b2451..34f0ba4df98 100644
--- a/radar/emailroutingtimeseriesgroup.go
+++ b/radar/emailroutingtimeseriesgroup.go
@@ -34,7 +34,7 @@ func NewEmailRoutingTimeseriesGroupService(opts ...option.RequestOption) (r *Ema
return
}
-// Percentage distribution of emails classified per Arc validation over time.
+// Percentage distribution of emails classified by ARC validation over time.
func (r *EmailRoutingTimeseriesGroupService) ARC(ctx context.Context, query EmailRoutingTimeseriesGroupARCParams, opts ...option.RequestOption) (res *EmailRoutingTimeseriesGroupARCResponse, err error) {
var env EmailRoutingTimeseriesGroupARCResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -47,7 +47,7 @@ func (r *EmailRoutingTimeseriesGroupService) ARC(ctx context.Context, query Emai
return
}
-// Percentage distribution of emails classified per DKIM validation over time.
+// Percentage distribution of emails classified by DKIM validation over time.
func (r *EmailRoutingTimeseriesGroupService) DKIM(ctx context.Context, query EmailRoutingTimeseriesGroupDKIMParams, opts ...option.RequestOption) (res *EmailRoutingTimeseriesGroupDKIMResponse, err error) {
var env EmailRoutingTimeseriesGroupDKIMResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -60,7 +60,7 @@ func (r *EmailRoutingTimeseriesGroupService) DKIM(ctx context.Context, query Ema
return
}
-// Percentage distribution of emails classified per DMARC validation over time.
+// Percentage distribution of emails classified by DMARC validation over time.
func (r *EmailRoutingTimeseriesGroupService) DMARC(ctx context.Context, query EmailRoutingTimeseriesGroupDMARCParams, opts ...option.RequestOption) (res *EmailRoutingTimeseriesGroupDMARCResponse, err error) {
var env EmailRoutingTimeseriesGroupDMARCResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -73,7 +73,7 @@ func (r *EmailRoutingTimeseriesGroupService) DMARC(ctx context.Context, query Em
return
}
-// Percentage distribution of emails by Encrypted over time.
+// Percentage distribution of emails by encryption status over time.
func (r *EmailRoutingTimeseriesGroupService) Encrypted(ctx context.Context, query EmailRoutingTimeseriesGroupEncryptedParams, opts ...option.RequestOption) (res *EmailRoutingTimeseriesGroupEncryptedResponse, err error) {
var env EmailRoutingTimeseriesGroupEncryptedResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -86,7 +86,7 @@ func (r *EmailRoutingTimeseriesGroupService) Encrypted(ctx context.Context, quer
return
}
-// Percentage distribution of emails by Ip Version over time.
+// Percentage distribution of emails by IP version over time.
func (r *EmailRoutingTimeseriesGroupService) IPVersion(ctx context.Context, query EmailRoutingTimeseriesGroupIPVersionParams, opts ...option.RequestOption) (res *EmailRoutingTimeseriesGroupIPVersionResponse, err error) {
var env EmailRoutingTimeseriesGroupIPVersionResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -99,7 +99,7 @@ func (r *EmailRoutingTimeseriesGroupService) IPVersion(ctx context.Context, quer
return
}
-// Percentage distribution of emails classified per SPF validation over time.
+// Percentage distribution of emails classified by SPF validation over time.
func (r *EmailRoutingTimeseriesGroupService) SPF(ctx context.Context, query EmailRoutingTimeseriesGroupSPFParams, opts ...option.RequestOption) (res *EmailRoutingTimeseriesGroupSPFResponse, err error) {
var env EmailRoutingTimeseriesGroupSPFResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/emailsecuritysummary.go b/radar/emailsecuritysummary.go
index 85366303db8..0140f67b59f 100644
--- a/radar/emailsecuritysummary.go
+++ b/radar/emailsecuritysummary.go
@@ -34,7 +34,7 @@ func NewEmailSecuritySummaryService(opts ...option.RequestOption) (r *EmailSecur
return
}
-// Percentage distribution of emails classified per ARC validation.
+// Percentage distribution of emails classified by ARC validation.
func (r *EmailSecuritySummaryService) ARC(ctx context.Context, query EmailSecuritySummaryARCParams, opts ...option.RequestOption) (res *EmailSecuritySummaryARCResponse, err error) {
var env EmailSecuritySummaryARCResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -47,7 +47,7 @@ func (r *EmailSecuritySummaryService) ARC(ctx context.Context, query EmailSecuri
return
}
-// Percentage distribution of emails classified per DKIM validation.
+// Percentage distribution of emails classified by DKIM validation.
func (r *EmailSecuritySummaryService) DKIM(ctx context.Context, query EmailSecuritySummaryDKIMParams, opts ...option.RequestOption) (res *EmailSecuritySummaryDKIMResponse, err error) {
var env EmailSecuritySummaryDKIMResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -60,7 +60,7 @@ func (r *EmailSecuritySummaryService) DKIM(ctx context.Context, query EmailSecur
return
}
-// Percentage distribution of emails classified per DMARC validation.
+// Percentage distribution of emails classified by DMARC validation.
func (r *EmailSecuritySummaryService) DMARC(ctx context.Context, query EmailSecuritySummaryDMARCParams, opts ...option.RequestOption) (res *EmailSecuritySummaryDMARCResponse, err error) {
var env EmailSecuritySummaryDMARCResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -99,7 +99,7 @@ func (r *EmailSecuritySummaryService) Spam(ctx context.Context, query EmailSecur
return
}
-// Percentage distribution of emails classified per SPF validation.
+// Percentage distribution of emails classified by SPF validation.
func (r *EmailSecuritySummaryService) SPF(ctx context.Context, query EmailSecuritySummarySPFParams, opts ...option.RequestOption) (res *EmailSecuritySummarySPFResponse, err error) {
var env EmailSecuritySummarySPFResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -138,7 +138,7 @@ func (r *EmailSecuritySummaryService) ThreatCategory(ctx context.Context, query
return
}
-// Percentage distribution of emails classified per TLS Version.
+// Percentage distribution of emails classified by TLS version.
func (r *EmailSecuritySummaryService) TLSVersion(ctx context.Context, query EmailSecuritySummaryTLSVersionParams, opts ...option.RequestOption) (res *EmailSecuritySummaryTLSVersionResponse, err error) {
var env EmailSecuritySummaryTLSVersionResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/emailsecuritytimeseriesgroup.go b/radar/emailsecuritytimeseriesgroup.go
index 9c7d204cbd0..f77168afe12 100644
--- a/radar/emailsecuritytimeseriesgroup.go
+++ b/radar/emailsecuritytimeseriesgroup.go
@@ -34,7 +34,7 @@ func NewEmailSecurityTimeseriesGroupService(opts ...option.RequestOption) (r *Em
return
}
-// Percentage distribution of emails classified per Arc validation over time.
+// Percentage distribution of emails classified by ARC validation over time.
func (r *EmailSecurityTimeseriesGroupService) ARC(ctx context.Context, query EmailSecurityTimeseriesGroupARCParams, opts ...option.RequestOption) (res *EmailSecurityTimeseriesGroupARCResponse, err error) {
var env EmailSecurityTimeseriesGroupARCResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -47,7 +47,7 @@ func (r *EmailSecurityTimeseriesGroupService) ARC(ctx context.Context, query Ema
return
}
-// Percentage distribution of emails classified per DKIM validation over time.
+// Percentage distribution of emails classified by DKIM validation over time.
func (r *EmailSecurityTimeseriesGroupService) DKIM(ctx context.Context, query EmailSecurityTimeseriesGroupDKIMParams, opts ...option.RequestOption) (res *EmailSecurityTimeseriesGroupDKIMResponse, err error) {
var env EmailSecurityTimeseriesGroupDKIMResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -60,7 +60,7 @@ func (r *EmailSecurityTimeseriesGroupService) DKIM(ctx context.Context, query Em
return
}
-// Percentage distribution of emails classified per DMARC validation over time.
+// Percentage distribution of emails classified by DMARC validation over time.
func (r *EmailSecurityTimeseriesGroupService) DMARC(ctx context.Context, query EmailSecurityTimeseriesGroupDMARCParams, opts ...option.RequestOption) (res *EmailSecurityTimeseriesGroupDMARCResponse, err error) {
var env EmailSecurityTimeseriesGroupDMARCResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -99,7 +99,7 @@ func (r *EmailSecurityTimeseriesGroupService) Spam(ctx context.Context, query Em
return
}
-// Percentage distribution of emails classified per SPF validation over time.
+// Percentage distribution of emails classified by SPF validation over time.
func (r *EmailSecurityTimeseriesGroupService) SPF(ctx context.Context, query EmailSecurityTimeseriesGroupSPFParams, opts ...option.RequestOption) (res *EmailSecurityTimeseriesGroupSPFResponse, err error) {
var env EmailSecurityTimeseriesGroupSPFResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -125,7 +125,7 @@ func (r *EmailSecurityTimeseriesGroupService) Spoof(ctx context.Context, query E
return
}
-// Percentage distribution of emails classified in Threat Categories over time.
+// Percentage distribution of emails classified by threat category over time.
func (r *EmailSecurityTimeseriesGroupService) ThreatCategory(ctx context.Context, query EmailSecurityTimeseriesGroupThreatCategoryParams, opts ...option.RequestOption) (res *EmailSecurityTimeseriesGroupThreatCategoryResponse, err error) {
var env EmailSecurityTimeseriesGroupThreatCategoryResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -138,7 +138,7 @@ func (r *EmailSecurityTimeseriesGroupService) ThreatCategory(ctx context.Context
return
}
-// Percentage distribution of emails classified per TLS Version over time.
+// Percentage distribution of emails classified by TLS version over time.
func (r *EmailSecurityTimeseriesGroupService) TLSVersion(ctx context.Context, query EmailSecurityTimeseriesGroupTLSVersionParams, opts ...option.RequestOption) (res *EmailSecurityTimeseriesGroupTLSVersionResponse, err error) {
var env EmailSecurityTimeseriesGroupTLSVersionResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/emailsecuritytoptld.go b/radar/emailsecuritytoptld.go
index 70d72b63dfa..b2c98438d4e 100644
--- a/radar/emailsecuritytoptld.go
+++ b/radar/emailsecuritytoptld.go
@@ -40,8 +40,8 @@ func NewEmailSecurityTopTldService(opts ...option.RequestOption) (r *EmailSecuri
return
}
-// Get the top TLDs by email messages. Values are a percentage out of the total
-// emails.
+// Get the top TLDs by email messages. Values are a percentage out of total email
+// volume.
func (r *EmailSecurityTopTldService) Get(ctx context.Context, query EmailSecurityTopTldGetParams, opts ...option.RequestOption) (res *EmailSecurityTopTldGetResponse, err error) {
var env EmailSecurityTopTldGetResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/emailsecuritytoptldspam.go b/radar/emailsecuritytoptldspam.go
index 62bc6f86649..956e03cbe76 100644
--- a/radar/emailsecuritytoptldspam.go
+++ b/radar/emailsecuritytoptldspam.go
@@ -35,7 +35,7 @@ func NewEmailSecurityTopTldSpamService(opts ...option.RequestOption) (r *EmailSe
return
}
-// Get the top TLDs by emails classified as Spam or not.
+// Get the top TLDs by emails classified as spam or not.
func (r *EmailSecurityTopTldSpamService) Get(ctx context.Context, spam EmailSecurityTopTldSpamGetParamsSpam, query EmailSecurityTopTldSpamGetParams, opts ...option.RequestOption) (res *EmailSecurityTopTldSpamGetResponse, err error) {
var env EmailSecurityTopTldSpamGetResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/entityasn.go b/radar/entityasn.go
index 2a205e1a65d..1a4006549d0 100644
--- a/radar/entityasn.go
+++ b/radar/entityasn.go
@@ -34,7 +34,7 @@ func NewEntityASNService(opts ...option.RequestOption) (r *EntityASNService) {
return
}
-// Gets a list of autonomous systems (AS).
+// Get a list of autonomous systems (ASes).
func (r *EntityASNService) List(ctx context.Context, query EntityASNListParams, opts ...option.RequestOption) (res *EntityASNListResponse, err error) {
var env EntityASNListResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/httpasehttpmethod.go b/radar/httpasehttpmethod.go
index 42c16c4326d..14433e76138 100644
--- a/radar/httpasehttpmethod.go
+++ b/radar/httpasehttpmethod.go
@@ -36,7 +36,7 @@ func NewHTTPAseHTTPMethodService(opts ...option.RequestOption) (r *HTTPAseHTTPMe
}
// Get the top autonomous systems (AS), by HTTP traffic, of the requested HTTP
-// protocol version. Values are a percentage out of the total traffic.
+// version. Values are a percentage out of the total traffic.
func (r *HTTPAseHTTPMethodService) Get(ctx context.Context, httpVersion HTTPAseHTTPMethodGetParamsHTTPVersion, query HTTPAseHTTPMethodGetParams, opts ...option.RequestOption) (res *HTTPAseHTTPMethodGetResponse, err error) {
var env HTTPAseHTTPMethodGetResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/httpaseipversion.go b/radar/httpaseipversion.go
index f4ee34e1655..585e6b14cd8 100644
--- a/radar/httpaseipversion.go
+++ b/radar/httpaseipversion.go
@@ -35,8 +35,8 @@ func NewHTTPAseIPVersionService(opts ...option.RequestOption) (r *HTTPAseIPVersi
return
}
-// Get the top autonomous systems, by HTTP traffic, of the requested IP protocol
-// version. Values are a percentage out of the total traffic.
+// Get the top autonomous systems, by HTTP traffic, of the requested IP version.
+// Values are a percentage out of the total traffic.
func (r *HTTPAseIPVersionService) Get(ctx context.Context, ipVersion HTTPAseIPVersionGetParamsIPVersion, query HTTPAseIPVersionGetParams, opts ...option.RequestOption) (res *HTTPAseIPVersionGetResponse, err error) {
var env HTTPAseIPVersionGetResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/httplocationhttpmethod.go b/radar/httplocationhttpmethod.go
index 7d9e7d1fdff..d0cf854b22b 100644
--- a/radar/httplocationhttpmethod.go
+++ b/radar/httplocationhttpmethod.go
@@ -35,7 +35,7 @@ func NewHTTPLocationHTTPMethodService(opts ...option.RequestOption) (r *HTTPLoca
return
}
-// Get the top locations, by HTTP traffic, of the requested HTTP protocol. Values
+// Get the top locations, by HTTP traffic, of the requested HTTP version. Values
// are a percentage out of the total traffic.
func (r *HTTPLocationHTTPMethodService) Get(ctx context.Context, httpVersion HTTPLocationHTTPMethodGetParamsHTTPVersion, query HTTPLocationHTTPMethodGetParams, opts ...option.RequestOption) (res *HTTPLocationHTTPMethodGetResponse, err error) {
var env HTTPLocationHTTPMethodGetResponseEnvelope
diff --git a/radar/httplocationipversion.go b/radar/httplocationipversion.go
index 8a0a4f9dee9..4f9d243c06f 100644
--- a/radar/httplocationipversion.go
+++ b/radar/httplocationipversion.go
@@ -35,8 +35,8 @@ func NewHTTPLocationIPVersionService(opts ...option.RequestOption) (r *HTTPLocat
return
}
-// Get the top locations, by HTTP traffic, of the requested IP protocol version.
-// Values are a percentage out of the total traffic.
+// Get the top locations, by HTTP traffic, of the requested IP version. Values are
+// a percentage out of the total traffic.
func (r *HTTPLocationIPVersionService) Get(ctx context.Context, ipVersion HTTPLocationIPVersionGetParamsIPVersion, query HTTPLocationIPVersionGetParams, opts ...option.RequestOption) (res *HTTPLocationIPVersionGetResponse, err error) {
var env HTTPLocationIPVersionGetResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/httpsummary.go b/radar/httpsummary.go
index 961392d13ee..4b74a20309c 100644
--- a/radar/httpsummary.go
+++ b/radar/httpsummary.go
@@ -51,7 +51,7 @@ func (r *HTTPSummaryService) BotClass(ctx context.Context, query HTTPSummaryBotC
}
// Percentage of Internet traffic generated by mobile, desktop, and other types of
-// devices, over a given time period.
+// devices over a given time period.
func (r *HTTPSummaryService) DeviceType(ctx context.Context, query HTTPSummaryDeviceTypeParams, opts ...option.RequestOption) (res *HTTPSummaryDeviceTypeResponse, err error) {
var env HTTPSummaryDeviceTypeResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -64,7 +64,7 @@ func (r *HTTPSummaryService) DeviceType(ctx context.Context, query HTTPSummaryDe
return
}
-// Percentage distribution of traffic per HTTP protocol over a given time period.
+// Percentage distribution of traffic by HTTP protocol over a given time period.
func (r *HTTPSummaryService) HTTPProtocol(ctx context.Context, query HTTPSummaryHTTPProtocolParams, opts ...option.RequestOption) (res *HTTPSummaryHTTPProtocolResponse, err error) {
var env HTTPSummaryHTTPProtocolResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -77,8 +77,7 @@ func (r *HTTPSummaryService) HTTPProtocol(ctx context.Context, query HTTPSummary
return
}
-// Percentage distribution of traffic per HTTP protocol version over a given time
-// period.
+// Percentage distribution of traffic by HTTP version over a given time period.
func (r *HTTPSummaryService) HTTPVersion(ctx context.Context, query HTTPSummaryHTTPVersionParams, opts ...option.RequestOption) (res *HTTPSummaryHTTPVersionResponse, err error) {
var env HTTPSummaryHTTPVersionResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -91,8 +90,8 @@ func (r *HTTPSummaryService) HTTPVersion(ctx context.Context, query HTTPSummaryH
return
}
-// Percentage distribution of Internet traffic based on IP protocol versions, such
-// as IPv4 and IPv6, over a given time period.
+// Percentage distribution of Internet traffic based on IP versions (IPv4 and IPv6)
+// over a given time period.
func (r *HTTPSummaryService) IPVersion(ctx context.Context, query HTTPSummaryIPVersionParams, opts ...option.RequestOption) (res *HTTPSummaryIPVersionResponse, err error) {
var env HTTPSummaryIPVersionResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -119,7 +118,7 @@ func (r *HTTPSummaryService) OS(ctx context.Context, query HTTPSummaryOSParams,
return
}
-// Percentage distribution of traffic per Post Quantum support over a given time
+// Percentage distribution of traffic by post-quantum support over a given time
// period.
func (r *HTTPSummaryService) PostQuantum(ctx context.Context, query HTTPSummaryPostQuantumParams, opts ...option.RequestOption) (res *HTTPSummaryPostQuantumResponse, err error) {
var env HTTPSummaryPostQuantumResponseEnvelope
@@ -133,7 +132,7 @@ func (r *HTTPSummaryService) PostQuantum(ctx context.Context, query HTTPSummaryP
return
}
-// Percentage distribution of traffic per TLS protocol version, over a given time
+// Percentage distribution of traffic by TLS protocol version, over a given time
// period.
func (r *HTTPSummaryService) TLSVersion(ctx context.Context, query HTTPSummaryTLSVersionParams, opts ...option.RequestOption) (res *HTTPSummaryTLSVersionResponse, err error) {
var env HTTPSummaryTLSVersionResponseEnvelope
diff --git a/radar/httptimeseriesgroup.go b/radar/httptimeseriesgroup.go
index 14c9a86d7b1..28a62ad7c6d 100644
--- a/radar/httptimeseriesgroup.go
+++ b/radar/httptimeseriesgroup.go
@@ -78,7 +78,7 @@ func (r *HTTPTimeseriesGroupService) BrowserFamily(ctx context.Context, query HT
return
}
-// Get a time series of the percentage distribution of traffic per device type.
+// Get a time series of the percentage distribution of traffic by device type.
func (r *HTTPTimeseriesGroupService) DeviceType(ctx context.Context, query HTTPTimeseriesGroupDeviceTypeParams, opts ...option.RequestOption) (res *HTTPTimeseriesGroupDeviceTypeResponse, err error) {
var env HTTPTimeseriesGroupDeviceTypeResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -91,7 +91,7 @@ func (r *HTTPTimeseriesGroupService) DeviceType(ctx context.Context, query HTTPT
return
}
-// Get a time series of the percentage distribution of traffic per HTTP protocol.
+// Get a time series of the percentage distribution of traffic by HTTP protocol.
func (r *HTTPTimeseriesGroupService) HTTPProtocol(ctx context.Context, query HTTPTimeseriesGroupHTTPProtocolParams, opts ...option.RequestOption) (res *HTTPTimeseriesGroupHTTPProtocolResponse, err error) {
var env HTTPTimeseriesGroupHTTPProtocolResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -104,8 +104,7 @@ func (r *HTTPTimeseriesGroupService) HTTPProtocol(ctx context.Context, query HTT
return
}
-// Get a time series of the percentage distribution of traffic per HTTP protocol
-// version.
+// Get a time series of the percentage distribution of traffic by HTTP version.
func (r *HTTPTimeseriesGroupService) HTTPVersion(ctx context.Context, query HTTPTimeseriesGroupHTTPVersionParams, opts ...option.RequestOption) (res *HTTPTimeseriesGroupHTTPVersionResponse, err error) {
var env HTTPTimeseriesGroupHTTPVersionResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -118,8 +117,7 @@ func (r *HTTPTimeseriesGroupService) HTTPVersion(ctx context.Context, query HTTP
return
}
-// Get a time series of the percentage distribution of traffic per IP protocol
-// version.
+// Get a time series of the percentage distribution of traffic by IP version.
func (r *HTTPTimeseriesGroupService) IPVersion(ctx context.Context, query HTTPTimeseriesGroupIPVersionParams, opts ...option.RequestOption) (res *HTTPTimeseriesGroupIPVersionResponse, err error) {
var env HTTPTimeseriesGroupIPVersionResponseEnvelope
opts = append(r.Options[:], opts...)
@@ -146,7 +144,7 @@ func (r *HTTPTimeseriesGroupService) OS(ctx context.Context, query HTTPTimeserie
return
}
-// Get a time series of the percentage distribution of traffic per Post Quantum
+// Get a time series of the percentage distribution of traffic by post-quantum
// suport.
func (r *HTTPTimeseriesGroupService) PostQuantum(ctx context.Context, query HTTPTimeseriesGroupPostQuantumParams, opts ...option.RequestOption) (res *HTTPTimeseriesGroupPostQuantumResponse, err error) {
var env HTTPTimeseriesGroupPostQuantumResponseEnvelope
@@ -160,7 +158,7 @@ func (r *HTTPTimeseriesGroupService) PostQuantum(ctx context.Context, query HTTP
return
}
-// Get a time series of the percentage distribution of traffic per TLS protocol
+// Get a time series of the percentage distribution of traffic by TLS protocol
// version.
func (r *HTTPTimeseriesGroupService) TLSVersion(ctx context.Context, query HTTPTimeseriesGroupTLSVersionParams, opts ...option.RequestOption) (res *HTTPTimeseriesGroupTLSVersionResponse, err error) {
var env HTTPTimeseriesGroupTLSVersionResponseEnvelope
diff --git a/radar/search.go b/radar/search.go
index b19bd4d375b..fdfa6f59d9a 100644
--- a/radar/search.go
+++ b/radar/search.go
@@ -33,7 +33,7 @@ func NewSearchService(opts ...option.RequestOption) (r *SearchService) {
return
}
-// Lets you search for locations, autonomous systems (AS) and reports.
+// Lets you search for locations, autonomous systems (ASes), and reports.
func (r *SearchService) Global(ctx context.Context, query SearchGlobalParams, opts ...option.RequestOption) (res *SearchGlobalResponse, err error) {
var env SearchGlobalResponseEnvelope
opts = append(r.Options[:], opts...)
diff --git a/radar/trafficanomaly.go b/radar/trafficanomaly.go
index 5ec786ca15c..acc0e7a54ed 100644
--- a/radar/trafficanomaly.go
+++ b/radar/trafficanomaly.go
@@ -36,7 +36,7 @@ func NewTrafficAnomalyService(opts ...option.RequestOption) (r *TrafficAnomalySe
return
}
-// Internet traffic anomalies are signals that might point to an outage, These
+// Internet traffic anomalies are signals that might point to an outage. These
// alerts are automatically detected by Radar and then manually verified by our
// team. This endpoint returns the latest alerts.
func (r *TrafficAnomalyService) Get(ctx context.Context, query TrafficAnomalyGetParams, opts ...option.RequestOption) (res *TrafficAnomalyGetResponse, err error) {
diff --git a/radar/trafficanomalylocation.go b/radar/trafficanomalylocation.go
index 9a4954f2cd7..15f26ac6991 100644
--- a/radar/trafficanomalylocation.go
+++ b/radar/trafficanomalylocation.go
@@ -34,7 +34,7 @@ func NewTrafficAnomalyLocationService(opts ...option.RequestOption) (r *TrafficA
return
}
-// Internet traffic anomalies are signals that might point to an outage, These
+// Internet traffic anomalies are signals that might point to an outage. These
// alerts are automatically detected by Radar and then manually verified by our
// team. This endpoint returns the sum of alerts grouped by location.
func (r *TrafficAnomalyLocationService) Get(ctx context.Context, query TrafficAnomalyLocationGetParams, opts ...option.RequestOption) (res *TrafficAnomalyLocationGetResponse, err error) {
diff --git a/vectorize/index.go b/vectorize/index.go
index 71dadd31572..4cb328729ee 100644
--- a/vectorize/index.go
+++ b/vectorize/index.go
@@ -450,7 +450,7 @@ func (r indexQueryResponseJSON) RawJSON() string {
type IndexQueryResponseMatch struct {
// Identifier for a Vector
ID string `json:"id"`
- Metadata interface{} `json:"metadata"`
+ Metadata interface{} `json:"metadata,nullable"`
Namespace string `json:"namespace,nullable"`
// The score of the vector according to the index's distance metric
Score float64 `json:"score"`
@@ -662,7 +662,7 @@ type IndexDeleteParams struct {
type IndexDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- Result interface{} `json:"result,required,nullable"`
+ Result interface{} `json:"result,required"`
// Whether the API call was successful
Success IndexDeleteResponseEnvelopeSuccess `json:"success,required"`
JSON indexDeleteResponseEnvelopeJSON `json:"-"`
diff --git a/zero_trust/accessapplication.go b/zero_trust/accessapplication.go
index 0e5d153ca94..79f68375495 100644
--- a/zero_trust/accessapplication.go
+++ b/zero_trust/accessapplication.go
@@ -16732,7 +16732,7 @@ type AccessApplicationRevokeTokensParams struct {
}
type AccessApplicationRevokeTokensResponseEnvelope struct {
- Result AccessApplicationRevokeTokensResponse `json:"result"`
+ Result AccessApplicationRevokeTokensResponse `json:"result,nullable"`
Success AccessApplicationRevokeTokensResponseEnvelopeSuccess `json:"success"`
JSON accessApplicationRevokeTokensResponseEnvelopeJSON `json:"-"`
}
diff --git a/zero_trust/device.go b/zero_trust/device.go
index debf15b6276..4230f762f48 100644
--- a/zero_trust/device.go
+++ b/zero_trust/device.go
@@ -232,7 +232,7 @@ type DeviceGetParams struct {
type DeviceGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- Result interface{} `json:"result,required,nullable"`
+ Result interface{} `json:"result,required"`
// Whether the API call was successful.
Success DeviceGetResponseEnvelopeSuccess `json:"success,required"`
JSON deviceGetResponseEnvelopeJSON `json:"-"`
diff --git a/zero_trust/devicepolicycertificate.go b/zero_trust/devicepolicycertificate.go
index 11ec709a4fb..3e8ea4f4393 100644
--- a/zero_trust/devicepolicycertificate.go
+++ b/zero_trust/devicepolicycertificate.go
@@ -91,7 +91,7 @@ func (r DevicePolicyCertificateUpdateParams) MarshalJSON() (data []byte, err err
type DevicePolicyCertificateUpdateResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- Result interface{} `json:"result,required,nullable"`
+ Result interface{} `json:"result,required"`
// Whether the API call was successful.
Success DevicePolicyCertificateUpdateResponseEnvelopeSuccess `json:"success,required"`
JSON devicePolicyCertificateUpdateResponseEnvelopeJSON `json:"-"`
@@ -134,7 +134,7 @@ func (r DevicePolicyCertificateUpdateResponseEnvelopeSuccess) IsKnown() bool {
type DevicePolicyCertificateGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- Result interface{} `json:"result,required,nullable"`
+ Result interface{} `json:"result,required"`
// Whether the API call was successful.
Success DevicePolicyCertificateGetResponseEnvelopeSuccess `json:"success,required"`
JSON devicePolicyCertificateGetResponseEnvelopeJSON `json:"-"`
diff --git a/zero_trust/devicepostureintegration.go b/zero_trust/devicepostureintegration.go
index d8c7e3a23b2..b03352bd4db 100644
--- a/zero_trust/devicepostureintegration.go
+++ b/zero_trust/devicepostureintegration.go
@@ -501,7 +501,7 @@ type DevicePostureIntegrationDeleteParams struct {
type DevicePostureIntegrationDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- Result interface{} `json:"result,required,nullable"`
+ Result interface{} `json:"result,required"`
// Whether the API call was successful.
Success DevicePostureIntegrationDeleteResponseEnvelopeSuccess `json:"success,required"`
JSON devicePostureIntegrationDeleteResponseEnvelopeJSON `json:"-"`
diff --git a/zero_trust/devicerevoke.go b/zero_trust/devicerevoke.go
index d10920ba113..78badb0be61 100644
--- a/zero_trust/devicerevoke.go
+++ b/zero_trust/devicerevoke.go
@@ -64,7 +64,7 @@ func (r DeviceRevokeNewParams) MarshalJSON() (data []byte, err error) {
type DeviceRevokeNewResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- Result interface{} `json:"result,required,nullable"`
+ Result interface{} `json:"result,required"`
// Whether the API call was successful.
Success DeviceRevokeNewResponseEnvelopeSuccess `json:"success,required"`
JSON deviceRevokeNewResponseEnvelopeJSON `json:"-"`
diff --git a/zero_trust/deviceunrevoke.go b/zero_trust/deviceunrevoke.go
index 2a1dd945c20..e68ce437c73 100644
--- a/zero_trust/deviceunrevoke.go
+++ b/zero_trust/deviceunrevoke.go
@@ -64,7 +64,7 @@ func (r DeviceUnrevokeNewParams) MarshalJSON() (data []byte, err error) {
type DeviceUnrevokeNewResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
- Result interface{} `json:"result,required,nullable"`
+ Result interface{} `json:"result,required"`
// Whether the API call was successful.
Success DeviceUnrevokeNewResponseEnvelopeSuccess `json:"success,required"`
JSON deviceUnrevokeNewResponseEnvelopeJSON `json:"-"`
diff --git a/zero_trust/dlpprofilecustom.go b/zero_trust/dlpprofilecustom.go
index 156464c8818..4ad35927d82 100644
--- a/zero_trust/dlpprofilecustom.go
+++ b/zero_trust/dlpprofilecustom.go
@@ -667,7 +667,7 @@ type DLPProfileCustomDeleteResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success DLPProfileCustomDeleteResponseEnvelopeSuccess `json:"success,required"`
- Result DLPProfileCustomDeleteResponse `json:"result"`
+ Result DLPProfileCustomDeleteResponse `json:"result,nullable"`
JSON dlpProfileCustomDeleteResponseEnvelopeJSON `json:"-"`
}
diff --git a/zero_trust/riskscoring.go b/zero_trust/riskscoring.go
index d492c0f5ee4..61742cae231 100644
--- a/zero_trust/riskscoring.go
+++ b/zero_trust/riskscoring.go
@@ -264,7 +264,7 @@ type RiskScoringResetResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success RiskScoringResetResponseEnvelopeSuccess `json:"success,required"`
- Result RiskScoringResetResponse `json:"result"`
+ Result RiskScoringResetResponse `json:"result,nullable"`
JSON riskScoringResetResponseEnvelopeJSON `json:"-"`
}
diff --git a/zero_trust/riskscoringintegration.go b/zero_trust/riskscoringintegration.go
index d0553b5f40e..648c53dcecf 100644
--- a/zero_trust/riskscoringintegration.go
+++ b/zero_trust/riskscoringintegration.go
@@ -532,7 +532,7 @@ type RiskScoringIntegrationDeleteResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success RiskScoringIntegrationDeleteResponseEnvelopeSuccess `json:"success,required"`
- Result RiskScoringIntegrationDeleteResponse `json:"result"`
+ Result RiskScoringIntegrationDeleteResponse `json:"result,nullable"`
JSON riskScoringIntegrationDeleteResponseEnvelopeJSON `json:"-"`
}