Documentation
¶
Index ¶
- Constants
- type APIGatewayService
- type ASN
- type ASNParam
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type CertificateCA
- type CertificateRequestType
- type CloudflareTunnel
- type CloudflareTunnelConnection
- type CloudflareTunnelStatus
- type CloudflareTunnelTunType
- type Configuration
- type ConfigurationAuthIDCharacteristic
- type ConfigurationAuthIDCharacteristicParam
- type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristic
- type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaim
- type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimParam
- type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimType
- type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicParam
- type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicType
- type ConfigurationAuthIDCharacteristicsType
- type ConfigurationAuthIDCharacteristicsUnion
- type ConfigurationAuthIDCharacteristicsUnionParam
- type ConfigurationGetParams
- type ConfigurationGetParamsProperty
- type ConfigurationGetResponseEnvelope
- type ConfigurationGetResponseEnvelopeSuccess
- type ConfigurationParam
- type ConfigurationService
- type ConfigurationUpdateParams
- type ConfigurationUpdateResponse
- type ConfigurationUpdateResponseSuccess
- type DiscoveryGetParams
- type DiscoveryGetResponse
- type DiscoveryGetResponseEnvelope
- type DiscoveryGetResponseEnvelopeSuccess
- type DiscoveryOperation
- type DiscoveryOperationBulkEditParams
- type DiscoveryOperationBulkEditParamsBody
- type DiscoveryOperationBulkEditParamsBodyState
- type DiscoveryOperationBulkEditResponse
- type DiscoveryOperationBulkEditResponseEnvelope
- type DiscoveryOperationBulkEditResponseEnvelopeSuccess
- type DiscoveryOperationBulkEditResponseItem
- type DiscoveryOperationBulkEditResponseItemState
- type DiscoveryOperationEditParams
- type DiscoveryOperationEditParamsState
- type DiscoveryOperationEditResponse
- type DiscoveryOperationEditResponseEnvelope
- type DiscoveryOperationEditResponseEnvelopeSuccess
- type DiscoveryOperationEditResponseState
- type DiscoveryOperationFeatures
- type DiscoveryOperationFeaturesTrafficStats
- type DiscoveryOperationListParams
- type DiscoveryOperationListParamsDirection
- type DiscoveryOperationListParamsOrder
- type DiscoveryOperationListParamsOrigin
- type DiscoveryOperationListParamsState
- type DiscoveryOperationMethod
- type DiscoveryOperationOrigin
- type DiscoveryOperationService
- func (r *DiscoveryOperationService) BulkEdit(ctx context.Context, params DiscoveryOperationBulkEditParams, ...) (res *DiscoveryOperationBulkEditResponse, err error)
- func (r *DiscoveryOperationService) Edit(ctx context.Context, operationID string, params DiscoveryOperationEditParams, ...) (res *DiscoveryOperationEditResponse, err error)
- func (r *DiscoveryOperationService) List(ctx context.Context, params DiscoveryOperationListParams, ...) (res *pagination.V4PagePaginationArray[DiscoveryOperation], err error)
- func (r *DiscoveryOperationService) ListAutoPaging(ctx context.Context, params DiscoveryOperationListParams, ...) *pagination.V4PagePaginationArrayAutoPager[DiscoveryOperation]
- type DiscoveryOperationState
- type DiscoveryService
- type Error
- type ErrorData
- type ExpressionTemplateFallthroughNewParams
- type ExpressionTemplateFallthroughNewResponse
- type ExpressionTemplateFallthroughNewResponseEnvelope
- type ExpressionTemplateFallthroughNewResponseEnvelopeSuccess
- type ExpressionTemplateFallthroughService
- type ExpressionTemplateService
- type Member
- type MemberPoliciesAccess
- type MemberPoliciesPermissionGroup
- type MemberPoliciesPermissionGroupsMeta
- type MemberPoliciesResourceGroup
- type MemberPoliciesResourceGroupsMeta
- type MemberPoliciesResourceGroupsScope
- type MemberPoliciesResourceGroupsScopeObject
- type MemberPolicy
- type MemberStatus
- type MemberUser
- type Message
- type OperationBulkDeleteParams
- type OperationBulkDeleteResponse
- type OperationBulkDeleteResponseSuccess
- type OperationBulkNewParams
- type OperationBulkNewParamsBody
- type OperationBulkNewParamsBodyMethod
- type OperationBulkNewResponse
- type OperationBulkNewResponseEnvelope
- type OperationBulkNewResponseEnvelopeSuccess
- type OperationBulkNewResponseFeatures
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRouting
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemas
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfo
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholds
- type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds
- type OperationBulkNewResponseFeaturesUnion
- type OperationBulkNewResponseMethod
- type OperationDeleteParams
- type OperationDeleteResponse
- type OperationDeleteResponseSuccess
- type OperationGetParams
- type OperationGetParamsFeature
- type OperationGetResponse
- type OperationGetResponseEnvelope
- type OperationGetResponseEnvelopeSuccess
- type OperationGetResponseFeatures
- type OperationGetResponseFeaturesAPIShieldOperationFeatureAPIRouting
- type OperationGetResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting
- type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals
- type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals
- type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold
- type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals
- type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90
- type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95
- type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99
- type OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemas
- type OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas
- type OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas
- type OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfo
- type OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo
- type OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema
- type OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction
- type OperationGetResponseFeaturesAPIShieldOperationFeatureThresholds
- type OperationGetResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds
- type OperationGetResponseFeaturesUnion
- type OperationGetResponseMethod
- type OperationListParams
- type OperationListParamsDirection
- type OperationListParamsFeature
- type OperationListParamsOrder
- type OperationListResponse
- type OperationListResponseFeatures
- type OperationListResponseFeaturesAPIShieldOperationFeatureAPIRouting
- type OperationListResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting
- type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals
- type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals
- type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold
- type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals
- type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90
- type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95
- type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99
- type OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemas
- type OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas
- type OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas
- type OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfo
- type OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo
- type OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema
- type OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction
- type OperationListResponseFeaturesAPIShieldOperationFeatureThresholds
- type OperationListResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds
- type OperationListResponseFeaturesUnion
- type OperationListResponseMethod
- type OperationNewParams
- type OperationNewParamsMethod
- type OperationNewResponse
- type OperationNewResponseEnvelope
- type OperationNewResponseEnvelopeSuccess
- type OperationNewResponseFeatures
- type OperationNewResponseFeaturesAPIShieldOperationFeatureAPIRouting
- type OperationNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting
- type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals
- type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals
- type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold
- type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals
- type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90
- type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95
- type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99
- type OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemas
- type OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas
- type OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas
- type OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfo
- type OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo
- type OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema
- type OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction
- type OperationNewResponseFeaturesAPIShieldOperationFeatureThresholds
- type OperationNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds
- type OperationNewResponseFeaturesUnion
- type OperationNewResponseMethod
- type OperationSchemaValidationEditParams
- type OperationSchemaValidationEditResponseEnvelope
- type OperationSchemaValidationEditResponseEnvelopeSuccess
- type OperationSchemaValidationGetParams
- type OperationSchemaValidationGetResponse
- type OperationSchemaValidationGetResponseMitigationAction
- type OperationSchemaValidationService
- func (r *OperationSchemaValidationService) Edit(ctx context.Context, params OperationSchemaValidationEditParams, ...) (res *SettingsMultipleRequest, err error)
- func (r *OperationSchemaValidationService) Get(ctx context.Context, operationID string, ...) (res *OperationSchemaValidationGetResponse, err error)
- func (r *OperationSchemaValidationService) Update(ctx context.Context, operationID string, ...) (res *OperationSchemaValidationUpdateResponse, err error)
- type OperationSchemaValidationUpdateParams
- type OperationSchemaValidationUpdateParamsMitigationAction
- type OperationSchemaValidationUpdateResponse
- type OperationSchemaValidationUpdateResponseMitigationAction
- type OperationService
- func (r *OperationService) BulkDelete(ctx context.Context, body OperationBulkDeleteParams, ...) (res *OperationBulkDeleteResponse, err error)
- func (r *OperationService) BulkNew(ctx context.Context, params OperationBulkNewParams, ...) (res *[]OperationBulkNewResponse, err error)
- func (r *OperationService) Delete(ctx context.Context, operationID string, body OperationDeleteParams, ...) (res *OperationDeleteResponse, err error)
- func (r *OperationService) Get(ctx context.Context, operationID string, params OperationGetParams, ...) (res *OperationGetResponse, err error)
- func (r *OperationService) List(ctx context.Context, params OperationListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[OperationListResponse], err error)
- func (r *OperationService) ListAutoPaging(ctx context.Context, params OperationListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[OperationListResponse]
- func (r *OperationService) New(ctx context.Context, params OperationNewParams, opts ...option.RequestOption) (res *OperationNewResponse, err error)
- type Permission
- type PermissionGrant
- type PermissionGrantParam
- type PublicSchema
- type PublicSchemaKind
- type RatePlan
- type RatePlanParam
- type ResponseInfo
- type Role
- type RoleParam
- type RolePermissions
- type RolePermissionsParam
- type SchemaListParams
- type SchemaListParamsFeature
- type SchemaListResponse
- type SchemaListResponseEnvelope
- type SchemaListResponseEnvelopeSuccess
- type SchemaService
- type SchemaUpload
- type SchemaUploadUploadDetails
- type SchemaUploadUploadDetailsWarning
- type SettingSchemaValidationEditParams
- type SettingSchemaValidationEditParamsValidationDefaultMitigationAction
- type SettingSchemaValidationEditParamsValidationOverrideMitigationAction
- type SettingSchemaValidationGetParams
- type SettingSchemaValidationService
- func (r *SettingSchemaValidationService) Edit(ctx context.Context, params SettingSchemaValidationEditParams, ...) (res *Settings, err error)
- func (r *SettingSchemaValidationService) Get(ctx context.Context, query SettingSchemaValidationGetParams, ...) (res *Settings, err error)
- func (r *SettingSchemaValidationService) Update(ctx context.Context, params SettingSchemaValidationUpdateParams, ...) (res *Settings, err error)
- type SettingSchemaValidationUpdateParams
- type SettingSchemaValidationUpdateParamsValidationDefaultMitigationAction
- type SettingSchemaValidationUpdateParamsValidationOverrideMitigationAction
- type SettingService
- type Settings
- type SettingsMultipleRequest
- type SettingsMultipleRequestItem
- type SettingsMultipleRequestItemMitigationAction
- type SettingsMultipleRequestItemParam
- type SettingsMultipleRequestParam
- type SettingsValidationDefaultMitigationAction
- type SettingsValidationOverrideMitigationAction
- type SortDirection
- type Subscription
- type SubscriptionFrequency
- type SubscriptionParam
- type SubscriptionState
- type Token
- type TokenCondition
- type TokenConditionCIDRList
- type TokenConditionCIDRListParam
- type TokenConditionParam
- type TokenConditionRequestIP
- type TokenConditionRequestIPParam
- type TokenParam
- type TokenPolicy
- type TokenPolicyEffect
- type TokenPolicyParam
- type TokenPolicyPermissionGroup
- type TokenPolicyPermissionGroupParam
- type TokenPolicyPermissionGroupsMeta
- type TokenPolicyPermissionGroupsMetaParam
- type TokenStatus
- type TokenValue
- type UserSchemaDeleteParams
- type UserSchemaDeleteResponse
- type UserSchemaDeleteResponseSuccess
- type UserSchemaEditParams
- type UserSchemaEditParamsValidationEnabled
- type UserSchemaEditResponseEnvelope
- type UserSchemaEditResponseEnvelopeSuccess
- type UserSchemaGetParams
- type UserSchemaGetResponseEnvelope
- type UserSchemaGetResponseEnvelopeSuccess
- type UserSchemaHostListParams
- type UserSchemaHostListResponse
- type UserSchemaHostService
- func (r *UserSchemaHostService) List(ctx context.Context, params UserSchemaHostListParams, ...) (res *pagination.V4PagePaginationArray[UserSchemaHostListResponse], err error)
- func (r *UserSchemaHostService) ListAutoPaging(ctx context.Context, params UserSchemaHostListParams, ...) *pagination.V4PagePaginationArrayAutoPager[UserSchemaHostListResponse]
- type UserSchemaListParams
- type UserSchemaNewParams
- type UserSchemaNewParamsKind
- type UserSchemaNewParamsValidationEnabled
- type UserSchemaNewResponseEnvelope
- type UserSchemaNewResponseEnvelopeSuccess
- type UserSchemaOperationListParams
- type UserSchemaOperationListParamsFeature
- type UserSchemaOperationListParamsOperationStatus
- type UserSchemaOperationListResponse
- type UserSchemaOperationListResponseAPIShieldBasicOperation
- type UserSchemaOperationListResponseAPIShieldBasicOperationMethod
- type UserSchemaOperationListResponseAPIShieldOperation
- type UserSchemaOperationListResponseAPIShieldOperationFeatures
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRouting
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervals
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemas
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfo
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholds
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholdsThresholds
- type UserSchemaOperationListResponseAPIShieldOperationFeaturesUnion
- type UserSchemaOperationListResponseAPIShieldOperationMethod
- type UserSchemaOperationListResponseMethod
- type UserSchemaOperationListResponseUnion
- type UserSchemaOperationService
- func (r *UserSchemaOperationService) List(ctx context.Context, schemaID string, params UserSchemaOperationListParams, ...) (res *pagination.V4PagePaginationArray[UserSchemaOperationListResponse], ...)
- func (r *UserSchemaOperationService) ListAutoPaging(ctx context.Context, schemaID string, params UserSchemaOperationListParams, ...) *pagination.V4PagePaginationArrayAutoPager[UserSchemaOperationListResponse]
- type UserSchemaService
- func (r *UserSchemaService) Delete(ctx context.Context, schemaID string, body UserSchemaDeleteParams, ...) (res *UserSchemaDeleteResponse, err error)
- func (r *UserSchemaService) Edit(ctx context.Context, schemaID string, params UserSchemaEditParams, ...) (res *PublicSchema, err error)
- func (r *UserSchemaService) Get(ctx context.Context, schemaID string, params UserSchemaGetParams, ...) (res *PublicSchema, err error)
- func (r *UserSchemaService) List(ctx context.Context, params UserSchemaListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[PublicSchema], err error)
- func (r *UserSchemaService) ListAutoPaging(ctx context.Context, params UserSchemaListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[PublicSchema]
- func (r *UserSchemaService) New(ctx context.Context, params UserSchemaNewParams, opts ...option.RequestOption) (res *SchemaUpload, err error)
Constants ¶
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin
This is an alias to an internal value.
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare
This is an alias to an internal value.
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser
This is an alias to an internal value.
const CertificateCADigicert = shared.CertificateCADigicert
This is an alias to an internal value.
const CertificateCAGoogle = shared.CertificateCAGoogle
This is an alias to an internal value.
const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt
This is an alias to an internal value.
const CertificateCASSLCom = shared.CertificateCASSLCom
This is an alias to an internal value.
const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate
This is an alias to an internal value.
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC
This is an alias to an internal value.
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA
This is an alias to an internal value.
const CloudflareTunnelStatusDegraded = shared.CloudflareTunnelStatusDegraded
This is an alias to an internal value.
const CloudflareTunnelStatusDown = shared.CloudflareTunnelStatusDown
This is an alias to an internal value.
const CloudflareTunnelStatusHealthy = shared.CloudflareTunnelStatusHealthy
This is an alias to an internal value.
const CloudflareTunnelStatusInactive = shared.CloudflareTunnelStatusInactive
This is an alias to an internal value.
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI
This is an alias to an internal value.
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel
This is an alias to an internal value.
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE
This is an alias to an internal value.
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec
This is an alias to an internal value.
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector
This is an alias to an internal value.
const MemberPoliciesAccessAllow = shared.MemberPoliciesAccessAllow
This is an alias to an internal value.
const MemberPoliciesAccessDeny = shared.MemberPoliciesAccessDeny
This is an alias to an internal value.
const MemberStatusAccepted = shared.MemberStatusAccepted
This is an alias to an internal value.
const MemberStatusPending = shared.MemberStatusPending
This is an alias to an internal value.
const SortDirectionAsc = shared.SortDirectionAsc
This is an alias to an internal value.
const SortDirectionDesc = shared.SortDirectionDesc
This is an alias to an internal value.
const SubscriptionFrequencyMonthly = shared.SubscriptionFrequencyMonthly
This is an alias to an internal value.
const SubscriptionFrequencyQuarterly = shared.SubscriptionFrequencyQuarterly
This is an alias to an internal value.
const SubscriptionFrequencyWeekly = shared.SubscriptionFrequencyWeekly
This is an alias to an internal value.
const SubscriptionFrequencyYearly = shared.SubscriptionFrequencyYearly
This is an alias to an internal value.
const SubscriptionStateAwaitingPayment = shared.SubscriptionStateAwaitingPayment
This is an alias to an internal value.
const SubscriptionStateCancelled = shared.SubscriptionStateCancelled
This is an alias to an internal value.
const SubscriptionStateExpired = shared.SubscriptionStateExpired
This is an alias to an internal value.
const SubscriptionStateFailed = shared.SubscriptionStateFailed
This is an alias to an internal value.
const SubscriptionStatePaid = shared.SubscriptionStatePaid
This is an alias to an internal value.
const SubscriptionStateProvisioned = shared.SubscriptionStateProvisioned
This is an alias to an internal value.
const SubscriptionStateTrial = shared.SubscriptionStateTrial
This is an alias to an internal value.
const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
This is an alias to an internal value.
const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
This is an alias to an internal value.
const TokenStatusActive = shared.TokenStatusActive
This is an alias to an internal value.
const TokenStatusDisabled = shared.TokenStatusDisabled
This is an alias to an internal value.
const TokenStatusExpired = shared.TokenStatusExpired
This is an alias to an internal value.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIGatewayService ¶
type APIGatewayService struct { Options []option.RequestOption Configurations *ConfigurationService Discovery *DiscoveryService Operations *OperationService Schemas *SchemaService Settings *SettingService UserSchemas *UserSchemaService ExpressionTemplate *ExpressionTemplateService }
APIGatewayService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAPIGatewayService method instead.
func NewAPIGatewayService ¶
func NewAPIGatewayService(opts ...option.RequestOption) (r *APIGatewayService)
NewAPIGatewayService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type AuditLogAction ¶
type AuditLogAction = shared.AuditLogAction
This is an alias to an internal type.
type AuditLogActor ¶
type AuditLogActor = shared.AuditLogActor
This is an alias to an internal type.
type AuditLogActorType ¶
type AuditLogActorType = shared.AuditLogActorType
The type of actor, whether a User, Cloudflare Admin, or an Automated System.
This is an alias to an internal type.
type AuditLogOwner ¶
type AuditLogOwner = shared.AuditLogOwner
This is an alias to an internal type.
type AuditLogResource ¶
type AuditLogResource = shared.AuditLogResource
This is an alias to an internal type.
type CertificateCA ¶
type CertificateCA = shared.CertificateCA
The Certificate Authority that will issue the certificate
This is an alias to an internal type.
type CertificateRequestType ¶
type CertificateRequestType = shared.CertificateRequestType
Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).
This is an alias to an internal type.
type CloudflareTunnel ¶
type CloudflareTunnel = shared.CloudflareTunnel
A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
This is an alias to an internal type.
type CloudflareTunnelConnection ¶
type CloudflareTunnelConnection = shared.CloudflareTunnelConnection
This is an alias to an internal type.
type CloudflareTunnelStatus ¶
type CloudflareTunnelStatus = shared.CloudflareTunnelStatus
The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).
This is an alias to an internal type.
type CloudflareTunnelTunType ¶
type CloudflareTunnelTunType = shared.CloudflareTunnelTunType
The type of tunnel.
This is an alias to an internal type.
type Configuration ¶
type Configuration struct { AuthIDCharacteristics []ConfigurationAuthIDCharacteristic `json:"auth_id_characteristics,required"` JSON configurationJSON `json:"-"` }
func (*Configuration) UnmarshalJSON ¶
func (r *Configuration) UnmarshalJSON(data []byte) (err error)
type ConfigurationAuthIDCharacteristic ¶
type ConfigurationAuthIDCharacteristic struct { // The name of the characteristic field, i.e., the header or cookie name. Name string `json:"name,required"` // The type of characteristic. Type ConfigurationAuthIDCharacteristicsType `json:"type,required"` JSON configurationAuthIDCharacteristicJSON `json:"-"` // contains filtered or unexported fields }
Auth ID Characteristic
func (ConfigurationAuthIDCharacteristic) AsUnion ¶
func (r ConfigurationAuthIDCharacteristic) AsUnion() ConfigurationAuthIDCharacteristicsUnion
AsUnion returns a ConfigurationAuthIDCharacteristicsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are api_gateway.ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristic, api_gateway.ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaim.
func (*ConfigurationAuthIDCharacteristic) UnmarshalJSON ¶
func (r *ConfigurationAuthIDCharacteristic) UnmarshalJSON(data []byte) (err error)
type ConfigurationAuthIDCharacteristicParam ¶
type ConfigurationAuthIDCharacteristicParam struct { // The name of the characteristic field, i.e., the header or cookie name. Name param.Field[string] `json:"name,required"` // The type of characteristic. Type param.Field[ConfigurationAuthIDCharacteristicsType] `json:"type,required"` }
Auth ID Characteristic
func (ConfigurationAuthIDCharacteristicParam) MarshalJSON ¶
func (r ConfigurationAuthIDCharacteristicParam) MarshalJSON() (data []byte, err error)
type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristic ¶
type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristic struct { // The name of the characteristic field, i.e., the header or cookie name. Name string `json:"name,required"` // The type of characteristic. Type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicType `json:"type,required"` JSON configurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJSON `json:"-"` }
Auth ID Characteristic
func (*ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristic) UnmarshalJSON ¶
func (r *ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristic) UnmarshalJSON(data []byte) (err error)
type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaim ¶
type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaim struct { // Claim location expressed as `$(token_config_id):$(json_path)`, where // `token_config_id` is the ID of the token configuration used in validating the // JWT, and `json_path` is a RFC 9535 JSONPath // (https://goessner.net/articles/JsonPath/, // https://www.rfc-editor.org/rfc/rfc9535.html). The JSONPath expression may be in // dot or bracket notation, may only specify literal keys or array indexes, and // must return a singleton value, which will be interpreted as a string. Name string `json:"name,required"` // The type of characteristic. Type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimType `json:"type,required"` JSON configurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimJSON `json:"-"` }
Auth ID Characteristic extracted from JWT Token Claims
func (*ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaim) UnmarshalJSON ¶
func (r *ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaim) UnmarshalJSON(data []byte) (err error)
type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimParam ¶
type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimParam struct { // Claim location expressed as `$(token_config_id):$(json_path)`, where // `token_config_id` is the ID of the token configuration used in validating the // JWT, and `json_path` is a RFC 9535 JSONPath // (https://goessner.net/articles/JsonPath/, // https://www.rfc-editor.org/rfc/rfc9535.html). The JSONPath expression may be in // dot or bracket notation, may only specify literal keys or array indexes, and // must return a singleton value, which will be interpreted as a string. Name param.Field[string] `json:"name,required"` // The type of characteristic. Type param.Field[ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimType] `json:"type,required"` }
Auth ID Characteristic extracted from JWT Token Claims
func (ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimParam) MarshalJSON ¶
func (r ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimParam) MarshalJSON() (data []byte, err error)
type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimType ¶
type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimType string
The type of characteristic.
const (
ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimTypeJWT ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimType = "jwt"
)
func (ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimType) IsKnown ¶
func (r ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimType) IsKnown() bool
type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicParam ¶
type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicParam struct { // The name of the characteristic field, i.e., the header or cookie name. Name param.Field[string] `json:"name,required"` // The type of characteristic. Type param.Field[ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicType] `json:"type,required"` }
Auth ID Characteristic
func (ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicParam) MarshalJSON ¶
func (r ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicParam) MarshalJSON() (data []byte, err error)
type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicType ¶
type ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicType string
The type of characteristic.
const ( ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicTypeHeader ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicType = "header" ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicTypeCookie ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicType = "cookie" )
func (ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicType) IsKnown ¶
func (r ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicType) IsKnown() bool
type ConfigurationAuthIDCharacteristicsType ¶
type ConfigurationAuthIDCharacteristicsType string
The type of characteristic.
const ( ConfigurationAuthIDCharacteristicsTypeHeader ConfigurationAuthIDCharacteristicsType = "header" ConfigurationAuthIDCharacteristicsTypeCookie ConfigurationAuthIDCharacteristicsType = "cookie" ConfigurationAuthIDCharacteristicsTypeJWT ConfigurationAuthIDCharacteristicsType = "jwt" )
func (ConfigurationAuthIDCharacteristicsType) IsKnown ¶
func (r ConfigurationAuthIDCharacteristicsType) IsKnown() bool
type ConfigurationAuthIDCharacteristicsUnion ¶
type ConfigurationAuthIDCharacteristicsUnion interface {
// contains filtered or unexported methods
}
Auth ID Characteristic
Union satisfied by api_gateway.ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristic or api_gateway.ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaim.
type ConfigurationAuthIDCharacteristicsUnionParam ¶
type ConfigurationAuthIDCharacteristicsUnionParam interface {
// contains filtered or unexported methods
}
Auth ID Characteristic
Satisfied by api_gateway.ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicParam, api_gateway.ConfigurationAuthIDCharacteristicsAPIShieldAuthIDCharacteristicJWTClaimParam, ConfigurationAuthIDCharacteristicParam.
type ConfigurationGetParams ¶
type ConfigurationGetParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // Requests information about certain properties. Properties param.Field[[]ConfigurationGetParamsProperty] `query:"properties"` }
func (ConfigurationGetParams) URLQuery ¶
func (r ConfigurationGetParams) URLQuery() (v url.Values)
URLQuery serializes ConfigurationGetParams's query parameters as `url.Values`.
type ConfigurationGetParamsProperty ¶
type ConfigurationGetParamsProperty string
const (
ConfigurationGetParamsPropertyAuthIDCharacteristics ConfigurationGetParamsProperty = "auth_id_characteristics"
)
func (ConfigurationGetParamsProperty) IsKnown ¶
func (r ConfigurationGetParamsProperty) IsKnown() bool
type ConfigurationGetResponseEnvelope ¶
type ConfigurationGetResponseEnvelope struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` Result Configuration `json:"result,required"` // Whether the API call was successful Success ConfigurationGetResponseEnvelopeSuccess `json:"success,required"` JSON configurationGetResponseEnvelopeJSON `json:"-"` }
func (*ConfigurationGetResponseEnvelope) UnmarshalJSON ¶
func (r *ConfigurationGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ConfigurationGetResponseEnvelopeSuccess ¶
type ConfigurationGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ConfigurationGetResponseEnvelopeSuccessTrue ConfigurationGetResponseEnvelopeSuccess = true
)
func (ConfigurationGetResponseEnvelopeSuccess) IsKnown ¶
func (r ConfigurationGetResponseEnvelopeSuccess) IsKnown() bool
type ConfigurationParam ¶
type ConfigurationParam struct {
AuthIDCharacteristics param.Field[[]ConfigurationAuthIDCharacteristicsUnionParam] `json:"auth_id_characteristics,required"`
}
func (ConfigurationParam) MarshalJSON ¶
func (r ConfigurationParam) MarshalJSON() (data []byte, err error)
type ConfigurationService ¶
type ConfigurationService struct {
Options []option.RequestOption
}
ConfigurationService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewConfigurationService method instead.
func NewConfigurationService ¶
func NewConfigurationService(opts ...option.RequestOption) (r *ConfigurationService)
NewConfigurationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*ConfigurationService) Get ¶
func (r *ConfigurationService) Get(ctx context.Context, params ConfigurationGetParams, opts ...option.RequestOption) (res *Configuration, err error)
Retrieve information about specific configuration properties
func (*ConfigurationService) Update ¶
func (r *ConfigurationService) Update(ctx context.Context, params ConfigurationUpdateParams, opts ...option.RequestOption) (res *ConfigurationUpdateResponse, err error)
Set configuration properties
type ConfigurationUpdateParams ¶
type ConfigurationUpdateParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` Configuration ConfigurationParam `json:"configuration,required"` }
func (ConfigurationUpdateParams) MarshalJSON ¶
func (r ConfigurationUpdateParams) MarshalJSON() (data []byte, err error)
type ConfigurationUpdateResponse ¶
type ConfigurationUpdateResponse struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` // Whether the API call was successful Success ConfigurationUpdateResponseSuccess `json:"success,required"` JSON configurationUpdateResponseJSON `json:"-"` }
func (*ConfigurationUpdateResponse) UnmarshalJSON ¶
func (r *ConfigurationUpdateResponse) UnmarshalJSON(data []byte) (err error)
type ConfigurationUpdateResponseSuccess ¶
type ConfigurationUpdateResponseSuccess bool
Whether the API call was successful
const (
ConfigurationUpdateResponseSuccessTrue ConfigurationUpdateResponseSuccess = true
)
func (ConfigurationUpdateResponseSuccess) IsKnown ¶
func (r ConfigurationUpdateResponseSuccess) IsKnown() bool
type DiscoveryGetParams ¶
type DiscoveryGetResponse ¶
type DiscoveryGetResponse struct { Schemas []interface{} `json:"schemas,required"` Timestamp time.Time `json:"timestamp,required" format:"date-time"` JSON discoveryGetResponseJSON `json:"-"` }
func (*DiscoveryGetResponse) UnmarshalJSON ¶
func (r *DiscoveryGetResponse) UnmarshalJSON(data []byte) (err error)
type DiscoveryGetResponseEnvelope ¶
type DiscoveryGetResponseEnvelope struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` Result DiscoveryGetResponse `json:"result,required"` // Whether the API call was successful Success DiscoveryGetResponseEnvelopeSuccess `json:"success,required"` JSON discoveryGetResponseEnvelopeJSON `json:"-"` }
func (*DiscoveryGetResponseEnvelope) UnmarshalJSON ¶
func (r *DiscoveryGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DiscoveryGetResponseEnvelopeSuccess ¶
type DiscoveryGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DiscoveryGetResponseEnvelopeSuccessTrue DiscoveryGetResponseEnvelopeSuccess = true
)
func (DiscoveryGetResponseEnvelopeSuccess) IsKnown ¶
func (r DiscoveryGetResponseEnvelopeSuccess) IsKnown() bool
type DiscoveryOperation ¶
type DiscoveryOperation struct { // UUID ID string `json:"id,required"` // The endpoint which can contain path parameter templates in curly braces, each // will be replaced from left to right with {varN}, starting with {var1}, during // insertion. This will further be Cloudflare-normalized upon insertion. See: // https://developers.cloudflare.com/rules/normalization/how-it-works/. Endpoint string `json:"endpoint,required" format:"uri-template"` // RFC3986-compliant host. Host string `json:"host,required" format:"hostname"` LastUpdated time.Time `json:"last_updated,required" format:"date-time"` // The HTTP method used to access the endpoint. Method DiscoveryOperationMethod `json:"method,required"` // API discovery engine(s) that discovered this operation Origin []DiscoveryOperationOrigin `json:"origin,required"` // State of operation in API Discovery // // - `review` - Operation is not saved into API Shield Endpoint Management // - `saved` - Operation is saved into API Shield Endpoint Management // - `ignored` - Operation is marked as ignored State DiscoveryOperationState `json:"state,required"` Features DiscoveryOperationFeatures `json:"features"` JSON discoveryOperationJSON `json:"-"` }
func (*DiscoveryOperation) UnmarshalJSON ¶
func (r *DiscoveryOperation) UnmarshalJSON(data []byte) (err error)
type DiscoveryOperationBulkEditParams ¶
type DiscoveryOperationBulkEditParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` Body map[string]DiscoveryOperationBulkEditParamsBody `json:"body,required"` }
func (DiscoveryOperationBulkEditParams) MarshalJSON ¶
func (r DiscoveryOperationBulkEditParams) MarshalJSON() (data []byte, err error)
type DiscoveryOperationBulkEditParamsBody ¶
type DiscoveryOperationBulkEditParamsBody struct { // Mark state of operation in API Discovery // // - `review` - Mark operation as for review // - `ignored` - Mark operation as ignored State param.Field[DiscoveryOperationBulkEditParamsBodyState] `json:"state"` }
Mappings of discovered operations (keys) to objects describing their state
func (DiscoveryOperationBulkEditParamsBody) MarshalJSON ¶
func (r DiscoveryOperationBulkEditParamsBody) MarshalJSON() (data []byte, err error)
type DiscoveryOperationBulkEditParamsBodyState ¶
type DiscoveryOperationBulkEditParamsBodyState string
Mark state of operation in API Discovery
- `review` - Mark operation as for review - `ignored` - Mark operation as ignored
const ( DiscoveryOperationBulkEditParamsBodyStateReview DiscoveryOperationBulkEditParamsBodyState = "review" DiscoveryOperationBulkEditParamsBodyStateIgnored DiscoveryOperationBulkEditParamsBodyState = "ignored" )
func (DiscoveryOperationBulkEditParamsBodyState) IsKnown ¶
func (r DiscoveryOperationBulkEditParamsBodyState) IsKnown() bool
type DiscoveryOperationBulkEditResponse ¶
type DiscoveryOperationBulkEditResponse map[string]DiscoveryOperationBulkEditResponseItem
type DiscoveryOperationBulkEditResponseEnvelope ¶
type DiscoveryOperationBulkEditResponseEnvelope struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` Result DiscoveryOperationBulkEditResponse `json:"result,required"` // Whether the API call was successful Success DiscoveryOperationBulkEditResponseEnvelopeSuccess `json:"success,required"` JSON discoveryOperationBulkEditResponseEnvelopeJSON `json:"-"` }
func (*DiscoveryOperationBulkEditResponseEnvelope) UnmarshalJSON ¶
func (r *DiscoveryOperationBulkEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DiscoveryOperationBulkEditResponseEnvelopeSuccess ¶
type DiscoveryOperationBulkEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DiscoveryOperationBulkEditResponseEnvelopeSuccessTrue DiscoveryOperationBulkEditResponseEnvelopeSuccess = true
)
func (DiscoveryOperationBulkEditResponseEnvelopeSuccess) IsKnown ¶
func (r DiscoveryOperationBulkEditResponseEnvelopeSuccess) IsKnown() bool
type DiscoveryOperationBulkEditResponseItem ¶
type DiscoveryOperationBulkEditResponseItem struct { // Mark state of operation in API Discovery // // - `review` - Mark operation as for review // - `ignored` - Mark operation as ignored State DiscoveryOperationBulkEditResponseItemState `json:"state"` JSON discoveryOperationBulkEditResponseItemJSON `json:"-"` }
Mappings of discovered operations (keys) to objects describing their state
func (*DiscoveryOperationBulkEditResponseItem) UnmarshalJSON ¶
func (r *DiscoveryOperationBulkEditResponseItem) UnmarshalJSON(data []byte) (err error)
type DiscoveryOperationBulkEditResponseItemState ¶
type DiscoveryOperationBulkEditResponseItemState string
Mark state of operation in API Discovery
- `review` - Mark operation as for review - `ignored` - Mark operation as ignored
const ( DiscoveryOperationBulkEditResponseItemStateReview DiscoveryOperationBulkEditResponseItemState = "review" DiscoveryOperationBulkEditResponseItemStateIgnored DiscoveryOperationBulkEditResponseItemState = "ignored" )
func (DiscoveryOperationBulkEditResponseItemState) IsKnown ¶
func (r DiscoveryOperationBulkEditResponseItemState) IsKnown() bool
type DiscoveryOperationEditParams ¶
type DiscoveryOperationEditParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // Mark state of operation in API Discovery // // - `review` - Mark operation as for review // - `ignored` - Mark operation as ignored State param.Field[DiscoveryOperationEditParamsState] `json:"state"` }
func (DiscoveryOperationEditParams) MarshalJSON ¶
func (r DiscoveryOperationEditParams) MarshalJSON() (data []byte, err error)
type DiscoveryOperationEditParamsState ¶
type DiscoveryOperationEditParamsState string
Mark state of operation in API Discovery
- `review` - Mark operation as for review - `ignored` - Mark operation as ignored
const ( DiscoveryOperationEditParamsStateReview DiscoveryOperationEditParamsState = "review" DiscoveryOperationEditParamsStateIgnored DiscoveryOperationEditParamsState = "ignored" )
func (DiscoveryOperationEditParamsState) IsKnown ¶
func (r DiscoveryOperationEditParamsState) IsKnown() bool
type DiscoveryOperationEditResponse ¶
type DiscoveryOperationEditResponse struct { // State of operation in API Discovery // // - `review` - Operation is not saved into API Shield Endpoint Management // - `saved` - Operation is saved into API Shield Endpoint Management // - `ignored` - Operation is marked as ignored State DiscoveryOperationEditResponseState `json:"state"` JSON discoveryOperationEditResponseJSON `json:"-"` }
func (*DiscoveryOperationEditResponse) UnmarshalJSON ¶
func (r *DiscoveryOperationEditResponse) UnmarshalJSON(data []byte) (err error)
type DiscoveryOperationEditResponseEnvelope ¶
type DiscoveryOperationEditResponseEnvelope struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` Result DiscoveryOperationEditResponse `json:"result,required"` // Whether the API call was successful Success DiscoveryOperationEditResponseEnvelopeSuccess `json:"success,required"` JSON discoveryOperationEditResponseEnvelopeJSON `json:"-"` }
func (*DiscoveryOperationEditResponseEnvelope) UnmarshalJSON ¶
func (r *DiscoveryOperationEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DiscoveryOperationEditResponseEnvelopeSuccess ¶
type DiscoveryOperationEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DiscoveryOperationEditResponseEnvelopeSuccessTrue DiscoveryOperationEditResponseEnvelopeSuccess = true
)
func (DiscoveryOperationEditResponseEnvelopeSuccess) IsKnown ¶
func (r DiscoveryOperationEditResponseEnvelopeSuccess) IsKnown() bool
type DiscoveryOperationEditResponseState ¶
type DiscoveryOperationEditResponseState string
State of operation in API Discovery
- `review` - Operation is not saved into API Shield Endpoint Management - `saved` - Operation is saved into API Shield Endpoint Management - `ignored` - Operation is marked as ignored
const ( DiscoveryOperationEditResponseStateReview DiscoveryOperationEditResponseState = "review" DiscoveryOperationEditResponseStateSaved DiscoveryOperationEditResponseState = "saved" DiscoveryOperationEditResponseStateIgnored DiscoveryOperationEditResponseState = "ignored" )
func (DiscoveryOperationEditResponseState) IsKnown ¶
func (r DiscoveryOperationEditResponseState) IsKnown() bool
type DiscoveryOperationFeatures ¶
type DiscoveryOperationFeatures struct { TrafficStats DiscoveryOperationFeaturesTrafficStats `json:"traffic_stats"` JSON discoveryOperationFeaturesJSON `json:"-"` }
func (*DiscoveryOperationFeatures) UnmarshalJSON ¶
func (r *DiscoveryOperationFeatures) UnmarshalJSON(data []byte) (err error)
type DiscoveryOperationFeaturesTrafficStats ¶
type DiscoveryOperationFeaturesTrafficStats struct { LastUpdated time.Time `json:"last_updated,required" format:"date-time"` // The period in seconds these statistics were computed over PeriodSeconds int64 `json:"period_seconds,required"` // The average number of requests seen during this period Requests float64 `json:"requests,required"` JSON discoveryOperationFeaturesTrafficStatsJSON `json:"-"` }
func (*DiscoveryOperationFeaturesTrafficStats) UnmarshalJSON ¶
func (r *DiscoveryOperationFeaturesTrafficStats) UnmarshalJSON(data []byte) (err error)
type DiscoveryOperationListParams ¶
type DiscoveryOperationListParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // When `true`, only return API Discovery results that are not saved into API // Shield Endpoint Management Diff param.Field[bool] `query:"diff"` // Direction to order results. Direction param.Field[DiscoveryOperationListParamsDirection] `query:"direction"` // Filter results to only include endpoints containing this pattern. Endpoint param.Field[string] `query:"endpoint"` // Filter results to only include the specified hosts. Host param.Field[[]string] `query:"host"` // Filter results to only include the specified HTTP methods. Method param.Field[[]string] `query:"method"` // Field to order by Order param.Field[DiscoveryOperationListParamsOrder] `query:"order"` // Filter results to only include discovery results sourced from a particular // discovery engine // // - `ML` - Discovered operations that were sourced using ML API Discovery // - `SessionIdentifier` - Discovered operations that were sourced using Session // Identifier API Discovery Origin param.Field[DiscoveryOperationListParamsOrigin] `query:"origin"` // Page number of paginated results. Page param.Field[int64] `query:"page"` // Maximum number of results per page. PerPage param.Field[int64] `query:"per_page"` // Filter results to only include discovery results in a particular state. States // are as follows // // - `review` - Discovered operations that are not saved into API Shield Endpoint // Management // - `saved` - Discovered operations that are already saved into API Shield // Endpoint Management // - `ignored` - Discovered operations that have been marked as ignored State param.Field[DiscoveryOperationListParamsState] `query:"state"` }
func (DiscoveryOperationListParams) URLQuery ¶
func (r DiscoveryOperationListParams) URLQuery() (v url.Values)
URLQuery serializes DiscoveryOperationListParams's query parameters as `url.Values`.
type DiscoveryOperationListParamsDirection ¶
type DiscoveryOperationListParamsDirection string
Direction to order results.
const ( DiscoveryOperationListParamsDirectionAsc DiscoveryOperationListParamsDirection = "asc" DiscoveryOperationListParamsDirectionDesc DiscoveryOperationListParamsDirection = "desc" )
func (DiscoveryOperationListParamsDirection) IsKnown ¶
func (r DiscoveryOperationListParamsDirection) IsKnown() bool
type DiscoveryOperationListParamsOrder ¶
type DiscoveryOperationListParamsOrder string
Field to order by
const ( DiscoveryOperationListParamsOrderHost DiscoveryOperationListParamsOrder = "host" DiscoveryOperationListParamsOrderMethod DiscoveryOperationListParamsOrder = "method" DiscoveryOperationListParamsOrderEndpoint DiscoveryOperationListParamsOrder = "endpoint" DiscoveryOperationListParamsOrderTrafficStatsRequests DiscoveryOperationListParamsOrder = "traffic_stats.requests" DiscoveryOperationListParamsOrderTrafficStatsLastUpdated DiscoveryOperationListParamsOrder = "traffic_stats.last_updated" )
func (DiscoveryOperationListParamsOrder) IsKnown ¶
func (r DiscoveryOperationListParamsOrder) IsKnown() bool
type DiscoveryOperationListParamsOrigin ¶
type DiscoveryOperationListParamsOrigin string
Filter results to only include discovery results sourced from a particular discovery engine
- `ML` - Discovered operations that were sourced using ML API Discovery
- `SessionIdentifier` - Discovered operations that were sourced using Session Identifier API Discovery
const ( DiscoveryOperationListParamsOriginMl DiscoveryOperationListParamsOrigin = "ML" DiscoveryOperationListParamsOriginSessionIdentifier DiscoveryOperationListParamsOrigin = "SessionIdentifier" )
func (DiscoveryOperationListParamsOrigin) IsKnown ¶
func (r DiscoveryOperationListParamsOrigin) IsKnown() bool
type DiscoveryOperationListParamsState ¶
type DiscoveryOperationListParamsState string
Filter results to only include discovery results in a particular state. States are as follows
- `review` - Discovered operations that are not saved into API Shield Endpoint Management
- `saved` - Discovered operations that are already saved into API Shield Endpoint Management
- `ignored` - Discovered operations that have been marked as ignored
const ( DiscoveryOperationListParamsStateReview DiscoveryOperationListParamsState = "review" DiscoveryOperationListParamsStateSaved DiscoveryOperationListParamsState = "saved" DiscoveryOperationListParamsStateIgnored DiscoveryOperationListParamsState = "ignored" )
func (DiscoveryOperationListParamsState) IsKnown ¶
func (r DiscoveryOperationListParamsState) IsKnown() bool
type DiscoveryOperationMethod ¶
type DiscoveryOperationMethod string
The HTTP method used to access the endpoint.
const ( DiscoveryOperationMethodGet DiscoveryOperationMethod = "GET" DiscoveryOperationMethodPost DiscoveryOperationMethod = "POST" DiscoveryOperationMethodHead DiscoveryOperationMethod = "HEAD" DiscoveryOperationMethodOptions DiscoveryOperationMethod = "OPTIONS" DiscoveryOperationMethodPut DiscoveryOperationMethod = "PUT" DiscoveryOperationMethodDelete DiscoveryOperationMethod = "DELETE" DiscoveryOperationMethodConnect DiscoveryOperationMethod = "CONNECT" DiscoveryOperationMethodPatch DiscoveryOperationMethod = "PATCH" DiscoveryOperationMethodTrace DiscoveryOperationMethod = "TRACE" )
func (DiscoveryOperationMethod) IsKnown ¶
func (r DiscoveryOperationMethod) IsKnown() bool
type DiscoveryOperationOrigin ¶
type DiscoveryOperationOrigin string
- `ML` - Discovered operation was sourced using ML API Discovery \* `SessionIdentifier` - Discovered operation was sourced using Session Identifier API Discovery
const ( DiscoveryOperationOriginMl DiscoveryOperationOrigin = "ML" DiscoveryOperationOriginSessionIdentifier DiscoveryOperationOrigin = "SessionIdentifier" )
func (DiscoveryOperationOrigin) IsKnown ¶
func (r DiscoveryOperationOrigin) IsKnown() bool
type DiscoveryOperationService ¶
type DiscoveryOperationService struct {
Options []option.RequestOption
}
DiscoveryOperationService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDiscoveryOperationService method instead.
func NewDiscoveryOperationService ¶
func NewDiscoveryOperationService(opts ...option.RequestOption) (r *DiscoveryOperationService)
NewDiscoveryOperationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DiscoveryOperationService) BulkEdit ¶
func (r *DiscoveryOperationService) BulkEdit(ctx context.Context, params DiscoveryOperationBulkEditParams, opts ...option.RequestOption) (res *DiscoveryOperationBulkEditResponse, err error)
Update the `state` on one or more discovered operations
func (*DiscoveryOperationService) Edit ¶
func (r *DiscoveryOperationService) Edit(ctx context.Context, operationID string, params DiscoveryOperationEditParams, opts ...option.RequestOption) (res *DiscoveryOperationEditResponse, err error)
Update the `state` on a discovered operation
func (*DiscoveryOperationService) List ¶
func (r *DiscoveryOperationService) List(ctx context.Context, params DiscoveryOperationListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[DiscoveryOperation], err error)
Retrieve the most up to date view of discovered operations
func (*DiscoveryOperationService) ListAutoPaging ¶
func (r *DiscoveryOperationService) ListAutoPaging(ctx context.Context, params DiscoveryOperationListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[DiscoveryOperation]
Retrieve the most up to date view of discovered operations
type DiscoveryOperationState ¶
type DiscoveryOperationState string
State of operation in API Discovery
- `review` - Operation is not saved into API Shield Endpoint Management - `saved` - Operation is saved into API Shield Endpoint Management - `ignored` - Operation is marked as ignored
const ( DiscoveryOperationStateReview DiscoveryOperationState = "review" DiscoveryOperationStateSaved DiscoveryOperationState = "saved" DiscoveryOperationStateIgnored DiscoveryOperationState = "ignored" )
func (DiscoveryOperationState) IsKnown ¶
func (r DiscoveryOperationState) IsKnown() bool
type DiscoveryService ¶
type DiscoveryService struct { Options []option.RequestOption Operations *DiscoveryOperationService }
DiscoveryService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDiscoveryService method instead.
func NewDiscoveryService ¶
func NewDiscoveryService(opts ...option.RequestOption) (r *DiscoveryService)
NewDiscoveryService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DiscoveryService) Get ¶
func (r *DiscoveryService) Get(ctx context.Context, query DiscoveryGetParams, opts ...option.RequestOption) (res *DiscoveryGetResponse, err error)
Retrieve the most up to date view of discovered operations, rendered as OpenAPI schemas
type ExpressionTemplateFallthroughNewParams ¶
type ExpressionTemplateFallthroughNewParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // List of hosts to be targeted in the expression Hosts param.Field[[]string] `json:"hosts,required"` }
func (ExpressionTemplateFallthroughNewParams) MarshalJSON ¶
func (r ExpressionTemplateFallthroughNewParams) MarshalJSON() (data []byte, err error)
type ExpressionTemplateFallthroughNewResponse ¶
type ExpressionTemplateFallthroughNewResponse struct { // WAF Expression for fallthrough Expression string `json:"expression,required"` // Title for the expression Title string `json:"title,required"` JSON expressionTemplateFallthroughNewResponseJSON `json:"-"` }
func (*ExpressionTemplateFallthroughNewResponse) UnmarshalJSON ¶
func (r *ExpressionTemplateFallthroughNewResponse) UnmarshalJSON(data []byte) (err error)
type ExpressionTemplateFallthroughNewResponseEnvelope ¶
type ExpressionTemplateFallthroughNewResponseEnvelope struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` Result ExpressionTemplateFallthroughNewResponse `json:"result,required"` // Whether the API call was successful Success ExpressionTemplateFallthroughNewResponseEnvelopeSuccess `json:"success,required"` JSON expressionTemplateFallthroughNewResponseEnvelopeJSON `json:"-"` }
func (*ExpressionTemplateFallthroughNewResponseEnvelope) UnmarshalJSON ¶
func (r *ExpressionTemplateFallthroughNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ExpressionTemplateFallthroughNewResponseEnvelopeSuccess ¶
type ExpressionTemplateFallthroughNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ExpressionTemplateFallthroughNewResponseEnvelopeSuccessTrue ExpressionTemplateFallthroughNewResponseEnvelopeSuccess = true
)
func (ExpressionTemplateFallthroughNewResponseEnvelopeSuccess) IsKnown ¶
func (r ExpressionTemplateFallthroughNewResponseEnvelopeSuccess) IsKnown() bool
type ExpressionTemplateFallthroughService ¶
type ExpressionTemplateFallthroughService struct {
Options []option.RequestOption
}
ExpressionTemplateFallthroughService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewExpressionTemplateFallthroughService method instead.
func NewExpressionTemplateFallthroughService ¶
func NewExpressionTemplateFallthroughService(opts ...option.RequestOption) (r *ExpressionTemplateFallthroughService)
NewExpressionTemplateFallthroughService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*ExpressionTemplateFallthroughService) New ¶
func (r *ExpressionTemplateFallthroughService) New(ctx context.Context, params ExpressionTemplateFallthroughNewParams, opts ...option.RequestOption) (res *ExpressionTemplateFallthroughNewResponse, err error)
Generate fallthrough WAF expression template from a set of API hosts
type ExpressionTemplateService ¶
type ExpressionTemplateService struct { Options []option.RequestOption Fallthrough *ExpressionTemplateFallthroughService }
ExpressionTemplateService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewExpressionTemplateService method instead.
func NewExpressionTemplateService ¶
func NewExpressionTemplateService(opts ...option.RequestOption) (r *ExpressionTemplateService)
NewExpressionTemplateService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type MemberPoliciesAccess ¶
type MemberPoliciesAccess = shared.MemberPoliciesAccess
Allow or deny operations against the resources.
This is an alias to an internal type.
type MemberPoliciesPermissionGroup ¶
type MemberPoliciesPermissionGroup = shared.MemberPoliciesPermissionGroup
A named group of permissions that map to a group of operations against resources.
This is an alias to an internal type.
type MemberPoliciesPermissionGroupsMeta ¶
type MemberPoliciesPermissionGroupsMeta = shared.MemberPoliciesPermissionGroupsMeta
Attributes associated to the permission group.
This is an alias to an internal type.
type MemberPoliciesResourceGroup ¶
type MemberPoliciesResourceGroup = shared.MemberPoliciesResourceGroup
A group of scoped resources.
This is an alias to an internal type.
type MemberPoliciesResourceGroupsMeta ¶
type MemberPoliciesResourceGroupsMeta = shared.MemberPoliciesResourceGroupsMeta
Attributes associated to the resource group.
This is an alias to an internal type.
type MemberPoliciesResourceGroupsScope ¶
type MemberPoliciesResourceGroupsScope = shared.MemberPoliciesResourceGroupsScope
A scope is a combination of scope objects which provides additional context.
This is an alias to an internal type.
type MemberPoliciesResourceGroupsScopeObject ¶
type MemberPoliciesResourceGroupsScopeObject = shared.MemberPoliciesResourceGroupsScopeObject
A scope object represents any resource that can have actions applied against invite.
This is an alias to an internal type.
type MemberStatus ¶
type MemberStatus = shared.MemberStatus
A member's status in the account.
This is an alias to an internal type.
type MemberUser ¶
type MemberUser = shared.MemberUser
Details of the user associated to the membership.
This is an alias to an internal type.
type Message ¶
type Message []shared.ResponseInfo
type OperationBulkDeleteResponse ¶
type OperationBulkDeleteResponse struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` // Whether the API call was successful Success OperationBulkDeleteResponseSuccess `json:"success,required"` JSON operationBulkDeleteResponseJSON `json:"-"` }
func (*OperationBulkDeleteResponse) UnmarshalJSON ¶
func (r *OperationBulkDeleteResponse) UnmarshalJSON(data []byte) (err error)
type OperationBulkDeleteResponseSuccess ¶
type OperationBulkDeleteResponseSuccess bool
Whether the API call was successful
const (
OperationBulkDeleteResponseSuccessTrue OperationBulkDeleteResponseSuccess = true
)
func (OperationBulkDeleteResponseSuccess) IsKnown ¶
func (r OperationBulkDeleteResponseSuccess) IsKnown() bool
type OperationBulkNewParams ¶
type OperationBulkNewParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` Body []OperationBulkNewParamsBody `json:"body,required"` }
func (OperationBulkNewParams) MarshalJSON ¶
func (r OperationBulkNewParams) MarshalJSON() (data []byte, err error)
type OperationBulkNewParamsBody ¶
type OperationBulkNewParamsBody struct { // The endpoint which can contain path parameter templates in curly braces, each // will be replaced from left to right with {varN}, starting with {var1}, during // insertion. This will further be Cloudflare-normalized upon insertion. See: // https://developers.cloudflare.com/rules/normalization/how-it-works/. Endpoint param.Field[string] `json:"endpoint,required" format:"uri-template"` // RFC3986-compliant host. Host param.Field[string] `json:"host,required" format:"hostname"` // The HTTP method used to access the endpoint. Method param.Field[OperationBulkNewParamsBodyMethod] `json:"method,required"` }
func (OperationBulkNewParamsBody) MarshalJSON ¶
func (r OperationBulkNewParamsBody) MarshalJSON() (data []byte, err error)
type OperationBulkNewParamsBodyMethod ¶
type OperationBulkNewParamsBodyMethod string
The HTTP method used to access the endpoint.
const ( OperationBulkNewParamsBodyMethodGet OperationBulkNewParamsBodyMethod = "GET" OperationBulkNewParamsBodyMethodPost OperationBulkNewParamsBodyMethod = "POST" OperationBulkNewParamsBodyMethodHead OperationBulkNewParamsBodyMethod = "HEAD" OperationBulkNewParamsBodyMethodOptions OperationBulkNewParamsBodyMethod = "OPTIONS" OperationBulkNewParamsBodyMethodPut OperationBulkNewParamsBodyMethod = "PUT" OperationBulkNewParamsBodyMethodDelete OperationBulkNewParamsBodyMethod = "DELETE" OperationBulkNewParamsBodyMethodConnect OperationBulkNewParamsBodyMethod = "CONNECT" OperationBulkNewParamsBodyMethodPatch OperationBulkNewParamsBodyMethod = "PATCH" OperationBulkNewParamsBodyMethodTrace OperationBulkNewParamsBodyMethod = "TRACE" )
func (OperationBulkNewParamsBodyMethod) IsKnown ¶
func (r OperationBulkNewParamsBodyMethod) IsKnown() bool
type OperationBulkNewResponse ¶
type OperationBulkNewResponse struct { // The endpoint which can contain path parameter templates in curly braces, each // will be replaced from left to right with {varN}, starting with {var1}, during // insertion. This will further be Cloudflare-normalized upon insertion. See: // https://developers.cloudflare.com/rules/normalization/how-it-works/. Endpoint string `json:"endpoint,required" format:"uri-template"` // RFC3986-compliant host. Host string `json:"host,required" format:"hostname"` LastUpdated time.Time `json:"last_updated,required" format:"date-time"` // The HTTP method used to access the endpoint. Method OperationBulkNewResponseMethod `json:"method,required"` // UUID OperationID string `json:"operation_id,required"` Features OperationBulkNewResponseFeatures `json:"features"` JSON operationBulkNewResponseJSON `json:"-"` }
func (*OperationBulkNewResponse) UnmarshalJSON ¶
func (r *OperationBulkNewResponse) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseEnvelope ¶
type OperationBulkNewResponseEnvelope struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` Result []OperationBulkNewResponse `json:"result,required"` // Whether the API call was successful Success OperationBulkNewResponseEnvelopeSuccess `json:"success,required"` JSON operationBulkNewResponseEnvelopeJSON `json:"-"` }
func (*OperationBulkNewResponseEnvelope) UnmarshalJSON ¶
func (r *OperationBulkNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseEnvelopeSuccess ¶
type OperationBulkNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
OperationBulkNewResponseEnvelopeSuccessTrue OperationBulkNewResponseEnvelopeSuccess = true
)
func (OperationBulkNewResponseEnvelopeSuccess) IsKnown ¶
func (r OperationBulkNewResponseEnvelopeSuccess) IsKnown() bool
type OperationBulkNewResponseFeatures ¶
type OperationBulkNewResponseFeatures struct { // This field can have the runtime type of // [OperationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting]. APIRouting interface{} `json:"api_routing"` // This field can have the runtime type of // [OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals]. ConfidenceIntervals interface{} `json:"confidence_intervals"` // This field can have the runtime type of // [OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas]. ParameterSchemas interface{} `json:"parameter_schemas"` // This field can have the runtime type of // [OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo]. SchemaInfo interface{} `json:"schema_info"` // This field can have the runtime type of // [OperationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds]. Thresholds interface{} `json:"thresholds"` JSON operationBulkNewResponseFeaturesJSON `json:"-"` // contains filtered or unexported fields }
func (OperationBulkNewResponseFeatures) AsUnion ¶
func (r OperationBulkNewResponseFeatures) AsUnion() OperationBulkNewResponseFeaturesUnion
AsUnion returns a OperationBulkNewResponseFeaturesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are api_gateway.OperationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholds, api_gateway.OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemas, api_gateway.OperationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRouting, api_gateway.OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals, api_gateway.OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfo.
func (*OperationBulkNewResponseFeatures) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeatures) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRouting ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRouting struct { // API Routing settings on endpoint. APIRouting OperationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting `json:"api_routing"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingJSON `json:"-"` }
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRouting) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRouting) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting struct { LastUpdated time.Time `json:"last_updated" format:"date-time"` // Target route. Route string `json:"route"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRoutingJSON `json:"-"` }
API Routing settings on endpoint.
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals struct { ConfidenceIntervals OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals `json:"confidence_intervals"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsJSON `json:"-"` }
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals struct { LastUpdated time.Time `json:"last_updated" format:"date-time"` SuggestedThreshold OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold `json:"suggested_threshold"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsJSON `json:"-"` }
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold struct { ConfidenceIntervals OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals `json:"confidence_intervals"` // Suggested threshold. Mean float64 `json:"mean"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdJSON `json:"-"` }
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals struct { // Upper and lower bound for percentile estimate P90 OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 `json:"p90"` // Upper and lower bound for percentile estimate P95 OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 `json:"p95"` // Upper and lower bound for percentile estimate P99 OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 `json:"p99"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsJSON `json:"-"` }
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 struct { // Lower bound for percentile estimate Lower float64 `json:"lower"` // Upper bound for percentile estimate Upper float64 `json:"upper"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90JSON `json:"-"` }
Upper and lower bound for percentile estimate
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 struct { // Lower bound for percentile estimate Lower float64 `json:"lower"` // Upper bound for percentile estimate Upper float64 `json:"upper"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95JSON `json:"-"` }
Upper and lower bound for percentile estimate
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 struct { // Lower bound for percentile estimate Lower float64 `json:"lower"` // Upper bound for percentile estimate Upper float64 `json:"upper"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99JSON `json:"-"` }
Upper and lower bound for percentile estimate
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemas ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemas struct { ParameterSchemas OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas `json:"parameter_schemas,required"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasJSON `json:"-"` }
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemas) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemas) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas struct { LastUpdated time.Time `json:"last_updated" format:"date-time"` // An operation schema object containing a response. ParameterSchemas OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas `json:"parameter_schemas"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasJSON `json:"-"` }
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas struct { // An array containing the learned parameter schemas. Parameters []interface{} `json:"parameters"` // An empty response object. This field is required to yield a valid operation // schema. Responses interface{} `json:"responses,nullable"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemasJSON `json:"-"` }
An operation schema object containing a response.
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfo ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfo struct { SchemaInfo OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo `json:"schema_info"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoJSON `json:"-"` }
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfo) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfo) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo struct { // Schema active on endpoint. ActiveSchema OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema `json:"active_schema"` // True if a Cloudflare-provided learned schema is available for this endpoint. LearnedAvailable bool `json:"learned_available"` // Action taken on requests failing validation. MitigationAction OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction `json:"mitigation_action,nullable"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoJSON `json:"-"` }
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema struct { // UUID ID string `json:"id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // True if schema is Cloudflare-provided. IsLearned bool `json:"is_learned"` // Schema file name. Name string `json:"name"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchemaJSON `json:"-"` }
Schema active on endpoint.
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction string
Action taken on requests failing validation.
const ( OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationActionNone OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction = "none" OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationActionLog OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction = "log" OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationActionBlock OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction = "block" )
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholds ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholds struct { Thresholds OperationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds `json:"thresholds"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholdsJSON `json:"-"` }
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholds) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholds) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds ¶
type OperationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds struct { // The total number of auth-ids seen across this calculation. AuthIDTokens int64 `json:"auth_id_tokens"` // The number of data points used for the threshold suggestion calculation. DataPoints int64 `json:"data_points"` LastUpdated time.Time `json:"last_updated" format:"date-time"` // The p50 quantile of requests (in period_seconds). P50 int64 `json:"p50"` // The p90 quantile of requests (in period_seconds). P90 int64 `json:"p90"` // The p99 quantile of requests (in period_seconds). P99 int64 `json:"p99"` // The period over which this threshold is suggested. PeriodSeconds int64 `json:"period_seconds"` // The estimated number of requests covered by these calculations. Requests int64 `json:"requests"` // The suggested threshold in requests done by the same auth_id or period_seconds. SuggestedThreshold int64 `json:"suggested_threshold"` JSON operationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholdsJSON `json:"-"` }
func (*OperationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds) UnmarshalJSON ¶
func (r *OperationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds) UnmarshalJSON(data []byte) (err error)
type OperationBulkNewResponseFeaturesUnion ¶
type OperationBulkNewResponseFeaturesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by api_gateway.OperationBulkNewResponseFeaturesAPIShieldOperationFeatureThresholds, api_gateway.OperationBulkNewResponseFeaturesAPIShieldOperationFeatureParameterSchemas, api_gateway.OperationBulkNewResponseFeaturesAPIShieldOperationFeatureAPIRouting, api_gateway.OperationBulkNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals or api_gateway.OperationBulkNewResponseFeaturesAPIShieldOperationFeatureSchemaInfo.
type OperationBulkNewResponseMethod ¶
type OperationBulkNewResponseMethod string
The HTTP method used to access the endpoint.
const ( OperationBulkNewResponseMethodGet OperationBulkNewResponseMethod = "GET" OperationBulkNewResponseMethodPost OperationBulkNewResponseMethod = "POST" OperationBulkNewResponseMethodHead OperationBulkNewResponseMethod = "HEAD" OperationBulkNewResponseMethodOptions OperationBulkNewResponseMethod = "OPTIONS" OperationBulkNewResponseMethodPut OperationBulkNewResponseMethod = "PUT" OperationBulkNewResponseMethodDelete OperationBulkNewResponseMethod = "DELETE" OperationBulkNewResponseMethodConnect OperationBulkNewResponseMethod = "CONNECT" OperationBulkNewResponseMethodPatch OperationBulkNewResponseMethod = "PATCH" OperationBulkNewResponseMethodTrace OperationBulkNewResponseMethod = "TRACE" )
func (OperationBulkNewResponseMethod) IsKnown ¶
func (r OperationBulkNewResponseMethod) IsKnown() bool
type OperationDeleteParams ¶
type OperationDeleteResponse ¶
type OperationDeleteResponse struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` // Whether the API call was successful Success OperationDeleteResponseSuccess `json:"success,required"` JSON operationDeleteResponseJSON `json:"-"` }
func (*OperationDeleteResponse) UnmarshalJSON ¶
func (r *OperationDeleteResponse) UnmarshalJSON(data []byte) (err error)
type OperationDeleteResponseSuccess ¶
type OperationDeleteResponseSuccess bool
Whether the API call was successful
const (
OperationDeleteResponseSuccessTrue OperationDeleteResponseSuccess = true
)
func (OperationDeleteResponseSuccess) IsKnown ¶
func (r OperationDeleteResponseSuccess) IsKnown() bool
type OperationGetParams ¶
type OperationGetParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // Add feature(s) to the results. The feature name that is given here corresponds // to the resulting feature object. Have a look at the top-level object description // for more details on the specific meaning. Feature param.Field[[]OperationGetParamsFeature] `query:"feature"` }
func (OperationGetParams) URLQuery ¶
func (r OperationGetParams) URLQuery() (v url.Values)
URLQuery serializes OperationGetParams's query parameters as `url.Values`.
type OperationGetParamsFeature ¶
type OperationGetParamsFeature string
const ( OperationGetParamsFeatureThresholds OperationGetParamsFeature = "thresholds" OperationGetParamsFeatureParameterSchemas OperationGetParamsFeature = "parameter_schemas" OperationGetParamsFeatureSchemaInfo OperationGetParamsFeature = "schema_info" )
func (OperationGetParamsFeature) IsKnown ¶
func (r OperationGetParamsFeature) IsKnown() bool
type OperationGetResponse ¶
type OperationGetResponse struct { // The endpoint which can contain path parameter templates in curly braces, each // will be replaced from left to right with {varN}, starting with {var1}, during // insertion. This will further be Cloudflare-normalized upon insertion. See: // https://developers.cloudflare.com/rules/normalization/how-it-works/. Endpoint string `json:"endpoint,required" format:"uri-template"` // RFC3986-compliant host. Host string `json:"host,required" format:"hostname"` LastUpdated time.Time `json:"last_updated,required" format:"date-time"` // The HTTP method used to access the endpoint. Method OperationGetResponseMethod `json:"method,required"` // UUID OperationID string `json:"operation_id,required"` Features OperationGetResponseFeatures `json:"features"` JSON operationGetResponseJSON `json:"-"` }
func (*OperationGetResponse) UnmarshalJSON ¶
func (r *OperationGetResponse) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseEnvelope ¶
type OperationGetResponseEnvelope struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` Result OperationGetResponse `json:"result,required"` // Whether the API call was successful Success OperationGetResponseEnvelopeSuccess `json:"success,required"` JSON operationGetResponseEnvelopeJSON `json:"-"` }
func (*OperationGetResponseEnvelope) UnmarshalJSON ¶
func (r *OperationGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseEnvelopeSuccess ¶
type OperationGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
OperationGetResponseEnvelopeSuccessTrue OperationGetResponseEnvelopeSuccess = true
)
func (OperationGetResponseEnvelopeSuccess) IsKnown ¶
func (r OperationGetResponseEnvelopeSuccess) IsKnown() bool
type OperationGetResponseFeatures ¶
type OperationGetResponseFeatures struct { // This field can have the runtime type of // [OperationGetResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting]. APIRouting interface{} `json:"api_routing"` // This field can have the runtime type of // [OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals]. ConfidenceIntervals interface{} `json:"confidence_intervals"` // This field can have the runtime type of // [OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas]. ParameterSchemas interface{} `json:"parameter_schemas"` // This field can have the runtime type of // [OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo]. SchemaInfo interface{} `json:"schema_info"` // This field can have the runtime type of // [OperationGetResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds]. Thresholds interface{} `json:"thresholds"` JSON operationGetResponseFeaturesJSON `json:"-"` // contains filtered or unexported fields }
func (OperationGetResponseFeatures) AsUnion ¶
func (r OperationGetResponseFeatures) AsUnion() OperationGetResponseFeaturesUnion
AsUnion returns a OperationGetResponseFeaturesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are api_gateway.OperationGetResponseFeaturesAPIShieldOperationFeatureThresholds, api_gateway.OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemas, api_gateway.OperationGetResponseFeaturesAPIShieldOperationFeatureAPIRouting, api_gateway.OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals, api_gateway.OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfo.
func (*OperationGetResponseFeatures) UnmarshalJSON ¶
func (r *OperationGetResponseFeatures) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureAPIRouting ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureAPIRouting struct { // API Routing settings on endpoint. APIRouting OperationGetResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting `json:"api_routing"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureAPIRoutingJSON `json:"-"` }
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureAPIRouting) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureAPIRouting) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting struct { LastUpdated time.Time `json:"last_updated" format:"date-time"` // Target route. Route string `json:"route"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRoutingJSON `json:"-"` }
API Routing settings on endpoint.
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals struct { ConfidenceIntervals OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals `json:"confidence_intervals"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsJSON `json:"-"` }
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals struct { LastUpdated time.Time `json:"last_updated" format:"date-time"` SuggestedThreshold OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold `json:"suggested_threshold"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsJSON `json:"-"` }
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold struct { ConfidenceIntervals OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals `json:"confidence_intervals"` // Suggested threshold. Mean float64 `json:"mean"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdJSON `json:"-"` }
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals struct { // Upper and lower bound for percentile estimate P90 OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 `json:"p90"` // Upper and lower bound for percentile estimate P95 OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 `json:"p95"` // Upper and lower bound for percentile estimate P99 OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 `json:"p99"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsJSON `json:"-"` }
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 struct { // Lower bound for percentile estimate Lower float64 `json:"lower"` // Upper bound for percentile estimate Upper float64 `json:"upper"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90JSON `json:"-"` }
Upper and lower bound for percentile estimate
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 struct { // Lower bound for percentile estimate Lower float64 `json:"lower"` // Upper bound for percentile estimate Upper float64 `json:"upper"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95JSON `json:"-"` }
Upper and lower bound for percentile estimate
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 struct { // Lower bound for percentile estimate Lower float64 `json:"lower"` // Upper bound for percentile estimate Upper float64 `json:"upper"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99JSON `json:"-"` }
Upper and lower bound for percentile estimate
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemas ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemas struct { ParameterSchemas OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas `json:"parameter_schemas,required"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasJSON `json:"-"` }
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemas) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemas) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas struct { LastUpdated time.Time `json:"last_updated" format:"date-time"` // An operation schema object containing a response. ParameterSchemas OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas `json:"parameter_schemas"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasJSON `json:"-"` }
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas struct { // An array containing the learned parameter schemas. Parameters []interface{} `json:"parameters"` // An empty response object. This field is required to yield a valid operation // schema. Responses interface{} `json:"responses,nullable"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemasJSON `json:"-"` }
An operation schema object containing a response.
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfo ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfo struct { SchemaInfo OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo `json:"schema_info"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoJSON `json:"-"` }
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfo) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfo) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo struct { // Schema active on endpoint. ActiveSchema OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema `json:"active_schema"` // True if a Cloudflare-provided learned schema is available for this endpoint. LearnedAvailable bool `json:"learned_available"` // Action taken on requests failing validation. MitigationAction OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction `json:"mitigation_action,nullable"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoJSON `json:"-"` }
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema struct { // UUID ID string `json:"id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // True if schema is Cloudflare-provided. IsLearned bool `json:"is_learned"` // Schema file name. Name string `json:"name"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchemaJSON `json:"-"` }
Schema active on endpoint.
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction string
Action taken on requests failing validation.
const ( OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationActionNone OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction = "none" OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationActionLog OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction = "log" OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationActionBlock OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction = "block" )
type OperationGetResponseFeaturesAPIShieldOperationFeatureThresholds ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureThresholds struct { Thresholds OperationGetResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds `json:"thresholds"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureThresholdsJSON `json:"-"` }
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureThresholds) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureThresholds) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds ¶
type OperationGetResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds struct { // The total number of auth-ids seen across this calculation. AuthIDTokens int64 `json:"auth_id_tokens"` // The number of data points used for the threshold suggestion calculation. DataPoints int64 `json:"data_points"` LastUpdated time.Time `json:"last_updated" format:"date-time"` // The p50 quantile of requests (in period_seconds). P50 int64 `json:"p50"` // The p90 quantile of requests (in period_seconds). P90 int64 `json:"p90"` // The p99 quantile of requests (in period_seconds). P99 int64 `json:"p99"` // The period over which this threshold is suggested. PeriodSeconds int64 `json:"period_seconds"` // The estimated number of requests covered by these calculations. Requests int64 `json:"requests"` // The suggested threshold in requests done by the same auth_id or period_seconds. SuggestedThreshold int64 `json:"suggested_threshold"` JSON operationGetResponseFeaturesAPIShieldOperationFeatureThresholdsThresholdsJSON `json:"-"` }
func (*OperationGetResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds) UnmarshalJSON ¶
func (r *OperationGetResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds) UnmarshalJSON(data []byte) (err error)
type OperationGetResponseFeaturesUnion ¶
type OperationGetResponseFeaturesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by api_gateway.OperationGetResponseFeaturesAPIShieldOperationFeatureThresholds, api_gateway.OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemas, api_gateway.OperationGetResponseFeaturesAPIShieldOperationFeatureAPIRouting, api_gateway.OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals or api_gateway.OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfo.
type OperationGetResponseMethod ¶
type OperationGetResponseMethod string
The HTTP method used to access the endpoint.
const ( OperationGetResponseMethodGet OperationGetResponseMethod = "GET" OperationGetResponseMethodPost OperationGetResponseMethod = "POST" OperationGetResponseMethodHead OperationGetResponseMethod = "HEAD" OperationGetResponseMethodOptions OperationGetResponseMethod = "OPTIONS" OperationGetResponseMethodPut OperationGetResponseMethod = "PUT" OperationGetResponseMethodDelete OperationGetResponseMethod = "DELETE" OperationGetResponseMethodConnect OperationGetResponseMethod = "CONNECT" OperationGetResponseMethodPatch OperationGetResponseMethod = "PATCH" OperationGetResponseMethodTrace OperationGetResponseMethod = "TRACE" )
func (OperationGetResponseMethod) IsKnown ¶
func (r OperationGetResponseMethod) IsKnown() bool
type OperationListParams ¶
type OperationListParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // Direction to order results. Direction param.Field[OperationListParamsDirection] `query:"direction"` // Filter results to only include endpoints containing this pattern. Endpoint param.Field[string] `query:"endpoint"` // Add feature(s) to the results. The feature name that is given here corresponds // to the resulting feature object. Have a look at the top-level object description // for more details on the specific meaning. Feature param.Field[[]OperationListParamsFeature] `query:"feature"` // Filter results to only include the specified hosts. Host param.Field[[]string] `query:"host"` // Filter results to only include the specified HTTP methods. Method param.Field[[]string] `query:"method"` // Field to order by. When requesting a feature, the feature keys are available for // ordering as well, e.g., `thresholds.suggested_threshold`. Order param.Field[OperationListParamsOrder] `query:"order"` // Page number of paginated results. Page param.Field[int64] `query:"page"` // Maximum number of results per page. PerPage param.Field[int64] `query:"per_page"` }
func (OperationListParams) URLQuery ¶
func (r OperationListParams) URLQuery() (v url.Values)
URLQuery serializes OperationListParams's query parameters as `url.Values`.
type OperationListParamsDirection ¶
type OperationListParamsDirection string
Direction to order results.
const ( OperationListParamsDirectionAsc OperationListParamsDirection = "asc" OperationListParamsDirectionDesc OperationListParamsDirection = "desc" )
func (OperationListParamsDirection) IsKnown ¶
func (r OperationListParamsDirection) IsKnown() bool
type OperationListParamsFeature ¶
type OperationListParamsFeature string
const ( OperationListParamsFeatureThresholds OperationListParamsFeature = "thresholds" OperationListParamsFeatureParameterSchemas OperationListParamsFeature = "parameter_schemas" OperationListParamsFeatureSchemaInfo OperationListParamsFeature = "schema_info" )
func (OperationListParamsFeature) IsKnown ¶
func (r OperationListParamsFeature) IsKnown() bool
type OperationListParamsOrder ¶
type OperationListParamsOrder string
Field to order by. When requesting a feature, the feature keys are available for ordering as well, e.g., `thresholds.suggested_threshold`.
const ( OperationListParamsOrderMethod OperationListParamsOrder = "method" OperationListParamsOrderHost OperationListParamsOrder = "host" OperationListParamsOrderEndpoint OperationListParamsOrder = "endpoint" OperationListParamsOrderThresholdsKey OperationListParamsOrder = "thresholds.$key" )
func (OperationListParamsOrder) IsKnown ¶
func (r OperationListParamsOrder) IsKnown() bool
type OperationListResponse ¶
type OperationListResponse struct { // The endpoint which can contain path parameter templates in curly braces, each // will be replaced from left to right with {varN}, starting with {var1}, during // insertion. This will further be Cloudflare-normalized upon insertion. See: // https://developers.cloudflare.com/rules/normalization/how-it-works/. Endpoint string `json:"endpoint,required" format:"uri-template"` // RFC3986-compliant host. Host string `json:"host,required" format:"hostname"` LastUpdated time.Time `json:"last_updated,required" format:"date-time"` // The HTTP method used to access the endpoint. Method OperationListResponseMethod `json:"method,required"` // UUID OperationID string `json:"operation_id,required"` Features OperationListResponseFeatures `json:"features"` JSON operationListResponseJSON `json:"-"` }
func (*OperationListResponse) UnmarshalJSON ¶
func (r *OperationListResponse) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeatures ¶
type OperationListResponseFeatures struct { // This field can have the runtime type of // [OperationListResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting]. APIRouting interface{} `json:"api_routing"` // This field can have the runtime type of // [OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals]. ConfidenceIntervals interface{} `json:"confidence_intervals"` // This field can have the runtime type of // [OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas]. ParameterSchemas interface{} `json:"parameter_schemas"` // This field can have the runtime type of // [OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo]. SchemaInfo interface{} `json:"schema_info"` // This field can have the runtime type of // [OperationListResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds]. Thresholds interface{} `json:"thresholds"` JSON operationListResponseFeaturesJSON `json:"-"` // contains filtered or unexported fields }
func (OperationListResponseFeatures) AsUnion ¶
func (r OperationListResponseFeatures) AsUnion() OperationListResponseFeaturesUnion
AsUnion returns a OperationListResponseFeaturesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are api_gateway.OperationListResponseFeaturesAPIShieldOperationFeatureThresholds, api_gateway.OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemas, api_gateway.OperationListResponseFeaturesAPIShieldOperationFeatureAPIRouting, api_gateway.OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals, api_gateway.OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfo.
func (*OperationListResponseFeatures) UnmarshalJSON ¶
func (r *OperationListResponseFeatures) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureAPIRouting ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureAPIRouting struct { // API Routing settings on endpoint. APIRouting OperationListResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting `json:"api_routing"` JSON operationListResponseFeaturesAPIShieldOperationFeatureAPIRoutingJSON `json:"-"` }
func (*OperationListResponseFeaturesAPIShieldOperationFeatureAPIRouting) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureAPIRouting) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting struct { LastUpdated time.Time `json:"last_updated" format:"date-time"` // Target route. Route string `json:"route"` JSON operationListResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRoutingJSON `json:"-"` }
API Routing settings on endpoint.
func (*OperationListResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals struct { ConfidenceIntervals OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals `json:"confidence_intervals"` JSON operationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsJSON `json:"-"` }
func (*OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals struct { LastUpdated time.Time `json:"last_updated" format:"date-time"` SuggestedThreshold OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold `json:"suggested_threshold"` JSON operationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsJSON `json:"-"` }
func (*OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold struct { ConfidenceIntervals OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals `json:"confidence_intervals"` // Suggested threshold. Mean float64 `json:"mean"` JSON operationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdJSON `json:"-"` }
func (*OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals struct { // Upper and lower bound for percentile estimate P90 OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 `json:"p90"` // Upper and lower bound for percentile estimate P95 OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 `json:"p95"` // Upper and lower bound for percentile estimate P99 OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 `json:"p99"` JSON operationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsJSON `json:"-"` }
func (*OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 struct { // Lower bound for percentile estimate Lower float64 `json:"lower"` // Upper bound for percentile estimate Upper float64 `json:"upper"` JSON operationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90JSON `json:"-"` }
Upper and lower bound for percentile estimate
func (*OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 struct { // Lower bound for percentile estimate Lower float64 `json:"lower"` // Upper bound for percentile estimate Upper float64 `json:"upper"` JSON operationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95JSON `json:"-"` }
Upper and lower bound for percentile estimate
func (*OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 struct { // Lower bound for percentile estimate Lower float64 `json:"lower"` // Upper bound for percentile estimate Upper float64 `json:"upper"` JSON operationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99JSON `json:"-"` }
Upper and lower bound for percentile estimate
func (*OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemas ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemas struct { ParameterSchemas OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas `json:"parameter_schemas,required"` JSON operationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasJSON `json:"-"` }
func (*OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemas) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemas) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas struct { LastUpdated time.Time `json:"last_updated" format:"date-time"` // An operation schema object containing a response. ParameterSchemas OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas `json:"parameter_schemas"` JSON operationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasJSON `json:"-"` }
func (*OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas struct { // An array containing the learned parameter schemas. Parameters []interface{} `json:"parameters"` // An empty response object. This field is required to yield a valid operation // schema. Responses interface{} `json:"responses,nullable"` JSON operationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemasJSON `json:"-"` }
An operation schema object containing a response.
func (*OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfo ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfo struct { SchemaInfo OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo `json:"schema_info"` JSON operationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoJSON `json:"-"` }
func (*OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfo) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfo) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo struct { // Schema active on endpoint. ActiveSchema OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema `json:"active_schema"` // True if a Cloudflare-provided learned schema is available for this endpoint. LearnedAvailable bool `json:"learned_available"` // Action taken on requests failing validation. MitigationAction OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction `json:"mitigation_action,nullable"` JSON operationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoJSON `json:"-"` }
func (*OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema struct { // UUID ID string `json:"id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // True if schema is Cloudflare-provided. IsLearned bool `json:"is_learned"` // Schema file name. Name string `json:"name"` JSON operationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchemaJSON `json:"-"` }
Schema active on endpoint.
func (*OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction string
Action taken on requests failing validation.
const ( OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationActionNone OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction = "none" OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationActionLog OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction = "log" OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationActionBlock OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction = "block" )
type OperationListResponseFeaturesAPIShieldOperationFeatureThresholds ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureThresholds struct { Thresholds OperationListResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds `json:"thresholds"` JSON operationListResponseFeaturesAPIShieldOperationFeatureThresholdsJSON `json:"-"` }
func (*OperationListResponseFeaturesAPIShieldOperationFeatureThresholds) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureThresholds) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds ¶
type OperationListResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds struct { // The total number of auth-ids seen across this calculation. AuthIDTokens int64 `json:"auth_id_tokens"` // The number of data points used for the threshold suggestion calculation. DataPoints int64 `json:"data_points"` LastUpdated time.Time `json:"last_updated" format:"date-time"` // The p50 quantile of requests (in period_seconds). P50 int64 `json:"p50"` // The p90 quantile of requests (in period_seconds). P90 int64 `json:"p90"` // The p99 quantile of requests (in period_seconds). P99 int64 `json:"p99"` // The period over which this threshold is suggested. PeriodSeconds int64 `json:"period_seconds"` // The estimated number of requests covered by these calculations. Requests int64 `json:"requests"` // The suggested threshold in requests done by the same auth_id or period_seconds. SuggestedThreshold int64 `json:"suggested_threshold"` JSON operationListResponseFeaturesAPIShieldOperationFeatureThresholdsThresholdsJSON `json:"-"` }
func (*OperationListResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds) UnmarshalJSON ¶
func (r *OperationListResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds) UnmarshalJSON(data []byte) (err error)
type OperationListResponseFeaturesUnion ¶
type OperationListResponseFeaturesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by api_gateway.OperationListResponseFeaturesAPIShieldOperationFeatureThresholds, api_gateway.OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemas, api_gateway.OperationListResponseFeaturesAPIShieldOperationFeatureAPIRouting, api_gateway.OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals or api_gateway.OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfo.
type OperationListResponseMethod ¶
type OperationListResponseMethod string
The HTTP method used to access the endpoint.
const ( OperationListResponseMethodGet OperationListResponseMethod = "GET" OperationListResponseMethodPost OperationListResponseMethod = "POST" OperationListResponseMethodHead OperationListResponseMethod = "HEAD" OperationListResponseMethodOptions OperationListResponseMethod = "OPTIONS" OperationListResponseMethodPut OperationListResponseMethod = "PUT" OperationListResponseMethodDelete OperationListResponseMethod = "DELETE" OperationListResponseMethodConnect OperationListResponseMethod = "CONNECT" OperationListResponseMethodPatch OperationListResponseMethod = "PATCH" OperationListResponseMethodTrace OperationListResponseMethod = "TRACE" )
func (OperationListResponseMethod) IsKnown ¶
func (r OperationListResponseMethod) IsKnown() bool
type OperationNewParams ¶
type OperationNewParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // The endpoint which can contain path parameter templates in curly braces, each // will be replaced from left to right with {varN}, starting with {var1}, during // insertion. This will further be Cloudflare-normalized upon insertion. See: // https://developers.cloudflare.com/rules/normalization/how-it-works/. Endpoint param.Field[string] `json:"endpoint,required" format:"uri-template"` // RFC3986-compliant host. Host param.Field[string] `json:"host,required" format:"hostname"` // The HTTP method used to access the endpoint. Method param.Field[OperationNewParamsMethod] `json:"method,required"` }
func (OperationNewParams) MarshalJSON ¶
func (r OperationNewParams) MarshalJSON() (data []byte, err error)
type OperationNewParamsMethod ¶
type OperationNewParamsMethod string
The HTTP method used to access the endpoint.
const ( OperationNewParamsMethodGet OperationNewParamsMethod = "GET" OperationNewParamsMethodPost OperationNewParamsMethod = "POST" OperationNewParamsMethodHead OperationNewParamsMethod = "HEAD" OperationNewParamsMethodOptions OperationNewParamsMethod = "OPTIONS" OperationNewParamsMethodPut OperationNewParamsMethod = "PUT" OperationNewParamsMethodDelete OperationNewParamsMethod = "DELETE" OperationNewParamsMethodConnect OperationNewParamsMethod = "CONNECT" OperationNewParamsMethodPatch OperationNewParamsMethod = "PATCH" OperationNewParamsMethodTrace OperationNewParamsMethod = "TRACE" )
func (OperationNewParamsMethod) IsKnown ¶
func (r OperationNewParamsMethod) IsKnown() bool
type OperationNewResponse ¶
type OperationNewResponse struct { // The endpoint which can contain path parameter templates in curly braces, each // will be replaced from left to right with {varN}, starting with {var1}, during // insertion. This will further be Cloudflare-normalized upon insertion. See: // https://developers.cloudflare.com/rules/normalization/how-it-works/. Endpoint string `json:"endpoint,required" format:"uri-template"` // RFC3986-compliant host. Host string `json:"host,required" format:"hostname"` LastUpdated time.Time `json:"last_updated,required" format:"date-time"` // The HTTP method used to access the endpoint. Method OperationNewResponseMethod `json:"method,required"` // UUID OperationID string `json:"operation_id,required"` Features OperationNewResponseFeatures `json:"features"` JSON operationNewResponseJSON `json:"-"` }
func (*OperationNewResponse) UnmarshalJSON ¶
func (r *OperationNewResponse) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseEnvelope ¶
type OperationNewResponseEnvelope struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` Result OperationNewResponse `json:"result,required"` // Whether the API call was successful Success OperationNewResponseEnvelopeSuccess `json:"success,required"` JSON operationNewResponseEnvelopeJSON `json:"-"` }
func (*OperationNewResponseEnvelope) UnmarshalJSON ¶
func (r *OperationNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseEnvelopeSuccess ¶
type OperationNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
OperationNewResponseEnvelopeSuccessTrue OperationNewResponseEnvelopeSuccess = true
)
func (OperationNewResponseEnvelopeSuccess) IsKnown ¶
func (r OperationNewResponseEnvelopeSuccess) IsKnown() bool
type OperationNewResponseFeatures ¶
type OperationNewResponseFeatures struct { // This field can have the runtime type of // [OperationNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting]. APIRouting interface{} `json:"api_routing"` // This field can have the runtime type of // [OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals]. ConfidenceIntervals interface{} `json:"confidence_intervals"` // This field can have the runtime type of // [OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas]. ParameterSchemas interface{} `json:"parameter_schemas"` // This field can have the runtime type of // [OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo]. SchemaInfo interface{} `json:"schema_info"` // This field can have the runtime type of // [OperationNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds]. Thresholds interface{} `json:"thresholds"` JSON operationNewResponseFeaturesJSON `json:"-"` // contains filtered or unexported fields }
func (OperationNewResponseFeatures) AsUnion ¶
func (r OperationNewResponseFeatures) AsUnion() OperationNewResponseFeaturesUnion
AsUnion returns a OperationNewResponseFeaturesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are api_gateway.OperationNewResponseFeaturesAPIShieldOperationFeatureThresholds, api_gateway.OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemas, api_gateway.OperationNewResponseFeaturesAPIShieldOperationFeatureAPIRouting, api_gateway.OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals, api_gateway.OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfo.
func (*OperationNewResponseFeatures) UnmarshalJSON ¶
func (r *OperationNewResponseFeatures) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureAPIRouting ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureAPIRouting struct { // API Routing settings on endpoint. APIRouting OperationNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting `json:"api_routing"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingJSON `json:"-"` }
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureAPIRouting) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureAPIRouting) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting struct { LastUpdated time.Time `json:"last_updated" format:"date-time"` // Target route. Route string `json:"route"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRoutingJSON `json:"-"` }
API Routing settings on endpoint.
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals struct { ConfidenceIntervals OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals `json:"confidence_intervals"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsJSON `json:"-"` }
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals struct { LastUpdated time.Time `json:"last_updated" format:"date-time"` SuggestedThreshold OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold `json:"suggested_threshold"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsJSON `json:"-"` }
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold struct { ConfidenceIntervals OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals `json:"confidence_intervals"` // Suggested threshold. Mean float64 `json:"mean"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdJSON `json:"-"` }
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals struct { // Upper and lower bound for percentile estimate P90 OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 `json:"p90"` // Upper and lower bound for percentile estimate P95 OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 `json:"p95"` // Upper and lower bound for percentile estimate P99 OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 `json:"p99"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsJSON `json:"-"` }
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 struct { // Lower bound for percentile estimate Lower float64 `json:"lower"` // Upper bound for percentile estimate Upper float64 `json:"upper"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90JSON `json:"-"` }
Upper and lower bound for percentile estimate
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 struct { // Lower bound for percentile estimate Lower float64 `json:"lower"` // Upper bound for percentile estimate Upper float64 `json:"upper"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95JSON `json:"-"` }
Upper and lower bound for percentile estimate
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 struct { // Lower bound for percentile estimate Lower float64 `json:"lower"` // Upper bound for percentile estimate Upper float64 `json:"upper"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99JSON `json:"-"` }
Upper and lower bound for percentile estimate
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemas ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemas struct { ParameterSchemas OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas `json:"parameter_schemas,required"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasJSON `json:"-"` }
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemas) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemas) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas struct { LastUpdated time.Time `json:"last_updated" format:"date-time"` // An operation schema object containing a response. ParameterSchemas OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas `json:"parameter_schemas"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasJSON `json:"-"` }
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas struct { // An array containing the learned parameter schemas. Parameters []interface{} `json:"parameters"` // An empty response object. This field is required to yield a valid operation // schema. Responses interface{} `json:"responses,nullable"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemasJSON `json:"-"` }
An operation schema object containing a response.
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfo ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfo struct { SchemaInfo OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo `json:"schema_info"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoJSON `json:"-"` }
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfo) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfo) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo struct { // Schema active on endpoint. ActiveSchema OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema `json:"active_schema"` // True if a Cloudflare-provided learned schema is available for this endpoint. LearnedAvailable bool `json:"learned_available"` // Action taken on requests failing validation. MitigationAction OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction `json:"mitigation_action,nullable"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoJSON `json:"-"` }
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema struct { // UUID ID string `json:"id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // True if schema is Cloudflare-provided. IsLearned bool `json:"is_learned"` // Schema file name. Name string `json:"name"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchemaJSON `json:"-"` }
Schema active on endpoint.
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction string
Action taken on requests failing validation.
const ( OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationActionNone OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction = "none" OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationActionLog OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction = "log" OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationActionBlock OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction = "block" )
type OperationNewResponseFeaturesAPIShieldOperationFeatureThresholds ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureThresholds struct { Thresholds OperationNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds `json:"thresholds"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureThresholdsJSON `json:"-"` }
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureThresholds) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureThresholds) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds ¶
type OperationNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds struct { // The total number of auth-ids seen across this calculation. AuthIDTokens int64 `json:"auth_id_tokens"` // The number of data points used for the threshold suggestion calculation. DataPoints int64 `json:"data_points"` LastUpdated time.Time `json:"last_updated" format:"date-time"` // The p50 quantile of requests (in period_seconds). P50 int64 `json:"p50"` // The p90 quantile of requests (in period_seconds). P90 int64 `json:"p90"` // The p99 quantile of requests (in period_seconds). P99 int64 `json:"p99"` // The period over which this threshold is suggested. PeriodSeconds int64 `json:"period_seconds"` // The estimated number of requests covered by these calculations. Requests int64 `json:"requests"` // The suggested threshold in requests done by the same auth_id or period_seconds. SuggestedThreshold int64 `json:"suggested_threshold"` JSON operationNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholdsJSON `json:"-"` }
func (*OperationNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds) UnmarshalJSON ¶
func (r *OperationNewResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds) UnmarshalJSON(data []byte) (err error)
type OperationNewResponseFeaturesUnion ¶
type OperationNewResponseFeaturesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by api_gateway.OperationNewResponseFeaturesAPIShieldOperationFeatureThresholds, api_gateway.OperationNewResponseFeaturesAPIShieldOperationFeatureParameterSchemas, api_gateway.OperationNewResponseFeaturesAPIShieldOperationFeatureAPIRouting, api_gateway.OperationNewResponseFeaturesAPIShieldOperationFeatureConfidenceIntervals or api_gateway.OperationNewResponseFeaturesAPIShieldOperationFeatureSchemaInfo.
type OperationNewResponseMethod ¶
type OperationNewResponseMethod string
The HTTP method used to access the endpoint.
const ( OperationNewResponseMethodGet OperationNewResponseMethod = "GET" OperationNewResponseMethodPost OperationNewResponseMethod = "POST" OperationNewResponseMethodHead OperationNewResponseMethod = "HEAD" OperationNewResponseMethodOptions OperationNewResponseMethod = "OPTIONS" OperationNewResponseMethodPut OperationNewResponseMethod = "PUT" OperationNewResponseMethodDelete OperationNewResponseMethod = "DELETE" OperationNewResponseMethodConnect OperationNewResponseMethod = "CONNECT" OperationNewResponseMethodPatch OperationNewResponseMethod = "PATCH" OperationNewResponseMethodTrace OperationNewResponseMethod = "TRACE" )
func (OperationNewResponseMethod) IsKnown ¶
func (r OperationNewResponseMethod) IsKnown() bool
type OperationSchemaValidationEditParams ¶
type OperationSchemaValidationEditParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` SettingsMultipleRequest SettingsMultipleRequestParam `json:"settings_multiple_request,required"` }
func (OperationSchemaValidationEditParams) MarshalJSON ¶
func (r OperationSchemaValidationEditParams) MarshalJSON() (data []byte, err error)
type OperationSchemaValidationEditResponseEnvelope ¶
type OperationSchemaValidationEditResponseEnvelope struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` Result SettingsMultipleRequest `json:"result,required"` // Whether the API call was successful Success OperationSchemaValidationEditResponseEnvelopeSuccess `json:"success,required"` JSON operationSchemaValidationEditResponseEnvelopeJSON `json:"-"` }
func (*OperationSchemaValidationEditResponseEnvelope) UnmarshalJSON ¶
func (r *OperationSchemaValidationEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type OperationSchemaValidationEditResponseEnvelopeSuccess ¶
type OperationSchemaValidationEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
OperationSchemaValidationEditResponseEnvelopeSuccessTrue OperationSchemaValidationEditResponseEnvelopeSuccess = true
)
func (OperationSchemaValidationEditResponseEnvelopeSuccess) IsKnown ¶
func (r OperationSchemaValidationEditResponseEnvelopeSuccess) IsKnown() bool
type OperationSchemaValidationGetResponse ¶
type OperationSchemaValidationGetResponse struct { // When set, this applies a mitigation action to this operation // // - `log` log request when request does not conform to schema for this operation // - `block` deny access to the site when request does not conform to schema for // this operation // - `none` will skip mitigation for this operation // - `null` indicates that no operation level mitigation is in place, see Zone // Level Schema Validation Settings for mitigation action that will be applied MitigationAction OperationSchemaValidationGetResponseMitigationAction `json:"mitigation_action,nullable"` JSON operationSchemaValidationGetResponseJSON `json:"-"` }
func (*OperationSchemaValidationGetResponse) UnmarshalJSON ¶
func (r *OperationSchemaValidationGetResponse) UnmarshalJSON(data []byte) (err error)
type OperationSchemaValidationGetResponseMitigationAction ¶
type OperationSchemaValidationGetResponseMitigationAction string
When set, this applies a mitigation action to this operation
- `log` log request when request does not conform to schema for this operation
- `block` deny access to the site when request does not conform to schema for this operation
- `none` will skip mitigation for this operation
- `null` indicates that no operation level mitigation is in place, see Zone Level Schema Validation Settings for mitigation action that will be applied
const ( OperationSchemaValidationGetResponseMitigationActionLog OperationSchemaValidationGetResponseMitigationAction = "log" OperationSchemaValidationGetResponseMitigationActionBlock OperationSchemaValidationGetResponseMitigationAction = "block" OperationSchemaValidationGetResponseMitigationActionNone OperationSchemaValidationGetResponseMitigationAction = "none" )
func (OperationSchemaValidationGetResponseMitigationAction) IsKnown ¶
func (r OperationSchemaValidationGetResponseMitigationAction) IsKnown() bool
type OperationSchemaValidationService ¶
type OperationSchemaValidationService struct {
Options []option.RequestOption
}
OperationSchemaValidationService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewOperationSchemaValidationService method instead.
func NewOperationSchemaValidationService ¶
func NewOperationSchemaValidationService(opts ...option.RequestOption) (r *OperationSchemaValidationService)
NewOperationSchemaValidationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*OperationSchemaValidationService) Edit ¶
func (r *OperationSchemaValidationService) Edit(ctx context.Context, params OperationSchemaValidationEditParams, opts ...option.RequestOption) (res *SettingsMultipleRequest, err error)
Updates multiple operation-level schema validation settings on the zone
func (*OperationSchemaValidationService) Get ¶
func (r *OperationSchemaValidationService) Get(ctx context.Context, operationID string, query OperationSchemaValidationGetParams, opts ...option.RequestOption) (res *OperationSchemaValidationGetResponse, err error)
Retrieves operation-level schema validation settings on the zone
func (*OperationSchemaValidationService) Update ¶
func (r *OperationSchemaValidationService) Update(ctx context.Context, operationID string, params OperationSchemaValidationUpdateParams, opts ...option.RequestOption) (res *OperationSchemaValidationUpdateResponse, err error)
Updates operation-level schema validation settings on the zone
type OperationSchemaValidationUpdateParams ¶
type OperationSchemaValidationUpdateParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // When set, this applies a mitigation action to this operation // // - `log` log request when request does not conform to schema for this operation // - `block` deny access to the site when request does not conform to schema for // this operation // - `none` will skip mitigation for this operation // - `null` indicates that no operation level mitigation is in place, see Zone // Level Schema Validation Settings for mitigation action that will be applied MitigationAction param.Field[OperationSchemaValidationUpdateParamsMitigationAction] `json:"mitigation_action"` }
func (OperationSchemaValidationUpdateParams) MarshalJSON ¶
func (r OperationSchemaValidationUpdateParams) MarshalJSON() (data []byte, err error)
type OperationSchemaValidationUpdateParamsMitigationAction ¶
type OperationSchemaValidationUpdateParamsMitigationAction string
When set, this applies a mitigation action to this operation
- `log` log request when request does not conform to schema for this operation
- `block` deny access to the site when request does not conform to schema for this operation
- `none` will skip mitigation for this operation
- `null` indicates that no operation level mitigation is in place, see Zone Level Schema Validation Settings for mitigation action that will be applied
const ( OperationSchemaValidationUpdateParamsMitigationActionLog OperationSchemaValidationUpdateParamsMitigationAction = "log" OperationSchemaValidationUpdateParamsMitigationActionBlock OperationSchemaValidationUpdateParamsMitigationAction = "block" OperationSchemaValidationUpdateParamsMitigationActionNone OperationSchemaValidationUpdateParamsMitigationAction = "none" )
func (OperationSchemaValidationUpdateParamsMitigationAction) IsKnown ¶
func (r OperationSchemaValidationUpdateParamsMitigationAction) IsKnown() bool
type OperationSchemaValidationUpdateResponse ¶
type OperationSchemaValidationUpdateResponse struct { // When set, this applies a mitigation action to this operation // // - `log` log request when request does not conform to schema for this operation // - `block` deny access to the site when request does not conform to schema for // this operation // - `none` will skip mitigation for this operation // - `null` indicates that no operation level mitigation is in place, see Zone // Level Schema Validation Settings for mitigation action that will be applied MitigationAction OperationSchemaValidationUpdateResponseMitigationAction `json:"mitigation_action,nullable"` JSON operationSchemaValidationUpdateResponseJSON `json:"-"` }
func (*OperationSchemaValidationUpdateResponse) UnmarshalJSON ¶
func (r *OperationSchemaValidationUpdateResponse) UnmarshalJSON(data []byte) (err error)
type OperationSchemaValidationUpdateResponseMitigationAction ¶
type OperationSchemaValidationUpdateResponseMitigationAction string
When set, this applies a mitigation action to this operation
- `log` log request when request does not conform to schema for this operation
- `block` deny access to the site when request does not conform to schema for this operation
- `none` will skip mitigation for this operation
- `null` indicates that no operation level mitigation is in place, see Zone Level Schema Validation Settings for mitigation action that will be applied
const ( OperationSchemaValidationUpdateResponseMitigationActionLog OperationSchemaValidationUpdateResponseMitigationAction = "log" OperationSchemaValidationUpdateResponseMitigationActionBlock OperationSchemaValidationUpdateResponseMitigationAction = "block" OperationSchemaValidationUpdateResponseMitigationActionNone OperationSchemaValidationUpdateResponseMitigationAction = "none" )
func (OperationSchemaValidationUpdateResponseMitigationAction) IsKnown ¶
func (r OperationSchemaValidationUpdateResponseMitigationAction) IsKnown() bool
type OperationService ¶
type OperationService struct { Options []option.RequestOption SchemaValidation *OperationSchemaValidationService }
OperationService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewOperationService method instead.
func NewOperationService ¶
func NewOperationService(opts ...option.RequestOption) (r *OperationService)
NewOperationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*OperationService) BulkDelete ¶
func (r *OperationService) BulkDelete(ctx context.Context, body OperationBulkDeleteParams, opts ...option.RequestOption) (res *OperationBulkDeleteResponse, err error)
Delete multiple operations
func (*OperationService) BulkNew ¶
func (r *OperationService) BulkNew(ctx context.Context, params OperationBulkNewParams, opts ...option.RequestOption) (res *[]OperationBulkNewResponse, err error)
Add one or more operations to a zone. Endpoints can contain path variables. Host, method, endpoint will be normalized to a canoncial form when creating an operation and must be unique on the zone. Inserting an operation that matches an existing one will return the record of the already existing operation and update its last_updated date.
func (*OperationService) Delete ¶
func (r *OperationService) Delete(ctx context.Context, operationID string, body OperationDeleteParams, opts ...option.RequestOption) (res *OperationDeleteResponse, err error)
Delete an operation
func (*OperationService) Get ¶
func (r *OperationService) Get(ctx context.Context, operationID string, params OperationGetParams, opts ...option.RequestOption) (res *OperationGetResponse, err error)
Retrieve information about an operation
func (*OperationService) List ¶
func (r *OperationService) List(ctx context.Context, params OperationListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[OperationListResponse], err error)
Retrieve information about all operations on a zone
func (*OperationService) ListAutoPaging ¶
func (r *OperationService) ListAutoPaging(ctx context.Context, params OperationListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[OperationListResponse]
Retrieve information about all operations on a zone
func (*OperationService) New ¶
func (r *OperationService) New(ctx context.Context, params OperationNewParams, opts ...option.RequestOption) (res *OperationNewResponse, err error)
Add one operation to a zone. Endpoints can contain path variables. Host, method, endpoint will be normalized to a canoncial form when creating an operation and must be unique on the zone. Inserting an operation that matches an existing one will return the record of the already existing operation and update its last_updated date.
type PermissionGrant ¶
type PermissionGrant = shared.PermissionGrant
This is an alias to an internal type.
type PermissionGrantParam ¶
type PermissionGrantParam = shared.PermissionGrantParam
This is an alias to an internal type.
type PublicSchema ¶
type PublicSchema struct { CreatedAt time.Time `json:"created_at,required" format:"date-time"` // Kind of schema Kind PublicSchemaKind `json:"kind,required"` // Name of the schema Name string `json:"name,required"` // UUID SchemaID string `json:"schema_id,required"` // Source of the schema Source string `json:"source"` // Flag whether schema is enabled for validation. ValidationEnabled bool `json:"validation_enabled"` JSON publicSchemaJSON `json:"-"` }
func (*PublicSchema) UnmarshalJSON ¶
func (r *PublicSchema) UnmarshalJSON(data []byte) (err error)
type PublicSchemaKind ¶
type PublicSchemaKind string
Kind of schema
const (
PublicSchemaKindOpenAPIV3 PublicSchemaKind = "openapi_v3"
)
func (PublicSchemaKind) IsKnown ¶
func (r PublicSchemaKind) IsKnown() bool
type RatePlanParam ¶
type RatePlanParam = shared.RatePlanParam
The rate plan applied to the subscription.
This is an alias to an internal type.
type RolePermissions ¶
type RolePermissions = shared.RolePermissions
This is an alias to an internal type.
type RolePermissionsParam ¶
type RolePermissionsParam = shared.RolePermissionsParam
This is an alias to an internal type.
type SchemaListParams ¶
type SchemaListParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // Add feature(s) to the results. The feature name that is given here corresponds // to the resulting feature object. Have a look at the top-level object description // for more details on the specific meaning. Feature param.Field[[]SchemaListParamsFeature] `query:"feature"` // Receive schema only for the given host(s). Host param.Field[[]string] `query:"host"` }
func (SchemaListParams) URLQuery ¶
func (r SchemaListParams) URLQuery() (v url.Values)
URLQuery serializes SchemaListParams's query parameters as `url.Values`.
type SchemaListParamsFeature ¶
type SchemaListParamsFeature string
const ( SchemaListParamsFeatureThresholds SchemaListParamsFeature = "thresholds" SchemaListParamsFeatureParameterSchemas SchemaListParamsFeature = "parameter_schemas" SchemaListParamsFeatureSchemaInfo SchemaListParamsFeature = "schema_info" )
func (SchemaListParamsFeature) IsKnown ¶
func (r SchemaListParamsFeature) IsKnown() bool
type SchemaListResponse ¶
type SchemaListResponse struct { Schemas []interface{} `json:"schemas"` Timestamp string `json:"timestamp"` JSON schemaListResponseJSON `json:"-"` }
func (*SchemaListResponse) UnmarshalJSON ¶
func (r *SchemaListResponse) UnmarshalJSON(data []byte) (err error)
type SchemaListResponseEnvelope ¶
type SchemaListResponseEnvelope struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` Result SchemaListResponse `json:"result,required"` // Whether the API call was successful Success SchemaListResponseEnvelopeSuccess `json:"success,required"` JSON schemaListResponseEnvelopeJSON `json:"-"` }
func (*SchemaListResponseEnvelope) UnmarshalJSON ¶
func (r *SchemaListResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SchemaListResponseEnvelopeSuccess ¶
type SchemaListResponseEnvelopeSuccess bool
Whether the API call was successful
const (
SchemaListResponseEnvelopeSuccessTrue SchemaListResponseEnvelopeSuccess = true
)
func (SchemaListResponseEnvelopeSuccess) IsKnown ¶
func (r SchemaListResponseEnvelopeSuccess) IsKnown() bool
type SchemaService ¶
type SchemaService struct {
Options []option.RequestOption
}
SchemaService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewSchemaService method instead.
func NewSchemaService ¶
func NewSchemaService(opts ...option.RequestOption) (r *SchemaService)
NewSchemaService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*SchemaService) List ¶
func (r *SchemaService) List(ctx context.Context, params SchemaListParams, opts ...option.RequestOption) (res *SchemaListResponse, err error)
Retrieve operations and features as OpenAPI schemas
type SchemaUpload ¶
type SchemaUpload struct { Schema PublicSchema `json:"schema,required"` UploadDetails SchemaUploadUploadDetails `json:"upload_details"` JSON schemaUploadJSON `json:"-"` }
func (*SchemaUpload) UnmarshalJSON ¶
func (r *SchemaUpload) UnmarshalJSON(data []byte) (err error)
type SchemaUploadUploadDetails ¶
type SchemaUploadUploadDetails struct { // Diagnostic warning events that occurred during processing. These events are // non-critical errors found within the schema. Warnings []SchemaUploadUploadDetailsWarning `json:"warnings"` JSON schemaUploadUploadDetailsJSON `json:"-"` }
func (*SchemaUploadUploadDetails) UnmarshalJSON ¶
func (r *SchemaUploadUploadDetails) UnmarshalJSON(data []byte) (err error)
type SchemaUploadUploadDetailsWarning ¶
type SchemaUploadUploadDetailsWarning struct { // Code that identifies the event that occurred. Code int64 `json:"code,required"` // JSONPath location(s) in the schema where these events were encountered. See // [https://goessner.net/articles/JsonPath/](https://goessner.net/articles/JsonPath/) // for JSONPath specification. Locations []string `json:"locations"` // Diagnostic message that describes the event. Message string `json:"message"` JSON schemaUploadUploadDetailsWarningJSON `json:"-"` }
func (*SchemaUploadUploadDetailsWarning) UnmarshalJSON ¶
func (r *SchemaUploadUploadDetailsWarning) UnmarshalJSON(data []byte) (err error)
type SettingSchemaValidationEditParams ¶
type SettingSchemaValidationEditParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // The default mitigation action used when there is no mitigation action defined on // the operation Mitigation actions are as follows: // // - `log` - log request when request does not conform to schema // - `block` - deny access to the site when request does not conform to schema // // A special value of of `none` will skip running schema validation entirely for // the request when there is no mitigation action defined on the operation // // `null` will have no effect. ValidationDefaultMitigationAction param.Field[SettingSchemaValidationEditParamsValidationDefaultMitigationAction] `json:"validation_default_mitigation_action"` // When set, this overrides both zone level and operation level mitigation actions. // // - `none` will skip running schema validation entirely for the request // // To clear any override, use the special value `disable_override` // // `null` will have no effect. ValidationOverrideMitigationAction param.Field[SettingSchemaValidationEditParamsValidationOverrideMitigationAction] `json:"validation_override_mitigation_action"` }
func (SettingSchemaValidationEditParams) MarshalJSON ¶
func (r SettingSchemaValidationEditParams) MarshalJSON() (data []byte, err error)
type SettingSchemaValidationEditParamsValidationDefaultMitigationAction ¶
type SettingSchemaValidationEditParamsValidationDefaultMitigationAction string
The default mitigation action used when there is no mitigation action defined on the operation Mitigation actions are as follows:
- `log` - log request when request does not conform to schema - `block` - deny access to the site when request does not conform to schema
A special value of of `none` will skip running schema validation entirely for the request when there is no mitigation action defined on the operation
`null` will have no effect.
const ( SettingSchemaValidationEditParamsValidationDefaultMitigationActionNone SettingSchemaValidationEditParamsValidationDefaultMitigationAction = "none" SettingSchemaValidationEditParamsValidationDefaultMitigationActionLog SettingSchemaValidationEditParamsValidationDefaultMitigationAction = "log" SettingSchemaValidationEditParamsValidationDefaultMitigationActionBlock SettingSchemaValidationEditParamsValidationDefaultMitigationAction = "block" )
func (SettingSchemaValidationEditParamsValidationDefaultMitigationAction) IsKnown ¶
func (r SettingSchemaValidationEditParamsValidationDefaultMitigationAction) IsKnown() bool
type SettingSchemaValidationEditParamsValidationOverrideMitigationAction ¶
type SettingSchemaValidationEditParamsValidationOverrideMitigationAction string
When set, this overrides both zone level and operation level mitigation actions.
- `none` will skip running schema validation entirely for the request
To clear any override, use the special value `disable_override`
`null` will have no effect.
const ( SettingSchemaValidationEditParamsValidationOverrideMitigationActionNone SettingSchemaValidationEditParamsValidationOverrideMitigationAction = "none" SettingSchemaValidationEditParamsValidationOverrideMitigationActionDisableOverride SettingSchemaValidationEditParamsValidationOverrideMitigationAction = "disable_override" )
func (SettingSchemaValidationEditParamsValidationOverrideMitigationAction) IsKnown ¶
func (r SettingSchemaValidationEditParamsValidationOverrideMitigationAction) IsKnown() bool
type SettingSchemaValidationService ¶
type SettingSchemaValidationService struct {
Options []option.RequestOption
}
SettingSchemaValidationService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewSettingSchemaValidationService method instead.
func NewSettingSchemaValidationService ¶
func NewSettingSchemaValidationService(opts ...option.RequestOption) (r *SettingSchemaValidationService)
NewSettingSchemaValidationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*SettingSchemaValidationService) Edit ¶
func (r *SettingSchemaValidationService) Edit(ctx context.Context, params SettingSchemaValidationEditParams, opts ...option.RequestOption) (res *Settings, err error)
Updates zone level schema validation settings on the zone
func (*SettingSchemaValidationService) Get ¶
func (r *SettingSchemaValidationService) Get(ctx context.Context, query SettingSchemaValidationGetParams, opts ...option.RequestOption) (res *Settings, err error)
Retrieves zone level schema validation settings currently set on the zone
func (*SettingSchemaValidationService) Update ¶
func (r *SettingSchemaValidationService) Update(ctx context.Context, params SettingSchemaValidationUpdateParams, opts ...option.RequestOption) (res *Settings, err error)
Updates zone level schema validation settings on the zone
type SettingSchemaValidationUpdateParams ¶
type SettingSchemaValidationUpdateParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // The default mitigation action used when there is no mitigation action defined on // the operation // // Mitigation actions are as follows: // // - `log` - log request when request does not conform to schema // - `block` - deny access to the site when request does not conform to schema // // A special value of of `none` will skip running schema validation entirely for // the request when there is no mitigation action defined on the operation ValidationDefaultMitigationAction param.Field[SettingSchemaValidationUpdateParamsValidationDefaultMitigationAction] `json:"validation_default_mitigation_action,required"` // When set, this overrides both zone level and operation level mitigation actions. // // - `none` will skip running schema validation entirely for the request // - `null` indicates that no override is in place // // To clear any override, use the special value `disable_override` or `null` ValidationOverrideMitigationAction param.Field[SettingSchemaValidationUpdateParamsValidationOverrideMitigationAction] `json:"validation_override_mitigation_action"` }
func (SettingSchemaValidationUpdateParams) MarshalJSON ¶
func (r SettingSchemaValidationUpdateParams) MarshalJSON() (data []byte, err error)
type SettingSchemaValidationUpdateParamsValidationDefaultMitigationAction ¶
type SettingSchemaValidationUpdateParamsValidationDefaultMitigationAction string
The default mitigation action used when there is no mitigation action defined on the operation
Mitigation actions are as follows:
- `log` - log request when request does not conform to schema - `block` - deny access to the site when request does not conform to schema
A special value of of `none` will skip running schema validation entirely for the request when there is no mitigation action defined on the operation
const ( SettingSchemaValidationUpdateParamsValidationDefaultMitigationActionNone SettingSchemaValidationUpdateParamsValidationDefaultMitigationAction = "none" SettingSchemaValidationUpdateParamsValidationDefaultMitigationActionLog SettingSchemaValidationUpdateParamsValidationDefaultMitigationAction = "log" SettingSchemaValidationUpdateParamsValidationDefaultMitigationActionBlock SettingSchemaValidationUpdateParamsValidationDefaultMitigationAction = "block" )
func (SettingSchemaValidationUpdateParamsValidationDefaultMitigationAction) IsKnown ¶
func (r SettingSchemaValidationUpdateParamsValidationDefaultMitigationAction) IsKnown() bool
type SettingSchemaValidationUpdateParamsValidationOverrideMitigationAction ¶
type SettingSchemaValidationUpdateParamsValidationOverrideMitigationAction string
When set, this overrides both zone level and operation level mitigation actions.
- `none` will skip running schema validation entirely for the request - `null` indicates that no override is in place
To clear any override, use the special value `disable_override` or `null`
const ( SettingSchemaValidationUpdateParamsValidationOverrideMitigationActionNone SettingSchemaValidationUpdateParamsValidationOverrideMitigationAction = "none" SettingSchemaValidationUpdateParamsValidationOverrideMitigationActionDisableOverride SettingSchemaValidationUpdateParamsValidationOverrideMitigationAction = "disable_override" )
func (SettingSchemaValidationUpdateParamsValidationOverrideMitigationAction) IsKnown ¶
func (r SettingSchemaValidationUpdateParamsValidationOverrideMitigationAction) IsKnown() bool
type SettingService ¶
type SettingService struct { Options []option.RequestOption SchemaValidation *SettingSchemaValidationService }
SettingService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewSettingService method instead.
func NewSettingService ¶
func NewSettingService(opts ...option.RequestOption) (r *SettingService)
NewSettingService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type Settings ¶
type Settings struct { // The default mitigation action used when there is no mitigation action defined on // the operation // // Mitigation actions are as follows: // // - `log` - log request when request does not conform to schema // - `block` - deny access to the site when request does not conform to schema // // A special value of of `none` will skip running schema validation entirely for // the request when there is no mitigation action defined on the operation ValidationDefaultMitigationAction SettingsValidationDefaultMitigationAction `json:"validation_default_mitigation_action"` // When set, this overrides both zone level and operation level mitigation actions. // // - `none` will skip running schema validation entirely for the request // - `null` indicates that no override is in place ValidationOverrideMitigationAction SettingsValidationOverrideMitigationAction `json:"validation_override_mitigation_action,nullable"` JSON settingsJSON `json:"-"` }
func (*Settings) UnmarshalJSON ¶
type SettingsMultipleRequest ¶
type SettingsMultipleRequest map[string]SettingsMultipleRequestItem
type SettingsMultipleRequestItem ¶
type SettingsMultipleRequestItem struct { // When set, this applies a mitigation action to this operation // // - `log` log request when request does not conform to schema for this operation // - `block` deny access to the site when request does not conform to schema for // this operation // - `none` will skip mitigation for this operation // - `null` indicates that no operation level mitigation is in place, see Zone // Level Schema Validation Settings for mitigation action that will be applied MitigationAction SettingsMultipleRequestItemMitigationAction `json:"mitigation_action,nullable"` JSON settingsMultipleRequestItemJSON `json:"-"` }
Operation ID to mitigation action mappings
func (*SettingsMultipleRequestItem) UnmarshalJSON ¶
func (r *SettingsMultipleRequestItem) UnmarshalJSON(data []byte) (err error)
type SettingsMultipleRequestItemMitigationAction ¶
type SettingsMultipleRequestItemMitigationAction string
When set, this applies a mitigation action to this operation
- `log` log request when request does not conform to schema for this operation
- `block` deny access to the site when request does not conform to schema for this operation
- `none` will skip mitigation for this operation
- `null` indicates that no operation level mitigation is in place, see Zone Level Schema Validation Settings for mitigation action that will be applied
const ( SettingsMultipleRequestItemMitigationActionLog SettingsMultipleRequestItemMitigationAction = "log" SettingsMultipleRequestItemMitigationActionBlock SettingsMultipleRequestItemMitigationAction = "block" SettingsMultipleRequestItemMitigationActionNone SettingsMultipleRequestItemMitigationAction = "none" )
func (SettingsMultipleRequestItemMitigationAction) IsKnown ¶
func (r SettingsMultipleRequestItemMitigationAction) IsKnown() bool
type SettingsMultipleRequestItemParam ¶
type SettingsMultipleRequestItemParam struct { // When set, this applies a mitigation action to this operation // // - `log` log request when request does not conform to schema for this operation // - `block` deny access to the site when request does not conform to schema for // this operation // - `none` will skip mitigation for this operation // - `null` indicates that no operation level mitigation is in place, see Zone // Level Schema Validation Settings for mitigation action that will be applied MitigationAction param.Field[SettingsMultipleRequestItemMitigationAction] `json:"mitigation_action"` }
Operation ID to mitigation action mappings
func (SettingsMultipleRequestItemParam) MarshalJSON ¶
func (r SettingsMultipleRequestItemParam) MarshalJSON() (data []byte, err error)
type SettingsMultipleRequestParam ¶
type SettingsMultipleRequestParam map[string]SettingsMultipleRequestItemParam
type SettingsValidationDefaultMitigationAction ¶
type SettingsValidationDefaultMitigationAction string
The default mitigation action used when there is no mitigation action defined on the operation
Mitigation actions are as follows:
- `log` - log request when request does not conform to schema - `block` - deny access to the site when request does not conform to schema
A special value of of `none` will skip running schema validation entirely for the request when there is no mitigation action defined on the operation
const ( SettingsValidationDefaultMitigationActionNone SettingsValidationDefaultMitigationAction = "none" SettingsValidationDefaultMitigationActionLog SettingsValidationDefaultMitigationAction = "log" SettingsValidationDefaultMitigationActionBlock SettingsValidationDefaultMitigationAction = "block" )
func (SettingsValidationDefaultMitigationAction) IsKnown ¶
func (r SettingsValidationDefaultMitigationAction) IsKnown() bool
type SettingsValidationOverrideMitigationAction ¶
type SettingsValidationOverrideMitigationAction string
When set, this overrides both zone level and operation level mitigation actions.
- `none` will skip running schema validation entirely for the request - `null` indicates that no override is in place
const (
SettingsValidationOverrideMitigationActionNone SettingsValidationOverrideMitigationAction = "none"
)
func (SettingsValidationOverrideMitigationAction) IsKnown ¶
func (r SettingsValidationOverrideMitigationAction) IsKnown() bool
type SortDirection ¶
type SortDirection = shared.SortDirection
Direction to order DNS records in.
This is an alias to an internal type.
type SubscriptionFrequency ¶
type SubscriptionFrequency = shared.SubscriptionFrequency
How often the subscription is renewed automatically.
This is an alias to an internal type.
type SubscriptionParam ¶
type SubscriptionParam = shared.SubscriptionParam
This is an alias to an internal type.
type SubscriptionState ¶
type SubscriptionState = shared.SubscriptionState
The state that the subscription is in.
This is an alias to an internal type.
type TokenCondition ¶
type TokenCondition = shared.TokenCondition
This is an alias to an internal type.
type TokenConditionCIDRList ¶
type TokenConditionCIDRList = shared.TokenConditionCIDRList
IPv4/IPv6 CIDR.
This is an alias to an internal type.
type TokenConditionCIDRListParam ¶
type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
IPv4/IPv6 CIDR.
This is an alias to an internal type.
type TokenConditionParam ¶
type TokenConditionParam = shared.TokenConditionParam
This is an alias to an internal type.
type TokenConditionRequestIP ¶
type TokenConditionRequestIP = shared.TokenConditionRequestIP
Client IP restrictions.
This is an alias to an internal type.
type TokenConditionRequestIPParam ¶
type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
Client IP restrictions.
This is an alias to an internal type.
type TokenPolicyEffect ¶
type TokenPolicyEffect = shared.TokenPolicyEffect
Allow or deny operations against the resources.
This is an alias to an internal type.
type TokenPolicyParam ¶
type TokenPolicyParam = shared.TokenPolicyParam
This is an alias to an internal type.
type TokenPolicyPermissionGroup ¶
type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
A named group of permissions that map to a group of operations against resources.
This is an alias to an internal type.
type TokenPolicyPermissionGroupParam ¶
type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
A named group of permissions that map to a group of operations against resources.
This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta ¶
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
Attributes associated to the permission group.
This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam ¶
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
Attributes associated to the permission group.
This is an alias to an internal type.
type TokenStatus ¶
type TokenStatus = shared.TokenStatus
Status of the token.
This is an alias to an internal type.
type TokenValue ¶
type TokenValue = shared.TokenValue
The token value.
This is an alias to an internal type.
type UserSchemaDeleteParams ¶
type UserSchemaDeleteResponse ¶
type UserSchemaDeleteResponse struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` // Whether the API call was successful Success UserSchemaDeleteResponseSuccess `json:"success,required"` JSON userSchemaDeleteResponseJSON `json:"-"` }
func (*UserSchemaDeleteResponse) UnmarshalJSON ¶
func (r *UserSchemaDeleteResponse) UnmarshalJSON(data []byte) (err error)
type UserSchemaDeleteResponseSuccess ¶
type UserSchemaDeleteResponseSuccess bool
Whether the API call was successful
const (
UserSchemaDeleteResponseSuccessTrue UserSchemaDeleteResponseSuccess = true
)
func (UserSchemaDeleteResponseSuccess) IsKnown ¶
func (r UserSchemaDeleteResponseSuccess) IsKnown() bool
type UserSchemaEditParams ¶
type UserSchemaEditParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // Flag whether schema is enabled for validation. ValidationEnabled param.Field[UserSchemaEditParamsValidationEnabled] `json:"validation_enabled"` }
func (UserSchemaEditParams) MarshalJSON ¶
func (r UserSchemaEditParams) MarshalJSON() (data []byte, err error)
type UserSchemaEditParamsValidationEnabled ¶
type UserSchemaEditParamsValidationEnabled bool
Flag whether schema is enabled for validation.
const (
UserSchemaEditParamsValidationEnabledTrue UserSchemaEditParamsValidationEnabled = true
)
func (UserSchemaEditParamsValidationEnabled) IsKnown ¶
func (r UserSchemaEditParamsValidationEnabled) IsKnown() bool
type UserSchemaEditResponseEnvelope ¶
type UserSchemaEditResponseEnvelope struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` Result PublicSchema `json:"result,required"` // Whether the API call was successful Success UserSchemaEditResponseEnvelopeSuccess `json:"success,required"` JSON userSchemaEditResponseEnvelopeJSON `json:"-"` }
func (*UserSchemaEditResponseEnvelope) UnmarshalJSON ¶
func (r *UserSchemaEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type UserSchemaEditResponseEnvelopeSuccess ¶
type UserSchemaEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
UserSchemaEditResponseEnvelopeSuccessTrue UserSchemaEditResponseEnvelopeSuccess = true
)
func (UserSchemaEditResponseEnvelopeSuccess) IsKnown ¶
func (r UserSchemaEditResponseEnvelopeSuccess) IsKnown() bool
type UserSchemaGetParams ¶
type UserSchemaGetParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // Omit the source-files of schemas and only retrieve their meta-data. OmitSource param.Field[bool] `query:"omit_source"` }
func (UserSchemaGetParams) URLQuery ¶
func (r UserSchemaGetParams) URLQuery() (v url.Values)
URLQuery serializes UserSchemaGetParams's query parameters as `url.Values`.
type UserSchemaGetResponseEnvelope ¶
type UserSchemaGetResponseEnvelope struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` Result PublicSchema `json:"result,required"` // Whether the API call was successful Success UserSchemaGetResponseEnvelopeSuccess `json:"success,required"` JSON userSchemaGetResponseEnvelopeJSON `json:"-"` }
func (*UserSchemaGetResponseEnvelope) UnmarshalJSON ¶
func (r *UserSchemaGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type UserSchemaGetResponseEnvelopeSuccess ¶
type UserSchemaGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
UserSchemaGetResponseEnvelopeSuccessTrue UserSchemaGetResponseEnvelopeSuccess = true
)
func (UserSchemaGetResponseEnvelopeSuccess) IsKnown ¶
func (r UserSchemaGetResponseEnvelopeSuccess) IsKnown() bool
type UserSchemaHostListParams ¶
type UserSchemaHostListParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // Page number of paginated results. Page param.Field[int64] `query:"page"` // Maximum number of results per page. PerPage param.Field[int64] `query:"per_page"` }
func (UserSchemaHostListParams) URLQuery ¶
func (r UserSchemaHostListParams) URLQuery() (v url.Values)
URLQuery serializes UserSchemaHostListParams's query parameters as `url.Values`.
type UserSchemaHostListResponse ¶
type UserSchemaHostListResponse struct { CreatedAt time.Time `json:"created_at,required" format:"date-time"` // Hosts serving the schema, e.g zone.host.com Hosts []string `json:"hosts,required"` // Name of the schema Name string `json:"name,required"` // UUID SchemaID string `json:"schema_id,required"` JSON userSchemaHostListResponseJSON `json:"-"` }
func (*UserSchemaHostListResponse) UnmarshalJSON ¶
func (r *UserSchemaHostListResponse) UnmarshalJSON(data []byte) (err error)
type UserSchemaHostService ¶
type UserSchemaHostService struct {
Options []option.RequestOption
}
UserSchemaHostService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewUserSchemaHostService method instead.
func NewUserSchemaHostService ¶
func NewUserSchemaHostService(opts ...option.RequestOption) (r *UserSchemaHostService)
NewUserSchemaHostService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*UserSchemaHostService) List ¶
func (r *UserSchemaHostService) List(ctx context.Context, params UserSchemaHostListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[UserSchemaHostListResponse], err error)
Retrieve schema hosts in a zone
func (*UserSchemaHostService) ListAutoPaging ¶
func (r *UserSchemaHostService) ListAutoPaging(ctx context.Context, params UserSchemaHostListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[UserSchemaHostListResponse]
Retrieve schema hosts in a zone
type UserSchemaListParams ¶
type UserSchemaListParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // Omit the source-files of schemas and only retrieve their meta-data. OmitSource param.Field[bool] `query:"omit_source"` // Page number of paginated results. Page param.Field[int64] `query:"page"` // Maximum number of results per page. PerPage param.Field[int64] `query:"per_page"` // Flag whether schema is enabled for validation. ValidationEnabled param.Field[bool] `query:"validation_enabled"` }
func (UserSchemaListParams) URLQuery ¶
func (r UserSchemaListParams) URLQuery() (v url.Values)
URLQuery serializes UserSchemaListParams's query parameters as `url.Values`.
type UserSchemaNewParams ¶
type UserSchemaNewParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // Schema file bytes File param.Field[io.Reader] `json:"file,required" format:"binary"` // Kind of schema Kind param.Field[UserSchemaNewParamsKind] `json:"kind,required"` // Name of the schema Name param.Field[string] `json:"name"` // Flag whether schema is enabled for validation. ValidationEnabled param.Field[UserSchemaNewParamsValidationEnabled] `json:"validation_enabled"` }
func (UserSchemaNewParams) MarshalMultipart ¶
func (r UserSchemaNewParams) MarshalMultipart() (data []byte, contentType string, err error)
type UserSchemaNewParamsKind ¶
type UserSchemaNewParamsKind string
Kind of schema
const (
UserSchemaNewParamsKindOpenAPIV3 UserSchemaNewParamsKind = "openapi_v3"
)
func (UserSchemaNewParamsKind) IsKnown ¶
func (r UserSchemaNewParamsKind) IsKnown() bool
type UserSchemaNewParamsValidationEnabled ¶
type UserSchemaNewParamsValidationEnabled string
Flag whether schema is enabled for validation.
const ( UserSchemaNewParamsValidationEnabledTrue UserSchemaNewParamsValidationEnabled = "true" UserSchemaNewParamsValidationEnabledFalse UserSchemaNewParamsValidationEnabled = "false" )
func (UserSchemaNewParamsValidationEnabled) IsKnown ¶
func (r UserSchemaNewParamsValidationEnabled) IsKnown() bool
type UserSchemaNewResponseEnvelope ¶
type UserSchemaNewResponseEnvelope struct { Errors Message `json:"errors,required"` Messages Message `json:"messages,required"` Result SchemaUpload `json:"result,required"` // Whether the API call was successful Success UserSchemaNewResponseEnvelopeSuccess `json:"success,required"` JSON userSchemaNewResponseEnvelopeJSON `json:"-"` }
func (*UserSchemaNewResponseEnvelope) UnmarshalJSON ¶
func (r *UserSchemaNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type UserSchemaNewResponseEnvelopeSuccess ¶
type UserSchemaNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
UserSchemaNewResponseEnvelopeSuccessTrue UserSchemaNewResponseEnvelopeSuccess = true
)
func (UserSchemaNewResponseEnvelopeSuccess) IsKnown ¶
func (r UserSchemaNewResponseEnvelopeSuccess) IsKnown() bool
type UserSchemaOperationListParams ¶
type UserSchemaOperationListParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // Filter results to only include endpoints containing this pattern. Endpoint param.Field[string] `query:"endpoint"` // Add feature(s) to the results. The feature name that is given here corresponds // to the resulting feature object. Have a look at the top-level object description // for more details on the specific meaning. Feature param.Field[[]UserSchemaOperationListParamsFeature] `query:"feature"` // Filter results to only include the specified hosts. Host param.Field[[]string] `query:"host"` // Filter results to only include the specified HTTP methods. Method param.Field[[]string] `query:"method"` // Filter results by whether operations exist in API Shield Endpoint Management or // not. `new` will just return operations from the schema that do not exist in API // Shield Endpoint Management. `existing` will just return operations from the // schema that already exist in API Shield Endpoint Management. OperationStatus param.Field[UserSchemaOperationListParamsOperationStatus] `query:"operation_status"` // Page number of paginated results. Page param.Field[int64] `query:"page"` // Maximum number of results per page. PerPage param.Field[int64] `query:"per_page"` }
func (UserSchemaOperationListParams) URLQuery ¶
func (r UserSchemaOperationListParams) URLQuery() (v url.Values)
URLQuery serializes UserSchemaOperationListParams's query parameters as `url.Values`.
type UserSchemaOperationListParamsFeature ¶
type UserSchemaOperationListParamsFeature string
const ( UserSchemaOperationListParamsFeatureThresholds UserSchemaOperationListParamsFeature = "thresholds" UserSchemaOperationListParamsFeatureParameterSchemas UserSchemaOperationListParamsFeature = "parameter_schemas" UserSchemaOperationListParamsFeatureSchemaInfo UserSchemaOperationListParamsFeature = "schema_info" )
func (UserSchemaOperationListParamsFeature) IsKnown ¶
func (r UserSchemaOperationListParamsFeature) IsKnown() bool
type UserSchemaOperationListParamsOperationStatus ¶
type UserSchemaOperationListParamsOperationStatus string
Filter results by whether operations exist in API Shield Endpoint Management or not. `new` will just return operations from the schema that do not exist in API Shield Endpoint Management. `existing` will just return operations from the schema that already exist in API Shield Endpoint Management.
const ( UserSchemaOperationListParamsOperationStatusNew UserSchemaOperationListParamsOperationStatus = "new" UserSchemaOperationListParamsOperationStatusExisting UserSchemaOperationListParamsOperationStatus = "existing" )
func (UserSchemaOperationListParamsOperationStatus) IsKnown ¶
func (r UserSchemaOperationListParamsOperationStatus) IsKnown() bool
type UserSchemaOperationListResponse ¶
type UserSchemaOperationListResponse struct { // The endpoint which can contain path parameter templates in curly braces, each // will be replaced from left to right with {varN}, starting with {var1}, during // insertion. This will further be Cloudflare-normalized upon insertion. See: // https://developers.cloudflare.com/rules/normalization/how-it-works/. Endpoint string `json:"endpoint,required" format:"uri-template"` // RFC3986-compliant host. Host string `json:"host,required" format:"hostname"` // The HTTP method used to access the endpoint. Method UserSchemaOperationListResponseMethod `json:"method,required"` // This field can have the runtime type of // [UserSchemaOperationListResponseAPIShieldOperationFeatures]. Features interface{} `json:"features"` LastUpdated time.Time `json:"last_updated" format:"date-time"` // UUID OperationID string `json:"operation_id"` JSON userSchemaOperationListResponseJSON `json:"-"` // contains filtered or unexported fields }
func (UserSchemaOperationListResponse) AsUnion ¶
func (r UserSchemaOperationListResponse) AsUnion() UserSchemaOperationListResponseUnion
AsUnion returns a UserSchemaOperationListResponseUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are api_gateway.UserSchemaOperationListResponseAPIShieldOperation, api_gateway.UserSchemaOperationListResponseAPIShieldBasicOperation.
func (*UserSchemaOperationListResponse) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponse) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldBasicOperation ¶
type UserSchemaOperationListResponseAPIShieldBasicOperation struct { // The endpoint which can contain path parameter templates in curly braces, each // will be replaced from left to right with {varN}, starting with {var1}, during // insertion. This will further be Cloudflare-normalized upon insertion. See: // https://developers.cloudflare.com/rules/normalization/how-it-works/. Endpoint string `json:"endpoint,required" format:"uri-template"` // RFC3986-compliant host. Host string `json:"host,required" format:"hostname"` // The HTTP method used to access the endpoint. Method UserSchemaOperationListResponseAPIShieldBasicOperationMethod `json:"method,required"` JSON userSchemaOperationListResponseAPIShieldBasicOperationJSON `json:"-"` }
func (*UserSchemaOperationListResponseAPIShieldBasicOperation) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldBasicOperation) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldBasicOperationMethod ¶
type UserSchemaOperationListResponseAPIShieldBasicOperationMethod string
The HTTP method used to access the endpoint.
const ( UserSchemaOperationListResponseAPIShieldBasicOperationMethodGet UserSchemaOperationListResponseAPIShieldBasicOperationMethod = "GET" UserSchemaOperationListResponseAPIShieldBasicOperationMethodPost UserSchemaOperationListResponseAPIShieldBasicOperationMethod = "POST" UserSchemaOperationListResponseAPIShieldBasicOperationMethodHead UserSchemaOperationListResponseAPIShieldBasicOperationMethod = "HEAD" UserSchemaOperationListResponseAPIShieldBasicOperationMethodOptions UserSchemaOperationListResponseAPIShieldBasicOperationMethod = "OPTIONS" UserSchemaOperationListResponseAPIShieldBasicOperationMethodPut UserSchemaOperationListResponseAPIShieldBasicOperationMethod = "PUT" UserSchemaOperationListResponseAPIShieldBasicOperationMethodDelete UserSchemaOperationListResponseAPIShieldBasicOperationMethod = "DELETE" UserSchemaOperationListResponseAPIShieldBasicOperationMethodConnect UserSchemaOperationListResponseAPIShieldBasicOperationMethod = "CONNECT" UserSchemaOperationListResponseAPIShieldBasicOperationMethodPatch UserSchemaOperationListResponseAPIShieldBasicOperationMethod = "PATCH" UserSchemaOperationListResponseAPIShieldBasicOperationMethodTrace UserSchemaOperationListResponseAPIShieldBasicOperationMethod = "TRACE" )
func (UserSchemaOperationListResponseAPIShieldBasicOperationMethod) IsKnown ¶
func (r UserSchemaOperationListResponseAPIShieldBasicOperationMethod) IsKnown() bool
type UserSchemaOperationListResponseAPIShieldOperation ¶
type UserSchemaOperationListResponseAPIShieldOperation struct { // The endpoint which can contain path parameter templates in curly braces, each // will be replaced from left to right with {varN}, starting with {var1}, during // insertion. This will further be Cloudflare-normalized upon insertion. See: // https://developers.cloudflare.com/rules/normalization/how-it-works/. Endpoint string `json:"endpoint,required" format:"uri-template"` // RFC3986-compliant host. Host string `json:"host,required" format:"hostname"` LastUpdated time.Time `json:"last_updated,required" format:"date-time"` // The HTTP method used to access the endpoint. Method UserSchemaOperationListResponseAPIShieldOperationMethod `json:"method,required"` // UUID OperationID string `json:"operation_id,required"` Features UserSchemaOperationListResponseAPIShieldOperationFeatures `json:"features"` JSON userSchemaOperationListResponseAPIShieldOperationJSON `json:"-"` }
func (*UserSchemaOperationListResponseAPIShieldOperation) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldOperation) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldOperationFeatures ¶
type UserSchemaOperationListResponseAPIShieldOperationFeatures struct { // This field can have the runtime type of // [UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting]. APIRouting interface{} `json:"api_routing"` // This field can have the runtime type of // [UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals]. ConfidenceIntervals interface{} `json:"confidence_intervals"` // This field can have the runtime type of // [UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas]. ParameterSchemas interface{} `json:"parameter_schemas"` // This field can have the runtime type of // [UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo]. SchemaInfo interface{} `json:"schema_info"` // This field can have the runtime type of // [UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholdsThresholds]. Thresholds interface{} `json:"thresholds"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesJSON `json:"-"` // contains filtered or unexported fields }
func (UserSchemaOperationListResponseAPIShieldOperationFeatures) AsUnion ¶
func (r UserSchemaOperationListResponseAPIShieldOperationFeatures) AsUnion() UserSchemaOperationListResponseAPIShieldOperationFeaturesUnion
AsUnion returns a UserSchemaOperationListResponseAPIShieldOperationFeaturesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are api_gateway.UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholds, api_gateway.UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemas, api_gateway.UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRouting, api_gateway.UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervals, api_gateway.UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfo.
func (*UserSchemaOperationListResponseAPIShieldOperationFeatures) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldOperationFeatures) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRouting ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRouting struct { // API Routing settings on endpoint. APIRouting UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting `json:"api_routing"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRoutingJSON `json:"-"` }
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRouting) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRouting) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting struct { LastUpdated time.Time `json:"last_updated" format:"date-time"` // Target route. Route string `json:"route"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRoutingAPIRoutingJSON `json:"-"` }
API Routing settings on endpoint.
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervals ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervals struct { ConfidenceIntervals UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals `json:"confidence_intervals"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsJSON `json:"-"` }
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervals) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervals) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals struct { LastUpdated time.Time `json:"last_updated" format:"date-time"` SuggestedThreshold UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold `json:"suggested_threshold"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsJSON `json:"-"` }
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold struct { ConfidenceIntervals UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals `json:"confidence_intervals"` // Suggested threshold. Mean float64 `json:"mean"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdJSON `json:"-"` }
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals struct { // Upper and lower bound for percentile estimate P90 UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 `json:"p90"` // Upper and lower bound for percentile estimate P95 UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 `json:"p95"` // Upper and lower bound for percentile estimate P99 UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 `json:"p99"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsJSON `json:"-"` }
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals) UnmarshalJSON ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 struct { // Lower bound for percentile estimate Lower float64 `json:"lower"` // Upper bound for percentile estimate Upper float64 `json:"upper"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90JSON `json:"-"` }
Upper and lower bound for percentile estimate
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90) UnmarshalJSON ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 struct { // Lower bound for percentile estimate Lower float64 `json:"lower"` // Upper bound for percentile estimate Upper float64 `json:"upper"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95JSON `json:"-"` }
Upper and lower bound for percentile estimate
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95) UnmarshalJSON ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 struct { // Lower bound for percentile estimate Lower float64 `json:"lower"` // Upper bound for percentile estimate Upper float64 `json:"upper"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99JSON `json:"-"` }
Upper and lower bound for percentile estimate
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99) UnmarshalJSON ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemas ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemas struct { ParameterSchemas UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas `json:"parameter_schemas,required"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasJSON `json:"-"` }
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemas) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemas) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas struct { LastUpdated time.Time `json:"last_updated" format:"date-time"` // An operation schema object containing a response. ParameterSchemas UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas `json:"parameter_schemas"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasJSON `json:"-"` }
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas struct { // An array containing the learned parameter schemas. Parameters []interface{} `json:"parameters"` // An empty response object. This field is required to yield a valid operation // schema. Responses interface{} `json:"responses,nullable"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemasJSON `json:"-"` }
An operation schema object containing a response.
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfo ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfo struct { SchemaInfo UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo `json:"schema_info"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoJSON `json:"-"` }
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfo) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfo) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo struct { // Schema active on endpoint. ActiveSchema UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema `json:"active_schema"` // True if a Cloudflare-provided learned schema is available for this endpoint. LearnedAvailable bool `json:"learned_available"` // Action taken on requests failing validation. MitigationAction UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction `json:"mitigation_action,nullable"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoJSON `json:"-"` }
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema struct { // UUID ID string `json:"id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // True if schema is Cloudflare-provided. IsLearned bool `json:"is_learned"` // Schema file name. Name string `json:"name"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchemaJSON `json:"-"` }
Schema active on endpoint.
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction string
Action taken on requests failing validation.
const ( UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationActionNone UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction = "none" UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationActionLog UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction = "log" UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationActionBlock UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoMitigationAction = "block" )
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholds ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholds struct { Thresholds UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholdsThresholds `json:"thresholds"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholdsJSON `json:"-"` }
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholds) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholds) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholdsThresholds ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholdsThresholds struct { // The total number of auth-ids seen across this calculation. AuthIDTokens int64 `json:"auth_id_tokens"` // The number of data points used for the threshold suggestion calculation. DataPoints int64 `json:"data_points"` LastUpdated time.Time `json:"last_updated" format:"date-time"` // The p50 quantile of requests (in period_seconds). P50 int64 `json:"p50"` // The p90 quantile of requests (in period_seconds). P90 int64 `json:"p90"` // The p99 quantile of requests (in period_seconds). P99 int64 `json:"p99"` // The period over which this threshold is suggested. PeriodSeconds int64 `json:"period_seconds"` // The estimated number of requests covered by these calculations. Requests int64 `json:"requests"` // The suggested threshold in requests done by the same auth_id or period_seconds. SuggestedThreshold int64 `json:"suggested_threshold"` JSON userSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholdsThresholdsJSON `json:"-"` }
func (*UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholdsThresholds) UnmarshalJSON ¶
func (r *UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholdsThresholds) UnmarshalJSON(data []byte) (err error)
type UserSchemaOperationListResponseAPIShieldOperationFeaturesUnion ¶
type UserSchemaOperationListResponseAPIShieldOperationFeaturesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by api_gateway.UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureThresholds, api_gateway.UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureParameterSchemas, api_gateway.UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureAPIRouting, api_gateway.UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureConfidenceIntervals or api_gateway.UserSchemaOperationListResponseAPIShieldOperationFeaturesAPIShieldOperationFeatureSchemaInfo.
type UserSchemaOperationListResponseAPIShieldOperationMethod ¶
type UserSchemaOperationListResponseAPIShieldOperationMethod string
The HTTP method used to access the endpoint.
const ( UserSchemaOperationListResponseAPIShieldOperationMethodGet UserSchemaOperationListResponseAPIShieldOperationMethod = "GET" UserSchemaOperationListResponseAPIShieldOperationMethodPost UserSchemaOperationListResponseAPIShieldOperationMethod = "POST" UserSchemaOperationListResponseAPIShieldOperationMethodHead UserSchemaOperationListResponseAPIShieldOperationMethod = "HEAD" UserSchemaOperationListResponseAPIShieldOperationMethodOptions UserSchemaOperationListResponseAPIShieldOperationMethod = "OPTIONS" UserSchemaOperationListResponseAPIShieldOperationMethodPut UserSchemaOperationListResponseAPIShieldOperationMethod = "PUT" UserSchemaOperationListResponseAPIShieldOperationMethodDelete UserSchemaOperationListResponseAPIShieldOperationMethod = "DELETE" UserSchemaOperationListResponseAPIShieldOperationMethodConnect UserSchemaOperationListResponseAPIShieldOperationMethod = "CONNECT" UserSchemaOperationListResponseAPIShieldOperationMethodPatch UserSchemaOperationListResponseAPIShieldOperationMethod = "PATCH" UserSchemaOperationListResponseAPIShieldOperationMethodTrace UserSchemaOperationListResponseAPIShieldOperationMethod = "TRACE" )
func (UserSchemaOperationListResponseAPIShieldOperationMethod) IsKnown ¶
func (r UserSchemaOperationListResponseAPIShieldOperationMethod) IsKnown() bool
type UserSchemaOperationListResponseMethod ¶
type UserSchemaOperationListResponseMethod string
The HTTP method used to access the endpoint.
const ( UserSchemaOperationListResponseMethodGet UserSchemaOperationListResponseMethod = "GET" UserSchemaOperationListResponseMethodPost UserSchemaOperationListResponseMethod = "POST" UserSchemaOperationListResponseMethodHead UserSchemaOperationListResponseMethod = "HEAD" UserSchemaOperationListResponseMethodOptions UserSchemaOperationListResponseMethod = "OPTIONS" UserSchemaOperationListResponseMethodPut UserSchemaOperationListResponseMethod = "PUT" UserSchemaOperationListResponseMethodDelete UserSchemaOperationListResponseMethod = "DELETE" UserSchemaOperationListResponseMethodConnect UserSchemaOperationListResponseMethod = "CONNECT" UserSchemaOperationListResponseMethodPatch UserSchemaOperationListResponseMethod = "PATCH" UserSchemaOperationListResponseMethodTrace UserSchemaOperationListResponseMethod = "TRACE" )
func (UserSchemaOperationListResponseMethod) IsKnown ¶
func (r UserSchemaOperationListResponseMethod) IsKnown() bool
type UserSchemaOperationListResponseUnion ¶
type UserSchemaOperationListResponseUnion interface {
// contains filtered or unexported methods
}
Union satisfied by api_gateway.UserSchemaOperationListResponseAPIShieldOperation or api_gateway.UserSchemaOperationListResponseAPIShieldBasicOperation.
type UserSchemaOperationService ¶
type UserSchemaOperationService struct {
Options []option.RequestOption
}
UserSchemaOperationService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewUserSchemaOperationService method instead.
func NewUserSchemaOperationService ¶
func NewUserSchemaOperationService(opts ...option.RequestOption) (r *UserSchemaOperationService)
NewUserSchemaOperationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*UserSchemaOperationService) List ¶
func (r *UserSchemaOperationService) List(ctx context.Context, schemaID string, params UserSchemaOperationListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[UserSchemaOperationListResponse], err error)
Retrieves all operations from the schema. Operations that already exist in API Shield Endpoint Management will be returned as full operations.
func (*UserSchemaOperationService) ListAutoPaging ¶
func (r *UserSchemaOperationService) ListAutoPaging(ctx context.Context, schemaID string, params UserSchemaOperationListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[UserSchemaOperationListResponse]
Retrieves all operations from the schema. Operations that already exist in API Shield Endpoint Management will be returned as full operations.
type UserSchemaService ¶
type UserSchemaService struct { Options []option.RequestOption Operations *UserSchemaOperationService Hosts *UserSchemaHostService }
UserSchemaService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewUserSchemaService method instead.
func NewUserSchemaService ¶
func NewUserSchemaService(opts ...option.RequestOption) (r *UserSchemaService)
NewUserSchemaService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*UserSchemaService) Delete ¶
func (r *UserSchemaService) Delete(ctx context.Context, schemaID string, body UserSchemaDeleteParams, opts ...option.RequestOption) (res *UserSchemaDeleteResponse, err error)
Delete a schema
func (*UserSchemaService) Edit ¶
func (r *UserSchemaService) Edit(ctx context.Context, schemaID string, params UserSchemaEditParams, opts ...option.RequestOption) (res *PublicSchema, err error)
Enable validation for a schema
func (*UserSchemaService) Get ¶
func (r *UserSchemaService) Get(ctx context.Context, schemaID string, params UserSchemaGetParams, opts ...option.RequestOption) (res *PublicSchema, err error)
Retrieve information about a specific schema on a zone
func (*UserSchemaService) List ¶
func (r *UserSchemaService) List(ctx context.Context, params UserSchemaListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[PublicSchema], err error)
Retrieve information about all schemas on a zone
func (*UserSchemaService) ListAutoPaging ¶
func (r *UserSchemaService) ListAutoPaging(ctx context.Context, params UserSchemaListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[PublicSchema]
Retrieve information about all schemas on a zone
func (*UserSchemaService) New ¶
func (r *UserSchemaService) New(ctx context.Context, params UserSchemaNewParams, opts ...option.RequestOption) (res *SchemaUpload, err error)
Upload a schema to a zone