Documentation
¶
Index ¶
- Constants
- type ASN
- type ASNParam
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type BlockRule
- type BlockRuleAction
- type BlockRuleActionParameters
- type BlockRuleActionParametersParam
- type BlockRuleActionParametersResponse
- type BlockRuleActionParametersResponseParam
- type BlockRuleExposedCredentialCheck
- type BlockRuleExposedCredentialCheckParam
- type BlockRuleParam
- type BlockRuleRatelimit
- type BlockRuleRatelimitParam
- type CertificateCA
- type CertificateRequestType
- type CloudflareTunnel
- type CloudflareTunnelConfigSrc
- type CloudflareTunnelConnection
- type CloudflareTunnelStatus
- type CloudflareTunnelTunType
- type CompressResponseRule
- type CompressResponseRuleAction
- type CompressResponseRuleActionParameters
- type CompressResponseRuleActionParametersAlgorithm
- type CompressResponseRuleActionParametersAlgorithmParam
- type CompressResponseRuleActionParametersAlgorithmsName
- type CompressResponseRuleActionParametersParam
- type CompressResponseRuleExposedCredentialCheck
- type CompressResponseRuleExposedCredentialCheckParam
- type CompressResponseRuleParam
- type CompressResponseRuleRatelimit
- type CompressResponseRuleRatelimitParam
- type DDoSDynamicRule
- type DDoSDynamicRuleAction
- type DDoSDynamicRuleExposedCredentialCheck
- type DDoSDynamicRuleExposedCredentialCheckJSON
- type DDoSDynamicRuleExposedCredentialCheckParam
- type DDoSDynamicRuleJSON
- type DDoSDynamicRuleParam
- type DDoSDynamicRuleRatelimit
- type DDoSDynamicRuleRatelimitJSON
- type DDoSDynamicRuleRatelimitParam
- type Error
- type ErrorData
- type ErrorDataSource
- type ExecuteRule
- type ExecuteRuleAction
- type ExecuteRuleActionParameters
- type ExecuteRuleActionParametersMatchedData
- type ExecuteRuleActionParametersMatchedDataParam
- type ExecuteRuleActionParametersOverrides
- type ExecuteRuleActionParametersOverridesCategoriesSensitivityLevel
- type ExecuteRuleActionParametersOverridesCategory
- type ExecuteRuleActionParametersOverridesCategoryParam
- type ExecuteRuleActionParametersOverridesParam
- type ExecuteRuleActionParametersOverridesRule
- type ExecuteRuleActionParametersOverridesRuleParam
- type ExecuteRuleActionParametersOverridesRulesSensitivityLevel
- type ExecuteRuleActionParametersOverridesSensitivityLevel
- type ExecuteRuleActionParametersParam
- type ExecuteRuleExposedCredentialCheck
- type ExecuteRuleExposedCredentialCheckParam
- type ExecuteRuleParam
- type ExecuteRuleRatelimit
- type ExecuteRuleRatelimitParam
- type ForceConnectionCloseRule
- type ForceConnectionCloseRuleAction
- type ForceConnectionCloseRuleExposedCredentialCheck
- type ForceConnectionCloseRuleExposedCredentialCheckParam
- type ForceConnectionCloseRuleParam
- type ForceConnectionCloseRuleRatelimit
- type ForceConnectionCloseRuleRatelimitParam
- type Kind
- type LogCustomFieldRule
- type LogCustomFieldRuleAction
- type LogCustomFieldRuleActionParameters
- type LogCustomFieldRuleActionParametersCookieField
- type LogCustomFieldRuleActionParametersCookieFieldParam
- type LogCustomFieldRuleActionParametersParam
- type LogCustomFieldRuleActionParametersRawResponseField
- type LogCustomFieldRuleActionParametersRawResponseFieldParam
- type LogCustomFieldRuleActionParametersRequestField
- type LogCustomFieldRuleActionParametersRequestFieldParam
- type LogCustomFieldRuleActionParametersResponseField
- type LogCustomFieldRuleActionParametersResponseFieldParam
- type LogCustomFieldRuleActionParametersTransformedRequestField
- type LogCustomFieldRuleActionParametersTransformedRequestFieldParam
- type LogCustomFieldRuleExposedCredentialCheck
- type LogCustomFieldRuleExposedCredentialCheckParam
- type LogCustomFieldRuleParam
- type LogCustomFieldRuleRatelimit
- type LogCustomFieldRuleRatelimitParam
- type LogRule
- type LogRuleAction
- type LogRuleExposedCredentialCheck
- type LogRuleExposedCredentialCheckParam
- type LogRuleParam
- type LogRuleRatelimit
- type LogRuleRatelimitParam
- type Logging
- type LoggingParam
- type ManagedChallengeRule
- type ManagedChallengeRuleAction
- type ManagedChallengeRuleExposedCredentialCheck
- type ManagedChallengeRuleExposedCredentialCheckParam
- type ManagedChallengeRuleParam
- type ManagedChallengeRuleRatelimit
- type ManagedChallengeRuleRatelimitParam
- type Member
- type MemberPoliciesAccess
- type MemberPoliciesPermissionGroup
- type MemberPoliciesPermissionGroupsMeta
- type MemberPoliciesResourceGroup
- type MemberPoliciesResourceGroupsMeta
- type MemberPoliciesResourceGroupsScope
- type MemberPoliciesResourceGroupsScopeObject
- type MemberPolicy
- type MemberStatus
- type MemberUser
- type Permission
- type PermissionGrant
- type PermissionGrantParam
- type Phase
- type PhaseGetParams
- type PhaseGetResponse
- type PhaseGetResponseEnvelope
- type PhaseGetResponseEnvelopeErrors
- type PhaseGetResponseEnvelopeErrorsSource
- type PhaseGetResponseEnvelopeMessages
- type PhaseGetResponseEnvelopeMessagesSource
- type PhaseGetResponseEnvelopeSuccess
- type PhaseGetResponseRule
- type PhaseGetResponseRulesAction
- type PhaseGetResponseRulesRulesetsChallengeRule
- type PhaseGetResponseRulesRulesetsChallengeRuleAction
- type PhaseGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck
- type PhaseGetResponseRulesRulesetsChallengeRuleRatelimit
- type PhaseGetResponseRulesRulesetsJSChallengeRule
- type PhaseGetResponseRulesRulesetsJSChallengeRuleAction
- type PhaseGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type PhaseGetResponseRulesRulesetsJSChallengeRuleRatelimit
- type PhaseGetResponseRulesRulesetsSetCacheControlRule
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleAction
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParameters
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type PhaseGetResponseRulesRulesetsSetCacheControlRuleRatelimit
- type PhaseGetResponseRulesRulesetsSetCacheTagsRule
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleAction
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParameters
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type PhaseGetResponseRulesRulesetsSetCacheTagsRuleRatelimit
- type PhaseGetResponseRulesUnion
- type PhaseService
- type PhaseUpdateParams
- type PhaseUpdateParamsRule
- type PhaseUpdateParamsRuleUnion
- type PhaseUpdateParamsRulesAction
- type PhaseUpdateParamsRulesRulesetsChallengeRule
- type PhaseUpdateParamsRulesRulesetsChallengeRuleAction
- type PhaseUpdateParamsRulesRulesetsChallengeRuleExposedCredentialCheck
- type PhaseUpdateParamsRulesRulesetsChallengeRuleRatelimit
- type PhaseUpdateParamsRulesRulesetsJSChallengeRule
- type PhaseUpdateParamsRulesRulesetsJSChallengeRuleAction
- type PhaseUpdateParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type PhaseUpdateParamsRulesRulesetsJSChallengeRuleRatelimit
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRule
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleAction
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParameters
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublic
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleRatelimit
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRule
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleAction
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParameters
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleRatelimit
- type PhaseUpdateResponse
- type PhaseUpdateResponseEnvelope
- type PhaseUpdateResponseEnvelopeErrors
- type PhaseUpdateResponseEnvelopeErrorsSource
- type PhaseUpdateResponseEnvelopeMessages
- type PhaseUpdateResponseEnvelopeMessagesSource
- type PhaseUpdateResponseEnvelopeSuccess
- type PhaseUpdateResponseRule
- type PhaseUpdateResponseRulesAction
- type PhaseUpdateResponseRulesRulesetsChallengeRule
- type PhaseUpdateResponseRulesRulesetsChallengeRuleAction
- type PhaseUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck
- type PhaseUpdateResponseRulesRulesetsChallengeRuleRatelimit
- type PhaseUpdateResponseRulesRulesetsJSChallengeRule
- type PhaseUpdateResponseRulesRulesetsJSChallengeRuleAction
- type PhaseUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type PhaseUpdateResponseRulesRulesetsJSChallengeRuleRatelimit
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRule
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleAction
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParameters
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleRatelimit
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRule
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleAction
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimit
- type PhaseUpdateResponseRulesUnion
- type PhaseVersionGetParams
- type PhaseVersionGetResponse
- type PhaseVersionGetResponseEnvelope
- type PhaseVersionGetResponseEnvelopeErrors
- type PhaseVersionGetResponseEnvelopeErrorsSource
- type PhaseVersionGetResponseEnvelopeMessages
- type PhaseVersionGetResponseEnvelopeMessagesSource
- type PhaseVersionGetResponseEnvelopeSuccess
- type PhaseVersionGetResponseRule
- type PhaseVersionGetResponseRulesAction
- type PhaseVersionGetResponseRulesRulesetsChallengeRule
- type PhaseVersionGetResponseRulesRulesetsChallengeRuleAction
- type PhaseVersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck
- type PhaseVersionGetResponseRulesRulesetsChallengeRuleRatelimit
- type PhaseVersionGetResponseRulesRulesetsJSChallengeRule
- type PhaseVersionGetResponseRulesRulesetsJSChallengeRuleAction
- type PhaseVersionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type PhaseVersionGetResponseRulesRulesetsJSChallengeRuleRatelimit
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRule
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleAction
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParameters
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleRatelimit
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRule
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleAction
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleRatelimit
- type PhaseVersionGetResponseRulesUnion
- type PhaseVersionListParams
- type PhaseVersionListResponse
- type PhaseVersionService
- func (r *PhaseVersionService) Get(ctx context.Context, rulesetPhase Phase, rulesetVersion string, ...) (res *PhaseVersionGetResponse, err error)
- func (r *PhaseVersionService) List(ctx context.Context, rulesetPhase Phase, query PhaseVersionListParams, ...) (res *pagination.SinglePage[PhaseVersionListResponse], err error)
- func (r *PhaseVersionService) ListAutoPaging(ctx context.Context, rulesetPhase Phase, query PhaseVersionListParams, ...) *pagination.SinglePageAutoPager[PhaseVersionListResponse]
- type RatePlan
- type RatePlanID
- type RatePlanParam
- type RedirectRule
- type RedirectRuleAction
- type RedirectRuleActionParameters
- type RedirectRuleActionParametersFromList
- type RedirectRuleActionParametersFromListParam
- type RedirectRuleActionParametersFromValue
- type RedirectRuleActionParametersFromValueParam
- type RedirectRuleActionParametersFromValueStatusCode
- type RedirectRuleActionParametersFromValueTargetURL
- type RedirectRuleActionParametersFromValueTargetURLParam
- type RedirectRuleActionParametersParam
- type RedirectRuleExposedCredentialCheck
- type RedirectRuleExposedCredentialCheckParam
- type RedirectRuleParam
- type RedirectRuleRatelimit
- type RedirectRuleRatelimitParam
- type ResponseInfo
- type ResponseInfoSource
- type RewriteRule
- type RewriteRuleAction
- type RewriteRuleActionParameters
- type RewriteRuleActionParametersHeader
- type RewriteRuleActionParametersHeaderParam
- type RewriteRuleActionParametersHeadersAddDynamicHeader
- type RewriteRuleActionParametersHeadersAddDynamicHeaderOperation
- type RewriteRuleActionParametersHeadersAddDynamicHeaderParam
- type RewriteRuleActionParametersHeadersAddStaticHeader
- type RewriteRuleActionParametersHeadersAddStaticHeaderOperation
- type RewriteRuleActionParametersHeadersAddStaticHeaderParam
- type RewriteRuleActionParametersHeadersOperation
- type RewriteRuleActionParametersHeadersRemoveHeader
- type RewriteRuleActionParametersHeadersRemoveHeaderOperation
- type RewriteRuleActionParametersHeadersRemoveHeaderParam
- type RewriteRuleActionParametersHeadersSetDynamicHeader
- type RewriteRuleActionParametersHeadersSetDynamicHeaderOperation
- type RewriteRuleActionParametersHeadersSetDynamicHeaderParam
- type RewriteRuleActionParametersHeadersSetStaticHeader
- type RewriteRuleActionParametersHeadersSetStaticHeaderOperation
- type RewriteRuleActionParametersHeadersSetStaticHeaderParam
- type RewriteRuleActionParametersHeadersUnion
- type RewriteRuleActionParametersHeadersUnionParam
- type RewriteRuleActionParametersParam
- type RewriteRuleActionParametersURI
- type RewriteRuleActionParametersURIParam
- type RewriteRuleActionParametersURIURIPath
- type RewriteRuleActionParametersURIURIPathParam
- type RewriteRuleActionParametersURIURIPathPath
- type RewriteRuleActionParametersURIURIPathPathParam
- type RewriteRuleActionParametersURIURIQuery
- type RewriteRuleActionParametersURIURIQueryParam
- type RewriteRuleActionParametersURIURIQueryQuery
- type RewriteRuleActionParametersURIURIQueryQueryParam
- type RewriteRuleActionParametersURIUnion
- type RewriteRuleActionParametersURIUnionParam
- type RewriteRuleExposedCredentialCheck
- type RewriteRuleExposedCredentialCheckParam
- type RewriteRuleParam
- type RewriteRuleRatelimit
- type RewriteRuleRatelimitParam
- type Role
- type RoleParam
- type RolePermissions
- type RolePermissionsParam
- type RouteRule
- type RouteRuleAction
- type RouteRuleActionParameters
- type RouteRuleActionParametersOrigin
- type RouteRuleActionParametersOriginParam
- type RouteRuleActionParametersParam
- type RouteRuleActionParametersSNI
- type RouteRuleActionParametersSNIParam
- type RouteRuleExposedCredentialCheck
- type RouteRuleExposedCredentialCheckParam
- type RouteRuleParam
- type RouteRuleRatelimit
- type RouteRuleRatelimitParam
- type RuleDeleteParams
- type RuleDeleteResponse
- type RuleDeleteResponseEnvelope
- type RuleDeleteResponseEnvelopeErrors
- type RuleDeleteResponseEnvelopeErrorsSource
- type RuleDeleteResponseEnvelopeMessages
- type RuleDeleteResponseEnvelopeMessagesSource
- type RuleDeleteResponseEnvelopeSuccess
- type RuleDeleteResponseRule
- type RuleDeleteResponseRulesAction
- type RuleDeleteResponseRulesRulesetsChallengeRule
- type RuleDeleteResponseRulesRulesetsChallengeRuleAction
- type RuleDeleteResponseRulesRulesetsChallengeRuleExposedCredentialCheck
- type RuleDeleteResponseRulesRulesetsChallengeRuleRatelimit
- type RuleDeleteResponseRulesRulesetsJSChallengeRule
- type RuleDeleteResponseRulesRulesetsJSChallengeRuleAction
- type RuleDeleteResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type RuleDeleteResponseRulesRulesetsJSChallengeRuleRatelimit
- type RuleDeleteResponseRulesRulesetsSetCacheControlRule
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleAction
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParameters
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublic
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type RuleDeleteResponseRulesRulesetsSetCacheControlRuleRatelimit
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRule
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleAction
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParameters
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleRatelimit
- type RuleDeleteResponseRulesUnion
- type RuleEditParams
- type RuleEditParamsBody
- type RuleEditParamsBodyAction
- type RuleEditParamsBodyBlockRule
- type RuleEditParamsBodyBlockRulePosition
- type RuleEditParamsBodyBlockRulePositionAfterPosition
- type RuleEditParamsBodyBlockRulePositionBeforePosition
- type RuleEditParamsBodyBlockRulePositionIndexPosition
- type RuleEditParamsBodyBlockRulePositionUnion
- type RuleEditParamsBodyChallengeRule
- type RuleEditParamsBodyChallengeRuleAction
- type RuleEditParamsBodyChallengeRuleExposedCredentialCheck
- type RuleEditParamsBodyChallengeRulePosition
- type RuleEditParamsBodyChallengeRulePositionAfterPosition
- type RuleEditParamsBodyChallengeRulePositionBeforePosition
- type RuleEditParamsBodyChallengeRulePositionIndexPosition
- type RuleEditParamsBodyChallengeRulePositionUnion
- type RuleEditParamsBodyChallengeRuleRatelimit
- type RuleEditParamsBodyDDoSDynamicRule
- type RuleEditParamsBodyDDoSDynamicRulePosition
- type RuleEditParamsBodyDDoSDynamicRulePositionAfterPosition
- type RuleEditParamsBodyDDoSDynamicRulePositionBeforePosition
- type RuleEditParamsBodyDDoSDynamicRulePositionIndexPosition
- type RuleEditParamsBodyDDoSDynamicRulePositionUnion
- type RuleEditParamsBodyExecuteRule
- type RuleEditParamsBodyExecuteRulePosition
- type RuleEditParamsBodyExecuteRulePositionAfterPosition
- type RuleEditParamsBodyExecuteRulePositionBeforePosition
- type RuleEditParamsBodyExecuteRulePositionIndexPosition
- type RuleEditParamsBodyExecuteRulePositionUnion
- type RuleEditParamsBodyForceConnectionCloseRule
- type RuleEditParamsBodyForceConnectionCloseRulePosition
- type RuleEditParamsBodyForceConnectionCloseRulePositionAfterPosition
- type RuleEditParamsBodyForceConnectionCloseRulePositionBeforePosition
- type RuleEditParamsBodyForceConnectionCloseRulePositionIndexPosition
- type RuleEditParamsBodyForceConnectionCloseRulePositionUnion
- type RuleEditParamsBodyJavaScriptChallengeRule
- type RuleEditParamsBodyJavaScriptChallengeRuleAction
- type RuleEditParamsBodyJavaScriptChallengeRuleExposedCredentialCheck
- type RuleEditParamsBodyJavaScriptChallengeRulePosition
- type RuleEditParamsBodyJavaScriptChallengeRulePositionAfterPosition
- type RuleEditParamsBodyJavaScriptChallengeRulePositionBeforePosition
- type RuleEditParamsBodyJavaScriptChallengeRulePositionIndexPosition
- type RuleEditParamsBodyJavaScriptChallengeRulePositionUnion
- type RuleEditParamsBodyJavaScriptChallengeRuleRatelimit
- type RuleEditParamsBodyLogCustomFieldRule
- type RuleEditParamsBodyLogCustomFieldRulePosition
- type RuleEditParamsBodyLogCustomFieldRulePositionAfterPosition
- type RuleEditParamsBodyLogCustomFieldRulePositionBeforePosition
- type RuleEditParamsBodyLogCustomFieldRulePositionIndexPosition
- type RuleEditParamsBodyLogCustomFieldRulePositionUnion
- type RuleEditParamsBodyLogRule
- type RuleEditParamsBodyLogRulePosition
- type RuleEditParamsBodyLogRulePositionAfterPosition
- type RuleEditParamsBodyLogRulePositionBeforePosition
- type RuleEditParamsBodyLogRulePositionIndexPosition
- type RuleEditParamsBodyLogRulePositionUnion
- type RuleEditParamsBodyManagedChallengeRule
- type RuleEditParamsBodyManagedChallengeRulePosition
- type RuleEditParamsBodyManagedChallengeRulePositionAfterPosition
- type RuleEditParamsBodyManagedChallengeRulePositionBeforePosition
- type RuleEditParamsBodyManagedChallengeRulePositionIndexPosition
- type RuleEditParamsBodyManagedChallengeRulePositionUnion
- type RuleEditParamsBodyRedirectRule
- type RuleEditParamsBodyRedirectRulePosition
- type RuleEditParamsBodyRedirectRulePositionAfterPosition
- type RuleEditParamsBodyRedirectRulePositionBeforePosition
- type RuleEditParamsBodyRedirectRulePositionIndexPosition
- type RuleEditParamsBodyRedirectRulePositionUnion
- type RuleEditParamsBodyResponseCompressionRule
- type RuleEditParamsBodyResponseCompressionRulePosition
- type RuleEditParamsBodyResponseCompressionRulePositionAfterPosition
- type RuleEditParamsBodyResponseCompressionRulePositionBeforePosition
- type RuleEditParamsBodyResponseCompressionRulePositionIndexPosition
- type RuleEditParamsBodyResponseCompressionRulePositionUnion
- type RuleEditParamsBodyRewriteRule
- type RuleEditParamsBodyRewriteRulePosition
- type RuleEditParamsBodyRewriteRulePositionAfterPosition
- type RuleEditParamsBodyRewriteRulePositionBeforePosition
- type RuleEditParamsBodyRewriteRulePositionIndexPosition
- type RuleEditParamsBodyRewriteRulePositionUnion
- type RuleEditParamsBodyRouteRule
- type RuleEditParamsBodyRouteRulePosition
- type RuleEditParamsBodyRouteRulePositionAfterPosition
- type RuleEditParamsBodyRouteRulePositionBeforePosition
- type RuleEditParamsBodyRouteRulePositionIndexPosition
- type RuleEditParamsBodyRouteRulePositionUnion
- type RuleEditParamsBodyScoreRule
- type RuleEditParamsBodyScoreRulePosition
- type RuleEditParamsBodyScoreRulePositionAfterPosition
- type RuleEditParamsBodyScoreRulePositionBeforePosition
- type RuleEditParamsBodyScoreRulePositionIndexPosition
- type RuleEditParamsBodyScoreRulePositionUnion
- type RuleEditParamsBodyServeErrorRule
- type RuleEditParamsBodyServeErrorRulePosition
- type RuleEditParamsBodyServeErrorRulePositionAfterPosition
- type RuleEditParamsBodyServeErrorRulePositionBeforePosition
- type RuleEditParamsBodyServeErrorRulePositionIndexPosition
- type RuleEditParamsBodyServeErrorRulePositionUnion
- type RuleEditParamsBodySetCacheControlRule
- type RuleEditParamsBodySetCacheControlRuleAction
- type RuleEditParamsBodySetCacheControlRuleActionParameters
- type RuleEditParamsBodySetCacheControlRuleActionParametersImmutable
- type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableSetDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableUnion
- type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAge
- type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeUnion
- type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidate
- type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateUnion
- type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstand
- type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandUnion
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoCache
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheSetDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheUnion
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoStore
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreSetDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreUnion
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransform
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformSetDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformUnion
- type RuleEditParamsBodySetCacheControlRuleActionParametersPrivate
- type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateSetDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateUnion
- type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidate
- type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateUnion
- type RuleEditParamsBodySetCacheControlRuleActionParametersPublic
- type RuleEditParamsBodySetCacheControlRuleActionParametersPublicOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersPublicRemoveDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersPublicSetDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersPublicUnion
- type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxage
- type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageSetDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageUnion
- type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfError
- type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorUnion
- type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidate
- type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type RuleEditParamsBodySetCacheControlRuleExposedCredentialCheck
- type RuleEditParamsBodySetCacheControlRulePosition
- type RuleEditParamsBodySetCacheControlRulePositionAfterPosition
- type RuleEditParamsBodySetCacheControlRulePositionBeforePosition
- type RuleEditParamsBodySetCacheControlRulePositionIndexPosition
- type RuleEditParamsBodySetCacheControlRulePositionUnion
- type RuleEditParamsBodySetCacheControlRuleRatelimit
- type RuleEditParamsBodySetCacheSettingsRule
- type RuleEditParamsBodySetCacheSettingsRulePosition
- type RuleEditParamsBodySetCacheSettingsRulePositionAfterPosition
- type RuleEditParamsBodySetCacheSettingsRulePositionBeforePosition
- type RuleEditParamsBodySetCacheSettingsRulePositionIndexPosition
- type RuleEditParamsBodySetCacheSettingsRulePositionUnion
- type RuleEditParamsBodySetCacheTagsRule
- type RuleEditParamsBodySetCacheTagsRuleAction
- type RuleEditParamsBodySetCacheTagsRuleActionParameters
- type RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpression
- type RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValues
- type RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type RuleEditParamsBodySetCacheTagsRuleActionParametersOperation
- type RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpression
- type RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValues
- type RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type RuleEditParamsBodySetCacheTagsRuleActionParametersUnion
- type RuleEditParamsBodySetCacheTagsRuleExposedCredentialCheck
- type RuleEditParamsBodySetCacheTagsRulePosition
- type RuleEditParamsBodySetCacheTagsRulePositionAfterPosition
- type RuleEditParamsBodySetCacheTagsRulePositionBeforePosition
- type RuleEditParamsBodySetCacheTagsRulePositionIndexPosition
- type RuleEditParamsBodySetCacheTagsRulePositionUnion
- type RuleEditParamsBodySetCacheTagsRuleRatelimit
- type RuleEditParamsBodySetConfigurationRule
- type RuleEditParamsBodySetConfigurationRulePosition
- type RuleEditParamsBodySetConfigurationRulePositionAfterPosition
- type RuleEditParamsBodySetConfigurationRulePositionBeforePosition
- type RuleEditParamsBodySetConfigurationRulePositionIndexPosition
- type RuleEditParamsBodySetConfigurationRulePositionUnion
- type RuleEditParamsBodySkipRule
- type RuleEditParamsBodySkipRulePosition
- type RuleEditParamsBodySkipRulePositionAfterPosition
- type RuleEditParamsBodySkipRulePositionBeforePosition
- type RuleEditParamsBodySkipRulePositionIndexPosition
- type RuleEditParamsBodySkipRulePositionUnion
- type RuleEditParamsBodyUnion
- type RuleEditResponse
- type RuleEditResponseEnvelope
- type RuleEditResponseEnvelopeErrors
- type RuleEditResponseEnvelopeErrorsSource
- type RuleEditResponseEnvelopeMessages
- type RuleEditResponseEnvelopeMessagesSource
- type RuleEditResponseEnvelopeSuccess
- type RuleEditResponseRule
- type RuleEditResponseRulesAction
- type RuleEditResponseRulesRulesetsChallengeRule
- type RuleEditResponseRulesRulesetsChallengeRuleAction
- type RuleEditResponseRulesRulesetsChallengeRuleExposedCredentialCheck
- type RuleEditResponseRulesRulesetsChallengeRuleRatelimit
- type RuleEditResponseRulesRulesetsJSChallengeRule
- type RuleEditResponseRulesRulesetsJSChallengeRuleAction
- type RuleEditResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type RuleEditResponseRulesRulesetsJSChallengeRuleRatelimit
- type RuleEditResponseRulesRulesetsSetCacheControlRule
- type RuleEditResponseRulesRulesetsSetCacheControlRuleAction
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParameters
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublic
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type RuleEditResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type RuleEditResponseRulesRulesetsSetCacheControlRuleRatelimit
- type RuleEditResponseRulesRulesetsSetCacheTagsRule
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleAction
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParameters
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type RuleEditResponseRulesRulesetsSetCacheTagsRuleRatelimit
- type RuleEditResponseRulesUnion
- type RuleNewParams
- type RuleNewParamsBody
- type RuleNewParamsBodyAction
- type RuleNewParamsBodyBlockRule
- type RuleNewParamsBodyBlockRulePosition
- type RuleNewParamsBodyBlockRulePositionAfterPosition
- type RuleNewParamsBodyBlockRulePositionBeforePosition
- type RuleNewParamsBodyBlockRulePositionIndexPosition
- type RuleNewParamsBodyBlockRulePositionUnion
- type RuleNewParamsBodyChallengeRule
- type RuleNewParamsBodyChallengeRuleAction
- type RuleNewParamsBodyChallengeRuleExposedCredentialCheck
- type RuleNewParamsBodyChallengeRulePosition
- type RuleNewParamsBodyChallengeRulePositionAfterPosition
- type RuleNewParamsBodyChallengeRulePositionBeforePosition
- type RuleNewParamsBodyChallengeRulePositionIndexPosition
- type RuleNewParamsBodyChallengeRulePositionUnion
- type RuleNewParamsBodyChallengeRuleRatelimit
- type RuleNewParamsBodyDDoSDynamicRule
- type RuleNewParamsBodyDDoSDynamicRulePosition
- type RuleNewParamsBodyDDoSDynamicRulePositionAfterPosition
- type RuleNewParamsBodyDDoSDynamicRulePositionBeforePosition
- type RuleNewParamsBodyDDoSDynamicRulePositionIndexPosition
- type RuleNewParamsBodyDDoSDynamicRulePositionUnion
- type RuleNewParamsBodyExecuteRule
- type RuleNewParamsBodyExecuteRulePosition
- type RuleNewParamsBodyExecuteRulePositionAfterPosition
- type RuleNewParamsBodyExecuteRulePositionBeforePosition
- type RuleNewParamsBodyExecuteRulePositionIndexPosition
- type RuleNewParamsBodyExecuteRulePositionUnion
- type RuleNewParamsBodyForceConnectionCloseRule
- type RuleNewParamsBodyForceConnectionCloseRulePosition
- type RuleNewParamsBodyForceConnectionCloseRulePositionAfterPosition
- type RuleNewParamsBodyForceConnectionCloseRulePositionBeforePosition
- type RuleNewParamsBodyForceConnectionCloseRulePositionIndexPosition
- type RuleNewParamsBodyForceConnectionCloseRulePositionUnion
- type RuleNewParamsBodyJavaScriptChallengeRule
- type RuleNewParamsBodyJavaScriptChallengeRuleAction
- type RuleNewParamsBodyJavaScriptChallengeRuleExposedCredentialCheck
- type RuleNewParamsBodyJavaScriptChallengeRulePosition
- type RuleNewParamsBodyJavaScriptChallengeRulePositionAfterPosition
- type RuleNewParamsBodyJavaScriptChallengeRulePositionBeforePosition
- type RuleNewParamsBodyJavaScriptChallengeRulePositionIndexPosition
- type RuleNewParamsBodyJavaScriptChallengeRulePositionUnion
- type RuleNewParamsBodyJavaScriptChallengeRuleRatelimit
- type RuleNewParamsBodyLogCustomFieldRule
- type RuleNewParamsBodyLogCustomFieldRulePosition
- type RuleNewParamsBodyLogCustomFieldRulePositionAfterPosition
- type RuleNewParamsBodyLogCustomFieldRulePositionBeforePosition
- type RuleNewParamsBodyLogCustomFieldRulePositionIndexPosition
- type RuleNewParamsBodyLogCustomFieldRulePositionUnion
- type RuleNewParamsBodyLogRule
- type RuleNewParamsBodyLogRulePosition
- type RuleNewParamsBodyLogRulePositionAfterPosition
- type RuleNewParamsBodyLogRulePositionBeforePosition
- type RuleNewParamsBodyLogRulePositionIndexPosition
- type RuleNewParamsBodyLogRulePositionUnion
- type RuleNewParamsBodyManagedChallengeRule
- type RuleNewParamsBodyManagedChallengeRulePosition
- type RuleNewParamsBodyManagedChallengeRulePositionAfterPosition
- type RuleNewParamsBodyManagedChallengeRulePositionBeforePosition
- type RuleNewParamsBodyManagedChallengeRulePositionIndexPosition
- type RuleNewParamsBodyManagedChallengeRulePositionUnion
- type RuleNewParamsBodyRedirectRule
- type RuleNewParamsBodyRedirectRulePosition
- type RuleNewParamsBodyRedirectRulePositionAfterPosition
- type RuleNewParamsBodyRedirectRulePositionBeforePosition
- type RuleNewParamsBodyRedirectRulePositionIndexPosition
- type RuleNewParamsBodyRedirectRulePositionUnion
- type RuleNewParamsBodyResponseCompressionRule
- type RuleNewParamsBodyResponseCompressionRulePosition
- type RuleNewParamsBodyResponseCompressionRulePositionAfterPosition
- type RuleNewParamsBodyResponseCompressionRulePositionBeforePosition
- type RuleNewParamsBodyResponseCompressionRulePositionIndexPosition
- type RuleNewParamsBodyResponseCompressionRulePositionUnion
- type RuleNewParamsBodyRewriteRule
- type RuleNewParamsBodyRewriteRulePosition
- type RuleNewParamsBodyRewriteRulePositionAfterPosition
- type RuleNewParamsBodyRewriteRulePositionBeforePosition
- type RuleNewParamsBodyRewriteRulePositionIndexPosition
- type RuleNewParamsBodyRewriteRulePositionUnion
- type RuleNewParamsBodyRouteRule
- type RuleNewParamsBodyRouteRulePosition
- type RuleNewParamsBodyRouteRulePositionAfterPosition
- type RuleNewParamsBodyRouteRulePositionBeforePosition
- type RuleNewParamsBodyRouteRulePositionIndexPosition
- type RuleNewParamsBodyRouteRulePositionUnion
- type RuleNewParamsBodyScoreRule
- type RuleNewParamsBodyScoreRulePosition
- type RuleNewParamsBodyScoreRulePositionAfterPosition
- type RuleNewParamsBodyScoreRulePositionBeforePosition
- type RuleNewParamsBodyScoreRulePositionIndexPosition
- type RuleNewParamsBodyScoreRulePositionUnion
- type RuleNewParamsBodyServeErrorRule
- type RuleNewParamsBodyServeErrorRulePosition
- type RuleNewParamsBodyServeErrorRulePositionAfterPosition
- type RuleNewParamsBodyServeErrorRulePositionBeforePosition
- type RuleNewParamsBodyServeErrorRulePositionIndexPosition
- type RuleNewParamsBodyServeErrorRulePositionUnion
- type RuleNewParamsBodySetCacheControlRule
- type RuleNewParamsBodySetCacheControlRuleAction
- type RuleNewParamsBodySetCacheControlRuleActionParameters
- type RuleNewParamsBodySetCacheControlRuleActionParametersImmutable
- type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableSetDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableUnion
- type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAge
- type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeUnion
- type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidate
- type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateUnion
- type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstand
- type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandUnion
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoCache
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheSetDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheUnion
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoStore
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreSetDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreUnion
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransform
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformSetDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformUnion
- type RuleNewParamsBodySetCacheControlRuleActionParametersPrivate
- type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateSetDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateUnion
- type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidate
- type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateUnion
- type RuleNewParamsBodySetCacheControlRuleActionParametersPublic
- type RuleNewParamsBodySetCacheControlRuleActionParametersPublicOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersPublicRemoveDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersPublicSetDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersPublicUnion
- type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxage
- type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageSetDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageUnion
- type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfError
- type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorUnion
- type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidate
- type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type RuleNewParamsBodySetCacheControlRuleExposedCredentialCheck
- type RuleNewParamsBodySetCacheControlRulePosition
- type RuleNewParamsBodySetCacheControlRulePositionAfterPosition
- type RuleNewParamsBodySetCacheControlRulePositionBeforePosition
- type RuleNewParamsBodySetCacheControlRulePositionIndexPosition
- type RuleNewParamsBodySetCacheControlRulePositionUnion
- type RuleNewParamsBodySetCacheControlRuleRatelimit
- type RuleNewParamsBodySetCacheSettingsRule
- type RuleNewParamsBodySetCacheSettingsRulePosition
- type RuleNewParamsBodySetCacheSettingsRulePositionAfterPosition
- type RuleNewParamsBodySetCacheSettingsRulePositionBeforePosition
- type RuleNewParamsBodySetCacheSettingsRulePositionIndexPosition
- type RuleNewParamsBodySetCacheSettingsRulePositionUnion
- type RuleNewParamsBodySetCacheTagsRule
- type RuleNewParamsBodySetCacheTagsRuleAction
- type RuleNewParamsBodySetCacheTagsRuleActionParameters
- type RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpression
- type RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValues
- type RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type RuleNewParamsBodySetCacheTagsRuleActionParametersOperation
- type RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpression
- type RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValues
- type RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type RuleNewParamsBodySetCacheTagsRuleActionParametersUnion
- type RuleNewParamsBodySetCacheTagsRuleExposedCredentialCheck
- type RuleNewParamsBodySetCacheTagsRulePosition
- type RuleNewParamsBodySetCacheTagsRulePositionAfterPosition
- type RuleNewParamsBodySetCacheTagsRulePositionBeforePosition
- type RuleNewParamsBodySetCacheTagsRulePositionIndexPosition
- type RuleNewParamsBodySetCacheTagsRulePositionUnion
- type RuleNewParamsBodySetCacheTagsRuleRatelimit
- type RuleNewParamsBodySetConfigurationRule
- type RuleNewParamsBodySetConfigurationRulePosition
- type RuleNewParamsBodySetConfigurationRulePositionAfterPosition
- type RuleNewParamsBodySetConfigurationRulePositionBeforePosition
- type RuleNewParamsBodySetConfigurationRulePositionIndexPosition
- type RuleNewParamsBodySetConfigurationRulePositionUnion
- type RuleNewParamsBodySkipRule
- type RuleNewParamsBodySkipRulePosition
- type RuleNewParamsBodySkipRulePositionAfterPosition
- type RuleNewParamsBodySkipRulePositionBeforePosition
- type RuleNewParamsBodySkipRulePositionIndexPosition
- type RuleNewParamsBodySkipRulePositionUnion
- type RuleNewParamsBodyUnion
- type RuleNewResponse
- type RuleNewResponseEnvelope
- type RuleNewResponseEnvelopeErrors
- type RuleNewResponseEnvelopeErrorsSource
- type RuleNewResponseEnvelopeMessages
- type RuleNewResponseEnvelopeMessagesSource
- type RuleNewResponseEnvelopeSuccess
- type RuleNewResponseRule
- type RuleNewResponseRulesAction
- type RuleNewResponseRulesRulesetsChallengeRule
- type RuleNewResponseRulesRulesetsChallengeRuleAction
- type RuleNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck
- type RuleNewResponseRulesRulesetsChallengeRuleRatelimit
- type RuleNewResponseRulesRulesetsJSChallengeRule
- type RuleNewResponseRulesRulesetsJSChallengeRuleAction
- type RuleNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type RuleNewResponseRulesRulesetsJSChallengeRuleRatelimit
- type RuleNewResponseRulesRulesetsSetCacheControlRule
- type RuleNewResponseRulesRulesetsSetCacheControlRuleAction
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParameters
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type RuleNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type RuleNewResponseRulesRulesetsSetCacheControlRuleRatelimit
- type RuleNewResponseRulesRulesetsSetCacheTagsRule
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleAction
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParameters
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type RuleNewResponseRulesRulesetsSetCacheTagsRuleRatelimit
- type RuleNewResponseRulesUnion
- type RuleService
- func (r *RuleService) Delete(ctx context.Context, rulesetID string, ruleID string, body RuleDeleteParams, ...) (res *RuleDeleteResponse, err error)
- func (r *RuleService) Edit(ctx context.Context, rulesetID string, ruleID string, params RuleEditParams, ...) (res *RuleEditResponse, err error)
- func (r *RuleService) New(ctx context.Context, rulesetID string, params RuleNewParams, ...) (res *RuleNewResponse, err error)
- type RulesetDeleteParams
- type RulesetGetParams
- type RulesetGetResponse
- type RulesetGetResponseEnvelope
- type RulesetGetResponseEnvelopeErrors
- type RulesetGetResponseEnvelopeErrorsSource
- type RulesetGetResponseEnvelopeMessages
- type RulesetGetResponseEnvelopeMessagesSource
- type RulesetGetResponseEnvelopeSuccess
- type RulesetGetResponseRule
- type RulesetGetResponseRulesAction
- type RulesetGetResponseRulesRulesetsChallengeRule
- type RulesetGetResponseRulesRulesetsChallengeRuleAction
- type RulesetGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck
- type RulesetGetResponseRulesRulesetsChallengeRuleRatelimit
- type RulesetGetResponseRulesRulesetsJSChallengeRule
- type RulesetGetResponseRulesRulesetsJSChallengeRuleAction
- type RulesetGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type RulesetGetResponseRulesRulesetsJSChallengeRuleRatelimit
- type RulesetGetResponseRulesRulesetsSetCacheControlRule
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleAction
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParameters
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type RulesetGetResponseRulesRulesetsSetCacheControlRuleRatelimit
- type RulesetGetResponseRulesRulesetsSetCacheTagsRule
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleAction
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParameters
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type RulesetGetResponseRulesRulesetsSetCacheTagsRuleRatelimit
- type RulesetGetResponseRulesUnion
- type RulesetListParams
- type RulesetListResponse
- type RulesetNewParams
- type RulesetNewParamsRule
- type RulesetNewParamsRuleUnion
- type RulesetNewParamsRulesAction
- type RulesetNewParamsRulesRulesetsChallengeRule
- type RulesetNewParamsRulesRulesetsChallengeRuleAction
- type RulesetNewParamsRulesRulesetsChallengeRuleExposedCredentialCheck
- type RulesetNewParamsRulesRulesetsChallengeRuleRatelimit
- type RulesetNewParamsRulesRulesetsJSChallengeRule
- type RulesetNewParamsRulesRulesetsJSChallengeRuleAction
- type RulesetNewParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type RulesetNewParamsRulesRulesetsJSChallengeRuleRatelimit
- type RulesetNewParamsRulesRulesetsSetCacheControlRule
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleAction
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParameters
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublic
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type RulesetNewParamsRulesRulesetsSetCacheControlRuleRatelimit
- type RulesetNewParamsRulesRulesetsSetCacheTagsRule
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleAction
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParameters
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type RulesetNewParamsRulesRulesetsSetCacheTagsRuleRatelimit
- type RulesetNewResponse
- type RulesetNewResponseEnvelope
- type RulesetNewResponseEnvelopeErrors
- type RulesetNewResponseEnvelopeErrorsSource
- type RulesetNewResponseEnvelopeMessages
- type RulesetNewResponseEnvelopeMessagesSource
- type RulesetNewResponseEnvelopeSuccess
- type RulesetNewResponseRule
- type RulesetNewResponseRulesAction
- type RulesetNewResponseRulesRulesetsChallengeRule
- type RulesetNewResponseRulesRulesetsChallengeRuleAction
- type RulesetNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck
- type RulesetNewResponseRulesRulesetsChallengeRuleRatelimit
- type RulesetNewResponseRulesRulesetsJSChallengeRule
- type RulesetNewResponseRulesRulesetsJSChallengeRuleAction
- type RulesetNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type RulesetNewResponseRulesRulesetsJSChallengeRuleRatelimit
- type RulesetNewResponseRulesRulesetsSetCacheControlRule
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleAction
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParameters
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type RulesetNewResponseRulesRulesetsSetCacheControlRuleRatelimit
- type RulesetNewResponseRulesRulesetsSetCacheTagsRule
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleAction
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParameters
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type RulesetNewResponseRulesRulesetsSetCacheTagsRuleRatelimit
- type RulesetNewResponseRulesUnion
- type RulesetService
- func (r *RulesetService) Delete(ctx context.Context, rulesetID string, body RulesetDeleteParams, ...) (err error)
- func (r *RulesetService) Get(ctx context.Context, rulesetID string, query RulesetGetParams, ...) (res *RulesetGetResponse, err error)
- func (r *RulesetService) List(ctx context.Context, params RulesetListParams, opts ...option.RequestOption) (res *pagination.CursorPagination[RulesetListResponse], err error)
- func (r *RulesetService) ListAutoPaging(ctx context.Context, params RulesetListParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[RulesetListResponse]
- func (r *RulesetService) New(ctx context.Context, params RulesetNewParams, opts ...option.RequestOption) (res *RulesetNewResponse, err error)
- func (r *RulesetService) Update(ctx context.Context, rulesetID string, params RulesetUpdateParams, ...) (res *RulesetUpdateResponse, err error)
- type RulesetUpdateParams
- type RulesetUpdateParamsRule
- type RulesetUpdateParamsRuleUnion
- type RulesetUpdateParamsRulesAction
- type RulesetUpdateParamsRulesRulesetsChallengeRule
- type RulesetUpdateParamsRulesRulesetsChallengeRuleAction
- type RulesetUpdateParamsRulesRulesetsChallengeRuleExposedCredentialCheck
- type RulesetUpdateParamsRulesRulesetsChallengeRuleRatelimit
- type RulesetUpdateParamsRulesRulesetsJSChallengeRule
- type RulesetUpdateParamsRulesRulesetsJSChallengeRuleAction
- type RulesetUpdateParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type RulesetUpdateParamsRulesRulesetsJSChallengeRuleRatelimit
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRule
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleAction
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParameters
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublic
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleRatelimit
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRule
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleAction
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParameters
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleRatelimit
- type RulesetUpdateResponse
- type RulesetUpdateResponseEnvelope
- type RulesetUpdateResponseEnvelopeErrors
- type RulesetUpdateResponseEnvelopeErrorsSource
- type RulesetUpdateResponseEnvelopeMessages
- type RulesetUpdateResponseEnvelopeMessagesSource
- type RulesetUpdateResponseEnvelopeSuccess
- type RulesetUpdateResponseRule
- type RulesetUpdateResponseRulesAction
- type RulesetUpdateResponseRulesRulesetsChallengeRule
- type RulesetUpdateResponseRulesRulesetsChallengeRuleAction
- type RulesetUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck
- type RulesetUpdateResponseRulesRulesetsChallengeRuleRatelimit
- type RulesetUpdateResponseRulesRulesetsJSChallengeRule
- type RulesetUpdateResponseRulesRulesetsJSChallengeRuleAction
- type RulesetUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type RulesetUpdateResponseRulesRulesetsJSChallengeRuleRatelimit
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRule
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleAction
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParameters
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleRatelimit
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRule
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleAction
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimit
- type RulesetUpdateResponseRulesUnion
- type ScoreRule
- type ScoreRuleAction
- type ScoreRuleActionParameters
- type ScoreRuleActionParametersParam
- type ScoreRuleExposedCredentialCheck
- type ScoreRuleExposedCredentialCheckParam
- type ScoreRuleParam
- type ScoreRuleRatelimit
- type ScoreRuleRatelimitParam
- type ServeErrorRule
- type ServeErrorRuleAction
- type ServeErrorRuleActionParameters
- type ServeErrorRuleActionParametersActionParametersAsset
- type ServeErrorRuleActionParametersActionParametersAssetContentType
- type ServeErrorRuleActionParametersActionParametersAssetParam
- type ServeErrorRuleActionParametersActionParametersContent
- type ServeErrorRuleActionParametersActionParametersContentContentType
- type ServeErrorRuleActionParametersActionParametersContentParam
- type ServeErrorRuleActionParametersContentType
- type ServeErrorRuleActionParametersParam
- type ServeErrorRuleActionParametersUnion
- type ServeErrorRuleActionParametersUnionParam
- type ServeErrorRuleExposedCredentialCheck
- type ServeErrorRuleExposedCredentialCheckParam
- type ServeErrorRuleParam
- type ServeErrorRuleRatelimit
- type ServeErrorRuleRatelimitParam
- type SetCacheSettingsRule
- type SetCacheSettingsRuleAction
- type SetCacheSettingsRuleActionParameters
- type SetCacheSettingsRuleActionParametersBrowserTTL
- type SetCacheSettingsRuleActionParametersBrowserTTLMode
- type SetCacheSettingsRuleActionParametersBrowserTTLParam
- type SetCacheSettingsRuleActionParametersCacheKey
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKey
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyCookie
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyCookieParam
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHeader
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHeaderParam
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHost
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHostParam
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyParam
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryString
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExclude
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeAll
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeParam
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringInclude
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeAll
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeParam
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringParam
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyUser
- type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyUserParam
- type SetCacheSettingsRuleActionParametersCacheKeyParam
- type SetCacheSettingsRuleActionParametersCacheReserve
- type SetCacheSettingsRuleActionParametersCacheReserveParam
- type SetCacheSettingsRuleActionParametersEdgeTTL
- type SetCacheSettingsRuleActionParametersEdgeTTLMode
- type SetCacheSettingsRuleActionParametersEdgeTTLParam
- type SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTL
- type SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLParam
- type SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRange
- type SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRangeParam
- type SetCacheSettingsRuleActionParametersParam
- type SetCacheSettingsRuleActionParametersServeStale
- type SetCacheSettingsRuleActionParametersServeStaleParam
- type SetCacheSettingsRuleActionParametersSharedDictionary
- type SetCacheSettingsRuleActionParametersSharedDictionaryParam
- type SetCacheSettingsRuleExposedCredentialCheck
- type SetCacheSettingsRuleExposedCredentialCheckParam
- type SetCacheSettingsRuleParam
- type SetCacheSettingsRuleRatelimit
- type SetCacheSettingsRuleRatelimitParam
- type SetConfigRule
- type SetConfigRuleAction
- type SetConfigRuleActionParameters
- type SetConfigRuleActionParametersAutominify
- type SetConfigRuleActionParametersAutominifyParam
- type SetConfigRuleActionParametersDisableApps
- type SetConfigRuleActionParametersDisablePayPerCrawl
- type SetConfigRuleActionParametersDisableRUM
- type SetConfigRuleActionParametersDisableZaraz
- type SetConfigRuleActionParametersParam
- type SetConfigRuleActionParametersPolish
- type SetConfigRuleActionParametersRequestBodyBuffering
- type SetConfigRuleActionParametersResponseBodyBuffering
- type SetConfigRuleActionParametersSSL
- type SetConfigRuleActionParametersSecurityLevel
- type SetConfigRuleExposedCredentialCheck
- type SetConfigRuleExposedCredentialCheckParam
- type SetConfigRuleParam
- type SetConfigRuleRatelimit
- type SetConfigRuleRatelimitParam
- type SkipRule
- type SkipRuleAction
- type SkipRuleActionParameters
- type SkipRuleActionParametersParam
- type SkipRuleActionParametersPhase
- type SkipRuleActionParametersProduct
- type SkipRuleActionParametersRuleset
- type SkipRuleExposedCredentialCheck
- type SkipRuleExposedCredentialCheckParam
- type SkipRuleParam
- type SkipRuleRatelimit
- type SkipRuleRatelimitParam
- 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 TokenPolicyResourcesIAMResourcesTypeObjectNested
- type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam
- type TokenPolicyResourcesIAMResourcesTypeObjectString
- type TokenPolicyResourcesIAMResourcesTypeObjectStringParam
- type TokenPolicyResourcesUnion
- type TokenPolicyResourcesUnionParam
- type TokenStatus
- type TokenValue
- type VersionDeleteParams
- type VersionGetParams
- type VersionGetResponse
- type VersionGetResponseEnvelope
- type VersionGetResponseEnvelopeErrors
- type VersionGetResponseEnvelopeErrorsSource
- type VersionGetResponseEnvelopeMessages
- type VersionGetResponseEnvelopeMessagesSource
- type VersionGetResponseEnvelopeSuccess
- type VersionGetResponseRule
- type VersionGetResponseRulesAction
- type VersionGetResponseRulesRulesetsChallengeRule
- type VersionGetResponseRulesRulesetsChallengeRuleAction
- type VersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck
- type VersionGetResponseRulesRulesetsChallengeRuleRatelimit
- type VersionGetResponseRulesRulesetsJSChallengeRule
- type VersionGetResponseRulesRulesetsJSChallengeRuleAction
- type VersionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type VersionGetResponseRulesRulesetsJSChallengeRuleRatelimit
- type VersionGetResponseRulesRulesetsSetCacheControlRule
- type VersionGetResponseRulesRulesetsSetCacheControlRuleAction
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParameters
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type VersionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type VersionGetResponseRulesRulesetsSetCacheControlRuleRatelimit
- type VersionGetResponseRulesRulesetsSetCacheTagsRule
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleAction
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type VersionGetResponseRulesRulesetsSetCacheTagsRuleRatelimit
- type VersionGetResponseRulesUnion
- type VersionListParams
- type VersionListResponse
- type VersionService
- func (r *VersionService) Delete(ctx context.Context, rulesetID string, rulesetVersion string, ...) (err error)
- func (r *VersionService) Get(ctx context.Context, rulesetID string, rulesetVersion string, ...) (res *VersionGetResponse, err error)
- func (r *VersionService) List(ctx context.Context, rulesetID string, query VersionListParams, ...) (res *pagination.SinglePage[VersionListResponse], err error)
- func (r *VersionService) ListAutoPaging(ctx context.Context, rulesetID string, query VersionListParams, ...) *pagination.SinglePageAutoPager[VersionListResponse]
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 CloudflareTunnelConfigSrcCloudflare = shared.CloudflareTunnelConfigSrcCloudflare
This is an alias to an internal value.
const CloudflareTunnelConfigSrcLocal = shared.CloudflareTunnelConfigSrcLocal
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 CloudflareTunnelTunTypeMagic = shared.CloudflareTunnelTunTypeMagic
This is an alias to an internal value.
const CloudflareTunnelTunTypeWARP = shared.CloudflareTunnelTunTypeWARP
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 RatePlanIDBusiness = shared.RatePlanIDBusiness
This is an alias to an internal value.
const RatePlanIDEnterprise = shared.RatePlanIDEnterprise
This is an alias to an internal value.
const RatePlanIDFree = shared.RatePlanIDFree
This is an alias to an internal value.
const RatePlanIDLite = shared.RatePlanIDLite
This is an alias to an internal value.
const RatePlanIDPartnersBusiness = shared.RatePlanIDPartnersBusiness
This is an alias to an internal value.
const RatePlanIDPartnersEnterprise = shared.RatePlanIDPartnersEnterprise
This is an alias to an internal value.
const RatePlanIDPartnersFree = shared.RatePlanIDPartnersFree
This is an alias to an internal value.
const RatePlanIDPartnersPro = shared.RatePlanIDPartnersPro
This is an alias to an internal value.
const RatePlanIDPro = shared.RatePlanIDPro
This is an alias to an internal value.
const RatePlanIDProPlus = shared.RatePlanIDProPlus
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 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 BlockRule ¶
type BlockRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action BlockRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters BlockRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck BlockRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit BlockRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON blockRuleJSON `json:"-"`
}
func (*BlockRule) UnmarshalJSON ¶
type BlockRuleAction ¶
type BlockRuleAction string
The action to perform when the rule matches.
const (
BlockRuleActionBlock BlockRuleAction = "block"
)
func (BlockRuleAction) IsKnown ¶
func (r BlockRuleAction) IsKnown() bool
type BlockRuleActionParameters ¶
type BlockRuleActionParameters struct {
// The response to show when the block is applied.
Response BlockRuleActionParametersResponse `json:"response"`
JSON blockRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*BlockRuleActionParameters) UnmarshalJSON ¶
func (r *BlockRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type BlockRuleActionParametersParam ¶
type BlockRuleActionParametersParam struct {
// The response to show when the block is applied.
Response param.Field[BlockRuleActionParametersResponseParam] `json:"response"`
}
The parameters configuring the rule's action.
func (BlockRuleActionParametersParam) MarshalJSON ¶
func (r BlockRuleActionParametersParam) MarshalJSON() (data []byte, err error)
type BlockRuleActionParametersResponse ¶
type BlockRuleActionParametersResponse struct {
// The content to return.
Content string `json:"content" api:"required"`
// The type of the content to return.
ContentType string `json:"content_type" api:"required"`
// The status code to return.
StatusCode int64 `json:"status_code" api:"required"`
JSON blockRuleActionParametersResponseJSON `json:"-"`
}
The response to show when the block is applied.
func (*BlockRuleActionParametersResponse) UnmarshalJSON ¶
func (r *BlockRuleActionParametersResponse) UnmarshalJSON(data []byte) (err error)
type BlockRuleActionParametersResponseParam ¶
type BlockRuleActionParametersResponseParam struct {
// The content to return.
Content param.Field[string] `json:"content" api:"required"`
// The type of the content to return.
ContentType param.Field[string] `json:"content_type" api:"required"`
// The status code to return.
StatusCode param.Field[int64] `json:"status_code" api:"required"`
}
The response to show when the block is applied.
func (BlockRuleActionParametersResponseParam) MarshalJSON ¶
func (r BlockRuleActionParametersResponseParam) MarshalJSON() (data []byte, err error)
type BlockRuleExposedCredentialCheck ¶
type BlockRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON blockRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*BlockRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *BlockRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type BlockRuleExposedCredentialCheckParam ¶
type BlockRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (BlockRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r BlockRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type BlockRuleParam ¶
type BlockRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[BlockRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[BlockRuleActionParametersParam] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[BlockRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[BlockRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (BlockRuleParam) MarshalJSON ¶
func (r BlockRuleParam) MarshalJSON() (data []byte, err error)
type BlockRuleRatelimit ¶
type BlockRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON blockRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*BlockRuleRatelimit) UnmarshalJSON ¶
func (r *BlockRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type BlockRuleRatelimitParam ¶
type BlockRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (BlockRuleRatelimitParam) MarshalJSON ¶
func (r BlockRuleRatelimitParam) MarshalJSON() (data []byte, err error)
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 CloudflareTunnelConfigSrc ¶
type CloudflareTunnelConfigSrc = shared.CloudflareTunnelConfigSrc
Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard.
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 CompressResponseRule ¶
type CompressResponseRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action CompressResponseRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters CompressResponseRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck CompressResponseRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit CompressResponseRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON compressResponseRuleJSON `json:"-"`
}
func (*CompressResponseRule) UnmarshalJSON ¶
func (r *CompressResponseRule) UnmarshalJSON(data []byte) (err error)
type CompressResponseRuleAction ¶
type CompressResponseRuleAction string
The action to perform when the rule matches.
const (
CompressResponseRuleActionCompressResponse CompressResponseRuleAction = "compress_response"
)
func (CompressResponseRuleAction) IsKnown ¶
func (r CompressResponseRuleAction) IsKnown() bool
type CompressResponseRuleActionParameters ¶
type CompressResponseRuleActionParameters struct {
// Custom order for compression algorithms.
Algorithms []CompressResponseRuleActionParametersAlgorithm `json:"algorithms" api:"required"`
JSON compressResponseRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*CompressResponseRuleActionParameters) UnmarshalJSON ¶
func (r *CompressResponseRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type CompressResponseRuleActionParametersAlgorithm ¶
type CompressResponseRuleActionParametersAlgorithm struct {
// Name of the compression algorithm to enable.
Name CompressResponseRuleActionParametersAlgorithmsName `json:"name"`
JSON compressResponseRuleActionParametersAlgorithmJSON `json:"-"`
}
Compression algorithm to enable.
func (*CompressResponseRuleActionParametersAlgorithm) UnmarshalJSON ¶
func (r *CompressResponseRuleActionParametersAlgorithm) UnmarshalJSON(data []byte) (err error)
type CompressResponseRuleActionParametersAlgorithmParam ¶
type CompressResponseRuleActionParametersAlgorithmParam struct {
// Name of the compression algorithm to enable.
Name param.Field[CompressResponseRuleActionParametersAlgorithmsName] `json:"name"`
}
Compression algorithm to enable.
func (CompressResponseRuleActionParametersAlgorithmParam) MarshalJSON ¶
func (r CompressResponseRuleActionParametersAlgorithmParam) MarshalJSON() (data []byte, err error)
type CompressResponseRuleActionParametersAlgorithmsName ¶
type CompressResponseRuleActionParametersAlgorithmsName string
Name of the compression algorithm to enable.
const ( CompressResponseRuleActionParametersAlgorithmsNameNone CompressResponseRuleActionParametersAlgorithmsName = "none" CompressResponseRuleActionParametersAlgorithmsNameAuto CompressResponseRuleActionParametersAlgorithmsName = "auto" CompressResponseRuleActionParametersAlgorithmsNameDefault CompressResponseRuleActionParametersAlgorithmsName = "default" CompressResponseRuleActionParametersAlgorithmsNameGzip CompressResponseRuleActionParametersAlgorithmsName = "gzip" CompressResponseRuleActionParametersAlgorithmsNameBrotli CompressResponseRuleActionParametersAlgorithmsName = "brotli" CompressResponseRuleActionParametersAlgorithmsNameZstd CompressResponseRuleActionParametersAlgorithmsName = "zstd" )
func (CompressResponseRuleActionParametersAlgorithmsName) IsKnown ¶
func (r CompressResponseRuleActionParametersAlgorithmsName) IsKnown() bool
type CompressResponseRuleActionParametersParam ¶
type CompressResponseRuleActionParametersParam struct {
// Custom order for compression algorithms.
Algorithms param.Field[[]CompressResponseRuleActionParametersAlgorithmParam] `json:"algorithms" api:"required"`
}
The parameters configuring the rule's action.
func (CompressResponseRuleActionParametersParam) MarshalJSON ¶
func (r CompressResponseRuleActionParametersParam) MarshalJSON() (data []byte, err error)
type CompressResponseRuleExposedCredentialCheck ¶
type CompressResponseRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON compressResponseRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*CompressResponseRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *CompressResponseRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type CompressResponseRuleExposedCredentialCheckParam ¶
type CompressResponseRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (CompressResponseRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r CompressResponseRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type CompressResponseRuleParam ¶
type CompressResponseRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[CompressResponseRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[CompressResponseRuleActionParametersParam] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[CompressResponseRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[CompressResponseRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (CompressResponseRuleParam) MarshalJSON ¶
func (r CompressResponseRuleParam) MarshalJSON() (data []byte, err error)
type CompressResponseRuleRatelimit ¶
type CompressResponseRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON compressResponseRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*CompressResponseRuleRatelimit) UnmarshalJSON ¶
func (r *CompressResponseRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type CompressResponseRuleRatelimitParam ¶
type CompressResponseRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (CompressResponseRuleRatelimitParam) MarshalJSON ¶
func (r CompressResponseRuleRatelimitParam) MarshalJSON() (data []byte, err error)
type DDoSDynamicRule ¶
type DDoSDynamicRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action DDoSDynamicRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck DDoSDynamicRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit DDoSDynamicRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON DDoSDynamicRuleJSON `json:"-"`
}
func (*DDoSDynamicRule) UnmarshalJSON ¶
func (r *DDoSDynamicRule) UnmarshalJSON(data []byte) (err error)
type DDoSDynamicRuleAction ¶
type DDoSDynamicRuleAction string
The action to perform when the rule matches.
const (
DDoSDynamicRuleActionDDoSDynamic DDoSDynamicRuleAction = "ddos_dynamic"
)
func (DDoSDynamicRuleAction) IsKnown ¶
func (r DDoSDynamicRuleAction) IsKnown() bool
type DDoSDynamicRuleExposedCredentialCheck ¶
type DDoSDynamicRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON DDoSDynamicRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*DDoSDynamicRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *DDoSDynamicRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type DDoSDynamicRuleExposedCredentialCheckJSON ¶
type DDoSDynamicRuleExposedCredentialCheckJSON struct {
PasswordExpression apijson.Field
UsernameExpression apijson.Field
ExtraFields map[string]apijson.Field
// contains filtered or unexported fields
}
DDoSDynamicRuleExposedCredentialCheckJSON contains the JSON metadata for the struct DDoSDynamicRuleExposedCredentialCheck
func (DDoSDynamicRuleExposedCredentialCheckJSON) RawJSON ¶
func (r DDoSDynamicRuleExposedCredentialCheckJSON) RawJSON() string
type DDoSDynamicRuleExposedCredentialCheckParam ¶
type DDoSDynamicRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (DDoSDynamicRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r DDoSDynamicRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type DDoSDynamicRuleJSON ¶
type DDoSDynamicRuleJSON struct {
LastUpdated apijson.Field
Version apijson.Field
ID apijson.Field
Action apijson.Field
ActionParameters apijson.Field
Categories apijson.Field
Description apijson.Field
Enabled apijson.Field
ExposedCredentialCheck apijson.Field
Expression apijson.Field
Logging apijson.Field
Ratelimit apijson.Field
Ref apijson.Field
ExtraFields map[string]apijson.Field
// contains filtered or unexported fields
}
DDoSDynamicRuleJSON contains the JSON metadata for the struct DDoSDynamicRule
func (DDoSDynamicRuleJSON) RawJSON ¶
func (r DDoSDynamicRuleJSON) RawJSON() string
type DDoSDynamicRuleParam ¶
type DDoSDynamicRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[DDoSDynamicRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[interface{}] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[DDoSDynamicRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[DDoSDynamicRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (DDoSDynamicRuleParam) MarshalJSON ¶
func (r DDoSDynamicRuleParam) MarshalJSON() (data []byte, err error)
type DDoSDynamicRuleRatelimit ¶
type DDoSDynamicRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON DDoSDynamicRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*DDoSDynamicRuleRatelimit) UnmarshalJSON ¶
func (r *DDoSDynamicRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type DDoSDynamicRuleRatelimitJSON ¶
type DDoSDynamicRuleRatelimitJSON struct {
Characteristics apijson.Field
Period apijson.Field
CountingExpression apijson.Field
MitigationTimeout apijson.Field
RequestsPerPeriod apijson.Field
RequestsToOrigin apijson.Field
ScorePerPeriod apijson.Field
ScoreResponseHeaderName apijson.Field
ExtraFields map[string]apijson.Field
// contains filtered or unexported fields
}
DDoSDynamicRuleRatelimitJSON contains the JSON metadata for the struct DDoSDynamicRuleRatelimit
func (DDoSDynamicRuleRatelimitJSON) RawJSON ¶
func (r DDoSDynamicRuleRatelimitJSON) RawJSON() string
type DDoSDynamicRuleRatelimitParam ¶
type DDoSDynamicRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (DDoSDynamicRuleRatelimitParam) MarshalJSON ¶
func (r DDoSDynamicRuleRatelimitParam) MarshalJSON() (data []byte, err error)
type ErrorDataSource ¶
type ErrorDataSource = shared.ErrorDataSource
This is an alias to an internal type.
type ExecuteRule ¶
type ExecuteRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action ExecuteRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters ExecuteRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck ExecuteRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit ExecuteRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON executeRuleJSON `json:"-"`
}
func (*ExecuteRule) UnmarshalJSON ¶
func (r *ExecuteRule) UnmarshalJSON(data []byte) (err error)
type ExecuteRuleAction ¶
type ExecuteRuleAction string
The action to perform when the rule matches.
const (
ExecuteRuleActionExecute ExecuteRuleAction = "execute"
)
func (ExecuteRuleAction) IsKnown ¶
func (r ExecuteRuleAction) IsKnown() bool
type ExecuteRuleActionParameters ¶
type ExecuteRuleActionParameters struct {
// The ID of the ruleset to execute.
ID string `json:"id" api:"required"`
// The configuration to use for matched data logging.
MatchedData ExecuteRuleActionParametersMatchedData `json:"matched_data"`
// A set of overrides to apply to the target ruleset.
Overrides ExecuteRuleActionParametersOverrides `json:"overrides"`
JSON executeRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*ExecuteRuleActionParameters) UnmarshalJSON ¶
func (r *ExecuteRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type ExecuteRuleActionParametersMatchedData ¶
type ExecuteRuleActionParametersMatchedData struct {
// The public key to encrypt matched data logs with.
PublicKey string `json:"public_key" api:"required"`
JSON executeRuleActionParametersMatchedDataJSON `json:"-"`
}
The configuration to use for matched data logging.
func (*ExecuteRuleActionParametersMatchedData) UnmarshalJSON ¶
func (r *ExecuteRuleActionParametersMatchedData) UnmarshalJSON(data []byte) (err error)
type ExecuteRuleActionParametersMatchedDataParam ¶
type ExecuteRuleActionParametersMatchedDataParam struct {
// The public key to encrypt matched data logs with.
PublicKey param.Field[string] `json:"public_key" api:"required"`
}
The configuration to use for matched data logging.
func (ExecuteRuleActionParametersMatchedDataParam) MarshalJSON ¶
func (r ExecuteRuleActionParametersMatchedDataParam) MarshalJSON() (data []byte, err error)
type ExecuteRuleActionParametersOverrides ¶
type ExecuteRuleActionParametersOverrides struct {
// An action to override all rules with. This option has lower precedence than rule
// and category overrides.
Action string `json:"action"`
// A list of category-level overrides. This option has the second-highest
// precedence after rule-level overrides.
Categories []ExecuteRuleActionParametersOverridesCategory `json:"categories"`
// Whether to enable execution of all rules. This option has lower precedence than
// rule and category overrides.
Enabled bool `json:"enabled"`
// A list of rule-level overrides. This option has the highest precedence.
Rules []ExecuteRuleActionParametersOverridesRule `json:"rules"`
// A sensitivity level to set for all rules. This option has lower precedence than
// rule and category overrides and is only applicable for DDoS phases.
SensitivityLevel ExecuteRuleActionParametersOverridesSensitivityLevel `json:"sensitivity_level"`
JSON executeRuleActionParametersOverridesJSON `json:"-"`
}
A set of overrides to apply to the target ruleset.
func (*ExecuteRuleActionParametersOverrides) UnmarshalJSON ¶
func (r *ExecuteRuleActionParametersOverrides) UnmarshalJSON(data []byte) (err error)
type ExecuteRuleActionParametersOverridesCategoriesSensitivityLevel ¶
type ExecuteRuleActionParametersOverridesCategoriesSensitivityLevel string
The sensitivity level to use for rules in the category. This option is only applicable for DDoS phases.
const ( ExecuteRuleActionParametersOverridesCategoriesSensitivityLevelDefault ExecuteRuleActionParametersOverridesCategoriesSensitivityLevel = "default" ExecuteRuleActionParametersOverridesCategoriesSensitivityLevelMedium ExecuteRuleActionParametersOverridesCategoriesSensitivityLevel = "medium" ExecuteRuleActionParametersOverridesCategoriesSensitivityLevelLow ExecuteRuleActionParametersOverridesCategoriesSensitivityLevel = "low" ExecuteRuleActionParametersOverridesCategoriesSensitivityLevelEoff ExecuteRuleActionParametersOverridesCategoriesSensitivityLevel = "eoff" )
func (ExecuteRuleActionParametersOverridesCategoriesSensitivityLevel) IsKnown ¶
func (r ExecuteRuleActionParametersOverridesCategoriesSensitivityLevel) IsKnown() bool
type ExecuteRuleActionParametersOverridesCategory ¶
type ExecuteRuleActionParametersOverridesCategory struct {
// The name of the category to override.
Category string `json:"category" api:"required"`
// The action to override rules in the category with.
Action string `json:"action"`
// Whether to enable execution of rules in the category.
Enabled bool `json:"enabled"`
// The sensitivity level to use for rules in the category. This option is only
// applicable for DDoS phases.
SensitivityLevel ExecuteRuleActionParametersOverridesCategoriesSensitivityLevel `json:"sensitivity_level"`
JSON executeRuleActionParametersOverridesCategoryJSON `json:"-"`
}
A category-level override.
func (*ExecuteRuleActionParametersOverridesCategory) UnmarshalJSON ¶
func (r *ExecuteRuleActionParametersOverridesCategory) UnmarshalJSON(data []byte) (err error)
type ExecuteRuleActionParametersOverridesCategoryParam ¶
type ExecuteRuleActionParametersOverridesCategoryParam struct {
// The name of the category to override.
Category param.Field[string] `json:"category" api:"required"`
// The action to override rules in the category with.
Action param.Field[string] `json:"action"`
// Whether to enable execution of rules in the category.
Enabled param.Field[bool] `json:"enabled"`
// The sensitivity level to use for rules in the category. This option is only
// applicable for DDoS phases.
SensitivityLevel param.Field[ExecuteRuleActionParametersOverridesCategoriesSensitivityLevel] `json:"sensitivity_level"`
}
A category-level override.
func (ExecuteRuleActionParametersOverridesCategoryParam) MarshalJSON ¶
func (r ExecuteRuleActionParametersOverridesCategoryParam) MarshalJSON() (data []byte, err error)
type ExecuteRuleActionParametersOverridesParam ¶
type ExecuteRuleActionParametersOverridesParam struct {
// An action to override all rules with. This option has lower precedence than rule
// and category overrides.
Action param.Field[string] `json:"action"`
// A list of category-level overrides. This option has the second-highest
// precedence after rule-level overrides.
Categories param.Field[[]ExecuteRuleActionParametersOverridesCategoryParam] `json:"categories"`
// Whether to enable execution of all rules. This option has lower precedence than
// rule and category overrides.
Enabled param.Field[bool] `json:"enabled"`
// A list of rule-level overrides. This option has the highest precedence.
Rules param.Field[[]ExecuteRuleActionParametersOverridesRuleParam] `json:"rules"`
// A sensitivity level to set for all rules. This option has lower precedence than
// rule and category overrides and is only applicable for DDoS phases.
SensitivityLevel param.Field[ExecuteRuleActionParametersOverridesSensitivityLevel] `json:"sensitivity_level"`
}
A set of overrides to apply to the target ruleset.
func (ExecuteRuleActionParametersOverridesParam) MarshalJSON ¶
func (r ExecuteRuleActionParametersOverridesParam) MarshalJSON() (data []byte, err error)
type ExecuteRuleActionParametersOverridesRule ¶
type ExecuteRuleActionParametersOverridesRule struct {
// The ID of the rule to override.
ID string `json:"id" api:"required"`
// The action to override the rule with.
Action string `json:"action"`
// Whether to enable execution of the rule.
Enabled bool `json:"enabled"`
// The score threshold to use for the rule.
ScoreThreshold int64 `json:"score_threshold"`
// The sensitivity level to use for the rule. This option is only applicable for
// DDoS phases.
SensitivityLevel ExecuteRuleActionParametersOverridesRulesSensitivityLevel `json:"sensitivity_level"`
JSON executeRuleActionParametersOverridesRuleJSON `json:"-"`
}
A rule-level override.
func (*ExecuteRuleActionParametersOverridesRule) UnmarshalJSON ¶
func (r *ExecuteRuleActionParametersOverridesRule) UnmarshalJSON(data []byte) (err error)
type ExecuteRuleActionParametersOverridesRuleParam ¶
type ExecuteRuleActionParametersOverridesRuleParam struct {
// The ID of the rule to override.
ID param.Field[string] `json:"id" api:"required"`
// The action to override the rule with.
Action param.Field[string] `json:"action"`
// Whether to enable execution of the rule.
Enabled param.Field[bool] `json:"enabled"`
// The score threshold to use for the rule.
ScoreThreshold param.Field[int64] `json:"score_threshold"`
// The sensitivity level to use for the rule. This option is only applicable for
// DDoS phases.
SensitivityLevel param.Field[ExecuteRuleActionParametersOverridesRulesSensitivityLevel] `json:"sensitivity_level"`
}
A rule-level override.
func (ExecuteRuleActionParametersOverridesRuleParam) MarshalJSON ¶
func (r ExecuteRuleActionParametersOverridesRuleParam) MarshalJSON() (data []byte, err error)
type ExecuteRuleActionParametersOverridesRulesSensitivityLevel ¶
type ExecuteRuleActionParametersOverridesRulesSensitivityLevel string
The sensitivity level to use for the rule. This option is only applicable for DDoS phases.
const ( ExecuteRuleActionParametersOverridesRulesSensitivityLevelDefault ExecuteRuleActionParametersOverridesRulesSensitivityLevel = "default" ExecuteRuleActionParametersOverridesRulesSensitivityLevelMedium ExecuteRuleActionParametersOverridesRulesSensitivityLevel = "medium" ExecuteRuleActionParametersOverridesRulesSensitivityLevelLow ExecuteRuleActionParametersOverridesRulesSensitivityLevel = "low" ExecuteRuleActionParametersOverridesRulesSensitivityLevelEoff ExecuteRuleActionParametersOverridesRulesSensitivityLevel = "eoff" )
func (ExecuteRuleActionParametersOverridesRulesSensitivityLevel) IsKnown ¶
func (r ExecuteRuleActionParametersOverridesRulesSensitivityLevel) IsKnown() bool
type ExecuteRuleActionParametersOverridesSensitivityLevel ¶
type ExecuteRuleActionParametersOverridesSensitivityLevel string
A sensitivity level to set for all rules. This option has lower precedence than rule and category overrides and is only applicable for DDoS phases.
const ( ExecuteRuleActionParametersOverridesSensitivityLevelDefault ExecuteRuleActionParametersOverridesSensitivityLevel = "default" ExecuteRuleActionParametersOverridesSensitivityLevelMedium ExecuteRuleActionParametersOverridesSensitivityLevel = "medium" ExecuteRuleActionParametersOverridesSensitivityLevelLow ExecuteRuleActionParametersOverridesSensitivityLevel = "low" ExecuteRuleActionParametersOverridesSensitivityLevelEoff ExecuteRuleActionParametersOverridesSensitivityLevel = "eoff" )
func (ExecuteRuleActionParametersOverridesSensitivityLevel) IsKnown ¶
func (r ExecuteRuleActionParametersOverridesSensitivityLevel) IsKnown() bool
type ExecuteRuleActionParametersParam ¶
type ExecuteRuleActionParametersParam struct {
// The ID of the ruleset to execute.
ID param.Field[string] `json:"id" api:"required"`
// The configuration to use for matched data logging.
MatchedData param.Field[ExecuteRuleActionParametersMatchedDataParam] `json:"matched_data"`
// A set of overrides to apply to the target ruleset.
Overrides param.Field[ExecuteRuleActionParametersOverridesParam] `json:"overrides"`
}
The parameters configuring the rule's action.
func (ExecuteRuleActionParametersParam) MarshalJSON ¶
func (r ExecuteRuleActionParametersParam) MarshalJSON() (data []byte, err error)
type ExecuteRuleExposedCredentialCheck ¶
type ExecuteRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON executeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*ExecuteRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *ExecuteRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type ExecuteRuleExposedCredentialCheckParam ¶
type ExecuteRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (ExecuteRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r ExecuteRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type ExecuteRuleParam ¶
type ExecuteRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[ExecuteRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[ExecuteRuleActionParametersParam] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[ExecuteRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[ExecuteRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (ExecuteRuleParam) MarshalJSON ¶
func (r ExecuteRuleParam) MarshalJSON() (data []byte, err error)
type ExecuteRuleRatelimit ¶
type ExecuteRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON executeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*ExecuteRuleRatelimit) UnmarshalJSON ¶
func (r *ExecuteRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type ExecuteRuleRatelimitParam ¶
type ExecuteRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (ExecuteRuleRatelimitParam) MarshalJSON ¶
func (r ExecuteRuleRatelimitParam) MarshalJSON() (data []byte, err error)
type ForceConnectionCloseRule ¶
type ForceConnectionCloseRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action ForceConnectionCloseRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck ForceConnectionCloseRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit ForceConnectionCloseRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON forceConnectionCloseRuleJSON `json:"-"`
}
func (*ForceConnectionCloseRule) UnmarshalJSON ¶
func (r *ForceConnectionCloseRule) UnmarshalJSON(data []byte) (err error)
type ForceConnectionCloseRuleAction ¶
type ForceConnectionCloseRuleAction string
The action to perform when the rule matches.
const (
ForceConnectionCloseRuleActionForceConnectionClose ForceConnectionCloseRuleAction = "force_connection_close"
)
func (ForceConnectionCloseRuleAction) IsKnown ¶
func (r ForceConnectionCloseRuleAction) IsKnown() bool
type ForceConnectionCloseRuleExposedCredentialCheck ¶
type ForceConnectionCloseRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON forceConnectionCloseRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*ForceConnectionCloseRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *ForceConnectionCloseRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type ForceConnectionCloseRuleExposedCredentialCheckParam ¶
type ForceConnectionCloseRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (ForceConnectionCloseRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r ForceConnectionCloseRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type ForceConnectionCloseRuleParam ¶
type ForceConnectionCloseRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[ForceConnectionCloseRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[interface{}] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[ForceConnectionCloseRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[ForceConnectionCloseRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (ForceConnectionCloseRuleParam) MarshalJSON ¶
func (r ForceConnectionCloseRuleParam) MarshalJSON() (data []byte, err error)
type ForceConnectionCloseRuleRatelimit ¶
type ForceConnectionCloseRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON forceConnectionCloseRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*ForceConnectionCloseRuleRatelimit) UnmarshalJSON ¶
func (r *ForceConnectionCloseRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type ForceConnectionCloseRuleRatelimitParam ¶
type ForceConnectionCloseRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (ForceConnectionCloseRuleRatelimitParam) MarshalJSON ¶
func (r ForceConnectionCloseRuleRatelimitParam) MarshalJSON() (data []byte, err error)
type LogCustomFieldRule ¶
type LogCustomFieldRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action LogCustomFieldRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters LogCustomFieldRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck LogCustomFieldRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit LogCustomFieldRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON logCustomFieldRuleJSON `json:"-"`
}
func (*LogCustomFieldRule) UnmarshalJSON ¶
func (r *LogCustomFieldRule) UnmarshalJSON(data []byte) (err error)
type LogCustomFieldRuleAction ¶
type LogCustomFieldRuleAction string
The action to perform when the rule matches.
const (
LogCustomFieldRuleActionLogCustomField LogCustomFieldRuleAction = "log_custom_field"
)
func (LogCustomFieldRuleAction) IsKnown ¶
func (r LogCustomFieldRuleAction) IsKnown() bool
type LogCustomFieldRuleActionParameters ¶
type LogCustomFieldRuleActionParameters struct {
// The cookie fields to log.
CookieFields []LogCustomFieldRuleActionParametersCookieField `json:"cookie_fields"`
// The raw response fields to log.
RawResponseFields []LogCustomFieldRuleActionParametersRawResponseField `json:"raw_response_fields"`
// The raw request fields to log.
RequestFields []LogCustomFieldRuleActionParametersRequestField `json:"request_fields"`
// The transformed response fields to log.
ResponseFields []LogCustomFieldRuleActionParametersResponseField `json:"response_fields"`
// The transformed request fields to log.
TransformedRequestFields []LogCustomFieldRuleActionParametersTransformedRequestField `json:"transformed_request_fields"`
JSON logCustomFieldRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*LogCustomFieldRuleActionParameters) UnmarshalJSON ¶
func (r *LogCustomFieldRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type LogCustomFieldRuleActionParametersCookieField ¶
type LogCustomFieldRuleActionParametersCookieField struct {
// The name of the cookie.
Name string `json:"name" api:"required"`
JSON logCustomFieldRuleActionParametersCookieFieldJSON `json:"-"`
}
The cookie field to log.
func (*LogCustomFieldRuleActionParametersCookieField) UnmarshalJSON ¶
func (r *LogCustomFieldRuleActionParametersCookieField) UnmarshalJSON(data []byte) (err error)
type LogCustomFieldRuleActionParametersCookieFieldParam ¶
type LogCustomFieldRuleActionParametersCookieFieldParam struct {
// The name of the cookie.
Name param.Field[string] `json:"name" api:"required"`
}
The cookie field to log.
func (LogCustomFieldRuleActionParametersCookieFieldParam) MarshalJSON ¶
func (r LogCustomFieldRuleActionParametersCookieFieldParam) MarshalJSON() (data []byte, err error)
type LogCustomFieldRuleActionParametersParam ¶
type LogCustomFieldRuleActionParametersParam struct {
// The cookie fields to log.
CookieFields param.Field[[]LogCustomFieldRuleActionParametersCookieFieldParam] `json:"cookie_fields"`
// The raw response fields to log.
RawResponseFields param.Field[[]LogCustomFieldRuleActionParametersRawResponseFieldParam] `json:"raw_response_fields"`
// The raw request fields to log.
RequestFields param.Field[[]LogCustomFieldRuleActionParametersRequestFieldParam] `json:"request_fields"`
// The transformed response fields to log.
ResponseFields param.Field[[]LogCustomFieldRuleActionParametersResponseFieldParam] `json:"response_fields"`
// The transformed request fields to log.
TransformedRequestFields param.Field[[]LogCustomFieldRuleActionParametersTransformedRequestFieldParam] `json:"transformed_request_fields"`
}
The parameters configuring the rule's action.
func (LogCustomFieldRuleActionParametersParam) MarshalJSON ¶
func (r LogCustomFieldRuleActionParametersParam) MarshalJSON() (data []byte, err error)
type LogCustomFieldRuleActionParametersRawResponseField ¶
type LogCustomFieldRuleActionParametersRawResponseField struct {
// The name of the response header.
Name string `json:"name" api:"required"`
// Whether to log duplicate values of the same header.
PreserveDuplicates bool `json:"preserve_duplicates"`
JSON logCustomFieldRuleActionParametersRawResponseFieldJSON `json:"-"`
}
The raw response field to log.
func (*LogCustomFieldRuleActionParametersRawResponseField) UnmarshalJSON ¶
func (r *LogCustomFieldRuleActionParametersRawResponseField) UnmarshalJSON(data []byte) (err error)
type LogCustomFieldRuleActionParametersRawResponseFieldParam ¶
type LogCustomFieldRuleActionParametersRawResponseFieldParam struct {
// The name of the response header.
Name param.Field[string] `json:"name" api:"required"`
// Whether to log duplicate values of the same header.
PreserveDuplicates param.Field[bool] `json:"preserve_duplicates"`
}
The raw response field to log.
func (LogCustomFieldRuleActionParametersRawResponseFieldParam) MarshalJSON ¶
func (r LogCustomFieldRuleActionParametersRawResponseFieldParam) MarshalJSON() (data []byte, err error)
type LogCustomFieldRuleActionParametersRequestField ¶
type LogCustomFieldRuleActionParametersRequestField struct {
// The name of the header.
Name string `json:"name" api:"required"`
JSON logCustomFieldRuleActionParametersRequestFieldJSON `json:"-"`
}
The raw request field to log.
func (*LogCustomFieldRuleActionParametersRequestField) UnmarshalJSON ¶
func (r *LogCustomFieldRuleActionParametersRequestField) UnmarshalJSON(data []byte) (err error)
type LogCustomFieldRuleActionParametersRequestFieldParam ¶
type LogCustomFieldRuleActionParametersRequestFieldParam struct {
// The name of the header.
Name param.Field[string] `json:"name" api:"required"`
}
The raw request field to log.
func (LogCustomFieldRuleActionParametersRequestFieldParam) MarshalJSON ¶
func (r LogCustomFieldRuleActionParametersRequestFieldParam) MarshalJSON() (data []byte, err error)
type LogCustomFieldRuleActionParametersResponseField ¶
type LogCustomFieldRuleActionParametersResponseField struct {
// The name of the response header.
Name string `json:"name" api:"required"`
// Whether to log duplicate values of the same header.
PreserveDuplicates bool `json:"preserve_duplicates"`
JSON logCustomFieldRuleActionParametersResponseFieldJSON `json:"-"`
}
The transformed response field to log.
func (*LogCustomFieldRuleActionParametersResponseField) UnmarshalJSON ¶
func (r *LogCustomFieldRuleActionParametersResponseField) UnmarshalJSON(data []byte) (err error)
type LogCustomFieldRuleActionParametersResponseFieldParam ¶
type LogCustomFieldRuleActionParametersResponseFieldParam struct {
// The name of the response header.
Name param.Field[string] `json:"name" api:"required"`
// Whether to log duplicate values of the same header.
PreserveDuplicates param.Field[bool] `json:"preserve_duplicates"`
}
The transformed response field to log.
func (LogCustomFieldRuleActionParametersResponseFieldParam) MarshalJSON ¶
func (r LogCustomFieldRuleActionParametersResponseFieldParam) MarshalJSON() (data []byte, err error)
type LogCustomFieldRuleActionParametersTransformedRequestField ¶
type LogCustomFieldRuleActionParametersTransformedRequestField struct {
// The name of the header.
Name string `json:"name" api:"required"`
JSON logCustomFieldRuleActionParametersTransformedRequestFieldJSON `json:"-"`
}
The transformed request field to log.
func (*LogCustomFieldRuleActionParametersTransformedRequestField) UnmarshalJSON ¶
func (r *LogCustomFieldRuleActionParametersTransformedRequestField) UnmarshalJSON(data []byte) (err error)
type LogCustomFieldRuleActionParametersTransformedRequestFieldParam ¶
type LogCustomFieldRuleActionParametersTransformedRequestFieldParam struct {
// The name of the header.
Name param.Field[string] `json:"name" api:"required"`
}
The transformed request field to log.
func (LogCustomFieldRuleActionParametersTransformedRequestFieldParam) MarshalJSON ¶
func (r LogCustomFieldRuleActionParametersTransformedRequestFieldParam) MarshalJSON() (data []byte, err error)
type LogCustomFieldRuleExposedCredentialCheck ¶
type LogCustomFieldRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON logCustomFieldRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*LogCustomFieldRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *LogCustomFieldRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type LogCustomFieldRuleExposedCredentialCheckParam ¶
type LogCustomFieldRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (LogCustomFieldRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r LogCustomFieldRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type LogCustomFieldRuleParam ¶
type LogCustomFieldRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[LogCustomFieldRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[LogCustomFieldRuleActionParametersParam] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[LogCustomFieldRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[LogCustomFieldRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (LogCustomFieldRuleParam) MarshalJSON ¶
func (r LogCustomFieldRuleParam) MarshalJSON() (data []byte, err error)
type LogCustomFieldRuleRatelimit ¶
type LogCustomFieldRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON logCustomFieldRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*LogCustomFieldRuleRatelimit) UnmarshalJSON ¶
func (r *LogCustomFieldRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type LogCustomFieldRuleRatelimitParam ¶
type LogCustomFieldRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (LogCustomFieldRuleRatelimitParam) MarshalJSON ¶
func (r LogCustomFieldRuleRatelimitParam) MarshalJSON() (data []byte, err error)
type LogRule ¶
type LogRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action LogRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck LogRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit LogRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON logRuleJSON `json:"-"`
}
func (*LogRule) UnmarshalJSON ¶
type LogRuleAction ¶
type LogRuleAction string
The action to perform when the rule matches.
const (
LogRuleActionLog LogRuleAction = "log"
)
func (LogRuleAction) IsKnown ¶
func (r LogRuleAction) IsKnown() bool
type LogRuleExposedCredentialCheck ¶
type LogRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON logRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*LogRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *LogRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type LogRuleExposedCredentialCheckParam ¶
type LogRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (LogRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r LogRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type LogRuleParam ¶
type LogRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[LogRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[interface{}] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[LogRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[LogRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (LogRuleParam) MarshalJSON ¶
func (r LogRuleParam) MarshalJSON() (data []byte, err error)
type LogRuleRatelimit ¶
type LogRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON logRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*LogRuleRatelimit) UnmarshalJSON ¶
func (r *LogRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type LogRuleRatelimitParam ¶
type LogRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (LogRuleRatelimitParam) MarshalJSON ¶
func (r LogRuleRatelimitParam) MarshalJSON() (data []byte, err error)
type Logging ¶
type Logging struct {
// Whether to generate a log when the rule matches.
Enabled bool `json:"enabled" api:"required"`
JSON loggingJSON `json:"-"`
}
An object configuring the rule's logging behavior.
func (*Logging) UnmarshalJSON ¶
type LoggingParam ¶
type LoggingParam struct {
// Whether to generate a log when the rule matches.
Enabled param.Field[bool] `json:"enabled" api:"required"`
}
An object configuring the rule's logging behavior.
func (LoggingParam) MarshalJSON ¶
func (r LoggingParam) MarshalJSON() (data []byte, err error)
type ManagedChallengeRule ¶
type ManagedChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action ManagedChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck ManagedChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit ManagedChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON managedChallengeRuleJSON `json:"-"`
}
func (*ManagedChallengeRule) UnmarshalJSON ¶
func (r *ManagedChallengeRule) UnmarshalJSON(data []byte) (err error)
type ManagedChallengeRuleAction ¶
type ManagedChallengeRuleAction string
The action to perform when the rule matches.
const (
ManagedChallengeRuleActionManagedChallenge ManagedChallengeRuleAction = "managed_challenge"
)
func (ManagedChallengeRuleAction) IsKnown ¶
func (r ManagedChallengeRuleAction) IsKnown() bool
type ManagedChallengeRuleExposedCredentialCheck ¶
type ManagedChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON managedChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*ManagedChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *ManagedChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type ManagedChallengeRuleExposedCredentialCheckParam ¶
type ManagedChallengeRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (ManagedChallengeRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r ManagedChallengeRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type ManagedChallengeRuleParam ¶
type ManagedChallengeRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[ManagedChallengeRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[interface{}] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[ManagedChallengeRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[ManagedChallengeRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (ManagedChallengeRuleParam) MarshalJSON ¶
func (r ManagedChallengeRuleParam) MarshalJSON() (data []byte, err error)
type ManagedChallengeRuleRatelimit ¶
type ManagedChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON managedChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*ManagedChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *ManagedChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type ManagedChallengeRuleRatelimitParam ¶
type ManagedChallengeRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (ManagedChallengeRuleRatelimitParam) MarshalJSON ¶
func (r ManagedChallengeRuleRatelimitParam) MarshalJSON() (data []byte, err error)
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 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 Phase ¶
type Phase string
The phase of the ruleset.
const ( PhaseDDoSL4 Phase = "ddos_l4" PhaseDDoSL7 Phase = "ddos_l7" PhaseHTTPConfigSettings Phase = "http_config_settings" PhaseHTTPCustomErrors Phase = "http_custom_errors" PhaseHTTPLogCustomFields Phase = "http_log_custom_fields" PhaseHTTPRatelimit Phase = "http_ratelimit" PhaseHTTPRequestCacheSettings Phase = "http_request_cache_settings" PhaseHTTPRequestDynamicRedirect Phase = "http_request_dynamic_redirect" PhaseHTTPRequestFirewallCustom Phase = "http_request_firewall_custom" PhaseHTTPRequestFirewallManaged Phase = "http_request_firewall_managed" PhaseHTTPRequestLateTransform Phase = "http_request_late_transform" PhaseHTTPRequestOrigin Phase = "http_request_origin" PhaseHTTPRequestRedirect Phase = "http_request_redirect" PhaseHTTPRequestSanitize Phase = "http_request_sanitize" PhaseHTTPRequestSBFM Phase = "http_request_sbfm" PhaseHTTPRequestTransform Phase = "http_request_transform" PhaseHTTPResponseCacheSettings Phase = "http_response_cache_settings" PhaseHTTPResponseCompression Phase = "http_response_compression" PhaseHTTPResponseFirewallManaged Phase = "http_response_firewall_managed" PhaseHTTPResponseHeadersTransform Phase = "http_response_headers_transform" PhaseMagicTransit Phase = "magic_transit" PhaseMagicTransitIDsManaged Phase = "magic_transit_ids_managed" PhaseMagicTransitManaged Phase = "magic_transit_managed" PhaseMagicTransitRatelimit Phase = "magic_transit_ratelimit" )
type PhaseGetParams ¶
type PhaseGetResponse ¶
type PhaseGetResponse struct {
// The unique ID of the ruleset.
ID string `json:"id" api:"required"`
// The kind of the ruleset.
Kind Kind `json:"kind" api:"required"`
// The timestamp of when the ruleset was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The human-readable name of the ruleset.
Name string `json:"name" api:"required"`
// The phase of the ruleset.
Phase Phase `json:"phase" api:"required"`
// The list of rules in the ruleset.
Rules []PhaseGetResponseRule `json:"rules" api:"required"`
// The version of the ruleset.
Version string `json:"version" api:"required"`
// An informative description of the ruleset.
Description string `json:"description"`
JSON phaseGetResponseJSON `json:"-"`
}
A ruleset object.
func (*PhaseGetResponse) UnmarshalJSON ¶
func (r *PhaseGetResponse) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseEnvelope ¶
type PhaseGetResponseEnvelope struct {
// A list of error messages.
Errors []PhaseGetResponseEnvelopeErrors `json:"errors" api:"required"`
// A list of warning messages.
Messages []PhaseGetResponseEnvelopeMessages `json:"messages" api:"required"`
// A ruleset object.
Result PhaseGetResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success PhaseGetResponseEnvelopeSuccess `json:"success" api:"required"`
JSON phaseGetResponseEnvelopeJSON `json:"-"`
}
A response object.
func (*PhaseGetResponseEnvelope) UnmarshalJSON ¶
func (r *PhaseGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseEnvelopeErrors ¶
type PhaseGetResponseEnvelopeErrors struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source PhaseGetResponseEnvelopeErrorsSource `json:"source"`
JSON phaseGetResponseEnvelopeErrorsJSON `json:"-"`
}
A message.
func (*PhaseGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *PhaseGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseEnvelopeErrorsSource ¶
type PhaseGetResponseEnvelopeErrorsSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON phaseGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
The source of this message.
func (*PhaseGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *PhaseGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseEnvelopeMessages ¶
type PhaseGetResponseEnvelopeMessages struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source PhaseGetResponseEnvelopeMessagesSource `json:"source"`
JSON phaseGetResponseEnvelopeMessagesJSON `json:"-"`
}
A message.
func (*PhaseGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *PhaseGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseEnvelopeMessagesSource ¶
type PhaseGetResponseEnvelopeMessagesSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON phaseGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
The source of this message.
func (*PhaseGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *PhaseGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseEnvelopeSuccess ¶
type PhaseGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
PhaseGetResponseEnvelopeSuccessTrue PhaseGetResponseEnvelopeSuccess = true
)
func (PhaseGetResponseEnvelopeSuccess) IsKnown ¶
func (r PhaseGetResponseEnvelopeSuccess) IsKnown() bool
type PhaseGetResponseRule ¶
type PhaseGetResponseRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action PhaseGetResponseRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters].
ActionParameters interface{} `json:"action_parameters"`
// This field can have the runtime type of [[]string].
Categories interface{} `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// This field can have the runtime type of [BlockRuleExposedCredentialCheck],
// [PhaseGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [PhaseGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [PhaseGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [PhaseGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck].
ExposedCredentialCheck interface{} `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// This field can have the runtime type of [BlockRuleRatelimit],
// [PhaseGetResponseRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [PhaseGetResponseRulesRulesetsJSChallengeRuleRatelimit], [LogRuleRatelimit],
// [LogCustomFieldRuleRatelimit], [ManagedChallengeRuleRatelimit],
// [RedirectRuleRatelimit], [RewriteRuleRatelimit], [RouteRuleRatelimit],
// [ScoreRuleRatelimit], [ServeErrorRuleRatelimit],
// [PhaseGetResponseRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [PhaseGetResponseRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseGetResponseRuleJSON `json:"-"`
// contains filtered or unexported fields
}
func (PhaseGetResponseRule) AsUnion ¶
func (r PhaseGetResponseRule) AsUnion() PhaseGetResponseRulesUnion
AsUnion returns a PhaseGetResponseRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, PhaseGetResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, PhaseGetResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, PhaseGetResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, PhaseGetResponseRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule.
func (*PhaseGetResponseRule) UnmarshalJSON ¶
func (r *PhaseGetResponseRule) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesAction ¶
type PhaseGetResponseRulesAction string
The action to perform when the rule matches.
const ( PhaseGetResponseRulesActionBlock PhaseGetResponseRulesAction = "block" PhaseGetResponseRulesActionChallenge PhaseGetResponseRulesAction = "challenge" PhaseGetResponseRulesActionCompressResponse PhaseGetResponseRulesAction = "compress_response" PhaseGetResponseRulesActionDDoSDynamic PhaseGetResponseRulesAction = "ddos_dynamic" PhaseGetResponseRulesActionExecute PhaseGetResponseRulesAction = "execute" PhaseGetResponseRulesActionForceConnectionClose PhaseGetResponseRulesAction = "force_connection_close" PhaseGetResponseRulesActionJSChallenge PhaseGetResponseRulesAction = "js_challenge" PhaseGetResponseRulesActionLog PhaseGetResponseRulesAction = "log" PhaseGetResponseRulesActionLogCustomField PhaseGetResponseRulesAction = "log_custom_field" PhaseGetResponseRulesActionManagedChallenge PhaseGetResponseRulesAction = "managed_challenge" PhaseGetResponseRulesActionRedirect PhaseGetResponseRulesAction = "redirect" PhaseGetResponseRulesActionRewrite PhaseGetResponseRulesAction = "rewrite" PhaseGetResponseRulesActionRoute PhaseGetResponseRulesAction = "route" PhaseGetResponseRulesActionScore PhaseGetResponseRulesAction = "score" PhaseGetResponseRulesActionServeError PhaseGetResponseRulesAction = "serve_error" PhaseGetResponseRulesActionSetCacheControl PhaseGetResponseRulesAction = "set_cache_control" PhaseGetResponseRulesActionSetCacheSettings PhaseGetResponseRulesAction = "set_cache_settings" PhaseGetResponseRulesActionSetCacheTags PhaseGetResponseRulesAction = "set_cache_tags" PhaseGetResponseRulesActionSetConfig PhaseGetResponseRulesAction = "set_config" PhaseGetResponseRulesActionSkip PhaseGetResponseRulesAction = "skip" )
func (PhaseGetResponseRulesAction) IsKnown ¶
func (r PhaseGetResponseRulesAction) IsKnown() bool
type PhaseGetResponseRulesRulesetsChallengeRule ¶
type PhaseGetResponseRulesRulesetsChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action PhaseGetResponseRulesRulesetsChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck PhaseGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit PhaseGetResponseRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseGetResponseRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*PhaseGetResponseRulesRulesetsChallengeRule) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsChallengeRuleAction ¶
type PhaseGetResponseRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
PhaseGetResponseRulesRulesetsChallengeRuleActionChallenge PhaseGetResponseRulesRulesetsChallengeRuleAction = "challenge"
)
func (PhaseGetResponseRulesRulesetsChallengeRuleAction) IsKnown ¶
func (r PhaseGetResponseRulesRulesetsChallengeRuleAction) IsKnown() bool
type PhaseGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck ¶
type PhaseGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON phaseGetResponseRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsChallengeRuleRatelimit ¶
type PhaseGetResponseRulesRulesetsChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON phaseGetResponseRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseGetResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsJSChallengeRule ¶
type PhaseGetResponseRulesRulesetsJSChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action PhaseGetResponseRulesRulesetsJSChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck PhaseGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit PhaseGetResponseRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseGetResponseRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*PhaseGetResponseRulesRulesetsJSChallengeRule) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsJSChallengeRuleAction ¶
type PhaseGetResponseRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
PhaseGetResponseRulesRulesetsJSChallengeRuleActionJSChallenge PhaseGetResponseRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (PhaseGetResponseRulesRulesetsJSChallengeRuleAction) IsKnown ¶
func (r PhaseGetResponseRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type PhaseGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶
type PhaseGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON phaseGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsJSChallengeRuleRatelimit ¶
type PhaseGetResponseRulesRulesetsJSChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON phaseGetResponseRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseGetResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRule ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action PhaseGetResponseRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck PhaseGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit PhaseGetResponseRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*PhaseGetResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleAction ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
PhaseGetResponseRulesRulesetsSetCacheControlRuleActionSetCacheControl PhaseGetResponseRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (PhaseGetResponseRulesRulesetsSetCacheControlRuleAction) IsKnown ¶
func (r PhaseGetResponseRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParameters ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶
func (r PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶
func (r PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶
func (r PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶
func (r PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶
func (r PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶
func (r PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶
func (r PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶
func (r PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶
func (r PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶
func (r PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶
func (r PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶
func (r PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶
func (r PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or PhaseGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type PhaseGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheControlRuleRatelimit ¶
type PhaseGetResponseRulesRulesetsSetCacheControlRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON phaseGetResponseRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseGetResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheTagsRule ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action PhaseGetResponseRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck PhaseGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit PhaseGetResponseRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseGetResponseRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*PhaseGetResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleAction ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionSetCacheTags PhaseGetResponseRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (PhaseGetResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶
func (r PhaseGetResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParameters ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation `json:"operation" api:"required"`
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression"`
// This field can have the runtime type of [[]string].
Values interface{} `json:"values"`
JSON phaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶
func (r PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON phaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON phaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationSet PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
func (PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown ¶
func (r PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown() bool
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON phaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON phaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON phaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON phaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or PhaseGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON phaseGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleRatelimit ¶
type PhaseGetResponseRulesRulesetsSetCacheTagsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON phaseGetResponseRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseGetResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶
func (r *PhaseGetResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesUnion ¶
type PhaseGetResponseRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, PhaseGetResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, PhaseGetResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, PhaseGetResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, PhaseGetResponseRulesRulesetsSetCacheTagsRule, SetConfigRule or SkipRule.
type PhaseService ¶
type PhaseService struct {
Options []option.RequestOption
Versions *PhaseVersionService
}
PhaseService 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 NewPhaseService method instead.
func NewPhaseService ¶
func NewPhaseService(opts ...option.RequestOption) (r *PhaseService)
NewPhaseService 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 (*PhaseService) Get ¶
func (r *PhaseService) Get(ctx context.Context, rulesetPhase Phase, query PhaseGetParams, opts ...option.RequestOption) (res *PhaseGetResponse, err error)
Fetches the latest version of the account or zone entry point ruleset for a given phase.
func (*PhaseService) Update ¶
func (r *PhaseService) Update(ctx context.Context, rulesetPhase Phase, params PhaseUpdateParams, opts ...option.RequestOption) (res *PhaseUpdateResponse, err error)
Updates an account or zone entry point ruleset, creating a new version.
type PhaseUpdateParams ¶
type PhaseUpdateParams struct {
// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
AccountID param.Field[string] `path:"account_id"`
// The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
ZoneID param.Field[string] `path:"zone_id"`
// An informative description of the ruleset.
Description param.Field[string] `json:"description"`
// The human-readable name of the ruleset.
Name param.Field[string] `json:"name"`
// The list of rules in the ruleset.
Rules param.Field[[]PhaseUpdateParamsRuleUnion] `json:"rules"`
}
func (PhaseUpdateParams) MarshalJSON ¶
func (r PhaseUpdateParams) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRule ¶
type PhaseUpdateParamsRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[PhaseUpdateParamsRulesAction] `json:"action"`
ActionParameters param.Field[interface{}] `json:"action_parameters"`
Categories param.Field[interface{}] `json:"categories"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
ExposedCredentialCheck param.Field[interface{}] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
Ratelimit param.Field[interface{}] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (PhaseUpdateParamsRule) MarshalJSON ¶
func (r PhaseUpdateParamsRule) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRuleUnion ¶
type PhaseUpdateParamsRuleUnion interface {
// contains filtered or unexported methods
}
Satisfied by rulesets.BlockRuleParam, rulesets.PhaseUpdateParamsRulesRulesetsChallengeRule, rulesets.CompressResponseRuleParam, rulesets.DDoSDynamicRuleParam, rulesets.ExecuteRuleParam, rulesets.ForceConnectionCloseRuleParam, rulesets.PhaseUpdateParamsRulesRulesetsJSChallengeRule, rulesets.LogRuleParam, rulesets.LogCustomFieldRuleParam, rulesets.ManagedChallengeRuleParam, rulesets.RedirectRuleParam, rulesets.RewriteRuleParam, rulesets.RouteRuleParam, rulesets.ScoreRuleParam, rulesets.ServeErrorRuleParam, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRule, rulesets.SetCacheSettingsRuleParam, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheTagsRule, rulesets.SetConfigRuleParam, rulesets.SkipRuleParam, PhaseUpdateParamsRule.
type PhaseUpdateParamsRulesAction ¶
type PhaseUpdateParamsRulesAction string
The action to perform when the rule matches.
const ( PhaseUpdateParamsRulesActionBlock PhaseUpdateParamsRulesAction = "block" PhaseUpdateParamsRulesActionChallenge PhaseUpdateParamsRulesAction = "challenge" PhaseUpdateParamsRulesActionCompressResponse PhaseUpdateParamsRulesAction = "compress_response" PhaseUpdateParamsRulesActionDDoSDynamic PhaseUpdateParamsRulesAction = "ddos_dynamic" PhaseUpdateParamsRulesActionExecute PhaseUpdateParamsRulesAction = "execute" PhaseUpdateParamsRulesActionForceConnectionClose PhaseUpdateParamsRulesAction = "force_connection_close" PhaseUpdateParamsRulesActionJSChallenge PhaseUpdateParamsRulesAction = "js_challenge" PhaseUpdateParamsRulesActionLog PhaseUpdateParamsRulesAction = "log" PhaseUpdateParamsRulesActionLogCustomField PhaseUpdateParamsRulesAction = "log_custom_field" PhaseUpdateParamsRulesActionManagedChallenge PhaseUpdateParamsRulesAction = "managed_challenge" PhaseUpdateParamsRulesActionRedirect PhaseUpdateParamsRulesAction = "redirect" PhaseUpdateParamsRulesActionRewrite PhaseUpdateParamsRulesAction = "rewrite" PhaseUpdateParamsRulesActionRoute PhaseUpdateParamsRulesAction = "route" PhaseUpdateParamsRulesActionScore PhaseUpdateParamsRulesAction = "score" PhaseUpdateParamsRulesActionServeError PhaseUpdateParamsRulesAction = "serve_error" PhaseUpdateParamsRulesActionSetCacheControl PhaseUpdateParamsRulesAction = "set_cache_control" PhaseUpdateParamsRulesActionSetCacheSettings PhaseUpdateParamsRulesAction = "set_cache_settings" PhaseUpdateParamsRulesActionSetCacheTags PhaseUpdateParamsRulesAction = "set_cache_tags" PhaseUpdateParamsRulesActionSetConfig PhaseUpdateParamsRulesAction = "set_config" PhaseUpdateParamsRulesActionSkip PhaseUpdateParamsRulesAction = "skip" )
func (PhaseUpdateParamsRulesAction) IsKnown ¶
func (r PhaseUpdateParamsRulesAction) IsKnown() bool
type PhaseUpdateParamsRulesRulesetsChallengeRule ¶
type PhaseUpdateParamsRulesRulesetsChallengeRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[PhaseUpdateParamsRulesRulesetsChallengeRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[interface{}] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[PhaseUpdateParamsRulesRulesetsChallengeRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[PhaseUpdateParamsRulesRulesetsChallengeRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (PhaseUpdateParamsRulesRulesetsChallengeRule) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsChallengeRule) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsChallengeRuleAction ¶
type PhaseUpdateParamsRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
PhaseUpdateParamsRulesRulesetsChallengeRuleActionChallenge PhaseUpdateParamsRulesRulesetsChallengeRuleAction = "challenge"
)
func (PhaseUpdateParamsRulesRulesetsChallengeRuleAction) IsKnown ¶
func (r PhaseUpdateParamsRulesRulesetsChallengeRuleAction) IsKnown() bool
type PhaseUpdateParamsRulesRulesetsChallengeRuleExposedCredentialCheck ¶
type PhaseUpdateParamsRulesRulesetsChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (PhaseUpdateParamsRulesRulesetsChallengeRuleExposedCredentialCheck) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsChallengeRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsChallengeRuleRatelimit ¶
type PhaseUpdateParamsRulesRulesetsChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (PhaseUpdateParamsRulesRulesetsChallengeRuleRatelimit) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsChallengeRuleRatelimit) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsJSChallengeRule ¶
type PhaseUpdateParamsRulesRulesetsJSChallengeRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[PhaseUpdateParamsRulesRulesetsJSChallengeRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[interface{}] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[PhaseUpdateParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[PhaseUpdateParamsRulesRulesetsJSChallengeRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (PhaseUpdateParamsRulesRulesetsJSChallengeRule) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsJSChallengeRule) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsJSChallengeRuleAction ¶
type PhaseUpdateParamsRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
PhaseUpdateParamsRulesRulesetsJSChallengeRuleActionJSChallenge PhaseUpdateParamsRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (PhaseUpdateParamsRulesRulesetsJSChallengeRuleAction) IsKnown ¶
func (r PhaseUpdateParamsRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type PhaseUpdateParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶
type PhaseUpdateParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (PhaseUpdateParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsJSChallengeRuleRatelimit ¶
type PhaseUpdateParamsRulesRulesetsJSChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (PhaseUpdateParamsRulesRulesetsJSChallengeRuleRatelimit) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsJSChallengeRuleRatelimit) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRule ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParameters] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRule) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRule) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleAction ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionSetCacheControl PhaseUpdateParamsRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleAction) IsKnown ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParameters ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion] `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion] `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion] `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion] `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion] `json:"no-cache"`
// A cache-control directive configuration.
NoStore param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion] `json:"no-store"`
// A cache-control directive configuration.
NoTransform param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion] `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion] `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion] `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicUnion] `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion] `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion] `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion] `json:"stale-while-revalidate"`
}
The parameters configuring the rule's action.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParameters) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParameters) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective, PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable.
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective, PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge.
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective, PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate.
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective, PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand.
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
Qualifiers param.Field[interface{}] `json:"qualifiers"`
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers param.Field[[]string] `json:"qualifiers"`
}
Set the directive with optional qualifiers.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Satisfied by rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective, PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache.
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective, PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore.
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective, PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform.
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
Qualifiers param.Field[interface{}] `json:"qualifiers"`
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers param.Field[[]string] `json:"qualifiers"`
}
Set the directive with optional qualifiers.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Satisfied by rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective, PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate.
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective, PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate.
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublic ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublic) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublic) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective, PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublic.
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective, PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage.
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective, PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError.
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective, PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate.
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleRatelimit ¶
type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (PhaseUpdateParamsRulesRulesetsSetCacheControlRuleRatelimit) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheControlRuleRatelimit) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRule ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersUnion] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (PhaseUpdateParamsRulesRulesetsSetCacheTagsRule) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheTagsRule) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleAction ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionSetCacheTags PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParameters ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation] `json:"operation" api:"required"`
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression"`
Values param.Field[interface{}] `json:"values"`
}
The parameters configuring the rule's action.
func (PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParameters) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParameters) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation] `json:"operation" api:"required"`
}
Add cache tags using an expression.
func (PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation] `json:"operation" api:"required"`
// A list of cache tag values.
Values param.Field[[]string] `json:"values" api:"required"`
}
Add cache tags using a list of values.
func (PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperationSet PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
func (PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown() bool
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation] `json:"operation" api:"required"`
}
Remove cache tags using an expression.
func (PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation] `json:"operation" api:"required"`
// A list of cache tag values.
Values param.Field[[]string] `json:"values" api:"required"`
}
Remove cache tags using a list of values.
func (PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation] `json:"operation" api:"required"`
}
Set cache tags using an expression.
func (PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation param.Field[PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation] `json:"operation" api:"required"`
// A list of cache tag values.
Values param.Field[[]string] `json:"values" api:"required"`
}
Set cache tags using a list of values.
func (PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Satisfied by rulesets.PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, rulesets.PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression, PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParameters.
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleRatelimit ¶
type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleRatelimit) MarshalJSON ¶
func (r PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleRatelimit) MarshalJSON() (data []byte, err error)
type PhaseUpdateResponse ¶
type PhaseUpdateResponse struct {
// The unique ID of the ruleset.
ID string `json:"id" api:"required"`
// The kind of the ruleset.
Kind Kind `json:"kind" api:"required"`
// The timestamp of when the ruleset was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The human-readable name of the ruleset.
Name string `json:"name" api:"required"`
// The phase of the ruleset.
Phase Phase `json:"phase" api:"required"`
// The list of rules in the ruleset.
Rules []PhaseUpdateResponseRule `json:"rules" api:"required"`
// The version of the ruleset.
Version string `json:"version" api:"required"`
// An informative description of the ruleset.
Description string `json:"description"`
JSON phaseUpdateResponseJSON `json:"-"`
}
A ruleset object.
func (*PhaseUpdateResponse) UnmarshalJSON ¶
func (r *PhaseUpdateResponse) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelope ¶
type PhaseUpdateResponseEnvelope struct {
// A list of error messages.
Errors []PhaseUpdateResponseEnvelopeErrors `json:"errors" api:"required"`
// A list of warning messages.
Messages []PhaseUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
// A ruleset object.
Result PhaseUpdateResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success PhaseUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
JSON phaseUpdateResponseEnvelopeJSON `json:"-"`
}
A response object.
func (*PhaseUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *PhaseUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeErrors ¶
type PhaseUpdateResponseEnvelopeErrors struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source PhaseUpdateResponseEnvelopeErrorsSource `json:"source"`
JSON phaseUpdateResponseEnvelopeErrorsJSON `json:"-"`
}
A message.
func (*PhaseUpdateResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *PhaseUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeErrorsSource ¶
type PhaseUpdateResponseEnvelopeErrorsSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON phaseUpdateResponseEnvelopeErrorsSourceJSON `json:"-"`
}
The source of this message.
func (*PhaseUpdateResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *PhaseUpdateResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeMessages ¶
type PhaseUpdateResponseEnvelopeMessages struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source PhaseUpdateResponseEnvelopeMessagesSource `json:"source"`
JSON phaseUpdateResponseEnvelopeMessagesJSON `json:"-"`
}
A message.
func (*PhaseUpdateResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *PhaseUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeMessagesSource ¶
type PhaseUpdateResponseEnvelopeMessagesSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON phaseUpdateResponseEnvelopeMessagesSourceJSON `json:"-"`
}
The source of this message.
func (*PhaseUpdateResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *PhaseUpdateResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeSuccess ¶
type PhaseUpdateResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
PhaseUpdateResponseEnvelopeSuccessTrue PhaseUpdateResponseEnvelopeSuccess = true
)
func (PhaseUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r PhaseUpdateResponseEnvelopeSuccess) IsKnown() bool
type PhaseUpdateResponseRule ¶
type PhaseUpdateResponseRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action PhaseUpdateResponseRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters].
ActionParameters interface{} `json:"action_parameters"`
// This field can have the runtime type of [[]string].
Categories interface{} `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// This field can have the runtime type of [BlockRuleExposedCredentialCheck],
// [PhaseUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [PhaseUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [PhaseUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck].
ExposedCredentialCheck interface{} `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// This field can have the runtime type of [BlockRuleRatelimit],
// [PhaseUpdateResponseRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [PhaseUpdateResponseRulesRulesetsJSChallengeRuleRatelimit], [LogRuleRatelimit],
// [LogCustomFieldRuleRatelimit], [ManagedChallengeRuleRatelimit],
// [RedirectRuleRatelimit], [RewriteRuleRatelimit], [RouteRuleRatelimit],
// [ScoreRuleRatelimit], [ServeErrorRuleRatelimit],
// [PhaseUpdateResponseRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseUpdateResponseRuleJSON `json:"-"`
// contains filtered or unexported fields
}
func (PhaseUpdateResponseRule) AsUnion ¶
func (r PhaseUpdateResponseRule) AsUnion() PhaseUpdateResponseRulesUnion
AsUnion returns a PhaseUpdateResponseRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, PhaseUpdateResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, PhaseUpdateResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, PhaseUpdateResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, PhaseUpdateResponseRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule.
func (*PhaseUpdateResponseRule) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRule) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesAction ¶
type PhaseUpdateResponseRulesAction string
The action to perform when the rule matches.
const ( PhaseUpdateResponseRulesActionBlock PhaseUpdateResponseRulesAction = "block" PhaseUpdateResponseRulesActionChallenge PhaseUpdateResponseRulesAction = "challenge" PhaseUpdateResponseRulesActionCompressResponse PhaseUpdateResponseRulesAction = "compress_response" PhaseUpdateResponseRulesActionDDoSDynamic PhaseUpdateResponseRulesAction = "ddos_dynamic" PhaseUpdateResponseRulesActionExecute PhaseUpdateResponseRulesAction = "execute" PhaseUpdateResponseRulesActionForceConnectionClose PhaseUpdateResponseRulesAction = "force_connection_close" PhaseUpdateResponseRulesActionJSChallenge PhaseUpdateResponseRulesAction = "js_challenge" PhaseUpdateResponseRulesActionLog PhaseUpdateResponseRulesAction = "log" PhaseUpdateResponseRulesActionLogCustomField PhaseUpdateResponseRulesAction = "log_custom_field" PhaseUpdateResponseRulesActionManagedChallenge PhaseUpdateResponseRulesAction = "managed_challenge" PhaseUpdateResponseRulesActionRedirect PhaseUpdateResponseRulesAction = "redirect" PhaseUpdateResponseRulesActionRewrite PhaseUpdateResponseRulesAction = "rewrite" PhaseUpdateResponseRulesActionRoute PhaseUpdateResponseRulesAction = "route" PhaseUpdateResponseRulesActionScore PhaseUpdateResponseRulesAction = "score" PhaseUpdateResponseRulesActionServeError PhaseUpdateResponseRulesAction = "serve_error" PhaseUpdateResponseRulesActionSetCacheControl PhaseUpdateResponseRulesAction = "set_cache_control" PhaseUpdateResponseRulesActionSetCacheSettings PhaseUpdateResponseRulesAction = "set_cache_settings" PhaseUpdateResponseRulesActionSetCacheTags PhaseUpdateResponseRulesAction = "set_cache_tags" PhaseUpdateResponseRulesActionSetConfig PhaseUpdateResponseRulesAction = "set_config" PhaseUpdateResponseRulesActionSkip PhaseUpdateResponseRulesAction = "skip" )
func (PhaseUpdateResponseRulesAction) IsKnown ¶
func (r PhaseUpdateResponseRulesAction) IsKnown() bool
type PhaseUpdateResponseRulesRulesetsChallengeRule ¶
type PhaseUpdateResponseRulesRulesetsChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action PhaseUpdateResponseRulesRulesetsChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck PhaseUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit PhaseUpdateResponseRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseUpdateResponseRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*PhaseUpdateResponseRulesRulesetsChallengeRule) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsChallengeRuleAction ¶
type PhaseUpdateResponseRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
PhaseUpdateResponseRulesRulesetsChallengeRuleActionChallenge PhaseUpdateResponseRulesRulesetsChallengeRuleAction = "challenge"
)
func (PhaseUpdateResponseRulesRulesetsChallengeRuleAction) IsKnown ¶
func (r PhaseUpdateResponseRulesRulesetsChallengeRuleAction) IsKnown() bool
type PhaseUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck ¶
type PhaseUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON phaseUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsChallengeRuleRatelimit ¶
type PhaseUpdateResponseRulesRulesetsChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON phaseUpdateResponseRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseUpdateResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsJSChallengeRule ¶
type PhaseUpdateResponseRulesRulesetsJSChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action PhaseUpdateResponseRulesRulesetsJSChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck PhaseUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit PhaseUpdateResponseRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseUpdateResponseRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*PhaseUpdateResponseRulesRulesetsJSChallengeRule) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsJSChallengeRuleAction ¶
type PhaseUpdateResponseRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
PhaseUpdateResponseRulesRulesetsJSChallengeRuleActionJSChallenge PhaseUpdateResponseRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (PhaseUpdateResponseRulesRulesetsJSChallengeRuleAction) IsKnown ¶
func (r PhaseUpdateResponseRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type PhaseUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶
type PhaseUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON phaseUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsJSChallengeRuleRatelimit ¶
type PhaseUpdateResponseRulesRulesetsJSChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON phaseUpdateResponseRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseUpdateResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRule ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action PhaseUpdateResponseRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck PhaseUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit PhaseUpdateResponseRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleAction ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionSetCacheControl PhaseUpdateResponseRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (PhaseUpdateResponseRulesRulesetsSetCacheControlRuleAction) IsKnown ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParameters ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or PhaseUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleRatelimit ¶
type PhaseUpdateResponseRulesRulesetsSetCacheControlRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON phaseUpdateResponseRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseUpdateResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRule ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseUpdateResponseRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*PhaseUpdateResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleAction ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionSetCacheTags PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation `json:"operation" api:"required"`
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression"`
// This field can have the runtime type of [[]string].
Values interface{} `json:"values"`
JSON phaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON phaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON phaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationSet PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
func (PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown ¶
func (r PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown() bool
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON phaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON phaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON phaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON phaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON phaseUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimit ¶
type PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON phaseUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶
func (r *PhaseUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseRulesUnion ¶
type PhaseUpdateResponseRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, PhaseUpdateResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, PhaseUpdateResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, PhaseUpdateResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, PhaseUpdateResponseRulesRulesetsSetCacheTagsRule, SetConfigRule or SkipRule.
type PhaseVersionGetParams ¶
type PhaseVersionGetResponse ¶
type PhaseVersionGetResponse struct {
// The unique ID of the ruleset.
ID string `json:"id" api:"required"`
// The kind of the ruleset.
Kind Kind `json:"kind" api:"required"`
// The timestamp of when the ruleset was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The human-readable name of the ruleset.
Name string `json:"name" api:"required"`
// The phase of the ruleset.
Phase Phase `json:"phase" api:"required"`
// The list of rules in the ruleset.
Rules []PhaseVersionGetResponseRule `json:"rules" api:"required"`
// The version of the ruleset.
Version string `json:"version" api:"required"`
// An informative description of the ruleset.
Description string `json:"description"`
JSON phaseVersionGetResponseJSON `json:"-"`
}
A ruleset object.
func (*PhaseVersionGetResponse) UnmarshalJSON ¶
func (r *PhaseVersionGetResponse) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseEnvelope ¶
type PhaseVersionGetResponseEnvelope struct {
// A list of error messages.
Errors []PhaseVersionGetResponseEnvelopeErrors `json:"errors" api:"required"`
// A list of warning messages.
Messages []PhaseVersionGetResponseEnvelopeMessages `json:"messages" api:"required"`
// A ruleset object.
Result PhaseVersionGetResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success PhaseVersionGetResponseEnvelopeSuccess `json:"success" api:"required"`
JSON phaseVersionGetResponseEnvelopeJSON `json:"-"`
}
A response object.
func (*PhaseVersionGetResponseEnvelope) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseEnvelopeErrors ¶
type PhaseVersionGetResponseEnvelopeErrors struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source PhaseVersionGetResponseEnvelopeErrorsSource `json:"source"`
JSON phaseVersionGetResponseEnvelopeErrorsJSON `json:"-"`
}
A message.
func (*PhaseVersionGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseEnvelopeErrorsSource ¶
type PhaseVersionGetResponseEnvelopeErrorsSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON phaseVersionGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
The source of this message.
func (*PhaseVersionGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseEnvelopeMessages ¶
type PhaseVersionGetResponseEnvelopeMessages struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source PhaseVersionGetResponseEnvelopeMessagesSource `json:"source"`
JSON phaseVersionGetResponseEnvelopeMessagesJSON `json:"-"`
}
A message.
func (*PhaseVersionGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseEnvelopeMessagesSource ¶
type PhaseVersionGetResponseEnvelopeMessagesSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON phaseVersionGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
The source of this message.
func (*PhaseVersionGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseEnvelopeSuccess ¶
type PhaseVersionGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
PhaseVersionGetResponseEnvelopeSuccessTrue PhaseVersionGetResponseEnvelopeSuccess = true
)
func (PhaseVersionGetResponseEnvelopeSuccess) IsKnown ¶
func (r PhaseVersionGetResponseEnvelopeSuccess) IsKnown() bool
type PhaseVersionGetResponseRule ¶
type PhaseVersionGetResponseRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action PhaseVersionGetResponseRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters].
ActionParameters interface{} `json:"action_parameters"`
// This field can have the runtime type of [[]string].
Categories interface{} `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// This field can have the runtime type of [BlockRuleExposedCredentialCheck],
// [PhaseVersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [PhaseVersionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck].
ExposedCredentialCheck interface{} `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// This field can have the runtime type of [BlockRuleRatelimit],
// [PhaseVersionGetResponseRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [PhaseVersionGetResponseRulesRulesetsJSChallengeRuleRatelimit],
// [LogRuleRatelimit], [LogCustomFieldRuleRatelimit],
// [ManagedChallengeRuleRatelimit], [RedirectRuleRatelimit],
// [RewriteRuleRatelimit], [RouteRuleRatelimit], [ScoreRuleRatelimit],
// [ServeErrorRuleRatelimit],
// [PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseVersionGetResponseRuleJSON `json:"-"`
// contains filtered or unexported fields
}
func (PhaseVersionGetResponseRule) AsUnion ¶
func (r PhaseVersionGetResponseRule) AsUnion() PhaseVersionGetResponseRulesUnion
AsUnion returns a PhaseVersionGetResponseRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, PhaseVersionGetResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, PhaseVersionGetResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, PhaseVersionGetResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, PhaseVersionGetResponseRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule.
func (*PhaseVersionGetResponseRule) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRule) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesAction ¶
type PhaseVersionGetResponseRulesAction string
The action to perform when the rule matches.
const ( PhaseVersionGetResponseRulesActionBlock PhaseVersionGetResponseRulesAction = "block" PhaseVersionGetResponseRulesActionChallenge PhaseVersionGetResponseRulesAction = "challenge" PhaseVersionGetResponseRulesActionCompressResponse PhaseVersionGetResponseRulesAction = "compress_response" PhaseVersionGetResponseRulesActionDDoSDynamic PhaseVersionGetResponseRulesAction = "ddos_dynamic" PhaseVersionGetResponseRulesActionExecute PhaseVersionGetResponseRulesAction = "execute" PhaseVersionGetResponseRulesActionForceConnectionClose PhaseVersionGetResponseRulesAction = "force_connection_close" PhaseVersionGetResponseRulesActionJSChallenge PhaseVersionGetResponseRulesAction = "js_challenge" PhaseVersionGetResponseRulesActionLog PhaseVersionGetResponseRulesAction = "log" PhaseVersionGetResponseRulesActionLogCustomField PhaseVersionGetResponseRulesAction = "log_custom_field" PhaseVersionGetResponseRulesActionManagedChallenge PhaseVersionGetResponseRulesAction = "managed_challenge" PhaseVersionGetResponseRulesActionRedirect PhaseVersionGetResponseRulesAction = "redirect" PhaseVersionGetResponseRulesActionRewrite PhaseVersionGetResponseRulesAction = "rewrite" PhaseVersionGetResponseRulesActionRoute PhaseVersionGetResponseRulesAction = "route" PhaseVersionGetResponseRulesActionScore PhaseVersionGetResponseRulesAction = "score" PhaseVersionGetResponseRulesActionServeError PhaseVersionGetResponseRulesAction = "serve_error" PhaseVersionGetResponseRulesActionSetCacheControl PhaseVersionGetResponseRulesAction = "set_cache_control" PhaseVersionGetResponseRulesActionSetCacheSettings PhaseVersionGetResponseRulesAction = "set_cache_settings" PhaseVersionGetResponseRulesActionSetCacheTags PhaseVersionGetResponseRulesAction = "set_cache_tags" PhaseVersionGetResponseRulesActionSetConfig PhaseVersionGetResponseRulesAction = "set_config" PhaseVersionGetResponseRulesActionSkip PhaseVersionGetResponseRulesAction = "skip" )
func (PhaseVersionGetResponseRulesAction) IsKnown ¶
func (r PhaseVersionGetResponseRulesAction) IsKnown() bool
type PhaseVersionGetResponseRulesRulesetsChallengeRule ¶
type PhaseVersionGetResponseRulesRulesetsChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action PhaseVersionGetResponseRulesRulesetsChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck PhaseVersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit PhaseVersionGetResponseRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseVersionGetResponseRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*PhaseVersionGetResponseRulesRulesetsChallengeRule) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsChallengeRuleAction ¶
type PhaseVersionGetResponseRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
PhaseVersionGetResponseRulesRulesetsChallengeRuleActionChallenge PhaseVersionGetResponseRulesRulesetsChallengeRuleAction = "challenge"
)
func (PhaseVersionGetResponseRulesRulesetsChallengeRuleAction) IsKnown ¶
func (r PhaseVersionGetResponseRulesRulesetsChallengeRuleAction) IsKnown() bool
type PhaseVersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck ¶
type PhaseVersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON phaseVersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseVersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsChallengeRuleRatelimit ¶
type PhaseVersionGetResponseRulesRulesetsChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON phaseVersionGetResponseRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseVersionGetResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsJSChallengeRule ¶
type PhaseVersionGetResponseRulesRulesetsJSChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action PhaseVersionGetResponseRulesRulesetsJSChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck PhaseVersionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit PhaseVersionGetResponseRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseVersionGetResponseRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*PhaseVersionGetResponseRulesRulesetsJSChallengeRule) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsJSChallengeRuleAction ¶
type PhaseVersionGetResponseRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
PhaseVersionGetResponseRulesRulesetsJSChallengeRuleActionJSChallenge PhaseVersionGetResponseRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (PhaseVersionGetResponseRulesRulesetsJSChallengeRuleAction) IsKnown ¶
func (r PhaseVersionGetResponseRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type PhaseVersionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶
type PhaseVersionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON phaseVersionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseVersionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsJSChallengeRuleRatelimit ¶
type PhaseVersionGetResponseRulesRulesetsJSChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON phaseVersionGetResponseRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseVersionGetResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRule ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleAction ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionSetCacheControl PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleAction) IsKnown ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParameters ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleRatelimit ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRule ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*PhaseVersionGetResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleAction ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionSetCacheTags PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation `json:"operation" api:"required"`
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression"`
// This field can have the runtime type of [[]string].
Values interface{} `json:"values"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶
func (r PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleRatelimit ¶
type PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON phaseVersionGetResponseRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶
func (r *PhaseVersionGetResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesUnion ¶
type PhaseVersionGetResponseRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, PhaseVersionGetResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, PhaseVersionGetResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, PhaseVersionGetResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, PhaseVersionGetResponseRulesRulesetsSetCacheTagsRule, SetConfigRule or SkipRule.
type PhaseVersionListParams ¶
type PhaseVersionListResponse ¶
type PhaseVersionListResponse struct {
// The unique ID of the ruleset.
ID string `json:"id" api:"required"`
// The kind of the ruleset.
Kind Kind `json:"kind" api:"required"`
// The timestamp of when the ruleset was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The human-readable name of the ruleset.
Name string `json:"name" api:"required"`
// The phase of the ruleset.
Phase Phase `json:"phase" api:"required"`
// The version of the ruleset.
Version string `json:"version" api:"required"`
// An informative description of the ruleset.
Description string `json:"description"`
JSON phaseVersionListResponseJSON `json:"-"`
}
A ruleset object.
func (*PhaseVersionListResponse) UnmarshalJSON ¶
func (r *PhaseVersionListResponse) UnmarshalJSON(data []byte) (err error)
type PhaseVersionService ¶
type PhaseVersionService struct {
Options []option.RequestOption
}
PhaseVersionService 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 NewPhaseVersionService method instead.
func NewPhaseVersionService ¶
func NewPhaseVersionService(opts ...option.RequestOption) (r *PhaseVersionService)
NewPhaseVersionService 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 (*PhaseVersionService) Get ¶
func (r *PhaseVersionService) Get(ctx context.Context, rulesetPhase Phase, rulesetVersion string, query PhaseVersionGetParams, opts ...option.RequestOption) (res *PhaseVersionGetResponse, err error)
Fetches a specific version of an account or zone entry point ruleset.
func (*PhaseVersionService) List ¶
func (r *PhaseVersionService) List(ctx context.Context, rulesetPhase Phase, query PhaseVersionListParams, opts ...option.RequestOption) (res *pagination.SinglePage[PhaseVersionListResponse], err error)
Fetches the versions of an account or zone entry point ruleset.
func (*PhaseVersionService) ListAutoPaging ¶
func (r *PhaseVersionService) ListAutoPaging(ctx context.Context, rulesetPhase Phase, query PhaseVersionListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[PhaseVersionListResponse]
Fetches the versions of an account or zone entry point ruleset.
type RatePlanID ¶
type RatePlanID = shared.RatePlanID
The ID of the rate plan.
This is an alias to an internal type.
type RatePlanParam ¶
type RatePlanParam = shared.RatePlanParam
The rate plan applied to the subscription.
This is an alias to an internal type.
type RedirectRule ¶
type RedirectRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RedirectRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RedirectRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RedirectRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RedirectRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON redirectRuleJSON `json:"-"`
}
func (*RedirectRule) UnmarshalJSON ¶
func (r *RedirectRule) UnmarshalJSON(data []byte) (err error)
type RedirectRuleAction ¶
type RedirectRuleAction string
The action to perform when the rule matches.
const (
RedirectRuleActionRedirect RedirectRuleAction = "redirect"
)
func (RedirectRuleAction) IsKnown ¶
func (r RedirectRuleAction) IsKnown() bool
type RedirectRuleActionParameters ¶
type RedirectRuleActionParameters struct {
// A redirect based on a bulk list lookup.
FromList RedirectRuleActionParametersFromList `json:"from_list"`
// A redirect based on the request properties.
FromValue RedirectRuleActionParametersFromValue `json:"from_value"`
JSON redirectRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RedirectRuleActionParameters) UnmarshalJSON ¶
func (r *RedirectRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RedirectRuleActionParametersFromList ¶
type RedirectRuleActionParametersFromList struct {
// An expression that evaluates to the list lookup key.
Key string `json:"key" api:"required"`
// The name of the list to match against.
Name string `json:"name" api:"required"`
JSON redirectRuleActionParametersFromListJSON `json:"-"`
}
A redirect based on a bulk list lookup.
func (*RedirectRuleActionParametersFromList) UnmarshalJSON ¶
func (r *RedirectRuleActionParametersFromList) UnmarshalJSON(data []byte) (err error)
type RedirectRuleActionParametersFromListParam ¶
type RedirectRuleActionParametersFromListParam struct {
// An expression that evaluates to the list lookup key.
Key param.Field[string] `json:"key" api:"required"`
// The name of the list to match against.
Name param.Field[string] `json:"name" api:"required"`
}
A redirect based on a bulk list lookup.
func (RedirectRuleActionParametersFromListParam) MarshalJSON ¶
func (r RedirectRuleActionParametersFromListParam) MarshalJSON() (data []byte, err error)
type RedirectRuleActionParametersFromValue ¶
type RedirectRuleActionParametersFromValue struct {
// A URL to redirect the request to.
TargetURL RedirectRuleActionParametersFromValueTargetURL `json:"target_url" api:"required"`
// Whether to keep the query string of the original request.
PreserveQueryString bool `json:"preserve_query_string"`
// The status code to use for the redirect.
StatusCode RedirectRuleActionParametersFromValueStatusCode `json:"status_code"`
JSON redirectRuleActionParametersFromValueJSON `json:"-"`
}
A redirect based on the request properties.
func (*RedirectRuleActionParametersFromValue) UnmarshalJSON ¶
func (r *RedirectRuleActionParametersFromValue) UnmarshalJSON(data []byte) (err error)
type RedirectRuleActionParametersFromValueParam ¶
type RedirectRuleActionParametersFromValueParam struct {
// A URL to redirect the request to.
TargetURL param.Field[RedirectRuleActionParametersFromValueTargetURLParam] `json:"target_url" api:"required"`
// Whether to keep the query string of the original request.
PreserveQueryString param.Field[bool] `json:"preserve_query_string"`
// The status code to use for the redirect.
StatusCode param.Field[RedirectRuleActionParametersFromValueStatusCode] `json:"status_code"`
}
A redirect based on the request properties.
func (RedirectRuleActionParametersFromValueParam) MarshalJSON ¶
func (r RedirectRuleActionParametersFromValueParam) MarshalJSON() (data []byte, err error)
type RedirectRuleActionParametersFromValueStatusCode ¶
type RedirectRuleActionParametersFromValueStatusCode int64
The status code to use for the redirect.
const ( RedirectRuleActionParametersFromValueStatusCode301 RedirectRuleActionParametersFromValueStatusCode = 301 RedirectRuleActionParametersFromValueStatusCode302 RedirectRuleActionParametersFromValueStatusCode = 302 RedirectRuleActionParametersFromValueStatusCode303 RedirectRuleActionParametersFromValueStatusCode = 303 RedirectRuleActionParametersFromValueStatusCode307 RedirectRuleActionParametersFromValueStatusCode = 307 RedirectRuleActionParametersFromValueStatusCode308 RedirectRuleActionParametersFromValueStatusCode = 308 )
func (RedirectRuleActionParametersFromValueStatusCode) IsKnown ¶
func (r RedirectRuleActionParametersFromValueStatusCode) IsKnown() bool
type RedirectRuleActionParametersFromValueTargetURL ¶
type RedirectRuleActionParametersFromValueTargetURL struct {
// An expression that evaluates to a URL to redirect the request to.
Expression string `json:"expression"`
// A URL to redirect the request to.
Value string `json:"value"`
JSON redirectRuleActionParametersFromValueTargetURLJSON `json:"-"`
}
A URL to redirect the request to.
func (*RedirectRuleActionParametersFromValueTargetURL) UnmarshalJSON ¶
func (r *RedirectRuleActionParametersFromValueTargetURL) UnmarshalJSON(data []byte) (err error)
type RedirectRuleActionParametersFromValueTargetURLParam ¶
type RedirectRuleActionParametersFromValueTargetURLParam struct {
// An expression that evaluates to a URL to redirect the request to.
Expression param.Field[string] `json:"expression"`
// A URL to redirect the request to.
Value param.Field[string] `json:"value"`
}
A URL to redirect the request to.
func (RedirectRuleActionParametersFromValueTargetURLParam) MarshalJSON ¶
func (r RedirectRuleActionParametersFromValueTargetURLParam) MarshalJSON() (data []byte, err error)
type RedirectRuleActionParametersParam ¶
type RedirectRuleActionParametersParam struct {
// A redirect based on a bulk list lookup.
FromList param.Field[RedirectRuleActionParametersFromListParam] `json:"from_list"`
// A redirect based on the request properties.
FromValue param.Field[RedirectRuleActionParametersFromValueParam] `json:"from_value"`
}
The parameters configuring the rule's action.
func (RedirectRuleActionParametersParam) MarshalJSON ¶
func (r RedirectRuleActionParametersParam) MarshalJSON() (data []byte, err error)
type RedirectRuleExposedCredentialCheck ¶
type RedirectRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON redirectRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RedirectRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RedirectRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RedirectRuleExposedCredentialCheckParam ¶
type RedirectRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RedirectRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r RedirectRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type RedirectRuleParam ¶
type RedirectRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RedirectRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[RedirectRuleActionParametersParam] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RedirectRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RedirectRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RedirectRuleParam) MarshalJSON ¶
func (r RedirectRuleParam) MarshalJSON() (data []byte, err error)
type RedirectRuleRatelimit ¶
type RedirectRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON redirectRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RedirectRuleRatelimit) UnmarshalJSON ¶
func (r *RedirectRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RedirectRuleRatelimitParam ¶
type RedirectRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RedirectRuleRatelimitParam) MarshalJSON ¶
func (r RedirectRuleRatelimitParam) MarshalJSON() (data []byte, err error)
type ResponseInfoSource ¶
type ResponseInfoSource = shared.ResponseInfoSource
This is an alias to an internal type.
type RewriteRule ¶
type RewriteRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RewriteRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RewriteRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RewriteRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RewriteRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rewriteRuleJSON `json:"-"`
}
func (*RewriteRule) UnmarshalJSON ¶
func (r *RewriteRule) UnmarshalJSON(data []byte) (err error)
type RewriteRuleAction ¶
type RewriteRuleAction string
The action to perform when the rule matches.
const (
RewriteRuleActionRewrite RewriteRuleAction = "rewrite"
)
func (RewriteRuleAction) IsKnown ¶
func (r RewriteRuleAction) IsKnown() bool
type RewriteRuleActionParameters ¶
type RewriteRuleActionParameters struct {
// A map of headers to rewrite.
Headers map[string]RewriteRuleActionParametersHeader `json:"headers"`
// A URI path rewrite.
URI RewriteRuleActionParametersURI `json:"uri"`
JSON rewriteRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RewriteRuleActionParameters) UnmarshalJSON ¶
func (r *RewriteRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RewriteRuleActionParametersHeader ¶
type RewriteRuleActionParametersHeader struct {
// The operation to perform on the header.
Operation RewriteRuleActionParametersHeadersOperation `json:"operation" api:"required"`
// An expression that evaluates to a value for the header.
Expression string `json:"expression"`
// A static value for the header.
Value string `json:"value"`
JSON rewriteRuleActionParametersHeaderJSON `json:"-"`
// contains filtered or unexported fields
}
A header with a static value to add.
func (RewriteRuleActionParametersHeader) AsUnion ¶
func (r RewriteRuleActionParametersHeader) AsUnion() RewriteRuleActionParametersHeadersUnion
AsUnion returns a RewriteRuleActionParametersHeadersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RewriteRuleActionParametersHeadersAddStaticHeader, RewriteRuleActionParametersHeadersAddDynamicHeader, RewriteRuleActionParametersHeadersSetStaticHeader, RewriteRuleActionParametersHeadersSetDynamicHeader, RewriteRuleActionParametersHeadersRemoveHeader.
func (*RewriteRuleActionParametersHeader) UnmarshalJSON ¶
func (r *RewriteRuleActionParametersHeader) UnmarshalJSON(data []byte) (err error)
type RewriteRuleActionParametersHeaderParam ¶
type RewriteRuleActionParametersHeaderParam struct {
// The operation to perform on the header.
Operation param.Field[RewriteRuleActionParametersHeadersOperation] `json:"operation" api:"required"`
// An expression that evaluates to a value for the header.
Expression param.Field[string] `json:"expression"`
// A static value for the header.
Value param.Field[string] `json:"value"`
}
A header with a static value to add.
func (RewriteRuleActionParametersHeaderParam) MarshalJSON ¶
func (r RewriteRuleActionParametersHeaderParam) MarshalJSON() (data []byte, err error)
type RewriteRuleActionParametersHeadersAddDynamicHeader ¶
type RewriteRuleActionParametersHeadersAddDynamicHeader struct {
// An expression that evaluates to a value for the header.
Expression string `json:"expression" api:"required"`
// The operation to perform on the header.
Operation RewriteRuleActionParametersHeadersAddDynamicHeaderOperation `json:"operation" api:"required"`
JSON rewriteRuleActionParametersHeadersAddDynamicHeaderJSON `json:"-"`
}
A header with a dynamic value to add.
func (*RewriteRuleActionParametersHeadersAddDynamicHeader) UnmarshalJSON ¶
func (r *RewriteRuleActionParametersHeadersAddDynamicHeader) UnmarshalJSON(data []byte) (err error)
type RewriteRuleActionParametersHeadersAddDynamicHeaderOperation ¶
type RewriteRuleActionParametersHeadersAddDynamicHeaderOperation string
The operation to perform on the header.
const (
RewriteRuleActionParametersHeadersAddDynamicHeaderOperationAdd RewriteRuleActionParametersHeadersAddDynamicHeaderOperation = "add"
)
func (RewriteRuleActionParametersHeadersAddDynamicHeaderOperation) IsKnown ¶
func (r RewriteRuleActionParametersHeadersAddDynamicHeaderOperation) IsKnown() bool
type RewriteRuleActionParametersHeadersAddDynamicHeaderParam ¶
type RewriteRuleActionParametersHeadersAddDynamicHeaderParam struct {
// An expression that evaluates to a value for the header.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the header.
Operation param.Field[RewriteRuleActionParametersHeadersAddDynamicHeaderOperation] `json:"operation" api:"required"`
}
A header with a dynamic value to add.
func (RewriteRuleActionParametersHeadersAddDynamicHeaderParam) MarshalJSON ¶
func (r RewriteRuleActionParametersHeadersAddDynamicHeaderParam) MarshalJSON() (data []byte, err error)
type RewriteRuleActionParametersHeadersAddStaticHeader ¶
type RewriteRuleActionParametersHeadersAddStaticHeader struct {
// The operation to perform on the header.
Operation RewriteRuleActionParametersHeadersAddStaticHeaderOperation `json:"operation" api:"required"`
// A static value for the header.
Value string `json:"value" api:"required"`
JSON rewriteRuleActionParametersHeadersAddStaticHeaderJSON `json:"-"`
}
A header with a static value to add.
func (*RewriteRuleActionParametersHeadersAddStaticHeader) UnmarshalJSON ¶
func (r *RewriteRuleActionParametersHeadersAddStaticHeader) UnmarshalJSON(data []byte) (err error)
type RewriteRuleActionParametersHeadersAddStaticHeaderOperation ¶
type RewriteRuleActionParametersHeadersAddStaticHeaderOperation string
The operation to perform on the header.
const (
RewriteRuleActionParametersHeadersAddStaticHeaderOperationAdd RewriteRuleActionParametersHeadersAddStaticHeaderOperation = "add"
)
func (RewriteRuleActionParametersHeadersAddStaticHeaderOperation) IsKnown ¶
func (r RewriteRuleActionParametersHeadersAddStaticHeaderOperation) IsKnown() bool
type RewriteRuleActionParametersHeadersAddStaticHeaderParam ¶
type RewriteRuleActionParametersHeadersAddStaticHeaderParam struct {
// The operation to perform on the header.
Operation param.Field[RewriteRuleActionParametersHeadersAddStaticHeaderOperation] `json:"operation" api:"required"`
// A static value for the header.
Value param.Field[string] `json:"value" api:"required"`
}
A header with a static value to add.
func (RewriteRuleActionParametersHeadersAddStaticHeaderParam) MarshalJSON ¶
func (r RewriteRuleActionParametersHeadersAddStaticHeaderParam) MarshalJSON() (data []byte, err error)
type RewriteRuleActionParametersHeadersOperation ¶
type RewriteRuleActionParametersHeadersOperation string
The operation to perform on the header.
const ( RewriteRuleActionParametersHeadersOperationAdd RewriteRuleActionParametersHeadersOperation = "add" RewriteRuleActionParametersHeadersOperationSet RewriteRuleActionParametersHeadersOperation = "set" RewriteRuleActionParametersHeadersOperationRemove RewriteRuleActionParametersHeadersOperation = "remove" )
func (RewriteRuleActionParametersHeadersOperation) IsKnown ¶
func (r RewriteRuleActionParametersHeadersOperation) IsKnown() bool
type RewriteRuleActionParametersHeadersRemoveHeader ¶
type RewriteRuleActionParametersHeadersRemoveHeader struct {
// The operation to perform on the header.
Operation RewriteRuleActionParametersHeadersRemoveHeaderOperation `json:"operation" api:"required"`
JSON rewriteRuleActionParametersHeadersRemoveHeaderJSON `json:"-"`
}
A header to remove.
func (*RewriteRuleActionParametersHeadersRemoveHeader) UnmarshalJSON ¶
func (r *RewriteRuleActionParametersHeadersRemoveHeader) UnmarshalJSON(data []byte) (err error)
type RewriteRuleActionParametersHeadersRemoveHeaderOperation ¶
type RewriteRuleActionParametersHeadersRemoveHeaderOperation string
The operation to perform on the header.
const (
RewriteRuleActionParametersHeadersRemoveHeaderOperationRemove RewriteRuleActionParametersHeadersRemoveHeaderOperation = "remove"
)
func (RewriteRuleActionParametersHeadersRemoveHeaderOperation) IsKnown ¶
func (r RewriteRuleActionParametersHeadersRemoveHeaderOperation) IsKnown() bool
type RewriteRuleActionParametersHeadersRemoveHeaderParam ¶
type RewriteRuleActionParametersHeadersRemoveHeaderParam struct {
// The operation to perform on the header.
Operation param.Field[RewriteRuleActionParametersHeadersRemoveHeaderOperation] `json:"operation" api:"required"`
}
A header to remove.
func (RewriteRuleActionParametersHeadersRemoveHeaderParam) MarshalJSON ¶
func (r RewriteRuleActionParametersHeadersRemoveHeaderParam) MarshalJSON() (data []byte, err error)
type RewriteRuleActionParametersHeadersSetDynamicHeader ¶
type RewriteRuleActionParametersHeadersSetDynamicHeader struct {
// An expression that evaluates to a value for the header.
Expression string `json:"expression" api:"required"`
// The operation to perform on the header.
Operation RewriteRuleActionParametersHeadersSetDynamicHeaderOperation `json:"operation" api:"required"`
JSON rewriteRuleActionParametersHeadersSetDynamicHeaderJSON `json:"-"`
}
A header with a dynamic value to set.
func (*RewriteRuleActionParametersHeadersSetDynamicHeader) UnmarshalJSON ¶
func (r *RewriteRuleActionParametersHeadersSetDynamicHeader) UnmarshalJSON(data []byte) (err error)
type RewriteRuleActionParametersHeadersSetDynamicHeaderOperation ¶
type RewriteRuleActionParametersHeadersSetDynamicHeaderOperation string
The operation to perform on the header.
const (
RewriteRuleActionParametersHeadersSetDynamicHeaderOperationSet RewriteRuleActionParametersHeadersSetDynamicHeaderOperation = "set"
)
func (RewriteRuleActionParametersHeadersSetDynamicHeaderOperation) IsKnown ¶
func (r RewriteRuleActionParametersHeadersSetDynamicHeaderOperation) IsKnown() bool
type RewriteRuleActionParametersHeadersSetDynamicHeaderParam ¶
type RewriteRuleActionParametersHeadersSetDynamicHeaderParam struct {
// An expression that evaluates to a value for the header.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the header.
Operation param.Field[RewriteRuleActionParametersHeadersSetDynamicHeaderOperation] `json:"operation" api:"required"`
}
A header with a dynamic value to set.
func (RewriteRuleActionParametersHeadersSetDynamicHeaderParam) MarshalJSON ¶
func (r RewriteRuleActionParametersHeadersSetDynamicHeaderParam) MarshalJSON() (data []byte, err error)
type RewriteRuleActionParametersHeadersSetStaticHeader ¶
type RewriteRuleActionParametersHeadersSetStaticHeader struct {
// The operation to perform on the header.
Operation RewriteRuleActionParametersHeadersSetStaticHeaderOperation `json:"operation" api:"required"`
// A static value for the header.
Value string `json:"value" api:"required"`
JSON rewriteRuleActionParametersHeadersSetStaticHeaderJSON `json:"-"`
}
A header with a static value to set.
func (*RewriteRuleActionParametersHeadersSetStaticHeader) UnmarshalJSON ¶
func (r *RewriteRuleActionParametersHeadersSetStaticHeader) UnmarshalJSON(data []byte) (err error)
type RewriteRuleActionParametersHeadersSetStaticHeaderOperation ¶
type RewriteRuleActionParametersHeadersSetStaticHeaderOperation string
The operation to perform on the header.
const (
RewriteRuleActionParametersHeadersSetStaticHeaderOperationSet RewriteRuleActionParametersHeadersSetStaticHeaderOperation = "set"
)
func (RewriteRuleActionParametersHeadersSetStaticHeaderOperation) IsKnown ¶
func (r RewriteRuleActionParametersHeadersSetStaticHeaderOperation) IsKnown() bool
type RewriteRuleActionParametersHeadersSetStaticHeaderParam ¶
type RewriteRuleActionParametersHeadersSetStaticHeaderParam struct {
// The operation to perform on the header.
Operation param.Field[RewriteRuleActionParametersHeadersSetStaticHeaderOperation] `json:"operation" api:"required"`
// A static value for the header.
Value param.Field[string] `json:"value" api:"required"`
}
A header with a static value to set.
func (RewriteRuleActionParametersHeadersSetStaticHeaderParam) MarshalJSON ¶
func (r RewriteRuleActionParametersHeadersSetStaticHeaderParam) MarshalJSON() (data []byte, err error)
type RewriteRuleActionParametersHeadersUnion ¶
type RewriteRuleActionParametersHeadersUnion interface {
// contains filtered or unexported methods
}
A header with a static value to add.
Union satisfied by RewriteRuleActionParametersHeadersAddStaticHeader, RewriteRuleActionParametersHeadersAddDynamicHeader, RewriteRuleActionParametersHeadersSetStaticHeader, RewriteRuleActionParametersHeadersSetDynamicHeader or RewriteRuleActionParametersHeadersRemoveHeader.
type RewriteRuleActionParametersHeadersUnionParam ¶
type RewriteRuleActionParametersHeadersUnionParam interface {
// contains filtered or unexported methods
}
A header with a static value to add.
Satisfied by rulesets.RewriteRuleActionParametersHeadersAddStaticHeaderParam, rulesets.RewriteRuleActionParametersHeadersAddDynamicHeaderParam, rulesets.RewriteRuleActionParametersHeadersSetStaticHeaderParam, rulesets.RewriteRuleActionParametersHeadersSetDynamicHeaderParam, rulesets.RewriteRuleActionParametersHeadersRemoveHeaderParam, RewriteRuleActionParametersHeaderParam.
type RewriteRuleActionParametersParam ¶
type RewriteRuleActionParametersParam struct {
// A map of headers to rewrite.
Headers param.Field[map[string]RewriteRuleActionParametersHeadersUnionParam] `json:"headers"`
// A URI path rewrite.
URI param.Field[RewriteRuleActionParametersURIUnionParam] `json:"uri"`
}
The parameters configuring the rule's action.
func (RewriteRuleActionParametersParam) MarshalJSON ¶
func (r RewriteRuleActionParametersParam) MarshalJSON() (data []byte, err error)
type RewriteRuleActionParametersURI ¶
type RewriteRuleActionParametersURI struct {
// Whether to propagate the rewritten URI to origin.
Origin bool `json:"origin"`
// This field can have the runtime type of
// [RewriteRuleActionParametersURIURIPathPath].
Path interface{} `json:"path"`
// This field can have the runtime type of
// [RewriteRuleActionParametersURIURIQueryQuery].
Query interface{} `json:"query"`
JSON rewriteRuleActionParametersURIJSON `json:"-"`
// contains filtered or unexported fields
}
A URI path rewrite.
func (RewriteRuleActionParametersURI) AsUnion ¶
func (r RewriteRuleActionParametersURI) AsUnion() RewriteRuleActionParametersURIUnion
AsUnion returns a RewriteRuleActionParametersURIUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RewriteRuleActionParametersURIURIPath, RewriteRuleActionParametersURIURIQuery.
func (*RewriteRuleActionParametersURI) UnmarshalJSON ¶
func (r *RewriteRuleActionParametersURI) UnmarshalJSON(data []byte) (err error)
type RewriteRuleActionParametersURIParam ¶
type RewriteRuleActionParametersURIParam struct {
Path param.Field[interface{}] `json:"path"`
Query param.Field[interface{}] `json:"query"`
}
A URI path rewrite.
func (RewriteRuleActionParametersURIParam) MarshalJSON ¶
func (r RewriteRuleActionParametersURIParam) MarshalJSON() (data []byte, err error)
type RewriteRuleActionParametersURIURIPath ¶
type RewriteRuleActionParametersURIURIPath struct {
// A URI path rewrite.
Path RewriteRuleActionParametersURIURIPathPath `json:"path" api:"required"`
// Whether to propagate the rewritten URI to origin.
Origin bool `json:"origin"`
JSON rewriteRuleActionParametersUriuriPathJSON `json:"-"`
}
A URI path rewrite.
func (*RewriteRuleActionParametersURIURIPath) UnmarshalJSON ¶
func (r *RewriteRuleActionParametersURIURIPath) UnmarshalJSON(data []byte) (err error)
type RewriteRuleActionParametersURIURIPathParam ¶
type RewriteRuleActionParametersURIURIPathParam struct {
// A URI path rewrite.
Path param.Field[RewriteRuleActionParametersURIURIPathPathParam] `json:"path" api:"required"`
}
A URI path rewrite.
func (RewriteRuleActionParametersURIURIPathParam) MarshalJSON ¶
func (r RewriteRuleActionParametersURIURIPathParam) MarshalJSON() (data []byte, err error)
type RewriteRuleActionParametersURIURIPathPath ¶
type RewriteRuleActionParametersURIURIPathPath struct {
// An expression that evaluates to a value to rewrite the URI path to.
Expression string `json:"expression"`
// A value to rewrite the URI path to.
Value string `json:"value"`
JSON rewriteRuleActionParametersUriuriPathPathJSON `json:"-"`
}
A URI path rewrite.
func (*RewriteRuleActionParametersURIURIPathPath) UnmarshalJSON ¶
func (r *RewriteRuleActionParametersURIURIPathPath) UnmarshalJSON(data []byte) (err error)
type RewriteRuleActionParametersURIURIPathPathParam ¶
type RewriteRuleActionParametersURIURIPathPathParam struct {
// An expression that evaluates to a value to rewrite the URI path to.
Expression param.Field[string] `json:"expression"`
// A value to rewrite the URI path to.
Value param.Field[string] `json:"value"`
}
A URI path rewrite.
func (RewriteRuleActionParametersURIURIPathPathParam) MarshalJSON ¶
func (r RewriteRuleActionParametersURIURIPathPathParam) MarshalJSON() (data []byte, err error)
type RewriteRuleActionParametersURIURIQuery ¶
type RewriteRuleActionParametersURIURIQuery struct {
// A URI query rewrite.
Query RewriteRuleActionParametersURIURIQueryQuery `json:"query" api:"required"`
// Whether to propagate the rewritten URI to origin.
Origin bool `json:"origin"`
JSON rewriteRuleActionParametersUriuriQueryJSON `json:"-"`
}
A URI query rewrite.
func (*RewriteRuleActionParametersURIURIQuery) UnmarshalJSON ¶
func (r *RewriteRuleActionParametersURIURIQuery) UnmarshalJSON(data []byte) (err error)
type RewriteRuleActionParametersURIURIQueryParam ¶
type RewriteRuleActionParametersURIURIQueryParam struct {
// A URI query rewrite.
Query param.Field[RewriteRuleActionParametersURIURIQueryQueryParam] `json:"query" api:"required"`
}
A URI query rewrite.
func (RewriteRuleActionParametersURIURIQueryParam) MarshalJSON ¶
func (r RewriteRuleActionParametersURIURIQueryParam) MarshalJSON() (data []byte, err error)
type RewriteRuleActionParametersURIURIQueryQuery ¶
type RewriteRuleActionParametersURIURIQueryQuery struct {
// An expression that evaluates to a value to rewrite the URI query to.
Expression string `json:"expression"`
// A value to rewrite the URI query to.
Value string `json:"value"`
JSON rewriteRuleActionParametersUriuriQueryQueryJSON `json:"-"`
}
A URI query rewrite.
func (*RewriteRuleActionParametersURIURIQueryQuery) UnmarshalJSON ¶
func (r *RewriteRuleActionParametersURIURIQueryQuery) UnmarshalJSON(data []byte) (err error)
type RewriteRuleActionParametersURIURIQueryQueryParam ¶
type RewriteRuleActionParametersURIURIQueryQueryParam struct {
// An expression that evaluates to a value to rewrite the URI query to.
Expression param.Field[string] `json:"expression"`
// A value to rewrite the URI query to.
Value param.Field[string] `json:"value"`
}
A URI query rewrite.
func (RewriteRuleActionParametersURIURIQueryQueryParam) MarshalJSON ¶
func (r RewriteRuleActionParametersURIURIQueryQueryParam) MarshalJSON() (data []byte, err error)
type RewriteRuleActionParametersURIUnion ¶
type RewriteRuleActionParametersURIUnion interface {
// contains filtered or unexported methods
}
A URI path rewrite.
Union satisfied by RewriteRuleActionParametersURIURIPath or RewriteRuleActionParametersURIURIQuery.
type RewriteRuleActionParametersURIUnionParam ¶
type RewriteRuleActionParametersURIUnionParam interface {
// contains filtered or unexported methods
}
A URI path rewrite.
Satisfied by rulesets.RewriteRuleActionParametersURIURIPathParam, rulesets.RewriteRuleActionParametersURIURIQueryParam, RewriteRuleActionParametersURIParam.
type RewriteRuleExposedCredentialCheck ¶
type RewriteRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON rewriteRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RewriteRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RewriteRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RewriteRuleExposedCredentialCheckParam ¶
type RewriteRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RewriteRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r RewriteRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type RewriteRuleParam ¶
type RewriteRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RewriteRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[RewriteRuleActionParametersParam] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RewriteRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RewriteRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RewriteRuleParam) MarshalJSON ¶
func (r RewriteRuleParam) MarshalJSON() (data []byte, err error)
type RewriteRuleRatelimit ¶
type RewriteRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON rewriteRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RewriteRuleRatelimit) UnmarshalJSON ¶
func (r *RewriteRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RewriteRuleRatelimitParam ¶
type RewriteRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RewriteRuleRatelimitParam) MarshalJSON ¶
func (r RewriteRuleRatelimitParam) MarshalJSON() (data []byte, err error)
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 RouteRule ¶
type RouteRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RouteRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RouteRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RouteRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RouteRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON routeRuleJSON `json:"-"`
}
func (*RouteRule) UnmarshalJSON ¶
type RouteRuleAction ¶
type RouteRuleAction string
The action to perform when the rule matches.
const (
RouteRuleActionRoute RouteRuleAction = "route"
)
func (RouteRuleAction) IsKnown ¶
func (r RouteRuleAction) IsKnown() bool
type RouteRuleActionParameters ¶
type RouteRuleActionParameters struct {
// A value to rewrite the HTTP host header to.
HostHeader string `json:"host_header"`
// An origin to route to.
Origin RouteRuleActionParametersOrigin `json:"origin"`
// A Server Name Indication (SNI) override.
SNI RouteRuleActionParametersSNI `json:"sni"`
JSON routeRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RouteRuleActionParameters) UnmarshalJSON ¶
func (r *RouteRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RouteRuleActionParametersOrigin ¶
type RouteRuleActionParametersOrigin struct {
// A resolved host to route to.
Host string `json:"host"`
// A destination port to route to.
Port int64 `json:"port"`
JSON routeRuleActionParametersOriginJSON `json:"-"`
}
An origin to route to.
func (*RouteRuleActionParametersOrigin) UnmarshalJSON ¶
func (r *RouteRuleActionParametersOrigin) UnmarshalJSON(data []byte) (err error)
type RouteRuleActionParametersOriginParam ¶
type RouteRuleActionParametersOriginParam struct {
// A resolved host to route to.
Host param.Field[string] `json:"host"`
// A destination port to route to.
Port param.Field[int64] `json:"port"`
}
An origin to route to.
func (RouteRuleActionParametersOriginParam) MarshalJSON ¶
func (r RouteRuleActionParametersOriginParam) MarshalJSON() (data []byte, err error)
type RouteRuleActionParametersParam ¶
type RouteRuleActionParametersParam struct {
// A value to rewrite the HTTP host header to.
HostHeader param.Field[string] `json:"host_header"`
// An origin to route to.
Origin param.Field[RouteRuleActionParametersOriginParam] `json:"origin"`
// A Server Name Indication (SNI) override.
SNI param.Field[RouteRuleActionParametersSNIParam] `json:"sni"`
}
The parameters configuring the rule's action.
func (RouteRuleActionParametersParam) MarshalJSON ¶
func (r RouteRuleActionParametersParam) MarshalJSON() (data []byte, err error)
type RouteRuleActionParametersSNI ¶
type RouteRuleActionParametersSNI struct {
// A value to override the SNI to.
Value string `json:"value" api:"required"`
JSON routeRuleActionParametersSNIJSON `json:"-"`
}
A Server Name Indication (SNI) override.
func (*RouteRuleActionParametersSNI) UnmarshalJSON ¶
func (r *RouteRuleActionParametersSNI) UnmarshalJSON(data []byte) (err error)
type RouteRuleActionParametersSNIParam ¶
type RouteRuleActionParametersSNIParam struct {
// A value to override the SNI to.
Value param.Field[string] `json:"value" api:"required"`
}
A Server Name Indication (SNI) override.
func (RouteRuleActionParametersSNIParam) MarshalJSON ¶
func (r RouteRuleActionParametersSNIParam) MarshalJSON() (data []byte, err error)
type RouteRuleExposedCredentialCheck ¶
type RouteRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON routeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RouteRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RouteRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RouteRuleExposedCredentialCheckParam ¶
type RouteRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RouteRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r RouteRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type RouteRuleParam ¶
type RouteRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RouteRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[RouteRuleActionParametersParam] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RouteRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RouteRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RouteRuleParam) MarshalJSON ¶
func (r RouteRuleParam) MarshalJSON() (data []byte, err error)
type RouteRuleRatelimit ¶
type RouteRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON routeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RouteRuleRatelimit) UnmarshalJSON ¶
func (r *RouteRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RouteRuleRatelimitParam ¶
type RouteRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RouteRuleRatelimitParam) MarshalJSON ¶
func (r RouteRuleRatelimitParam) MarshalJSON() (data []byte, err error)
type RuleDeleteParams ¶
type RuleDeleteResponse ¶
type RuleDeleteResponse struct {
// The unique ID of the ruleset.
ID string `json:"id" api:"required"`
// The kind of the ruleset.
Kind Kind `json:"kind" api:"required"`
// The timestamp of when the ruleset was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The human-readable name of the ruleset.
Name string `json:"name" api:"required"`
// The phase of the ruleset.
Phase Phase `json:"phase" api:"required"`
// The list of rules in the ruleset.
Rules []RuleDeleteResponseRule `json:"rules" api:"required"`
// The version of the ruleset.
Version string `json:"version" api:"required"`
// An informative description of the ruleset.
Description string `json:"description"`
JSON ruleDeleteResponseJSON `json:"-"`
}
A ruleset object.
func (*RuleDeleteResponse) UnmarshalJSON ¶
func (r *RuleDeleteResponse) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelope ¶
type RuleDeleteResponseEnvelope struct {
// A list of error messages.
Errors []RuleDeleteResponseEnvelopeErrors `json:"errors" api:"required"`
// A list of warning messages.
Messages []RuleDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
// A ruleset object.
Result RuleDeleteResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success RuleDeleteResponseEnvelopeSuccess `json:"success" api:"required"`
JSON ruleDeleteResponseEnvelopeJSON `json:"-"`
}
A response object.
func (*RuleDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *RuleDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeErrors ¶
type RuleDeleteResponseEnvelopeErrors struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source RuleDeleteResponseEnvelopeErrorsSource `json:"source"`
JSON ruleDeleteResponseEnvelopeErrorsJSON `json:"-"`
}
A message.
func (*RuleDeleteResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *RuleDeleteResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeErrorsSource ¶
type RuleDeleteResponseEnvelopeErrorsSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON ruleDeleteResponseEnvelopeErrorsSourceJSON `json:"-"`
}
The source of this message.
func (*RuleDeleteResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *RuleDeleteResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeMessages ¶
type RuleDeleteResponseEnvelopeMessages struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source RuleDeleteResponseEnvelopeMessagesSource `json:"source"`
JSON ruleDeleteResponseEnvelopeMessagesJSON `json:"-"`
}
A message.
func (*RuleDeleteResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *RuleDeleteResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeMessagesSource ¶
type RuleDeleteResponseEnvelopeMessagesSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON ruleDeleteResponseEnvelopeMessagesSourceJSON `json:"-"`
}
The source of this message.
func (*RuleDeleteResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *RuleDeleteResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeSuccess ¶
type RuleDeleteResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
RuleDeleteResponseEnvelopeSuccessTrue RuleDeleteResponseEnvelopeSuccess = true
)
func (RuleDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r RuleDeleteResponseEnvelopeSuccess) IsKnown() bool
type RuleDeleteResponseRule ¶
type RuleDeleteResponseRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RuleDeleteResponseRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters].
ActionParameters interface{} `json:"action_parameters"`
// This field can have the runtime type of [[]string].
Categories interface{} `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// This field can have the runtime type of [BlockRuleExposedCredentialCheck],
// [RuleDeleteResponseRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [RuleDeleteResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [RuleDeleteResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [RuleDeleteResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck].
ExposedCredentialCheck interface{} `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// This field can have the runtime type of [BlockRuleRatelimit],
// [RuleDeleteResponseRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [RuleDeleteResponseRulesRulesetsJSChallengeRuleRatelimit], [LogRuleRatelimit],
// [LogCustomFieldRuleRatelimit], [ManagedChallengeRuleRatelimit],
// [RedirectRuleRatelimit], [RewriteRuleRatelimit], [RouteRuleRatelimit],
// [ScoreRuleRatelimit], [ServeErrorRuleRatelimit],
// [RuleDeleteResponseRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [RuleDeleteResponseRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleDeleteResponseRuleJSON `json:"-"`
// contains filtered or unexported fields
}
func (RuleDeleteResponseRule) AsUnion ¶
func (r RuleDeleteResponseRule) AsUnion() RuleDeleteResponseRulesUnion
AsUnion returns a RuleDeleteResponseRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, RuleDeleteResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RuleDeleteResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RuleDeleteResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RuleDeleteResponseRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule.
func (*RuleDeleteResponseRule) UnmarshalJSON ¶
func (r *RuleDeleteResponseRule) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesAction ¶
type RuleDeleteResponseRulesAction string
The action to perform when the rule matches.
const ( RuleDeleteResponseRulesActionBlock RuleDeleteResponseRulesAction = "block" RuleDeleteResponseRulesActionChallenge RuleDeleteResponseRulesAction = "challenge" RuleDeleteResponseRulesActionCompressResponse RuleDeleteResponseRulesAction = "compress_response" RuleDeleteResponseRulesActionDDoSDynamic RuleDeleteResponseRulesAction = "ddos_dynamic" RuleDeleteResponseRulesActionExecute RuleDeleteResponseRulesAction = "execute" RuleDeleteResponseRulesActionForceConnectionClose RuleDeleteResponseRulesAction = "force_connection_close" RuleDeleteResponseRulesActionJSChallenge RuleDeleteResponseRulesAction = "js_challenge" RuleDeleteResponseRulesActionLog RuleDeleteResponseRulesAction = "log" RuleDeleteResponseRulesActionLogCustomField RuleDeleteResponseRulesAction = "log_custom_field" RuleDeleteResponseRulesActionManagedChallenge RuleDeleteResponseRulesAction = "managed_challenge" RuleDeleteResponseRulesActionRedirect RuleDeleteResponseRulesAction = "redirect" RuleDeleteResponseRulesActionRewrite RuleDeleteResponseRulesAction = "rewrite" RuleDeleteResponseRulesActionRoute RuleDeleteResponseRulesAction = "route" RuleDeleteResponseRulesActionScore RuleDeleteResponseRulesAction = "score" RuleDeleteResponseRulesActionServeError RuleDeleteResponseRulesAction = "serve_error" RuleDeleteResponseRulesActionSetCacheControl RuleDeleteResponseRulesAction = "set_cache_control" RuleDeleteResponseRulesActionSetCacheSettings RuleDeleteResponseRulesAction = "set_cache_settings" RuleDeleteResponseRulesActionSetCacheTags RuleDeleteResponseRulesAction = "set_cache_tags" RuleDeleteResponseRulesActionSetConfig RuleDeleteResponseRulesAction = "set_config" RuleDeleteResponseRulesActionSkip RuleDeleteResponseRulesAction = "skip" )
func (RuleDeleteResponseRulesAction) IsKnown ¶
func (r RuleDeleteResponseRulesAction) IsKnown() bool
type RuleDeleteResponseRulesRulesetsChallengeRule ¶
type RuleDeleteResponseRulesRulesetsChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RuleDeleteResponseRulesRulesetsChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RuleDeleteResponseRulesRulesetsChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RuleDeleteResponseRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleDeleteResponseRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*RuleDeleteResponseRulesRulesetsChallengeRule) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsChallengeRuleAction ¶
type RuleDeleteResponseRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleDeleteResponseRulesRulesetsChallengeRuleActionChallenge RuleDeleteResponseRulesRulesetsChallengeRuleAction = "challenge"
)
func (RuleDeleteResponseRulesRulesetsChallengeRuleAction) IsKnown ¶
func (r RuleDeleteResponseRulesRulesetsChallengeRuleAction) IsKnown() bool
type RuleDeleteResponseRulesRulesetsChallengeRuleExposedCredentialCheck ¶
type RuleDeleteResponseRulesRulesetsChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON ruleDeleteResponseRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleDeleteResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsChallengeRuleRatelimit ¶
type RuleDeleteResponseRulesRulesetsChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON ruleDeleteResponseRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleDeleteResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsJSChallengeRule ¶
type RuleDeleteResponseRulesRulesetsJSChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RuleDeleteResponseRulesRulesetsJSChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RuleDeleteResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RuleDeleteResponseRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleDeleteResponseRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*RuleDeleteResponseRulesRulesetsJSChallengeRule) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsJSChallengeRuleAction ¶
type RuleDeleteResponseRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleDeleteResponseRulesRulesetsJSChallengeRuleActionJSChallenge RuleDeleteResponseRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (RuleDeleteResponseRulesRulesetsJSChallengeRuleAction) IsKnown ¶
func (r RuleDeleteResponseRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type RuleDeleteResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶
type RuleDeleteResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON ruleDeleteResponseRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleDeleteResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsJSChallengeRuleRatelimit ¶
type RuleDeleteResponseRulesRulesetsJSChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON ruleDeleteResponseRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleDeleteResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRule ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RuleDeleteResponseRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RuleDeleteResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RuleDeleteResponseRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleAction ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionSetCacheControl RuleDeleteResponseRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (RuleDeleteResponseRulesRulesetsSetCacheControlRuleAction) IsKnown ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParameters ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublic ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or RuleDeleteResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleRatelimit ¶
type RuleDeleteResponseRulesRulesetsSetCacheControlRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON ruleDeleteResponseRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleDeleteResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheTagsRule ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RuleDeleteResponseRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RuleDeleteResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RuleDeleteResponseRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleDeleteResponseRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*RuleDeleteResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleAction ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionSetCacheTags RuleDeleteResponseRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (RuleDeleteResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParameters ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation `json:"operation" api:"required"`
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression"`
// This field can have the runtime type of [[]string].
Values interface{} `json:"values"`
JSON ruleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationSet RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
func (RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown ¶
func (r RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown() bool
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or RuleDeleteResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON ruleDeleteResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleDeleteResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleRatelimit ¶
type RuleDeleteResponseRulesRulesetsSetCacheTagsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON ruleDeleteResponseRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleDeleteResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶
func (r *RuleDeleteResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseRulesUnion ¶
type RuleDeleteResponseRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, RuleDeleteResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RuleDeleteResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RuleDeleteResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RuleDeleteResponseRulesRulesetsSetCacheTagsRule, SetConfigRule or SkipRule.
type RuleEditParams ¶
type RuleEditParams struct {
Body RuleEditParamsBodyUnion `json:"body" api:"required"`
// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
AccountID param.Field[string] `path:"account_id"`
// The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
ZoneID param.Field[string] `path:"zone_id"`
}
func (RuleEditParams) MarshalJSON ¶
func (r RuleEditParams) MarshalJSON() (data []byte, err error)
type RuleEditParamsBody ¶
type RuleEditParamsBody struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RuleEditParamsBodyAction] `json:"action"`
ActionParameters param.Field[interface{}] `json:"action_parameters"`
Categories param.Field[interface{}] `json:"categories"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
ExposedCredentialCheck param.Field[interface{}] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
Position param.Field[interface{}] `json:"position"`
Ratelimit param.Field[interface{}] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RuleEditParamsBody) MarshalJSON ¶
func (r RuleEditParamsBody) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyAction ¶
type RuleEditParamsBodyAction string
The action to perform when the rule matches.
const ( RuleEditParamsBodyActionBlock RuleEditParamsBodyAction = "block" RuleEditParamsBodyActionChallenge RuleEditParamsBodyAction = "challenge" RuleEditParamsBodyActionCompressResponse RuleEditParamsBodyAction = "compress_response" RuleEditParamsBodyActionDDoSDynamic RuleEditParamsBodyAction = "ddos_dynamic" RuleEditParamsBodyActionExecute RuleEditParamsBodyAction = "execute" RuleEditParamsBodyActionForceConnectionClose RuleEditParamsBodyAction = "force_connection_close" RuleEditParamsBodyActionJSChallenge RuleEditParamsBodyAction = "js_challenge" RuleEditParamsBodyActionLog RuleEditParamsBodyAction = "log" RuleEditParamsBodyActionLogCustomField RuleEditParamsBodyAction = "log_custom_field" RuleEditParamsBodyActionManagedChallenge RuleEditParamsBodyAction = "managed_challenge" RuleEditParamsBodyActionRedirect RuleEditParamsBodyAction = "redirect" RuleEditParamsBodyActionRewrite RuleEditParamsBodyAction = "rewrite" RuleEditParamsBodyActionRoute RuleEditParamsBodyAction = "route" RuleEditParamsBodyActionScore RuleEditParamsBodyAction = "score" RuleEditParamsBodyActionServeError RuleEditParamsBodyAction = "serve_error" RuleEditParamsBodyActionSetCacheControl RuleEditParamsBodyAction = "set_cache_control" RuleEditParamsBodyActionSetCacheSettings RuleEditParamsBodyAction = "set_cache_settings" RuleEditParamsBodyActionSetCacheTags RuleEditParamsBodyAction = "set_cache_tags" RuleEditParamsBodyActionSetConfig RuleEditParamsBodyAction = "set_config" RuleEditParamsBodyActionSkip RuleEditParamsBodyAction = "skip" )
func (RuleEditParamsBodyAction) IsKnown ¶
func (r RuleEditParamsBodyAction) IsKnown() bool
type RuleEditParamsBodyBlockRule ¶
type RuleEditParamsBodyBlockRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodyBlockRulePositionUnion] `json:"position"`
BlockRuleParam
}
func (RuleEditParamsBodyBlockRule) MarshalJSON ¶
func (r RuleEditParamsBodyBlockRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyBlockRulePosition ¶
type RuleEditParamsBodyBlockRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyBlockRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodyBlockRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyBlockRulePositionAfterPosition ¶
type RuleEditParamsBodyBlockRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyBlockRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodyBlockRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyBlockRulePositionBeforePosition ¶
type RuleEditParamsBodyBlockRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyBlockRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodyBlockRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyBlockRulePositionIndexPosition ¶
type RuleEditParamsBodyBlockRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyBlockRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodyBlockRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyBlockRulePositionUnion ¶
type RuleEditParamsBodyBlockRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyBlockRulePositionBeforePosition, rulesets.RuleEditParamsBodyBlockRulePositionAfterPosition, rulesets.RuleEditParamsBodyBlockRulePositionIndexPosition, RuleEditParamsBodyBlockRulePosition.
type RuleEditParamsBodyChallengeRule ¶
type RuleEditParamsBodyChallengeRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RuleEditParamsBodyChallengeRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[interface{}] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RuleEditParamsBodyChallengeRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodyChallengeRulePositionUnion] `json:"position"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RuleEditParamsBodyChallengeRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RuleEditParamsBodyChallengeRule) MarshalJSON ¶
func (r RuleEditParamsBodyChallengeRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyChallengeRuleAction ¶
type RuleEditParamsBodyChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleEditParamsBodyChallengeRuleActionChallenge RuleEditParamsBodyChallengeRuleAction = "challenge"
)
func (RuleEditParamsBodyChallengeRuleAction) IsKnown ¶
func (r RuleEditParamsBodyChallengeRuleAction) IsKnown() bool
type RuleEditParamsBodyChallengeRuleExposedCredentialCheck ¶
type RuleEditParamsBodyChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RuleEditParamsBodyChallengeRuleExposedCredentialCheck) MarshalJSON ¶
func (r RuleEditParamsBodyChallengeRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyChallengeRulePosition ¶
type RuleEditParamsBodyChallengeRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyChallengeRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodyChallengeRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyChallengeRulePositionAfterPosition ¶
type RuleEditParamsBodyChallengeRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyChallengeRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodyChallengeRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyChallengeRulePositionBeforePosition ¶
type RuleEditParamsBodyChallengeRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyChallengeRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodyChallengeRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyChallengeRulePositionIndexPosition ¶
type RuleEditParamsBodyChallengeRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyChallengeRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodyChallengeRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyChallengeRulePositionUnion ¶
type RuleEditParamsBodyChallengeRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyChallengeRulePositionBeforePosition, rulesets.RuleEditParamsBodyChallengeRulePositionAfterPosition, rulesets.RuleEditParamsBodyChallengeRulePositionIndexPosition, RuleEditParamsBodyChallengeRulePosition.
type RuleEditParamsBodyChallengeRuleRatelimit ¶
type RuleEditParamsBodyChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RuleEditParamsBodyChallengeRuleRatelimit) MarshalJSON ¶
func (r RuleEditParamsBodyChallengeRuleRatelimit) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyDDoSDynamicRule ¶
type RuleEditParamsBodyDDoSDynamicRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodyDDoSDynamicRulePositionUnion] `json:"position"`
DDoSDynamicRuleParam
}
func (RuleEditParamsBodyDDoSDynamicRule) MarshalJSON ¶
func (r RuleEditParamsBodyDDoSDynamicRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyDDoSDynamicRulePosition ¶
type RuleEditParamsBodyDDoSDynamicRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyDDoSDynamicRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodyDDoSDynamicRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyDDoSDynamicRulePositionAfterPosition ¶
type RuleEditParamsBodyDDoSDynamicRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyDDoSDynamicRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodyDDoSDynamicRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyDDoSDynamicRulePositionBeforePosition ¶
type RuleEditParamsBodyDDoSDynamicRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyDDoSDynamicRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodyDDoSDynamicRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyDDoSDynamicRulePositionIndexPosition ¶
type RuleEditParamsBodyDDoSDynamicRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyDDoSDynamicRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodyDDoSDynamicRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyDDoSDynamicRulePositionUnion ¶
type RuleEditParamsBodyDDoSDynamicRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyDDoSDynamicRulePositionBeforePosition, rulesets.RuleEditParamsBodyDDoSDynamicRulePositionAfterPosition, rulesets.RuleEditParamsBodyDDoSDynamicRulePositionIndexPosition, RuleEditParamsBodyDDoSDynamicRulePosition.
type RuleEditParamsBodyExecuteRule ¶
type RuleEditParamsBodyExecuteRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodyExecuteRulePositionUnion] `json:"position"`
ExecuteRuleParam
}
func (RuleEditParamsBodyExecuteRule) MarshalJSON ¶
func (r RuleEditParamsBodyExecuteRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyExecuteRulePosition ¶
type RuleEditParamsBodyExecuteRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyExecuteRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodyExecuteRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyExecuteRulePositionAfterPosition ¶
type RuleEditParamsBodyExecuteRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyExecuteRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodyExecuteRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyExecuteRulePositionBeforePosition ¶
type RuleEditParamsBodyExecuteRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyExecuteRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodyExecuteRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyExecuteRulePositionIndexPosition ¶
type RuleEditParamsBodyExecuteRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyExecuteRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodyExecuteRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyExecuteRulePositionUnion ¶
type RuleEditParamsBodyExecuteRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyExecuteRulePositionBeforePosition, rulesets.RuleEditParamsBodyExecuteRulePositionAfterPosition, rulesets.RuleEditParamsBodyExecuteRulePositionIndexPosition, RuleEditParamsBodyExecuteRulePosition.
type RuleEditParamsBodyForceConnectionCloseRule ¶
type RuleEditParamsBodyForceConnectionCloseRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodyForceConnectionCloseRulePositionUnion] `json:"position"`
ForceConnectionCloseRuleParam
}
func (RuleEditParamsBodyForceConnectionCloseRule) MarshalJSON ¶
func (r RuleEditParamsBodyForceConnectionCloseRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyForceConnectionCloseRulePosition ¶
type RuleEditParamsBodyForceConnectionCloseRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyForceConnectionCloseRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodyForceConnectionCloseRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyForceConnectionCloseRulePositionAfterPosition ¶
type RuleEditParamsBodyForceConnectionCloseRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyForceConnectionCloseRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodyForceConnectionCloseRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyForceConnectionCloseRulePositionBeforePosition ¶
type RuleEditParamsBodyForceConnectionCloseRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyForceConnectionCloseRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodyForceConnectionCloseRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyForceConnectionCloseRulePositionIndexPosition ¶
type RuleEditParamsBodyForceConnectionCloseRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyForceConnectionCloseRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodyForceConnectionCloseRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyForceConnectionCloseRulePositionUnion ¶
type RuleEditParamsBodyForceConnectionCloseRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyForceConnectionCloseRulePositionBeforePosition, rulesets.RuleEditParamsBodyForceConnectionCloseRulePositionAfterPosition, rulesets.RuleEditParamsBodyForceConnectionCloseRulePositionIndexPosition, RuleEditParamsBodyForceConnectionCloseRulePosition.
type RuleEditParamsBodyJavaScriptChallengeRule ¶
type RuleEditParamsBodyJavaScriptChallengeRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RuleEditParamsBodyJavaScriptChallengeRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[interface{}] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RuleEditParamsBodyJavaScriptChallengeRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodyJavaScriptChallengeRulePositionUnion] `json:"position"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RuleEditParamsBodyJavaScriptChallengeRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RuleEditParamsBodyJavaScriptChallengeRule) MarshalJSON ¶
func (r RuleEditParamsBodyJavaScriptChallengeRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyJavaScriptChallengeRuleAction ¶
type RuleEditParamsBodyJavaScriptChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleEditParamsBodyJavaScriptChallengeRuleActionJSChallenge RuleEditParamsBodyJavaScriptChallengeRuleAction = "js_challenge"
)
func (RuleEditParamsBodyJavaScriptChallengeRuleAction) IsKnown ¶
func (r RuleEditParamsBodyJavaScriptChallengeRuleAction) IsKnown() bool
type RuleEditParamsBodyJavaScriptChallengeRuleExposedCredentialCheck ¶
type RuleEditParamsBodyJavaScriptChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RuleEditParamsBodyJavaScriptChallengeRuleExposedCredentialCheck) MarshalJSON ¶
func (r RuleEditParamsBodyJavaScriptChallengeRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyJavaScriptChallengeRulePosition ¶
type RuleEditParamsBodyJavaScriptChallengeRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyJavaScriptChallengeRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodyJavaScriptChallengeRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyJavaScriptChallengeRulePositionAfterPosition ¶
type RuleEditParamsBodyJavaScriptChallengeRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyJavaScriptChallengeRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodyJavaScriptChallengeRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyJavaScriptChallengeRulePositionBeforePosition ¶
type RuleEditParamsBodyJavaScriptChallengeRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyJavaScriptChallengeRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodyJavaScriptChallengeRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyJavaScriptChallengeRulePositionIndexPosition ¶
type RuleEditParamsBodyJavaScriptChallengeRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyJavaScriptChallengeRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodyJavaScriptChallengeRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyJavaScriptChallengeRulePositionUnion ¶
type RuleEditParamsBodyJavaScriptChallengeRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyJavaScriptChallengeRulePositionBeforePosition, rulesets.RuleEditParamsBodyJavaScriptChallengeRulePositionAfterPosition, rulesets.RuleEditParamsBodyJavaScriptChallengeRulePositionIndexPosition, RuleEditParamsBodyJavaScriptChallengeRulePosition.
type RuleEditParamsBodyJavaScriptChallengeRuleRatelimit ¶
type RuleEditParamsBodyJavaScriptChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RuleEditParamsBodyJavaScriptChallengeRuleRatelimit) MarshalJSON ¶
func (r RuleEditParamsBodyJavaScriptChallengeRuleRatelimit) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyLogCustomFieldRule ¶
type RuleEditParamsBodyLogCustomFieldRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodyLogCustomFieldRulePositionUnion] `json:"position"`
LogCustomFieldRuleParam
}
func (RuleEditParamsBodyLogCustomFieldRule) MarshalJSON ¶
func (r RuleEditParamsBodyLogCustomFieldRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyLogCustomFieldRulePosition ¶
type RuleEditParamsBodyLogCustomFieldRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyLogCustomFieldRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodyLogCustomFieldRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyLogCustomFieldRulePositionAfterPosition ¶
type RuleEditParamsBodyLogCustomFieldRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyLogCustomFieldRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodyLogCustomFieldRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyLogCustomFieldRulePositionBeforePosition ¶
type RuleEditParamsBodyLogCustomFieldRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyLogCustomFieldRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodyLogCustomFieldRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyLogCustomFieldRulePositionIndexPosition ¶
type RuleEditParamsBodyLogCustomFieldRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyLogCustomFieldRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodyLogCustomFieldRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyLogCustomFieldRulePositionUnion ¶
type RuleEditParamsBodyLogCustomFieldRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyLogCustomFieldRulePositionBeforePosition, rulesets.RuleEditParamsBodyLogCustomFieldRulePositionAfterPosition, rulesets.RuleEditParamsBodyLogCustomFieldRulePositionIndexPosition, RuleEditParamsBodyLogCustomFieldRulePosition.
type RuleEditParamsBodyLogRule ¶
type RuleEditParamsBodyLogRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodyLogRulePositionUnion] `json:"position"`
LogRuleParam
}
func (RuleEditParamsBodyLogRule) MarshalJSON ¶
func (r RuleEditParamsBodyLogRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyLogRulePosition ¶
type RuleEditParamsBodyLogRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyLogRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodyLogRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyLogRulePositionAfterPosition ¶
type RuleEditParamsBodyLogRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyLogRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodyLogRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyLogRulePositionBeforePosition ¶
type RuleEditParamsBodyLogRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyLogRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodyLogRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyLogRulePositionIndexPosition ¶
type RuleEditParamsBodyLogRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyLogRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodyLogRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyLogRulePositionUnion ¶
type RuleEditParamsBodyLogRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyLogRulePositionBeforePosition, rulesets.RuleEditParamsBodyLogRulePositionAfterPosition, rulesets.RuleEditParamsBodyLogRulePositionIndexPosition, RuleEditParamsBodyLogRulePosition.
type RuleEditParamsBodyManagedChallengeRule ¶
type RuleEditParamsBodyManagedChallengeRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodyManagedChallengeRulePositionUnion] `json:"position"`
ManagedChallengeRuleParam
}
func (RuleEditParamsBodyManagedChallengeRule) MarshalJSON ¶
func (r RuleEditParamsBodyManagedChallengeRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyManagedChallengeRulePosition ¶
type RuleEditParamsBodyManagedChallengeRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyManagedChallengeRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodyManagedChallengeRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyManagedChallengeRulePositionAfterPosition ¶
type RuleEditParamsBodyManagedChallengeRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyManagedChallengeRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodyManagedChallengeRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyManagedChallengeRulePositionBeforePosition ¶
type RuleEditParamsBodyManagedChallengeRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyManagedChallengeRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodyManagedChallengeRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyManagedChallengeRulePositionIndexPosition ¶
type RuleEditParamsBodyManagedChallengeRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyManagedChallengeRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodyManagedChallengeRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyManagedChallengeRulePositionUnion ¶
type RuleEditParamsBodyManagedChallengeRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyManagedChallengeRulePositionBeforePosition, rulesets.RuleEditParamsBodyManagedChallengeRulePositionAfterPosition, rulesets.RuleEditParamsBodyManagedChallengeRulePositionIndexPosition, RuleEditParamsBodyManagedChallengeRulePosition.
type RuleEditParamsBodyRedirectRule ¶
type RuleEditParamsBodyRedirectRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodyRedirectRulePositionUnion] `json:"position"`
RedirectRuleParam
}
func (RuleEditParamsBodyRedirectRule) MarshalJSON ¶
func (r RuleEditParamsBodyRedirectRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyRedirectRulePosition ¶
type RuleEditParamsBodyRedirectRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyRedirectRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodyRedirectRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyRedirectRulePositionAfterPosition ¶
type RuleEditParamsBodyRedirectRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyRedirectRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodyRedirectRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyRedirectRulePositionBeforePosition ¶
type RuleEditParamsBodyRedirectRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyRedirectRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodyRedirectRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyRedirectRulePositionIndexPosition ¶
type RuleEditParamsBodyRedirectRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyRedirectRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodyRedirectRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyRedirectRulePositionUnion ¶
type RuleEditParamsBodyRedirectRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyRedirectRulePositionBeforePosition, rulesets.RuleEditParamsBodyRedirectRulePositionAfterPosition, rulesets.RuleEditParamsBodyRedirectRulePositionIndexPosition, RuleEditParamsBodyRedirectRulePosition.
type RuleEditParamsBodyResponseCompressionRule ¶
type RuleEditParamsBodyResponseCompressionRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodyResponseCompressionRulePositionUnion] `json:"position"`
CompressResponseRuleParam
}
func (RuleEditParamsBodyResponseCompressionRule) MarshalJSON ¶
func (r RuleEditParamsBodyResponseCompressionRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyResponseCompressionRulePosition ¶
type RuleEditParamsBodyResponseCompressionRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyResponseCompressionRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodyResponseCompressionRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyResponseCompressionRulePositionAfterPosition ¶
type RuleEditParamsBodyResponseCompressionRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyResponseCompressionRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodyResponseCompressionRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyResponseCompressionRulePositionBeforePosition ¶
type RuleEditParamsBodyResponseCompressionRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyResponseCompressionRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodyResponseCompressionRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyResponseCompressionRulePositionIndexPosition ¶
type RuleEditParamsBodyResponseCompressionRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyResponseCompressionRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodyResponseCompressionRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyResponseCompressionRulePositionUnion ¶
type RuleEditParamsBodyResponseCompressionRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyResponseCompressionRulePositionBeforePosition, rulesets.RuleEditParamsBodyResponseCompressionRulePositionAfterPosition, rulesets.RuleEditParamsBodyResponseCompressionRulePositionIndexPosition, RuleEditParamsBodyResponseCompressionRulePosition.
type RuleEditParamsBodyRewriteRule ¶
type RuleEditParamsBodyRewriteRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodyRewriteRulePositionUnion] `json:"position"`
RewriteRuleParam
}
func (RuleEditParamsBodyRewriteRule) MarshalJSON ¶
func (r RuleEditParamsBodyRewriteRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyRewriteRulePosition ¶
type RuleEditParamsBodyRewriteRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyRewriteRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodyRewriteRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyRewriteRulePositionAfterPosition ¶
type RuleEditParamsBodyRewriteRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyRewriteRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodyRewriteRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyRewriteRulePositionBeforePosition ¶
type RuleEditParamsBodyRewriteRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyRewriteRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodyRewriteRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyRewriteRulePositionIndexPosition ¶
type RuleEditParamsBodyRewriteRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyRewriteRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodyRewriteRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyRewriteRulePositionUnion ¶
type RuleEditParamsBodyRewriteRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyRewriteRulePositionBeforePosition, rulesets.RuleEditParamsBodyRewriteRulePositionAfterPosition, rulesets.RuleEditParamsBodyRewriteRulePositionIndexPosition, RuleEditParamsBodyRewriteRulePosition.
type RuleEditParamsBodyRouteRule ¶
type RuleEditParamsBodyRouteRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodyRouteRulePositionUnion] `json:"position"`
RouteRuleParam
}
func (RuleEditParamsBodyRouteRule) MarshalJSON ¶
func (r RuleEditParamsBodyRouteRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyRouteRulePosition ¶
type RuleEditParamsBodyRouteRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyRouteRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodyRouteRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyRouteRulePositionAfterPosition ¶
type RuleEditParamsBodyRouteRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyRouteRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodyRouteRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyRouteRulePositionBeforePosition ¶
type RuleEditParamsBodyRouteRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyRouteRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodyRouteRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyRouteRulePositionIndexPosition ¶
type RuleEditParamsBodyRouteRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyRouteRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodyRouteRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyRouteRulePositionUnion ¶
type RuleEditParamsBodyRouteRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyRouteRulePositionBeforePosition, rulesets.RuleEditParamsBodyRouteRulePositionAfterPosition, rulesets.RuleEditParamsBodyRouteRulePositionIndexPosition, RuleEditParamsBodyRouteRulePosition.
type RuleEditParamsBodyScoreRule ¶
type RuleEditParamsBodyScoreRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodyScoreRulePositionUnion] `json:"position"`
ScoreRuleParam
}
func (RuleEditParamsBodyScoreRule) MarshalJSON ¶
func (r RuleEditParamsBodyScoreRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyScoreRulePosition ¶
type RuleEditParamsBodyScoreRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyScoreRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodyScoreRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyScoreRulePositionAfterPosition ¶
type RuleEditParamsBodyScoreRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyScoreRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodyScoreRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyScoreRulePositionBeforePosition ¶
type RuleEditParamsBodyScoreRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyScoreRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodyScoreRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyScoreRulePositionIndexPosition ¶
type RuleEditParamsBodyScoreRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyScoreRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodyScoreRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyScoreRulePositionUnion ¶
type RuleEditParamsBodyScoreRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyScoreRulePositionBeforePosition, rulesets.RuleEditParamsBodyScoreRulePositionAfterPosition, rulesets.RuleEditParamsBodyScoreRulePositionIndexPosition, RuleEditParamsBodyScoreRulePosition.
type RuleEditParamsBodyServeErrorRule ¶
type RuleEditParamsBodyServeErrorRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodyServeErrorRulePositionUnion] `json:"position"`
ServeErrorRuleParam
}
func (RuleEditParamsBodyServeErrorRule) MarshalJSON ¶
func (r RuleEditParamsBodyServeErrorRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyServeErrorRulePosition ¶
type RuleEditParamsBodyServeErrorRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyServeErrorRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodyServeErrorRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyServeErrorRulePositionAfterPosition ¶
type RuleEditParamsBodyServeErrorRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyServeErrorRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodyServeErrorRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyServeErrorRulePositionBeforePosition ¶
type RuleEditParamsBodyServeErrorRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyServeErrorRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodyServeErrorRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyServeErrorRulePositionIndexPosition ¶
type RuleEditParamsBodyServeErrorRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodyServeErrorRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodyServeErrorRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyServeErrorRulePositionUnion ¶
type RuleEditParamsBodyServeErrorRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyServeErrorRulePositionBeforePosition, rulesets.RuleEditParamsBodyServeErrorRulePositionAfterPosition, rulesets.RuleEditParamsBodyServeErrorRulePositionIndexPosition, RuleEditParamsBodyServeErrorRulePosition.
type RuleEditParamsBodySetCacheControlRule ¶
type RuleEditParamsBodySetCacheControlRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RuleEditParamsBodySetCacheControlRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[RuleEditParamsBodySetCacheControlRuleActionParameters] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RuleEditParamsBodySetCacheControlRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodySetCacheControlRulePositionUnion] `json:"position"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RuleEditParamsBodySetCacheControlRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RuleEditParamsBodySetCacheControlRule) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleAction ¶
type RuleEditParamsBodySetCacheControlRuleAction string
The action to perform when the rule matches.
const (
RuleEditParamsBodySetCacheControlRuleActionSetCacheControl RuleEditParamsBodySetCacheControlRuleAction = "set_cache_control"
)
func (RuleEditParamsBodySetCacheControlRuleAction) IsKnown ¶
func (r RuleEditParamsBodySetCacheControlRuleAction) IsKnown() bool
type RuleEditParamsBodySetCacheControlRuleActionParameters ¶
type RuleEditParamsBodySetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersImmutableUnion] `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeUnion] `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateUnion] `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandUnion] `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheUnion] `json:"no-cache"`
// A cache-control directive configuration.
NoStore param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreUnion] `json:"no-store"`
// A cache-control directive configuration.
NoTransform param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformUnion] `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersPrivateUnion] `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateUnion] `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersPublicUnion] `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageUnion] `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorUnion] `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateUnion] `json:"stale-while-revalidate"`
}
The parameters configuring the rule's action.
func (RuleEditParamsBodySetCacheControlRuleActionParameters) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParameters) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersImmutable ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersImmutableOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RuleEditParamsBodySetCacheControlRuleActionParametersImmutable) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersImmutable) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersImmutableOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersImmutableOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersImmutableOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersImmutableOperation = "remove" )
func (RuleEditParamsBodySetCacheControlRuleActionParametersImmutableOperation) IsKnown ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersImmutableOperation) IsKnown() bool
type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableSetDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersImmutableSetDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersImmutableSetDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableUnion ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersImmutableSetDirective, rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirective, RuleEditParamsBodySetCacheControlRuleActionParametersImmutable.
type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAge ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleEditParamsBodySetCacheControlRuleActionParametersMaxAge) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersMaxAge) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
func (RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeOperation) IsKnown ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeOperation) IsKnown() bool
type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeUnion ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirective, rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirective, RuleEditParamsBodySetCacheControlRuleActionParametersMaxAge.
type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidate ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidate) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidate) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
func (RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation) IsKnown ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation) IsKnown() bool
type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateUnion ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirective, rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirective, RuleEditParamsBodySetCacheControlRuleActionParametersMustRevalidate.
type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstand ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstand) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstand) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
func (RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation) IsKnown ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation) IsKnown() bool
type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandUnion ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirective, rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirective, RuleEditParamsBodySetCacheControlRuleActionParametersMustUnderstand.
type RuleEditParamsBodySetCacheControlRuleActionParametersNoCache ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
Qualifiers param.Field[interface{}] `json:"qualifiers"`
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleEditParamsBodySetCacheControlRuleActionParametersNoCache) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersNoCache) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheOperation = "remove" )
func (RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheOperation) IsKnown ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheOperation) IsKnown() bool
type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheSetDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers param.Field[[]string] `json:"qualifiers"`
}
Set the directive with optional qualifiers.
func (RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheSetDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheSetDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheUnion ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Satisfied by rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheSetDirective, rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirective, RuleEditParamsBodySetCacheControlRuleActionParametersNoCache.
type RuleEditParamsBodySetCacheControlRuleActionParametersNoStore ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RuleEditParamsBodySetCacheControlRuleActionParametersNoStore) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersNoStore) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreOperation = "remove" )
func (RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreOperation) IsKnown ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreOperation) IsKnown() bool
type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreSetDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreSetDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreSetDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreUnion ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreSetDirective, rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirective, RuleEditParamsBodySetCacheControlRuleActionParametersNoStore.
type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransform ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RuleEditParamsBodySetCacheControlRuleActionParametersNoTransform) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersNoTransform) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformOperation = "remove" )
func (RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformOperation) IsKnown ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformOperation) IsKnown() bool
type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformSetDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformSetDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformSetDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformUnion ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformSetDirective, rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirective, RuleEditParamsBodySetCacheControlRuleActionParametersNoTransform.
type RuleEditParamsBodySetCacheControlRuleActionParametersPrivate ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersPrivateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
Qualifiers param.Field[interface{}] `json:"qualifiers"`
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleEditParamsBodySetCacheControlRuleActionParametersPrivate) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersPrivate) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersPrivateOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersPrivateOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersPrivateOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersPrivateOperation = "remove" )
func (RuleEditParamsBodySetCacheControlRuleActionParametersPrivateOperation) IsKnown ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersPrivateOperation) IsKnown() bool
type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateSetDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers param.Field[[]string] `json:"qualifiers"`
}
Set the directive with optional qualifiers.
func (RuleEditParamsBodySetCacheControlRuleActionParametersPrivateSetDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersPrivateSetDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateUnion ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Satisfied by rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersPrivateSetDirective, rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirective, RuleEditParamsBodySetCacheControlRuleActionParametersPrivate.
type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidate ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidate) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidate) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateUnion ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirective, rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirective, RuleEditParamsBodySetCacheControlRuleActionParametersProxyRevalidate.
type RuleEditParamsBodySetCacheControlRuleActionParametersPublic ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersPublicOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RuleEditParamsBodySetCacheControlRuleActionParametersPublic) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersPublic) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersPublicOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersPublicOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersPublicOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersPublicOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersPublicOperation = "remove" )
func (RuleEditParamsBodySetCacheControlRuleActionParametersPublicOperation) IsKnown ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersPublicOperation) IsKnown() bool
type RuleEditParamsBodySetCacheControlRuleActionParametersPublicRemoveDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersPublicRemoveDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersPublicRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersPublicSetDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersPublicSetDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersPublicSetDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersPublicUnion ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersPublicSetDirective, rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersPublicRemoveDirective, RuleEditParamsBodySetCacheControlRuleActionParametersPublic.
type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxage ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleEditParamsBodySetCacheControlRuleActionParametersSMaxage) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersSMaxage) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageOperation = "remove" )
func (RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageOperation) IsKnown ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageOperation) IsKnown() bool
type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageSetDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageSetDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageSetDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageUnion ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageSetDirective, rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirective, RuleEditParamsBodySetCacheControlRuleActionParametersSMaxage.
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfError ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfError) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfError) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
func (RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation) IsKnown ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation) IsKnown() bool
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorUnion ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirective, rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirective, RuleEditParamsBodySetCacheControlRuleActionParametersStaleIfError.
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidate ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidate) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidate) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶
type RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, rulesets.RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective, RuleEditParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidate.
type RuleEditParamsBodySetCacheControlRuleExposedCredentialCheck ¶
type RuleEditParamsBodySetCacheControlRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RuleEditParamsBodySetCacheControlRuleExposedCredentialCheck) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRulePosition ¶
type RuleEditParamsBodySetCacheControlRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetCacheControlRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRulePositionAfterPosition ¶
type RuleEditParamsBodySetCacheControlRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetCacheControlRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRulePositionBeforePosition ¶
type RuleEditParamsBodySetCacheControlRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetCacheControlRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRulePositionIndexPosition ¶
type RuleEditParamsBodySetCacheControlRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetCacheControlRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheControlRulePositionUnion ¶
type RuleEditParamsBodySetCacheControlRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodySetCacheControlRulePositionBeforePosition, rulesets.RuleEditParamsBodySetCacheControlRulePositionAfterPosition, rulesets.RuleEditParamsBodySetCacheControlRulePositionIndexPosition, RuleEditParamsBodySetCacheControlRulePosition.
type RuleEditParamsBodySetCacheControlRuleRatelimit ¶
type RuleEditParamsBodySetCacheControlRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RuleEditParamsBodySetCacheControlRuleRatelimit) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheControlRuleRatelimit) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheSettingsRule ¶
type RuleEditParamsBodySetCacheSettingsRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodySetCacheSettingsRulePositionUnion] `json:"position"`
SetCacheSettingsRuleParam
}
func (RuleEditParamsBodySetCacheSettingsRule) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheSettingsRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheSettingsRulePosition ¶
type RuleEditParamsBodySetCacheSettingsRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetCacheSettingsRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheSettingsRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheSettingsRulePositionAfterPosition ¶
type RuleEditParamsBodySetCacheSettingsRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetCacheSettingsRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheSettingsRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheSettingsRulePositionBeforePosition ¶
type RuleEditParamsBodySetCacheSettingsRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetCacheSettingsRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheSettingsRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheSettingsRulePositionIndexPosition ¶
type RuleEditParamsBodySetCacheSettingsRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetCacheSettingsRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheSettingsRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheSettingsRulePositionUnion ¶
type RuleEditParamsBodySetCacheSettingsRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodySetCacheSettingsRulePositionBeforePosition, rulesets.RuleEditParamsBodySetCacheSettingsRulePositionAfterPosition, rulesets.RuleEditParamsBodySetCacheSettingsRulePositionIndexPosition, RuleEditParamsBodySetCacheSettingsRulePosition.
type RuleEditParamsBodySetCacheTagsRule ¶
type RuleEditParamsBodySetCacheTagsRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RuleEditParamsBodySetCacheTagsRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[RuleEditParamsBodySetCacheTagsRuleActionParametersUnion] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RuleEditParamsBodySetCacheTagsRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodySetCacheTagsRulePositionUnion] `json:"position"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RuleEditParamsBodySetCacheTagsRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RuleEditParamsBodySetCacheTagsRule) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheTagsRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheTagsRuleAction ¶
type RuleEditParamsBodySetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
RuleEditParamsBodySetCacheTagsRuleActionSetCacheTags RuleEditParamsBodySetCacheTagsRuleAction = "set_cache_tags"
)
func (RuleEditParamsBodySetCacheTagsRuleAction) IsKnown ¶
func (r RuleEditParamsBodySetCacheTagsRuleAction) IsKnown() bool
type RuleEditParamsBodySetCacheTagsRuleActionParameters ¶
type RuleEditParamsBodySetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation param.Field[RuleEditParamsBodySetCacheTagsRuleActionParametersOperation] `json:"operation" api:"required"`
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression"`
Values param.Field[interface{}] `json:"values"`
}
The parameters configuring the rule's action.
func (RuleEditParamsBodySetCacheTagsRuleActionParameters) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheTagsRuleActionParameters) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpression ¶
type RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation param.Field[RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation] `json:"operation" api:"required"`
}
Add cache tags using an expression.
func (RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpression) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpression) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶
type RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValues ¶
type RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation param.Field[RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation] `json:"operation" api:"required"`
// A list of cache tag values.
Values param.Field[[]string] `json:"values" api:"required"`
}
Add cache tags using a list of values.
func (RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValues) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValues) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶
type RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type RuleEditParamsBodySetCacheTagsRuleActionParametersOperation ¶
type RuleEditParamsBodySetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( RuleEditParamsBodySetCacheTagsRuleActionParametersOperationAdd RuleEditParamsBodySetCacheTagsRuleActionParametersOperation = "add" RuleEditParamsBodySetCacheTagsRuleActionParametersOperationRemove RuleEditParamsBodySetCacheTagsRuleActionParametersOperation = "remove" RuleEditParamsBodySetCacheTagsRuleActionParametersOperationSet RuleEditParamsBodySetCacheTagsRuleActionParametersOperation = "set" )
func (RuleEditParamsBodySetCacheTagsRuleActionParametersOperation) IsKnown ¶
func (r RuleEditParamsBodySetCacheTagsRuleActionParametersOperation) IsKnown() bool
type RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶
type RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation param.Field[RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation] `json:"operation" api:"required"`
}
Remove cache tags using an expression.
func (RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpression) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpression) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶
type RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶
type RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation param.Field[RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation] `json:"operation" api:"required"`
// A list of cache tag values.
Values param.Field[[]string] `json:"values" api:"required"`
}
Remove cache tags using a list of values.
func (RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValues) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValues) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶
type RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpression ¶
type RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation param.Field[RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation] `json:"operation" api:"required"`
}
Set cache tags using an expression.
func (RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpression) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpression) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶
type RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValues ¶
type RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation param.Field[RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation] `json:"operation" api:"required"`
// A list of cache tag values.
Values param.Field[[]string] `json:"values" api:"required"`
}
Set cache tags using a list of values.
func (RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValues) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValues) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶
type RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type RuleEditParamsBodySetCacheTagsRuleActionParametersUnion ¶
type RuleEditParamsBodySetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Satisfied by rulesets.RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValues, rulesets.RuleEditParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpression, rulesets.RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValues, rulesets.RuleEditParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpression, rulesets.RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValues, rulesets.RuleEditParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpression, RuleEditParamsBodySetCacheTagsRuleActionParameters.
type RuleEditParamsBodySetCacheTagsRuleExposedCredentialCheck ¶
type RuleEditParamsBodySetCacheTagsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RuleEditParamsBodySetCacheTagsRuleExposedCredentialCheck) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheTagsRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheTagsRulePosition ¶
type RuleEditParamsBodySetCacheTagsRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetCacheTagsRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheTagsRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheTagsRulePositionAfterPosition ¶
type RuleEditParamsBodySetCacheTagsRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetCacheTagsRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheTagsRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheTagsRulePositionBeforePosition ¶
type RuleEditParamsBodySetCacheTagsRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetCacheTagsRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheTagsRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheTagsRulePositionIndexPosition ¶
type RuleEditParamsBodySetCacheTagsRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetCacheTagsRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheTagsRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetCacheTagsRulePositionUnion ¶
type RuleEditParamsBodySetCacheTagsRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodySetCacheTagsRulePositionBeforePosition, rulesets.RuleEditParamsBodySetCacheTagsRulePositionAfterPosition, rulesets.RuleEditParamsBodySetCacheTagsRulePositionIndexPosition, RuleEditParamsBodySetCacheTagsRulePosition.
type RuleEditParamsBodySetCacheTagsRuleRatelimit ¶
type RuleEditParamsBodySetCacheTagsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RuleEditParamsBodySetCacheTagsRuleRatelimit) MarshalJSON ¶
func (r RuleEditParamsBodySetCacheTagsRuleRatelimit) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetConfigurationRule ¶
type RuleEditParamsBodySetConfigurationRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodySetConfigurationRulePositionUnion] `json:"position"`
SetConfigRuleParam
}
func (RuleEditParamsBodySetConfigurationRule) MarshalJSON ¶
func (r RuleEditParamsBodySetConfigurationRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetConfigurationRulePosition ¶
type RuleEditParamsBodySetConfigurationRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetConfigurationRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodySetConfigurationRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetConfigurationRulePositionAfterPosition ¶
type RuleEditParamsBodySetConfigurationRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetConfigurationRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodySetConfigurationRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetConfigurationRulePositionBeforePosition ¶
type RuleEditParamsBodySetConfigurationRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetConfigurationRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodySetConfigurationRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetConfigurationRulePositionIndexPosition ¶
type RuleEditParamsBodySetConfigurationRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySetConfigurationRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodySetConfigurationRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySetConfigurationRulePositionUnion ¶
type RuleEditParamsBodySetConfigurationRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodySetConfigurationRulePositionBeforePosition, rulesets.RuleEditParamsBodySetConfigurationRulePositionAfterPosition, rulesets.RuleEditParamsBodySetConfigurationRulePositionIndexPosition, RuleEditParamsBodySetConfigurationRulePosition.
type RuleEditParamsBodySkipRule ¶
type RuleEditParamsBodySkipRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleEditParamsBodySkipRulePositionUnion] `json:"position"`
SkipRuleParam
}
func (RuleEditParamsBodySkipRule) MarshalJSON ¶
func (r RuleEditParamsBodySkipRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySkipRulePosition ¶
type RuleEditParamsBodySkipRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySkipRulePosition) MarshalJSON ¶
func (r RuleEditParamsBodySkipRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySkipRulePositionAfterPosition ¶
type RuleEditParamsBodySkipRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySkipRulePositionAfterPosition) MarshalJSON ¶
func (r RuleEditParamsBodySkipRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySkipRulePositionBeforePosition ¶
type RuleEditParamsBodySkipRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySkipRulePositionBeforePosition) MarshalJSON ¶
func (r RuleEditParamsBodySkipRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySkipRulePositionIndexPosition ¶
type RuleEditParamsBodySkipRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleEditParamsBodySkipRulePositionIndexPosition) MarshalJSON ¶
func (r RuleEditParamsBodySkipRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodySkipRulePositionUnion ¶
type RuleEditParamsBodySkipRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodySkipRulePositionBeforePosition, rulesets.RuleEditParamsBodySkipRulePositionAfterPosition, rulesets.RuleEditParamsBodySkipRulePositionIndexPosition, RuleEditParamsBodySkipRulePosition.
type RuleEditParamsBodyUnion ¶
type RuleEditParamsBodyUnion interface {
// contains filtered or unexported methods
}
Satisfied by rulesets.RuleEditParamsBodyBlockRule, rulesets.RuleEditParamsBodyChallengeRule, rulesets.RuleEditParamsBodyResponseCompressionRule, rulesets.RuleEditParamsBodyDDoSDynamicRule, rulesets.RuleEditParamsBodyExecuteRule, rulesets.RuleEditParamsBodyForceConnectionCloseRule, rulesets.RuleEditParamsBodyJavaScriptChallengeRule, rulesets.RuleEditParamsBodyLogRule, rulesets.RuleEditParamsBodyLogCustomFieldRule, rulesets.RuleEditParamsBodyManagedChallengeRule, rulesets.RuleEditParamsBodyRedirectRule, rulesets.RuleEditParamsBodyRewriteRule, rulesets.RuleEditParamsBodyRouteRule, rulesets.RuleEditParamsBodyScoreRule, rulesets.RuleEditParamsBodyServeErrorRule, rulesets.RuleEditParamsBodySetCacheControlRule, rulesets.RuleEditParamsBodySetCacheSettingsRule, rulesets.RuleEditParamsBodySetCacheTagsRule, rulesets.RuleEditParamsBodySetConfigurationRule, rulesets.RuleEditParamsBodySkipRule, RuleEditParamsBody.
type RuleEditResponse ¶
type RuleEditResponse struct {
// The unique ID of the ruleset.
ID string `json:"id" api:"required"`
// The kind of the ruleset.
Kind Kind `json:"kind" api:"required"`
// The timestamp of when the ruleset was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The human-readable name of the ruleset.
Name string `json:"name" api:"required"`
// The phase of the ruleset.
Phase Phase `json:"phase" api:"required"`
// The list of rules in the ruleset.
Rules []RuleEditResponseRule `json:"rules" api:"required"`
// The version of the ruleset.
Version string `json:"version" api:"required"`
// An informative description of the ruleset.
Description string `json:"description"`
JSON ruleEditResponseJSON `json:"-"`
}
A ruleset object.
func (*RuleEditResponse) UnmarshalJSON ¶
func (r *RuleEditResponse) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelope ¶
type RuleEditResponseEnvelope struct {
// A list of error messages.
Errors []RuleEditResponseEnvelopeErrors `json:"errors" api:"required"`
// A list of warning messages.
Messages []RuleEditResponseEnvelopeMessages `json:"messages" api:"required"`
// A ruleset object.
Result RuleEditResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success RuleEditResponseEnvelopeSuccess `json:"success" api:"required"`
JSON ruleEditResponseEnvelopeJSON `json:"-"`
}
A response object.
func (*RuleEditResponseEnvelope) UnmarshalJSON ¶
func (r *RuleEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeErrors ¶
type RuleEditResponseEnvelopeErrors struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source RuleEditResponseEnvelopeErrorsSource `json:"source"`
JSON ruleEditResponseEnvelopeErrorsJSON `json:"-"`
}
A message.
func (*RuleEditResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *RuleEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeErrorsSource ¶
type RuleEditResponseEnvelopeErrorsSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON ruleEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}
The source of this message.
func (*RuleEditResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *RuleEditResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeMessages ¶
type RuleEditResponseEnvelopeMessages struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source RuleEditResponseEnvelopeMessagesSource `json:"source"`
JSON ruleEditResponseEnvelopeMessagesJSON `json:"-"`
}
A message.
func (*RuleEditResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *RuleEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeMessagesSource ¶
type RuleEditResponseEnvelopeMessagesSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON ruleEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}
The source of this message.
func (*RuleEditResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *RuleEditResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeSuccess ¶
type RuleEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
RuleEditResponseEnvelopeSuccessTrue RuleEditResponseEnvelopeSuccess = true
)
func (RuleEditResponseEnvelopeSuccess) IsKnown ¶
func (r RuleEditResponseEnvelopeSuccess) IsKnown() bool
type RuleEditResponseRule ¶
type RuleEditResponseRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RuleEditResponseRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [RuleEditResponseRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters].
ActionParameters interface{} `json:"action_parameters"`
// This field can have the runtime type of [[]string].
Categories interface{} `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// This field can have the runtime type of [BlockRuleExposedCredentialCheck],
// [RuleEditResponseRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [RuleEditResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [RuleEditResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [RuleEditResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck].
ExposedCredentialCheck interface{} `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// This field can have the runtime type of [BlockRuleRatelimit],
// [RuleEditResponseRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [RuleEditResponseRulesRulesetsJSChallengeRuleRatelimit], [LogRuleRatelimit],
// [LogCustomFieldRuleRatelimit], [ManagedChallengeRuleRatelimit],
// [RedirectRuleRatelimit], [RewriteRuleRatelimit], [RouteRuleRatelimit],
// [ScoreRuleRatelimit], [ServeErrorRuleRatelimit],
// [RuleEditResponseRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [RuleEditResponseRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleEditResponseRuleJSON `json:"-"`
// contains filtered or unexported fields
}
func (RuleEditResponseRule) AsUnion ¶
func (r RuleEditResponseRule) AsUnion() RuleEditResponseRulesUnion
AsUnion returns a RuleEditResponseRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, RuleEditResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RuleEditResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RuleEditResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RuleEditResponseRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule.
func (*RuleEditResponseRule) UnmarshalJSON ¶
func (r *RuleEditResponseRule) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesAction ¶
type RuleEditResponseRulesAction string
The action to perform when the rule matches.
const ( RuleEditResponseRulesActionBlock RuleEditResponseRulesAction = "block" RuleEditResponseRulesActionChallenge RuleEditResponseRulesAction = "challenge" RuleEditResponseRulesActionCompressResponse RuleEditResponseRulesAction = "compress_response" RuleEditResponseRulesActionDDoSDynamic RuleEditResponseRulesAction = "ddos_dynamic" RuleEditResponseRulesActionExecute RuleEditResponseRulesAction = "execute" RuleEditResponseRulesActionForceConnectionClose RuleEditResponseRulesAction = "force_connection_close" RuleEditResponseRulesActionJSChallenge RuleEditResponseRulesAction = "js_challenge" RuleEditResponseRulesActionLog RuleEditResponseRulesAction = "log" RuleEditResponseRulesActionLogCustomField RuleEditResponseRulesAction = "log_custom_field" RuleEditResponseRulesActionManagedChallenge RuleEditResponseRulesAction = "managed_challenge" RuleEditResponseRulesActionRedirect RuleEditResponseRulesAction = "redirect" RuleEditResponseRulesActionRewrite RuleEditResponseRulesAction = "rewrite" RuleEditResponseRulesActionRoute RuleEditResponseRulesAction = "route" RuleEditResponseRulesActionScore RuleEditResponseRulesAction = "score" RuleEditResponseRulesActionServeError RuleEditResponseRulesAction = "serve_error" RuleEditResponseRulesActionSetCacheControl RuleEditResponseRulesAction = "set_cache_control" RuleEditResponseRulesActionSetCacheSettings RuleEditResponseRulesAction = "set_cache_settings" RuleEditResponseRulesActionSetCacheTags RuleEditResponseRulesAction = "set_cache_tags" RuleEditResponseRulesActionSetConfig RuleEditResponseRulesAction = "set_config" RuleEditResponseRulesActionSkip RuleEditResponseRulesAction = "skip" )
func (RuleEditResponseRulesAction) IsKnown ¶
func (r RuleEditResponseRulesAction) IsKnown() bool
type RuleEditResponseRulesRulesetsChallengeRule ¶
type RuleEditResponseRulesRulesetsChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RuleEditResponseRulesRulesetsChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RuleEditResponseRulesRulesetsChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RuleEditResponseRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleEditResponseRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*RuleEditResponseRulesRulesetsChallengeRule) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsChallengeRuleAction ¶
type RuleEditResponseRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleEditResponseRulesRulesetsChallengeRuleActionChallenge RuleEditResponseRulesRulesetsChallengeRuleAction = "challenge"
)
func (RuleEditResponseRulesRulesetsChallengeRuleAction) IsKnown ¶
func (r RuleEditResponseRulesRulesetsChallengeRuleAction) IsKnown() bool
type RuleEditResponseRulesRulesetsChallengeRuleExposedCredentialCheck ¶
type RuleEditResponseRulesRulesetsChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON ruleEditResponseRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleEditResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsChallengeRuleRatelimit ¶
type RuleEditResponseRulesRulesetsChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON ruleEditResponseRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleEditResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsJSChallengeRule ¶
type RuleEditResponseRulesRulesetsJSChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RuleEditResponseRulesRulesetsJSChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RuleEditResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RuleEditResponseRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleEditResponseRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*RuleEditResponseRulesRulesetsJSChallengeRule) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsJSChallengeRuleAction ¶
type RuleEditResponseRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleEditResponseRulesRulesetsJSChallengeRuleActionJSChallenge RuleEditResponseRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (RuleEditResponseRulesRulesetsJSChallengeRuleAction) IsKnown ¶
func (r RuleEditResponseRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type RuleEditResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶
type RuleEditResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON ruleEditResponseRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleEditResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsJSChallengeRuleRatelimit ¶
type RuleEditResponseRulesRulesetsJSChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON ruleEditResponseRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleEditResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRule ¶
type RuleEditResponseRulesRulesetsSetCacheControlRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RuleEditResponseRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RuleEditResponseRulesRulesetsSetCacheControlRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RuleEditResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RuleEditResponseRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*RuleEditResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleAction ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
RuleEditResponseRulesRulesetsSetCacheControlRuleActionSetCacheControl RuleEditResponseRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (RuleEditResponseRulesRulesetsSetCacheControlRuleAction) IsKnown ¶
func (r RuleEditResponseRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParameters ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶
func (r RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶
func (r RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶
func (r RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶
func (r RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶
func (r RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶
func (r RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶
func (r RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶
func (r RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶
func (r RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublic ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶
func (r RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶
func (r RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶
func (r RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶
func (r RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or RuleEditResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type RuleEditResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheControlRuleRatelimit ¶
type RuleEditResponseRulesRulesetsSetCacheControlRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON ruleEditResponseRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleEditResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheTagsRule ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RuleEditResponseRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RuleEditResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RuleEditResponseRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleEditResponseRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*RuleEditResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheTagsRuleAction ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
RuleEditResponseRulesRulesetsSetCacheTagsRuleActionSetCacheTags RuleEditResponseRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (RuleEditResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶
func (r RuleEditResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParameters ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation `json:"operation" api:"required"`
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression"`
// This field can have the runtime type of [[]string].
Values interface{} `json:"values"`
JSON ruleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶
func (r RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationSet RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
func (RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown ¶
func (r RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown() bool
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or RuleEditResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type RuleEditResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON ruleEditResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleEditResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesRulesetsSetCacheTagsRuleRatelimit ¶
type RuleEditResponseRulesRulesetsSetCacheTagsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON ruleEditResponseRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleEditResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶
func (r *RuleEditResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseRulesUnion ¶
type RuleEditResponseRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, RuleEditResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RuleEditResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RuleEditResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RuleEditResponseRulesRulesetsSetCacheTagsRule, SetConfigRule or SkipRule.
type RuleNewParams ¶
type RuleNewParams struct {
Body RuleNewParamsBodyUnion `json:"body" api:"required"`
// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
AccountID param.Field[string] `path:"account_id"`
// The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
ZoneID param.Field[string] `path:"zone_id"`
}
func (RuleNewParams) MarshalJSON ¶
func (r RuleNewParams) MarshalJSON() (data []byte, err error)
type RuleNewParamsBody ¶
type RuleNewParamsBody struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RuleNewParamsBodyAction] `json:"action"`
ActionParameters param.Field[interface{}] `json:"action_parameters"`
Categories param.Field[interface{}] `json:"categories"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
ExposedCredentialCheck param.Field[interface{}] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
Position param.Field[interface{}] `json:"position"`
Ratelimit param.Field[interface{}] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RuleNewParamsBody) MarshalJSON ¶
func (r RuleNewParamsBody) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyAction ¶
type RuleNewParamsBodyAction string
The action to perform when the rule matches.
const ( RuleNewParamsBodyActionBlock RuleNewParamsBodyAction = "block" RuleNewParamsBodyActionChallenge RuleNewParamsBodyAction = "challenge" RuleNewParamsBodyActionCompressResponse RuleNewParamsBodyAction = "compress_response" RuleNewParamsBodyActionDDoSDynamic RuleNewParamsBodyAction = "ddos_dynamic" RuleNewParamsBodyActionExecute RuleNewParamsBodyAction = "execute" RuleNewParamsBodyActionForceConnectionClose RuleNewParamsBodyAction = "force_connection_close" RuleNewParamsBodyActionJSChallenge RuleNewParamsBodyAction = "js_challenge" RuleNewParamsBodyActionLog RuleNewParamsBodyAction = "log" RuleNewParamsBodyActionLogCustomField RuleNewParamsBodyAction = "log_custom_field" RuleNewParamsBodyActionManagedChallenge RuleNewParamsBodyAction = "managed_challenge" RuleNewParamsBodyActionRedirect RuleNewParamsBodyAction = "redirect" RuleNewParamsBodyActionRewrite RuleNewParamsBodyAction = "rewrite" RuleNewParamsBodyActionRoute RuleNewParamsBodyAction = "route" RuleNewParamsBodyActionScore RuleNewParamsBodyAction = "score" RuleNewParamsBodyActionServeError RuleNewParamsBodyAction = "serve_error" RuleNewParamsBodyActionSetCacheControl RuleNewParamsBodyAction = "set_cache_control" RuleNewParamsBodyActionSetCacheSettings RuleNewParamsBodyAction = "set_cache_settings" RuleNewParamsBodyActionSetCacheTags RuleNewParamsBodyAction = "set_cache_tags" RuleNewParamsBodyActionSetConfig RuleNewParamsBodyAction = "set_config" RuleNewParamsBodyActionSkip RuleNewParamsBodyAction = "skip" )
func (RuleNewParamsBodyAction) IsKnown ¶
func (r RuleNewParamsBodyAction) IsKnown() bool
type RuleNewParamsBodyBlockRule ¶
type RuleNewParamsBodyBlockRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodyBlockRulePositionUnion] `json:"position"`
BlockRuleParam
}
func (RuleNewParamsBodyBlockRule) MarshalJSON ¶
func (r RuleNewParamsBodyBlockRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyBlockRulePosition ¶
type RuleNewParamsBodyBlockRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyBlockRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodyBlockRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyBlockRulePositionAfterPosition ¶
type RuleNewParamsBodyBlockRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyBlockRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodyBlockRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyBlockRulePositionBeforePosition ¶
type RuleNewParamsBodyBlockRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyBlockRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodyBlockRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyBlockRulePositionIndexPosition ¶
type RuleNewParamsBodyBlockRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyBlockRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodyBlockRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyBlockRulePositionUnion ¶
type RuleNewParamsBodyBlockRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyBlockRulePositionBeforePosition, rulesets.RuleNewParamsBodyBlockRulePositionAfterPosition, rulesets.RuleNewParamsBodyBlockRulePositionIndexPosition, RuleNewParamsBodyBlockRulePosition.
type RuleNewParamsBodyChallengeRule ¶
type RuleNewParamsBodyChallengeRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RuleNewParamsBodyChallengeRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[interface{}] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RuleNewParamsBodyChallengeRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodyChallengeRulePositionUnion] `json:"position"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RuleNewParamsBodyChallengeRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RuleNewParamsBodyChallengeRule) MarshalJSON ¶
func (r RuleNewParamsBodyChallengeRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyChallengeRuleAction ¶
type RuleNewParamsBodyChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleNewParamsBodyChallengeRuleActionChallenge RuleNewParamsBodyChallengeRuleAction = "challenge"
)
func (RuleNewParamsBodyChallengeRuleAction) IsKnown ¶
func (r RuleNewParamsBodyChallengeRuleAction) IsKnown() bool
type RuleNewParamsBodyChallengeRuleExposedCredentialCheck ¶
type RuleNewParamsBodyChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RuleNewParamsBodyChallengeRuleExposedCredentialCheck) MarshalJSON ¶
func (r RuleNewParamsBodyChallengeRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyChallengeRulePosition ¶
type RuleNewParamsBodyChallengeRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyChallengeRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodyChallengeRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyChallengeRulePositionAfterPosition ¶
type RuleNewParamsBodyChallengeRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyChallengeRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodyChallengeRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyChallengeRulePositionBeforePosition ¶
type RuleNewParamsBodyChallengeRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyChallengeRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodyChallengeRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyChallengeRulePositionIndexPosition ¶
type RuleNewParamsBodyChallengeRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyChallengeRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodyChallengeRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyChallengeRulePositionUnion ¶
type RuleNewParamsBodyChallengeRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyChallengeRulePositionBeforePosition, rulesets.RuleNewParamsBodyChallengeRulePositionAfterPosition, rulesets.RuleNewParamsBodyChallengeRulePositionIndexPosition, RuleNewParamsBodyChallengeRulePosition.
type RuleNewParamsBodyChallengeRuleRatelimit ¶
type RuleNewParamsBodyChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RuleNewParamsBodyChallengeRuleRatelimit) MarshalJSON ¶
func (r RuleNewParamsBodyChallengeRuleRatelimit) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyDDoSDynamicRule ¶
type RuleNewParamsBodyDDoSDynamicRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodyDDoSDynamicRulePositionUnion] `json:"position"`
DDoSDynamicRuleParam
}
func (RuleNewParamsBodyDDoSDynamicRule) MarshalJSON ¶
func (r RuleNewParamsBodyDDoSDynamicRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyDDoSDynamicRulePosition ¶
type RuleNewParamsBodyDDoSDynamicRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyDDoSDynamicRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodyDDoSDynamicRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyDDoSDynamicRulePositionAfterPosition ¶
type RuleNewParamsBodyDDoSDynamicRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyDDoSDynamicRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodyDDoSDynamicRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyDDoSDynamicRulePositionBeforePosition ¶
type RuleNewParamsBodyDDoSDynamicRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyDDoSDynamicRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodyDDoSDynamicRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyDDoSDynamicRulePositionIndexPosition ¶
type RuleNewParamsBodyDDoSDynamicRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyDDoSDynamicRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodyDDoSDynamicRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyDDoSDynamicRulePositionUnion ¶
type RuleNewParamsBodyDDoSDynamicRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyDDoSDynamicRulePositionBeforePosition, rulesets.RuleNewParamsBodyDDoSDynamicRulePositionAfterPosition, rulesets.RuleNewParamsBodyDDoSDynamicRulePositionIndexPosition, RuleNewParamsBodyDDoSDynamicRulePosition.
type RuleNewParamsBodyExecuteRule ¶
type RuleNewParamsBodyExecuteRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodyExecuteRulePositionUnion] `json:"position"`
ExecuteRuleParam
}
func (RuleNewParamsBodyExecuteRule) MarshalJSON ¶
func (r RuleNewParamsBodyExecuteRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyExecuteRulePosition ¶
type RuleNewParamsBodyExecuteRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyExecuteRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodyExecuteRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyExecuteRulePositionAfterPosition ¶
type RuleNewParamsBodyExecuteRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyExecuteRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodyExecuteRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyExecuteRulePositionBeforePosition ¶
type RuleNewParamsBodyExecuteRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyExecuteRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodyExecuteRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyExecuteRulePositionIndexPosition ¶
type RuleNewParamsBodyExecuteRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyExecuteRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodyExecuteRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyExecuteRulePositionUnion ¶
type RuleNewParamsBodyExecuteRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyExecuteRulePositionBeforePosition, rulesets.RuleNewParamsBodyExecuteRulePositionAfterPosition, rulesets.RuleNewParamsBodyExecuteRulePositionIndexPosition, RuleNewParamsBodyExecuteRulePosition.
type RuleNewParamsBodyForceConnectionCloseRule ¶
type RuleNewParamsBodyForceConnectionCloseRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodyForceConnectionCloseRulePositionUnion] `json:"position"`
ForceConnectionCloseRuleParam
}
func (RuleNewParamsBodyForceConnectionCloseRule) MarshalJSON ¶
func (r RuleNewParamsBodyForceConnectionCloseRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyForceConnectionCloseRulePosition ¶
type RuleNewParamsBodyForceConnectionCloseRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyForceConnectionCloseRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodyForceConnectionCloseRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyForceConnectionCloseRulePositionAfterPosition ¶
type RuleNewParamsBodyForceConnectionCloseRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyForceConnectionCloseRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodyForceConnectionCloseRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyForceConnectionCloseRulePositionBeforePosition ¶
type RuleNewParamsBodyForceConnectionCloseRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyForceConnectionCloseRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodyForceConnectionCloseRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyForceConnectionCloseRulePositionIndexPosition ¶
type RuleNewParamsBodyForceConnectionCloseRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyForceConnectionCloseRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodyForceConnectionCloseRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyForceConnectionCloseRulePositionUnion ¶
type RuleNewParamsBodyForceConnectionCloseRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyForceConnectionCloseRulePositionBeforePosition, rulesets.RuleNewParamsBodyForceConnectionCloseRulePositionAfterPosition, rulesets.RuleNewParamsBodyForceConnectionCloseRulePositionIndexPosition, RuleNewParamsBodyForceConnectionCloseRulePosition.
type RuleNewParamsBodyJavaScriptChallengeRule ¶
type RuleNewParamsBodyJavaScriptChallengeRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RuleNewParamsBodyJavaScriptChallengeRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[interface{}] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RuleNewParamsBodyJavaScriptChallengeRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodyJavaScriptChallengeRulePositionUnion] `json:"position"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RuleNewParamsBodyJavaScriptChallengeRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RuleNewParamsBodyJavaScriptChallengeRule) MarshalJSON ¶
func (r RuleNewParamsBodyJavaScriptChallengeRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyJavaScriptChallengeRuleAction ¶
type RuleNewParamsBodyJavaScriptChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleNewParamsBodyJavaScriptChallengeRuleActionJSChallenge RuleNewParamsBodyJavaScriptChallengeRuleAction = "js_challenge"
)
func (RuleNewParamsBodyJavaScriptChallengeRuleAction) IsKnown ¶
func (r RuleNewParamsBodyJavaScriptChallengeRuleAction) IsKnown() bool
type RuleNewParamsBodyJavaScriptChallengeRuleExposedCredentialCheck ¶
type RuleNewParamsBodyJavaScriptChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RuleNewParamsBodyJavaScriptChallengeRuleExposedCredentialCheck) MarshalJSON ¶
func (r RuleNewParamsBodyJavaScriptChallengeRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyJavaScriptChallengeRulePosition ¶
type RuleNewParamsBodyJavaScriptChallengeRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyJavaScriptChallengeRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodyJavaScriptChallengeRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyJavaScriptChallengeRulePositionAfterPosition ¶
type RuleNewParamsBodyJavaScriptChallengeRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyJavaScriptChallengeRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodyJavaScriptChallengeRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyJavaScriptChallengeRulePositionBeforePosition ¶
type RuleNewParamsBodyJavaScriptChallengeRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyJavaScriptChallengeRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodyJavaScriptChallengeRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyJavaScriptChallengeRulePositionIndexPosition ¶
type RuleNewParamsBodyJavaScriptChallengeRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyJavaScriptChallengeRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodyJavaScriptChallengeRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyJavaScriptChallengeRulePositionUnion ¶
type RuleNewParamsBodyJavaScriptChallengeRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyJavaScriptChallengeRulePositionBeforePosition, rulesets.RuleNewParamsBodyJavaScriptChallengeRulePositionAfterPosition, rulesets.RuleNewParamsBodyJavaScriptChallengeRulePositionIndexPosition, RuleNewParamsBodyJavaScriptChallengeRulePosition.
type RuleNewParamsBodyJavaScriptChallengeRuleRatelimit ¶
type RuleNewParamsBodyJavaScriptChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RuleNewParamsBodyJavaScriptChallengeRuleRatelimit) MarshalJSON ¶
func (r RuleNewParamsBodyJavaScriptChallengeRuleRatelimit) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyLogCustomFieldRule ¶
type RuleNewParamsBodyLogCustomFieldRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodyLogCustomFieldRulePositionUnion] `json:"position"`
LogCustomFieldRuleParam
}
func (RuleNewParamsBodyLogCustomFieldRule) MarshalJSON ¶
func (r RuleNewParamsBodyLogCustomFieldRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyLogCustomFieldRulePosition ¶
type RuleNewParamsBodyLogCustomFieldRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyLogCustomFieldRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodyLogCustomFieldRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyLogCustomFieldRulePositionAfterPosition ¶
type RuleNewParamsBodyLogCustomFieldRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyLogCustomFieldRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodyLogCustomFieldRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyLogCustomFieldRulePositionBeforePosition ¶
type RuleNewParamsBodyLogCustomFieldRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyLogCustomFieldRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodyLogCustomFieldRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyLogCustomFieldRulePositionIndexPosition ¶
type RuleNewParamsBodyLogCustomFieldRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyLogCustomFieldRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodyLogCustomFieldRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyLogCustomFieldRulePositionUnion ¶
type RuleNewParamsBodyLogCustomFieldRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyLogCustomFieldRulePositionBeforePosition, rulesets.RuleNewParamsBodyLogCustomFieldRulePositionAfterPosition, rulesets.RuleNewParamsBodyLogCustomFieldRulePositionIndexPosition, RuleNewParamsBodyLogCustomFieldRulePosition.
type RuleNewParamsBodyLogRule ¶
type RuleNewParamsBodyLogRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodyLogRulePositionUnion] `json:"position"`
LogRuleParam
}
func (RuleNewParamsBodyLogRule) MarshalJSON ¶
func (r RuleNewParamsBodyLogRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyLogRulePosition ¶
type RuleNewParamsBodyLogRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyLogRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodyLogRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyLogRulePositionAfterPosition ¶
type RuleNewParamsBodyLogRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyLogRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodyLogRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyLogRulePositionBeforePosition ¶
type RuleNewParamsBodyLogRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyLogRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodyLogRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyLogRulePositionIndexPosition ¶
type RuleNewParamsBodyLogRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyLogRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodyLogRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyLogRulePositionUnion ¶
type RuleNewParamsBodyLogRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyLogRulePositionBeforePosition, rulesets.RuleNewParamsBodyLogRulePositionAfterPosition, rulesets.RuleNewParamsBodyLogRulePositionIndexPosition, RuleNewParamsBodyLogRulePosition.
type RuleNewParamsBodyManagedChallengeRule ¶
type RuleNewParamsBodyManagedChallengeRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodyManagedChallengeRulePositionUnion] `json:"position"`
ManagedChallengeRuleParam
}
func (RuleNewParamsBodyManagedChallengeRule) MarshalJSON ¶
func (r RuleNewParamsBodyManagedChallengeRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyManagedChallengeRulePosition ¶
type RuleNewParamsBodyManagedChallengeRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyManagedChallengeRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodyManagedChallengeRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyManagedChallengeRulePositionAfterPosition ¶
type RuleNewParamsBodyManagedChallengeRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyManagedChallengeRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodyManagedChallengeRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyManagedChallengeRulePositionBeforePosition ¶
type RuleNewParamsBodyManagedChallengeRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyManagedChallengeRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodyManagedChallengeRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyManagedChallengeRulePositionIndexPosition ¶
type RuleNewParamsBodyManagedChallengeRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyManagedChallengeRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodyManagedChallengeRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyManagedChallengeRulePositionUnion ¶
type RuleNewParamsBodyManagedChallengeRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyManagedChallengeRulePositionBeforePosition, rulesets.RuleNewParamsBodyManagedChallengeRulePositionAfterPosition, rulesets.RuleNewParamsBodyManagedChallengeRulePositionIndexPosition, RuleNewParamsBodyManagedChallengeRulePosition.
type RuleNewParamsBodyRedirectRule ¶
type RuleNewParamsBodyRedirectRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodyRedirectRulePositionUnion] `json:"position"`
RedirectRuleParam
}
func (RuleNewParamsBodyRedirectRule) MarshalJSON ¶
func (r RuleNewParamsBodyRedirectRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyRedirectRulePosition ¶
type RuleNewParamsBodyRedirectRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyRedirectRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodyRedirectRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyRedirectRulePositionAfterPosition ¶
type RuleNewParamsBodyRedirectRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyRedirectRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodyRedirectRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyRedirectRulePositionBeforePosition ¶
type RuleNewParamsBodyRedirectRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyRedirectRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodyRedirectRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyRedirectRulePositionIndexPosition ¶
type RuleNewParamsBodyRedirectRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyRedirectRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodyRedirectRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyRedirectRulePositionUnion ¶
type RuleNewParamsBodyRedirectRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyRedirectRulePositionBeforePosition, rulesets.RuleNewParamsBodyRedirectRulePositionAfterPosition, rulesets.RuleNewParamsBodyRedirectRulePositionIndexPosition, RuleNewParamsBodyRedirectRulePosition.
type RuleNewParamsBodyResponseCompressionRule ¶
type RuleNewParamsBodyResponseCompressionRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodyResponseCompressionRulePositionUnion] `json:"position"`
CompressResponseRuleParam
}
func (RuleNewParamsBodyResponseCompressionRule) MarshalJSON ¶
func (r RuleNewParamsBodyResponseCompressionRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyResponseCompressionRulePosition ¶
type RuleNewParamsBodyResponseCompressionRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyResponseCompressionRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodyResponseCompressionRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyResponseCompressionRulePositionAfterPosition ¶
type RuleNewParamsBodyResponseCompressionRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyResponseCompressionRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodyResponseCompressionRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyResponseCompressionRulePositionBeforePosition ¶
type RuleNewParamsBodyResponseCompressionRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyResponseCompressionRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodyResponseCompressionRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyResponseCompressionRulePositionIndexPosition ¶
type RuleNewParamsBodyResponseCompressionRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyResponseCompressionRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodyResponseCompressionRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyResponseCompressionRulePositionUnion ¶
type RuleNewParamsBodyResponseCompressionRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyResponseCompressionRulePositionBeforePosition, rulesets.RuleNewParamsBodyResponseCompressionRulePositionAfterPosition, rulesets.RuleNewParamsBodyResponseCompressionRulePositionIndexPosition, RuleNewParamsBodyResponseCompressionRulePosition.
type RuleNewParamsBodyRewriteRule ¶
type RuleNewParamsBodyRewriteRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodyRewriteRulePositionUnion] `json:"position"`
RewriteRuleParam
}
func (RuleNewParamsBodyRewriteRule) MarshalJSON ¶
func (r RuleNewParamsBodyRewriteRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyRewriteRulePosition ¶
type RuleNewParamsBodyRewriteRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyRewriteRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodyRewriteRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyRewriteRulePositionAfterPosition ¶
type RuleNewParamsBodyRewriteRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyRewriteRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodyRewriteRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyRewriteRulePositionBeforePosition ¶
type RuleNewParamsBodyRewriteRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyRewriteRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodyRewriteRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyRewriteRulePositionIndexPosition ¶
type RuleNewParamsBodyRewriteRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyRewriteRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodyRewriteRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyRewriteRulePositionUnion ¶
type RuleNewParamsBodyRewriteRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyRewriteRulePositionBeforePosition, rulesets.RuleNewParamsBodyRewriteRulePositionAfterPosition, rulesets.RuleNewParamsBodyRewriteRulePositionIndexPosition, RuleNewParamsBodyRewriteRulePosition.
type RuleNewParamsBodyRouteRule ¶
type RuleNewParamsBodyRouteRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodyRouteRulePositionUnion] `json:"position"`
RouteRuleParam
}
func (RuleNewParamsBodyRouteRule) MarshalJSON ¶
func (r RuleNewParamsBodyRouteRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyRouteRulePosition ¶
type RuleNewParamsBodyRouteRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyRouteRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodyRouteRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyRouteRulePositionAfterPosition ¶
type RuleNewParamsBodyRouteRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyRouteRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodyRouteRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyRouteRulePositionBeforePosition ¶
type RuleNewParamsBodyRouteRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyRouteRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodyRouteRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyRouteRulePositionIndexPosition ¶
type RuleNewParamsBodyRouteRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyRouteRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodyRouteRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyRouteRulePositionUnion ¶
type RuleNewParamsBodyRouteRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyRouteRulePositionBeforePosition, rulesets.RuleNewParamsBodyRouteRulePositionAfterPosition, rulesets.RuleNewParamsBodyRouteRulePositionIndexPosition, RuleNewParamsBodyRouteRulePosition.
type RuleNewParamsBodyScoreRule ¶
type RuleNewParamsBodyScoreRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodyScoreRulePositionUnion] `json:"position"`
ScoreRuleParam
}
func (RuleNewParamsBodyScoreRule) MarshalJSON ¶
func (r RuleNewParamsBodyScoreRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyScoreRulePosition ¶
type RuleNewParamsBodyScoreRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyScoreRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodyScoreRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyScoreRulePositionAfterPosition ¶
type RuleNewParamsBodyScoreRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyScoreRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodyScoreRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyScoreRulePositionBeforePosition ¶
type RuleNewParamsBodyScoreRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyScoreRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodyScoreRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyScoreRulePositionIndexPosition ¶
type RuleNewParamsBodyScoreRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyScoreRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodyScoreRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyScoreRulePositionUnion ¶
type RuleNewParamsBodyScoreRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyScoreRulePositionBeforePosition, rulesets.RuleNewParamsBodyScoreRulePositionAfterPosition, rulesets.RuleNewParamsBodyScoreRulePositionIndexPosition, RuleNewParamsBodyScoreRulePosition.
type RuleNewParamsBodyServeErrorRule ¶
type RuleNewParamsBodyServeErrorRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodyServeErrorRulePositionUnion] `json:"position"`
ServeErrorRuleParam
}
func (RuleNewParamsBodyServeErrorRule) MarshalJSON ¶
func (r RuleNewParamsBodyServeErrorRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyServeErrorRulePosition ¶
type RuleNewParamsBodyServeErrorRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyServeErrorRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodyServeErrorRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyServeErrorRulePositionAfterPosition ¶
type RuleNewParamsBodyServeErrorRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyServeErrorRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodyServeErrorRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyServeErrorRulePositionBeforePosition ¶
type RuleNewParamsBodyServeErrorRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyServeErrorRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodyServeErrorRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyServeErrorRulePositionIndexPosition ¶
type RuleNewParamsBodyServeErrorRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodyServeErrorRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodyServeErrorRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyServeErrorRulePositionUnion ¶
type RuleNewParamsBodyServeErrorRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyServeErrorRulePositionBeforePosition, rulesets.RuleNewParamsBodyServeErrorRulePositionAfterPosition, rulesets.RuleNewParamsBodyServeErrorRulePositionIndexPosition, RuleNewParamsBodyServeErrorRulePosition.
type RuleNewParamsBodySetCacheControlRule ¶
type RuleNewParamsBodySetCacheControlRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RuleNewParamsBodySetCacheControlRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[RuleNewParamsBodySetCacheControlRuleActionParameters] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RuleNewParamsBodySetCacheControlRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodySetCacheControlRulePositionUnion] `json:"position"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RuleNewParamsBodySetCacheControlRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RuleNewParamsBodySetCacheControlRule) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleAction ¶
type RuleNewParamsBodySetCacheControlRuleAction string
The action to perform when the rule matches.
const (
RuleNewParamsBodySetCacheControlRuleActionSetCacheControl RuleNewParamsBodySetCacheControlRuleAction = "set_cache_control"
)
func (RuleNewParamsBodySetCacheControlRuleAction) IsKnown ¶
func (r RuleNewParamsBodySetCacheControlRuleAction) IsKnown() bool
type RuleNewParamsBodySetCacheControlRuleActionParameters ¶
type RuleNewParamsBodySetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersImmutableUnion] `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeUnion] `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateUnion] `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandUnion] `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheUnion] `json:"no-cache"`
// A cache-control directive configuration.
NoStore param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreUnion] `json:"no-store"`
// A cache-control directive configuration.
NoTransform param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformUnion] `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersPrivateUnion] `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateUnion] `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersPublicUnion] `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageUnion] `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorUnion] `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateUnion] `json:"stale-while-revalidate"`
}
The parameters configuring the rule's action.
func (RuleNewParamsBodySetCacheControlRuleActionParameters) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParameters) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersImmutable ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersImmutableOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RuleNewParamsBodySetCacheControlRuleActionParametersImmutable) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersImmutable) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersImmutableOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersImmutableOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersImmutableOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersImmutableOperation = "remove" )
func (RuleNewParamsBodySetCacheControlRuleActionParametersImmutableOperation) IsKnown ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersImmutableOperation) IsKnown() bool
type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableSetDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersImmutableSetDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersImmutableSetDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableUnion ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersImmutableSetDirective, rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersImmutableRemoveDirective, RuleNewParamsBodySetCacheControlRuleActionParametersImmutable.
type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAge ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleNewParamsBodySetCacheControlRuleActionParametersMaxAge) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersMaxAge) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
func (RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeOperation) IsKnown ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeOperation) IsKnown() bool
type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeUnion ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeSetDirective, rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersMaxAgeRemoveDirective, RuleNewParamsBodySetCacheControlRuleActionParametersMaxAge.
type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidate ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidate) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidate) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
func (RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation) IsKnown ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateOperation) IsKnown() bool
type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateUnion ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateSetDirective, rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidateRemoveDirective, RuleNewParamsBodySetCacheControlRuleActionParametersMustRevalidate.
type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstand ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstand) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstand) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
func (RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation) IsKnown ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandOperation) IsKnown() bool
type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandUnion ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandSetDirective, rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstandRemoveDirective, RuleNewParamsBodySetCacheControlRuleActionParametersMustUnderstand.
type RuleNewParamsBodySetCacheControlRuleActionParametersNoCache ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
Qualifiers param.Field[interface{}] `json:"qualifiers"`
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleNewParamsBodySetCacheControlRuleActionParametersNoCache) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersNoCache) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheOperation = "remove" )
func (RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheOperation) IsKnown ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheOperation) IsKnown() bool
type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheSetDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers param.Field[[]string] `json:"qualifiers"`
}
Set the directive with optional qualifiers.
func (RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheSetDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheSetDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheUnion ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Satisfied by rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheSetDirective, rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersNoCacheRemoveDirective, RuleNewParamsBodySetCacheControlRuleActionParametersNoCache.
type RuleNewParamsBodySetCacheControlRuleActionParametersNoStore ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RuleNewParamsBodySetCacheControlRuleActionParametersNoStore) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersNoStore) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreOperation = "remove" )
func (RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreOperation) IsKnown ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreOperation) IsKnown() bool
type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreSetDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreSetDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreSetDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreUnion ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreSetDirective, rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersNoStoreRemoveDirective, RuleNewParamsBodySetCacheControlRuleActionParametersNoStore.
type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransform ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RuleNewParamsBodySetCacheControlRuleActionParametersNoTransform) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersNoTransform) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformOperation = "remove" )
func (RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformOperation) IsKnown ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformOperation) IsKnown() bool
type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformSetDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformSetDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformSetDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformUnion ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformSetDirective, rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersNoTransformRemoveDirective, RuleNewParamsBodySetCacheControlRuleActionParametersNoTransform.
type RuleNewParamsBodySetCacheControlRuleActionParametersPrivate ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersPrivateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
Qualifiers param.Field[interface{}] `json:"qualifiers"`
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleNewParamsBodySetCacheControlRuleActionParametersPrivate) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersPrivate) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersPrivateOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersPrivateOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersPrivateOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersPrivateOperation = "remove" )
func (RuleNewParamsBodySetCacheControlRuleActionParametersPrivateOperation) IsKnown ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersPrivateOperation) IsKnown() bool
type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateSetDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers param.Field[[]string] `json:"qualifiers"`
}
Set the directive with optional qualifiers.
func (RuleNewParamsBodySetCacheControlRuleActionParametersPrivateSetDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersPrivateSetDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateUnion ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Satisfied by rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersPrivateSetDirective, rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersPrivateRemoveDirective, RuleNewParamsBodySetCacheControlRuleActionParametersPrivate.
type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidate ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidate) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidate) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
func (RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperation) IsKnown ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateOperation) IsKnown() bool
type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateUnion ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateSetDirective, rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidateRemoveDirective, RuleNewParamsBodySetCacheControlRuleActionParametersProxyRevalidate.
type RuleNewParamsBodySetCacheControlRuleActionParametersPublic ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersPublicOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RuleNewParamsBodySetCacheControlRuleActionParametersPublic) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersPublic) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersPublicOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersPublicOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersPublicOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersPublicOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersPublicOperation = "remove" )
func (RuleNewParamsBodySetCacheControlRuleActionParametersPublicOperation) IsKnown ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersPublicOperation) IsKnown() bool
type RuleNewParamsBodySetCacheControlRuleActionParametersPublicRemoveDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersPublicRemoveDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersPublicRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersPublicSetDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersPublicSetDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersPublicSetDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersPublicUnion ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersPublicSetDirective, rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersPublicRemoveDirective, RuleNewParamsBodySetCacheControlRuleActionParametersPublic.
type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxage ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleNewParamsBodySetCacheControlRuleActionParametersSMaxage) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersSMaxage) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageOperation = "remove" )
func (RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageOperation) IsKnown ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageOperation) IsKnown() bool
type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageSetDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageSetDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageSetDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageUnion ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageSetDirective, rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersSMaxageRemoveDirective, RuleNewParamsBodySetCacheControlRuleActionParametersSMaxage.
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfError ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfError) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfError) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
func (RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation) IsKnown ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorOperation) IsKnown() bool
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorUnion ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorSetDirective, rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfErrorRemoveDirective, RuleNewParamsBodySetCacheControlRuleActionParametersStaleIfError.
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidate ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidate) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidate) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶
type RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, rulesets.RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective, RuleNewParamsBodySetCacheControlRuleActionParametersStaleWhileRevalidate.
type RuleNewParamsBodySetCacheControlRuleExposedCredentialCheck ¶
type RuleNewParamsBodySetCacheControlRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RuleNewParamsBodySetCacheControlRuleExposedCredentialCheck) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRulePosition ¶
type RuleNewParamsBodySetCacheControlRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetCacheControlRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRulePositionAfterPosition ¶
type RuleNewParamsBodySetCacheControlRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetCacheControlRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRulePositionBeforePosition ¶
type RuleNewParamsBodySetCacheControlRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetCacheControlRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRulePositionIndexPosition ¶
type RuleNewParamsBodySetCacheControlRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetCacheControlRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheControlRulePositionUnion ¶
type RuleNewParamsBodySetCacheControlRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodySetCacheControlRulePositionBeforePosition, rulesets.RuleNewParamsBodySetCacheControlRulePositionAfterPosition, rulesets.RuleNewParamsBodySetCacheControlRulePositionIndexPosition, RuleNewParamsBodySetCacheControlRulePosition.
type RuleNewParamsBodySetCacheControlRuleRatelimit ¶
type RuleNewParamsBodySetCacheControlRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RuleNewParamsBodySetCacheControlRuleRatelimit) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheControlRuleRatelimit) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheSettingsRule ¶
type RuleNewParamsBodySetCacheSettingsRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodySetCacheSettingsRulePositionUnion] `json:"position"`
SetCacheSettingsRuleParam
}
func (RuleNewParamsBodySetCacheSettingsRule) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheSettingsRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheSettingsRulePosition ¶
type RuleNewParamsBodySetCacheSettingsRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetCacheSettingsRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheSettingsRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheSettingsRulePositionAfterPosition ¶
type RuleNewParamsBodySetCacheSettingsRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetCacheSettingsRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheSettingsRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheSettingsRulePositionBeforePosition ¶
type RuleNewParamsBodySetCacheSettingsRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetCacheSettingsRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheSettingsRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheSettingsRulePositionIndexPosition ¶
type RuleNewParamsBodySetCacheSettingsRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetCacheSettingsRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheSettingsRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheSettingsRulePositionUnion ¶
type RuleNewParamsBodySetCacheSettingsRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodySetCacheSettingsRulePositionBeforePosition, rulesets.RuleNewParamsBodySetCacheSettingsRulePositionAfterPosition, rulesets.RuleNewParamsBodySetCacheSettingsRulePositionIndexPosition, RuleNewParamsBodySetCacheSettingsRulePosition.
type RuleNewParamsBodySetCacheTagsRule ¶
type RuleNewParamsBodySetCacheTagsRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RuleNewParamsBodySetCacheTagsRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[RuleNewParamsBodySetCacheTagsRuleActionParametersUnion] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RuleNewParamsBodySetCacheTagsRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodySetCacheTagsRulePositionUnion] `json:"position"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RuleNewParamsBodySetCacheTagsRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RuleNewParamsBodySetCacheTagsRule) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheTagsRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheTagsRuleAction ¶
type RuleNewParamsBodySetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
RuleNewParamsBodySetCacheTagsRuleActionSetCacheTags RuleNewParamsBodySetCacheTagsRuleAction = "set_cache_tags"
)
func (RuleNewParamsBodySetCacheTagsRuleAction) IsKnown ¶
func (r RuleNewParamsBodySetCacheTagsRuleAction) IsKnown() bool
type RuleNewParamsBodySetCacheTagsRuleActionParameters ¶
type RuleNewParamsBodySetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation param.Field[RuleNewParamsBodySetCacheTagsRuleActionParametersOperation] `json:"operation" api:"required"`
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression"`
Values param.Field[interface{}] `json:"values"`
}
The parameters configuring the rule's action.
func (RuleNewParamsBodySetCacheTagsRuleActionParameters) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheTagsRuleActionParameters) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpression ¶
type RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation param.Field[RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation] `json:"operation" api:"required"`
}
Add cache tags using an expression.
func (RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpression) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpression) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶
type RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValues ¶
type RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation param.Field[RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation] `json:"operation" api:"required"`
// A list of cache tag values.
Values param.Field[[]string] `json:"values" api:"required"`
}
Add cache tags using a list of values.
func (RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValues) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValues) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶
type RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
func (RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation) IsKnown ¶
func (r RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValuesOperation) IsKnown() bool
type RuleNewParamsBodySetCacheTagsRuleActionParametersOperation ¶
type RuleNewParamsBodySetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( RuleNewParamsBodySetCacheTagsRuleActionParametersOperationAdd RuleNewParamsBodySetCacheTagsRuleActionParametersOperation = "add" RuleNewParamsBodySetCacheTagsRuleActionParametersOperationRemove RuleNewParamsBodySetCacheTagsRuleActionParametersOperation = "remove" RuleNewParamsBodySetCacheTagsRuleActionParametersOperationSet RuleNewParamsBodySetCacheTagsRuleActionParametersOperation = "set" )
func (RuleNewParamsBodySetCacheTagsRuleActionParametersOperation) IsKnown ¶
func (r RuleNewParamsBodySetCacheTagsRuleActionParametersOperation) IsKnown() bool
type RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶
type RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation param.Field[RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation] `json:"operation" api:"required"`
}
Remove cache tags using an expression.
func (RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpression) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpression) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶
type RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶
type RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation param.Field[RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation] `json:"operation" api:"required"`
// A list of cache tag values.
Values param.Field[[]string] `json:"values" api:"required"`
}
Remove cache tags using a list of values.
func (RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValues) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValues) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶
type RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpression ¶
type RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation param.Field[RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation] `json:"operation" api:"required"`
}
Set cache tags using an expression.
func (RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpression) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpression) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶
type RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValues ¶
type RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation param.Field[RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation] `json:"operation" api:"required"`
// A list of cache tag values.
Values param.Field[[]string] `json:"values" api:"required"`
}
Set cache tags using a list of values.
func (RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValues) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValues) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶
type RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
func (RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation) IsKnown ¶
func (r RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValuesOperation) IsKnown() bool
type RuleNewParamsBodySetCacheTagsRuleActionParametersUnion ¶
type RuleNewParamsBodySetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Satisfied by rulesets.RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsValues, rulesets.RuleNewParamsBodySetCacheTagsRuleActionParametersAddCacheTagsExpression, rulesets.RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsValues, rulesets.RuleNewParamsBodySetCacheTagsRuleActionParametersRemoveCacheTagsExpression, rulesets.RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsValues, rulesets.RuleNewParamsBodySetCacheTagsRuleActionParametersSetCacheTagsExpression, RuleNewParamsBodySetCacheTagsRuleActionParameters.
type RuleNewParamsBodySetCacheTagsRuleExposedCredentialCheck ¶
type RuleNewParamsBodySetCacheTagsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RuleNewParamsBodySetCacheTagsRuleExposedCredentialCheck) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheTagsRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheTagsRulePosition ¶
type RuleNewParamsBodySetCacheTagsRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetCacheTagsRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheTagsRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheTagsRulePositionAfterPosition ¶
type RuleNewParamsBodySetCacheTagsRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetCacheTagsRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheTagsRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheTagsRulePositionBeforePosition ¶
type RuleNewParamsBodySetCacheTagsRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetCacheTagsRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheTagsRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheTagsRulePositionIndexPosition ¶
type RuleNewParamsBodySetCacheTagsRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetCacheTagsRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheTagsRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetCacheTagsRulePositionUnion ¶
type RuleNewParamsBodySetCacheTagsRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodySetCacheTagsRulePositionBeforePosition, rulesets.RuleNewParamsBodySetCacheTagsRulePositionAfterPosition, rulesets.RuleNewParamsBodySetCacheTagsRulePositionIndexPosition, RuleNewParamsBodySetCacheTagsRulePosition.
type RuleNewParamsBodySetCacheTagsRuleRatelimit ¶
type RuleNewParamsBodySetCacheTagsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RuleNewParamsBodySetCacheTagsRuleRatelimit) MarshalJSON ¶
func (r RuleNewParamsBodySetCacheTagsRuleRatelimit) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetConfigurationRule ¶
type RuleNewParamsBodySetConfigurationRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodySetConfigurationRulePositionUnion] `json:"position"`
SetConfigRuleParam
}
func (RuleNewParamsBodySetConfigurationRule) MarshalJSON ¶
func (r RuleNewParamsBodySetConfigurationRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetConfigurationRulePosition ¶
type RuleNewParamsBodySetConfigurationRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetConfigurationRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodySetConfigurationRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetConfigurationRulePositionAfterPosition ¶
type RuleNewParamsBodySetConfigurationRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetConfigurationRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodySetConfigurationRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetConfigurationRulePositionBeforePosition ¶
type RuleNewParamsBodySetConfigurationRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetConfigurationRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodySetConfigurationRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetConfigurationRulePositionIndexPosition ¶
type RuleNewParamsBodySetConfigurationRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySetConfigurationRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodySetConfigurationRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySetConfigurationRulePositionUnion ¶
type RuleNewParamsBodySetConfigurationRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodySetConfigurationRulePositionBeforePosition, rulesets.RuleNewParamsBodySetConfigurationRulePositionAfterPosition, rulesets.RuleNewParamsBodySetConfigurationRulePositionIndexPosition, RuleNewParamsBodySetConfigurationRulePosition.
type RuleNewParamsBodySkipRule ¶
type RuleNewParamsBodySkipRule struct {
// An object configuring where the rule will be placed.
Position param.Field[RuleNewParamsBodySkipRulePositionUnion] `json:"position"`
SkipRuleParam
}
func (RuleNewParamsBodySkipRule) MarshalJSON ¶
func (r RuleNewParamsBodySkipRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySkipRulePosition ¶
type RuleNewParamsBodySkipRulePosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySkipRulePosition) MarshalJSON ¶
func (r RuleNewParamsBodySkipRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySkipRulePositionAfterPosition ¶
type RuleNewParamsBodySkipRulePositionAfterPosition struct {
// The ID of another rule to place the rule after. An empty value causes the rule
// to be placed at the bottom.
After param.Field[string] `json:"after"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySkipRulePositionAfterPosition) MarshalJSON ¶
func (r RuleNewParamsBodySkipRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySkipRulePositionBeforePosition ¶
type RuleNewParamsBodySkipRulePositionBeforePosition struct {
// The ID of another rule to place the rule before. An empty value causes the rule
// to be placed at the top.
Before param.Field[string] `json:"before"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySkipRulePositionBeforePosition) MarshalJSON ¶
func (r RuleNewParamsBodySkipRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySkipRulePositionIndexPosition ¶
type RuleNewParamsBodySkipRulePositionIndexPosition struct {
// An index at which to place the rule, where index 1 is the first rule.
Index param.Field[int64] `json:"index"`
}
An object configuring where the rule will be placed.
func (RuleNewParamsBodySkipRulePositionIndexPosition) MarshalJSON ¶
func (r RuleNewParamsBodySkipRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodySkipRulePositionUnion ¶
type RuleNewParamsBodySkipRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodySkipRulePositionBeforePosition, rulesets.RuleNewParamsBodySkipRulePositionAfterPosition, rulesets.RuleNewParamsBodySkipRulePositionIndexPosition, RuleNewParamsBodySkipRulePosition.
type RuleNewParamsBodyUnion ¶
type RuleNewParamsBodyUnion interface {
// contains filtered or unexported methods
}
Satisfied by rulesets.RuleNewParamsBodyBlockRule, rulesets.RuleNewParamsBodyChallengeRule, rulesets.RuleNewParamsBodyResponseCompressionRule, rulesets.RuleNewParamsBodyDDoSDynamicRule, rulesets.RuleNewParamsBodyExecuteRule, rulesets.RuleNewParamsBodyForceConnectionCloseRule, rulesets.RuleNewParamsBodyJavaScriptChallengeRule, rulesets.RuleNewParamsBodyLogRule, rulesets.RuleNewParamsBodyLogCustomFieldRule, rulesets.RuleNewParamsBodyManagedChallengeRule, rulesets.RuleNewParamsBodyRedirectRule, rulesets.RuleNewParamsBodyRewriteRule, rulesets.RuleNewParamsBodyRouteRule, rulesets.RuleNewParamsBodyScoreRule, rulesets.RuleNewParamsBodyServeErrorRule, rulesets.RuleNewParamsBodySetCacheControlRule, rulesets.RuleNewParamsBodySetCacheSettingsRule, rulesets.RuleNewParamsBodySetCacheTagsRule, rulesets.RuleNewParamsBodySetConfigurationRule, rulesets.RuleNewParamsBodySkipRule, RuleNewParamsBody.
type RuleNewResponse ¶
type RuleNewResponse struct {
// The unique ID of the ruleset.
ID string `json:"id" api:"required"`
// The kind of the ruleset.
Kind Kind `json:"kind" api:"required"`
// The timestamp of when the ruleset was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The human-readable name of the ruleset.
Name string `json:"name" api:"required"`
// The phase of the ruleset.
Phase Phase `json:"phase" api:"required"`
// The list of rules in the ruleset.
Rules []RuleNewResponseRule `json:"rules" api:"required"`
// The version of the ruleset.
Version string `json:"version" api:"required"`
// An informative description of the ruleset.
Description string `json:"description"`
JSON ruleNewResponseJSON `json:"-"`
}
A ruleset object.
func (*RuleNewResponse) UnmarshalJSON ¶
func (r *RuleNewResponse) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelope ¶
type RuleNewResponseEnvelope struct {
// A list of error messages.
Errors []RuleNewResponseEnvelopeErrors `json:"errors" api:"required"`
// A list of warning messages.
Messages []RuleNewResponseEnvelopeMessages `json:"messages" api:"required"`
// A ruleset object.
Result RuleNewResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success RuleNewResponseEnvelopeSuccess `json:"success" api:"required"`
JSON ruleNewResponseEnvelopeJSON `json:"-"`
}
A response object.
func (*RuleNewResponseEnvelope) UnmarshalJSON ¶
func (r *RuleNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeErrors ¶
type RuleNewResponseEnvelopeErrors struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source RuleNewResponseEnvelopeErrorsSource `json:"source"`
JSON ruleNewResponseEnvelopeErrorsJSON `json:"-"`
}
A message.
func (*RuleNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *RuleNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeErrorsSource ¶
type RuleNewResponseEnvelopeErrorsSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON ruleNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}
The source of this message.
func (*RuleNewResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *RuleNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeMessages ¶
type RuleNewResponseEnvelopeMessages struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source RuleNewResponseEnvelopeMessagesSource `json:"source"`
JSON ruleNewResponseEnvelopeMessagesJSON `json:"-"`
}
A message.
func (*RuleNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *RuleNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeMessagesSource ¶
type RuleNewResponseEnvelopeMessagesSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON ruleNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}
The source of this message.
func (*RuleNewResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *RuleNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeSuccess ¶
type RuleNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
RuleNewResponseEnvelopeSuccessTrue RuleNewResponseEnvelopeSuccess = true
)
func (RuleNewResponseEnvelopeSuccess) IsKnown ¶
func (r RuleNewResponseEnvelopeSuccess) IsKnown() bool
type RuleNewResponseRule ¶
type RuleNewResponseRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RuleNewResponseRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [RuleNewResponseRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters].
ActionParameters interface{} `json:"action_parameters"`
// This field can have the runtime type of [[]string].
Categories interface{} `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// This field can have the runtime type of [BlockRuleExposedCredentialCheck],
// [RuleNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [RuleNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [RuleNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [RuleNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck].
ExposedCredentialCheck interface{} `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// This field can have the runtime type of [BlockRuleRatelimit],
// [RuleNewResponseRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [RuleNewResponseRulesRulesetsJSChallengeRuleRatelimit], [LogRuleRatelimit],
// [LogCustomFieldRuleRatelimit], [ManagedChallengeRuleRatelimit],
// [RedirectRuleRatelimit], [RewriteRuleRatelimit], [RouteRuleRatelimit],
// [ScoreRuleRatelimit], [ServeErrorRuleRatelimit],
// [RuleNewResponseRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [RuleNewResponseRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleNewResponseRuleJSON `json:"-"`
// contains filtered or unexported fields
}
func (RuleNewResponseRule) AsUnion ¶
func (r RuleNewResponseRule) AsUnion() RuleNewResponseRulesUnion
AsUnion returns a RuleNewResponseRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, RuleNewResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RuleNewResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RuleNewResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RuleNewResponseRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule.
func (*RuleNewResponseRule) UnmarshalJSON ¶
func (r *RuleNewResponseRule) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesAction ¶
type RuleNewResponseRulesAction string
The action to perform when the rule matches.
const ( RuleNewResponseRulesActionBlock RuleNewResponseRulesAction = "block" RuleNewResponseRulesActionChallenge RuleNewResponseRulesAction = "challenge" RuleNewResponseRulesActionCompressResponse RuleNewResponseRulesAction = "compress_response" RuleNewResponseRulesActionDDoSDynamic RuleNewResponseRulesAction = "ddos_dynamic" RuleNewResponseRulesActionExecute RuleNewResponseRulesAction = "execute" RuleNewResponseRulesActionForceConnectionClose RuleNewResponseRulesAction = "force_connection_close" RuleNewResponseRulesActionJSChallenge RuleNewResponseRulesAction = "js_challenge" RuleNewResponseRulesActionLog RuleNewResponseRulesAction = "log" RuleNewResponseRulesActionLogCustomField RuleNewResponseRulesAction = "log_custom_field" RuleNewResponseRulesActionManagedChallenge RuleNewResponseRulesAction = "managed_challenge" RuleNewResponseRulesActionRedirect RuleNewResponseRulesAction = "redirect" RuleNewResponseRulesActionRewrite RuleNewResponseRulesAction = "rewrite" RuleNewResponseRulesActionRoute RuleNewResponseRulesAction = "route" RuleNewResponseRulesActionScore RuleNewResponseRulesAction = "score" RuleNewResponseRulesActionServeError RuleNewResponseRulesAction = "serve_error" RuleNewResponseRulesActionSetCacheControl RuleNewResponseRulesAction = "set_cache_control" RuleNewResponseRulesActionSetCacheSettings RuleNewResponseRulesAction = "set_cache_settings" RuleNewResponseRulesActionSetCacheTags RuleNewResponseRulesAction = "set_cache_tags" RuleNewResponseRulesActionSetConfig RuleNewResponseRulesAction = "set_config" RuleNewResponseRulesActionSkip RuleNewResponseRulesAction = "skip" )
func (RuleNewResponseRulesAction) IsKnown ¶
func (r RuleNewResponseRulesAction) IsKnown() bool
type RuleNewResponseRulesRulesetsChallengeRule ¶
type RuleNewResponseRulesRulesetsChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RuleNewResponseRulesRulesetsChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RuleNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RuleNewResponseRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleNewResponseRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*RuleNewResponseRulesRulesetsChallengeRule) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsChallengeRuleAction ¶
type RuleNewResponseRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleNewResponseRulesRulesetsChallengeRuleActionChallenge RuleNewResponseRulesRulesetsChallengeRuleAction = "challenge"
)
func (RuleNewResponseRulesRulesetsChallengeRuleAction) IsKnown ¶
func (r RuleNewResponseRulesRulesetsChallengeRuleAction) IsKnown() bool
type RuleNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck ¶
type RuleNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON ruleNewResponseRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsChallengeRuleRatelimit ¶
type RuleNewResponseRulesRulesetsChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON ruleNewResponseRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleNewResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsJSChallengeRule ¶
type RuleNewResponseRulesRulesetsJSChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RuleNewResponseRulesRulesetsJSChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RuleNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RuleNewResponseRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleNewResponseRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*RuleNewResponseRulesRulesetsJSChallengeRule) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsJSChallengeRuleAction ¶
type RuleNewResponseRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleNewResponseRulesRulesetsJSChallengeRuleActionJSChallenge RuleNewResponseRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (RuleNewResponseRulesRulesetsJSChallengeRuleAction) IsKnown ¶
func (r RuleNewResponseRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type RuleNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶
type RuleNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON ruleNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsJSChallengeRuleRatelimit ¶
type RuleNewResponseRulesRulesetsJSChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON ruleNewResponseRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleNewResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRule ¶
type RuleNewResponseRulesRulesetsSetCacheControlRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RuleNewResponseRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RuleNewResponseRulesRulesetsSetCacheControlRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RuleNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RuleNewResponseRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*RuleNewResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleAction ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
RuleNewResponseRulesRulesetsSetCacheControlRuleActionSetCacheControl RuleNewResponseRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (RuleNewResponseRulesRulesetsSetCacheControlRuleAction) IsKnown ¶
func (r RuleNewResponseRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParameters ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶
func (r RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶
func (r RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶
func (r RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶
func (r RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶
func (r RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶
func (r RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶
func (r RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶
func (r RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶
func (r RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶
func (r RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶
func (r RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶
func (r RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶
func (r RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or RuleNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type RuleNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheControlRuleRatelimit ¶
type RuleNewResponseRulesRulesetsSetCacheControlRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON ruleNewResponseRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleNewResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheTagsRule ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RuleNewResponseRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RuleNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RuleNewResponseRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleNewResponseRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*RuleNewResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheTagsRuleAction ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
RuleNewResponseRulesRulesetsSetCacheTagsRuleActionSetCacheTags RuleNewResponseRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (RuleNewResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶
func (r RuleNewResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParameters ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation `json:"operation" api:"required"`
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression"`
// This field can have the runtime type of [[]string].
Values interface{} `json:"values"`
JSON ruleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶
func (r RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationSet RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
func (RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown ¶
func (r RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown() bool
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or RuleNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type RuleNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON ruleNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesRulesetsSetCacheTagsRuleRatelimit ¶
type RuleNewResponseRulesRulesetsSetCacheTagsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON ruleNewResponseRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleNewResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶
func (r *RuleNewResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseRulesUnion ¶
type RuleNewResponseRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, RuleNewResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RuleNewResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RuleNewResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RuleNewResponseRulesRulesetsSetCacheTagsRule, SetConfigRule or SkipRule.
type RuleService ¶
type RuleService struct {
Options []option.RequestOption
}
RuleService 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 NewRuleService method instead.
func NewRuleService ¶
func NewRuleService(opts ...option.RequestOption) (r *RuleService)
NewRuleService 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 (*RuleService) Delete ¶
func (r *RuleService) Delete(ctx context.Context, rulesetID string, ruleID string, body RuleDeleteParams, opts ...option.RequestOption) (res *RuleDeleteResponse, err error)
Deletes an existing rule from an account or zone ruleset.
func (*RuleService) Edit ¶
func (r *RuleService) Edit(ctx context.Context, rulesetID string, ruleID string, params RuleEditParams, opts ...option.RequestOption) (res *RuleEditResponse, err error)
Updates an existing rule in an account or zone ruleset.
func (*RuleService) New ¶
func (r *RuleService) New(ctx context.Context, rulesetID string, params RuleNewParams, opts ...option.RequestOption) (res *RuleNewResponse, err error)
Adds a new rule to an account or zone ruleset. The rule will be added to the end of the existing list of rules in the ruleset by default.
type RulesetDeleteParams ¶
type RulesetGetParams ¶
type RulesetGetResponse ¶
type RulesetGetResponse struct {
// The unique ID of the ruleset.
ID string `json:"id" api:"required"`
// The kind of the ruleset.
Kind Kind `json:"kind" api:"required"`
// The timestamp of when the ruleset was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The human-readable name of the ruleset.
Name string `json:"name" api:"required"`
// The phase of the ruleset.
Phase Phase `json:"phase" api:"required"`
// The list of rules in the ruleset.
Rules []RulesetGetResponseRule `json:"rules" api:"required"`
// The version of the ruleset.
Version string `json:"version" api:"required"`
// An informative description of the ruleset.
Description string `json:"description"`
JSON rulesetGetResponseJSON `json:"-"`
}
A ruleset object.
func (*RulesetGetResponse) UnmarshalJSON ¶
func (r *RulesetGetResponse) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseEnvelope ¶
type RulesetGetResponseEnvelope struct {
// A list of error messages.
Errors []RulesetGetResponseEnvelopeErrors `json:"errors" api:"required"`
// A list of warning messages.
Messages []RulesetGetResponseEnvelopeMessages `json:"messages" api:"required"`
// A ruleset object.
Result RulesetGetResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success RulesetGetResponseEnvelopeSuccess `json:"success" api:"required"`
JSON rulesetGetResponseEnvelopeJSON `json:"-"`
}
A response object.
func (*RulesetGetResponseEnvelope) UnmarshalJSON ¶
func (r *RulesetGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseEnvelopeErrors ¶
type RulesetGetResponseEnvelopeErrors struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source RulesetGetResponseEnvelopeErrorsSource `json:"source"`
JSON rulesetGetResponseEnvelopeErrorsJSON `json:"-"`
}
A message.
func (*RulesetGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *RulesetGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseEnvelopeErrorsSource ¶
type RulesetGetResponseEnvelopeErrorsSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON rulesetGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
The source of this message.
func (*RulesetGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *RulesetGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseEnvelopeMessages ¶
type RulesetGetResponseEnvelopeMessages struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source RulesetGetResponseEnvelopeMessagesSource `json:"source"`
JSON rulesetGetResponseEnvelopeMessagesJSON `json:"-"`
}
A message.
func (*RulesetGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *RulesetGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseEnvelopeMessagesSource ¶
type RulesetGetResponseEnvelopeMessagesSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON rulesetGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
The source of this message.
func (*RulesetGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *RulesetGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseEnvelopeSuccess ¶
type RulesetGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
RulesetGetResponseEnvelopeSuccessTrue RulesetGetResponseEnvelopeSuccess = true
)
func (RulesetGetResponseEnvelopeSuccess) IsKnown ¶
func (r RulesetGetResponseEnvelopeSuccess) IsKnown() bool
type RulesetGetResponseRule ¶
type RulesetGetResponseRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RulesetGetResponseRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters].
ActionParameters interface{} `json:"action_parameters"`
// This field can have the runtime type of [[]string].
Categories interface{} `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// This field can have the runtime type of [BlockRuleExposedCredentialCheck],
// [RulesetGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [RulesetGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [RulesetGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [RulesetGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck].
ExposedCredentialCheck interface{} `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// This field can have the runtime type of [BlockRuleRatelimit],
// [RulesetGetResponseRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [RulesetGetResponseRulesRulesetsJSChallengeRuleRatelimit], [LogRuleRatelimit],
// [LogCustomFieldRuleRatelimit], [ManagedChallengeRuleRatelimit],
// [RedirectRuleRatelimit], [RewriteRuleRatelimit], [RouteRuleRatelimit],
// [ScoreRuleRatelimit], [ServeErrorRuleRatelimit],
// [RulesetGetResponseRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [RulesetGetResponseRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetGetResponseRuleJSON `json:"-"`
// contains filtered or unexported fields
}
func (RulesetGetResponseRule) AsUnion ¶
func (r RulesetGetResponseRule) AsUnion() RulesetGetResponseRulesUnion
AsUnion returns a RulesetGetResponseRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, RulesetGetResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RulesetGetResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RulesetGetResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RulesetGetResponseRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule.
func (*RulesetGetResponseRule) UnmarshalJSON ¶
func (r *RulesetGetResponseRule) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesAction ¶
type RulesetGetResponseRulesAction string
The action to perform when the rule matches.
const ( RulesetGetResponseRulesActionBlock RulesetGetResponseRulesAction = "block" RulesetGetResponseRulesActionChallenge RulesetGetResponseRulesAction = "challenge" RulesetGetResponseRulesActionCompressResponse RulesetGetResponseRulesAction = "compress_response" RulesetGetResponseRulesActionDDoSDynamic RulesetGetResponseRulesAction = "ddos_dynamic" RulesetGetResponseRulesActionExecute RulesetGetResponseRulesAction = "execute" RulesetGetResponseRulesActionForceConnectionClose RulesetGetResponseRulesAction = "force_connection_close" RulesetGetResponseRulesActionJSChallenge RulesetGetResponseRulesAction = "js_challenge" RulesetGetResponseRulesActionLog RulesetGetResponseRulesAction = "log" RulesetGetResponseRulesActionLogCustomField RulesetGetResponseRulesAction = "log_custom_field" RulesetGetResponseRulesActionManagedChallenge RulesetGetResponseRulesAction = "managed_challenge" RulesetGetResponseRulesActionRedirect RulesetGetResponseRulesAction = "redirect" RulesetGetResponseRulesActionRewrite RulesetGetResponseRulesAction = "rewrite" RulesetGetResponseRulesActionRoute RulesetGetResponseRulesAction = "route" RulesetGetResponseRulesActionScore RulesetGetResponseRulesAction = "score" RulesetGetResponseRulesActionServeError RulesetGetResponseRulesAction = "serve_error" RulesetGetResponseRulesActionSetCacheControl RulesetGetResponseRulesAction = "set_cache_control" RulesetGetResponseRulesActionSetCacheSettings RulesetGetResponseRulesAction = "set_cache_settings" RulesetGetResponseRulesActionSetCacheTags RulesetGetResponseRulesAction = "set_cache_tags" RulesetGetResponseRulesActionSetConfig RulesetGetResponseRulesAction = "set_config" RulesetGetResponseRulesActionSkip RulesetGetResponseRulesAction = "skip" )
func (RulesetGetResponseRulesAction) IsKnown ¶
func (r RulesetGetResponseRulesAction) IsKnown() bool
type RulesetGetResponseRulesRulesetsChallengeRule ¶
type RulesetGetResponseRulesRulesetsChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RulesetGetResponseRulesRulesetsChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RulesetGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RulesetGetResponseRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetGetResponseRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*RulesetGetResponseRulesRulesetsChallengeRule) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsChallengeRuleAction ¶
type RulesetGetResponseRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
RulesetGetResponseRulesRulesetsChallengeRuleActionChallenge RulesetGetResponseRulesRulesetsChallengeRuleAction = "challenge"
)
func (RulesetGetResponseRulesRulesetsChallengeRuleAction) IsKnown ¶
func (r RulesetGetResponseRulesRulesetsChallengeRuleAction) IsKnown() bool
type RulesetGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck ¶
type RulesetGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON rulesetGetResponseRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsChallengeRuleRatelimit ¶
type RulesetGetResponseRulesRulesetsChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON rulesetGetResponseRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetGetResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsJSChallengeRule ¶
type RulesetGetResponseRulesRulesetsJSChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RulesetGetResponseRulesRulesetsJSChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RulesetGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RulesetGetResponseRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetGetResponseRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*RulesetGetResponseRulesRulesetsJSChallengeRule) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsJSChallengeRuleAction ¶
type RulesetGetResponseRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
RulesetGetResponseRulesRulesetsJSChallengeRuleActionJSChallenge RulesetGetResponseRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (RulesetGetResponseRulesRulesetsJSChallengeRuleAction) IsKnown ¶
func (r RulesetGetResponseRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type RulesetGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶
type RulesetGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON rulesetGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsJSChallengeRuleRatelimit ¶
type RulesetGetResponseRulesRulesetsJSChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON rulesetGetResponseRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetGetResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRule ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RulesetGetResponseRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RulesetGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RulesetGetResponseRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*RulesetGetResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleAction ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
RulesetGetResponseRulesRulesetsSetCacheControlRuleActionSetCacheControl RulesetGetResponseRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (RulesetGetResponseRulesRulesetsSetCacheControlRuleAction) IsKnown ¶
func (r RulesetGetResponseRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParameters ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶
func (r RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶
func (r RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶
func (r RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶
func (r RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶
func (r RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶
func (r RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶
func (r RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶
func (r RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶
func (r RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶
func (r RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶
func (r RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶
func (r RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶
func (r RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or RulesetGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type RulesetGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheControlRuleRatelimit ¶
type RulesetGetResponseRulesRulesetsSetCacheControlRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON rulesetGetResponseRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetGetResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheTagsRule ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RulesetGetResponseRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RulesetGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RulesetGetResponseRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetGetResponseRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*RulesetGetResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleAction ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionSetCacheTags RulesetGetResponseRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (RulesetGetResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶
func (r RulesetGetResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParameters ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation `json:"operation" api:"required"`
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression"`
// This field can have the runtime type of [[]string].
Values interface{} `json:"values"`
JSON rulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶
func (r RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON rulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON rulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationSet RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
func (RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown ¶
func (r RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown() bool
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON rulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON rulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON rulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON rulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or RulesetGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON rulesetGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleRatelimit ¶
type RulesetGetResponseRulesRulesetsSetCacheTagsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON rulesetGetResponseRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetGetResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶
func (r *RulesetGetResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesUnion ¶
type RulesetGetResponseRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, RulesetGetResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RulesetGetResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RulesetGetResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RulesetGetResponseRulesRulesetsSetCacheTagsRule, SetConfigRule or SkipRule.
type RulesetListParams ¶
type RulesetListParams struct {
// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
AccountID param.Field[string] `path:"account_id"`
// The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
ZoneID param.Field[string] `path:"zone_id"`
// The cursor to use for the next page.
Cursor param.Field[string] `query:"cursor"`
// The number of rulesets to return per page.
PerPage param.Field[int64] `query:"per_page"`
}
func (RulesetListParams) URLQuery ¶
func (r RulesetListParams) URLQuery() (v url.Values)
URLQuery serializes RulesetListParams's query parameters as `url.Values`.
type RulesetListResponse ¶
type RulesetListResponse struct {
// The unique ID of the ruleset.
ID string `json:"id" api:"required"`
// The kind of the ruleset.
Kind Kind `json:"kind" api:"required"`
// The timestamp of when the ruleset was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The human-readable name of the ruleset.
Name string `json:"name" api:"required"`
// The phase of the ruleset.
Phase Phase `json:"phase" api:"required"`
// The version of the ruleset.
Version string `json:"version" api:"required"`
// An informative description of the ruleset.
Description string `json:"description"`
JSON rulesetListResponseJSON `json:"-"`
}
A ruleset object.
func (*RulesetListResponse) UnmarshalJSON ¶
func (r *RulesetListResponse) UnmarshalJSON(data []byte) (err error)
type RulesetNewParams ¶
type RulesetNewParams struct {
// The kind of the ruleset.
Kind param.Field[Kind] `json:"kind" api:"required"`
// The human-readable name of the ruleset.
Name param.Field[string] `json:"name" api:"required"`
// The phase of the ruleset.
Phase param.Field[Phase] `json:"phase" api:"required"`
// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
AccountID param.Field[string] `path:"account_id"`
// The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
ZoneID param.Field[string] `path:"zone_id"`
// An informative description of the ruleset.
Description param.Field[string] `json:"description"`
// The list of rules in the ruleset.
Rules param.Field[[]RulesetNewParamsRuleUnion] `json:"rules"`
}
func (RulesetNewParams) MarshalJSON ¶
func (r RulesetNewParams) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRule ¶
type RulesetNewParamsRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RulesetNewParamsRulesAction] `json:"action"`
ActionParameters param.Field[interface{}] `json:"action_parameters"`
Categories param.Field[interface{}] `json:"categories"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
ExposedCredentialCheck param.Field[interface{}] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
Ratelimit param.Field[interface{}] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RulesetNewParamsRule) MarshalJSON ¶
func (r RulesetNewParamsRule) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRuleUnion ¶
type RulesetNewParamsRuleUnion interface {
// contains filtered or unexported methods
}
Satisfied by rulesets.BlockRuleParam, rulesets.RulesetNewParamsRulesRulesetsChallengeRule, rulesets.CompressResponseRuleParam, rulesets.DDoSDynamicRuleParam, rulesets.ExecuteRuleParam, rulesets.ForceConnectionCloseRuleParam, rulesets.RulesetNewParamsRulesRulesetsJSChallengeRule, rulesets.LogRuleParam, rulesets.LogCustomFieldRuleParam, rulesets.ManagedChallengeRuleParam, rulesets.RedirectRuleParam, rulesets.RewriteRuleParam, rulesets.RouteRuleParam, rulesets.ScoreRuleParam, rulesets.ServeErrorRuleParam, rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRule, rulesets.SetCacheSettingsRuleParam, rulesets.RulesetNewParamsRulesRulesetsSetCacheTagsRule, rulesets.SetConfigRuleParam, rulesets.SkipRuleParam, RulesetNewParamsRule.
type RulesetNewParamsRulesAction ¶
type RulesetNewParamsRulesAction string
The action to perform when the rule matches.
const ( RulesetNewParamsRulesActionBlock RulesetNewParamsRulesAction = "block" RulesetNewParamsRulesActionChallenge RulesetNewParamsRulesAction = "challenge" RulesetNewParamsRulesActionCompressResponse RulesetNewParamsRulesAction = "compress_response" RulesetNewParamsRulesActionDDoSDynamic RulesetNewParamsRulesAction = "ddos_dynamic" RulesetNewParamsRulesActionExecute RulesetNewParamsRulesAction = "execute" RulesetNewParamsRulesActionForceConnectionClose RulesetNewParamsRulesAction = "force_connection_close" RulesetNewParamsRulesActionJSChallenge RulesetNewParamsRulesAction = "js_challenge" RulesetNewParamsRulesActionLog RulesetNewParamsRulesAction = "log" RulesetNewParamsRulesActionLogCustomField RulesetNewParamsRulesAction = "log_custom_field" RulesetNewParamsRulesActionManagedChallenge RulesetNewParamsRulesAction = "managed_challenge" RulesetNewParamsRulesActionRedirect RulesetNewParamsRulesAction = "redirect" RulesetNewParamsRulesActionRewrite RulesetNewParamsRulesAction = "rewrite" RulesetNewParamsRulesActionRoute RulesetNewParamsRulesAction = "route" RulesetNewParamsRulesActionScore RulesetNewParamsRulesAction = "score" RulesetNewParamsRulesActionServeError RulesetNewParamsRulesAction = "serve_error" RulesetNewParamsRulesActionSetCacheControl RulesetNewParamsRulesAction = "set_cache_control" RulesetNewParamsRulesActionSetCacheSettings RulesetNewParamsRulesAction = "set_cache_settings" RulesetNewParamsRulesActionSetCacheTags RulesetNewParamsRulesAction = "set_cache_tags" RulesetNewParamsRulesActionSetConfig RulesetNewParamsRulesAction = "set_config" RulesetNewParamsRulesActionSkip RulesetNewParamsRulesAction = "skip" )
func (RulesetNewParamsRulesAction) IsKnown ¶
func (r RulesetNewParamsRulesAction) IsKnown() bool
type RulesetNewParamsRulesRulesetsChallengeRule ¶
type RulesetNewParamsRulesRulesetsChallengeRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RulesetNewParamsRulesRulesetsChallengeRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[interface{}] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RulesetNewParamsRulesRulesetsChallengeRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RulesetNewParamsRulesRulesetsChallengeRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RulesetNewParamsRulesRulesetsChallengeRule) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsChallengeRule) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsChallengeRuleAction ¶
type RulesetNewParamsRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
RulesetNewParamsRulesRulesetsChallengeRuleActionChallenge RulesetNewParamsRulesRulesetsChallengeRuleAction = "challenge"
)
func (RulesetNewParamsRulesRulesetsChallengeRuleAction) IsKnown ¶
func (r RulesetNewParamsRulesRulesetsChallengeRuleAction) IsKnown() bool
type RulesetNewParamsRulesRulesetsChallengeRuleExposedCredentialCheck ¶
type RulesetNewParamsRulesRulesetsChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RulesetNewParamsRulesRulesetsChallengeRuleExposedCredentialCheck) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsChallengeRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsChallengeRuleRatelimit ¶
type RulesetNewParamsRulesRulesetsChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RulesetNewParamsRulesRulesetsChallengeRuleRatelimit) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsChallengeRuleRatelimit) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsJSChallengeRule ¶
type RulesetNewParamsRulesRulesetsJSChallengeRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RulesetNewParamsRulesRulesetsJSChallengeRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[interface{}] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RulesetNewParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RulesetNewParamsRulesRulesetsJSChallengeRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RulesetNewParamsRulesRulesetsJSChallengeRule) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsJSChallengeRule) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsJSChallengeRuleAction ¶
type RulesetNewParamsRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
RulesetNewParamsRulesRulesetsJSChallengeRuleActionJSChallenge RulesetNewParamsRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (RulesetNewParamsRulesRulesetsJSChallengeRuleAction) IsKnown ¶
func (r RulesetNewParamsRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type RulesetNewParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶
type RulesetNewParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RulesetNewParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsJSChallengeRuleRatelimit ¶
type RulesetNewParamsRulesRulesetsJSChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RulesetNewParamsRulesRulesetsJSChallengeRuleRatelimit) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsJSChallengeRuleRatelimit) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRule ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParameters] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RulesetNewParamsRulesRulesetsSetCacheControlRule) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRule) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleAction ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
RulesetNewParamsRulesRulesetsSetCacheControlRuleActionSetCacheControl RulesetNewParamsRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleAction) IsKnown ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParameters ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion] `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion] `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion] `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion] `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion] `json:"no-cache"`
// A cache-control directive configuration.
NoStore param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion] `json:"no-store"`
// A cache-control directive configuration.
NoTransform param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion] `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion] `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion] `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicUnion] `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion] `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion] `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion] `json:"stale-while-revalidate"`
}
The parameters configuring the rule's action.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParameters) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParameters) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective, RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable.
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective, RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge.
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective, RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate.
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective, RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand.
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
Qualifiers param.Field[interface{}] `json:"qualifiers"`
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers param.Field[[]string] `json:"qualifiers"`
}
Set the directive with optional qualifiers.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Satisfied by rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective, RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache.
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective, RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore.
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective, RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform.
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
Qualifiers param.Field[interface{}] `json:"qualifiers"`
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers param.Field[[]string] `json:"qualifiers"`
}
Set the directive with optional qualifiers.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Satisfied by rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective, RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate.
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective, RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate.
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublic ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublic) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublic) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective, RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersPublic.
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective, RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage.
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective, RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError.
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, rulesets.RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective, RulesetNewParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate.
type RulesetNewParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheControlRuleRatelimit ¶
type RulesetNewParamsRulesRulesetsSetCacheControlRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RulesetNewParamsRulesRulesetsSetCacheControlRuleRatelimit) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheControlRuleRatelimit) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheTagsRule ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RulesetNewParamsRulesRulesetsSetCacheTagsRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersUnion] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RulesetNewParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RulesetNewParamsRulesRulesetsSetCacheTagsRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RulesetNewParamsRulesRulesetsSetCacheTagsRule) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheTagsRule) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleAction ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionSetCacheTags RulesetNewParamsRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (RulesetNewParamsRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶
func (r RulesetNewParamsRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParameters ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation] `json:"operation" api:"required"`
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression"`
Values param.Field[interface{}] `json:"values"`
}
The parameters configuring the rule's action.
func (RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParameters) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParameters) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation] `json:"operation" api:"required"`
}
Add cache tags using an expression.
func (RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation] `json:"operation" api:"required"`
// A list of cache tag values.
Values param.Field[[]string] `json:"values" api:"required"`
}
Add cache tags using a list of values.
func (RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersOperationSet RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
func (RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown ¶
func (r RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown() bool
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation] `json:"operation" api:"required"`
}
Remove cache tags using an expression.
func (RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation] `json:"operation" api:"required"`
// A list of cache tag values.
Values param.Field[[]string] `json:"values" api:"required"`
}
Remove cache tags using a list of values.
func (RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation] `json:"operation" api:"required"`
}
Set cache tags using an expression.
func (RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation param.Field[RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation] `json:"operation" api:"required"`
// A list of cache tag values.
Values param.Field[[]string] `json:"values" api:"required"`
}
Set cache tags using a list of values.
func (RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Satisfied by rulesets.RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, rulesets.RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, rulesets.RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, rulesets.RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, rulesets.RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, rulesets.RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression, RulesetNewParamsRulesRulesetsSetCacheTagsRuleActionParameters.
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RulesetNewParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleRatelimit ¶
type RulesetNewParamsRulesRulesetsSetCacheTagsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RulesetNewParamsRulesRulesetsSetCacheTagsRuleRatelimit) MarshalJSON ¶
func (r RulesetNewParamsRulesRulesetsSetCacheTagsRuleRatelimit) MarshalJSON() (data []byte, err error)
type RulesetNewResponse ¶
type RulesetNewResponse struct {
// The unique ID of the ruleset.
ID string `json:"id" api:"required"`
// The kind of the ruleset.
Kind Kind `json:"kind" api:"required"`
// The timestamp of when the ruleset was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The human-readable name of the ruleset.
Name string `json:"name" api:"required"`
// The phase of the ruleset.
Phase Phase `json:"phase" api:"required"`
// The list of rules in the ruleset.
Rules []RulesetNewResponseRule `json:"rules" api:"required"`
// The version of the ruleset.
Version string `json:"version" api:"required"`
// An informative description of the ruleset.
Description string `json:"description"`
JSON rulesetNewResponseJSON `json:"-"`
}
A ruleset object.
func (*RulesetNewResponse) UnmarshalJSON ¶
func (r *RulesetNewResponse) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelope ¶
type RulesetNewResponseEnvelope struct {
// A list of error messages.
Errors []RulesetNewResponseEnvelopeErrors `json:"errors" api:"required"`
// A list of warning messages.
Messages []RulesetNewResponseEnvelopeMessages `json:"messages" api:"required"`
// A ruleset object.
Result RulesetNewResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success RulesetNewResponseEnvelopeSuccess `json:"success" api:"required"`
JSON rulesetNewResponseEnvelopeJSON `json:"-"`
}
A response object.
func (*RulesetNewResponseEnvelope) UnmarshalJSON ¶
func (r *RulesetNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeErrors ¶
type RulesetNewResponseEnvelopeErrors struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source RulesetNewResponseEnvelopeErrorsSource `json:"source"`
JSON rulesetNewResponseEnvelopeErrorsJSON `json:"-"`
}
A message.
func (*RulesetNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *RulesetNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeErrorsSource ¶
type RulesetNewResponseEnvelopeErrorsSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON rulesetNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}
The source of this message.
func (*RulesetNewResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *RulesetNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeMessages ¶
type RulesetNewResponseEnvelopeMessages struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source RulesetNewResponseEnvelopeMessagesSource `json:"source"`
JSON rulesetNewResponseEnvelopeMessagesJSON `json:"-"`
}
A message.
func (*RulesetNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *RulesetNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeMessagesSource ¶
type RulesetNewResponseEnvelopeMessagesSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON rulesetNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}
The source of this message.
func (*RulesetNewResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *RulesetNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeSuccess ¶
type RulesetNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
RulesetNewResponseEnvelopeSuccessTrue RulesetNewResponseEnvelopeSuccess = true
)
func (RulesetNewResponseEnvelopeSuccess) IsKnown ¶
func (r RulesetNewResponseEnvelopeSuccess) IsKnown() bool
type RulesetNewResponseRule ¶
type RulesetNewResponseRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RulesetNewResponseRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters].
ActionParameters interface{} `json:"action_parameters"`
// This field can have the runtime type of [[]string].
Categories interface{} `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// This field can have the runtime type of [BlockRuleExposedCredentialCheck],
// [RulesetNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [RulesetNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [RulesetNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [RulesetNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck].
ExposedCredentialCheck interface{} `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// This field can have the runtime type of [BlockRuleRatelimit],
// [RulesetNewResponseRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [RulesetNewResponseRulesRulesetsJSChallengeRuleRatelimit], [LogRuleRatelimit],
// [LogCustomFieldRuleRatelimit], [ManagedChallengeRuleRatelimit],
// [RedirectRuleRatelimit], [RewriteRuleRatelimit], [RouteRuleRatelimit],
// [ScoreRuleRatelimit], [ServeErrorRuleRatelimit],
// [RulesetNewResponseRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [RulesetNewResponseRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetNewResponseRuleJSON `json:"-"`
// contains filtered or unexported fields
}
func (RulesetNewResponseRule) AsUnion ¶
func (r RulesetNewResponseRule) AsUnion() RulesetNewResponseRulesUnion
AsUnion returns a RulesetNewResponseRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, RulesetNewResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RulesetNewResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RulesetNewResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RulesetNewResponseRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule.
func (*RulesetNewResponseRule) UnmarshalJSON ¶
func (r *RulesetNewResponseRule) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesAction ¶
type RulesetNewResponseRulesAction string
The action to perform when the rule matches.
const ( RulesetNewResponseRulesActionBlock RulesetNewResponseRulesAction = "block" RulesetNewResponseRulesActionChallenge RulesetNewResponseRulesAction = "challenge" RulesetNewResponseRulesActionCompressResponse RulesetNewResponseRulesAction = "compress_response" RulesetNewResponseRulesActionDDoSDynamic RulesetNewResponseRulesAction = "ddos_dynamic" RulesetNewResponseRulesActionExecute RulesetNewResponseRulesAction = "execute" RulesetNewResponseRulesActionForceConnectionClose RulesetNewResponseRulesAction = "force_connection_close" RulesetNewResponseRulesActionJSChallenge RulesetNewResponseRulesAction = "js_challenge" RulesetNewResponseRulesActionLog RulesetNewResponseRulesAction = "log" RulesetNewResponseRulesActionLogCustomField RulesetNewResponseRulesAction = "log_custom_field" RulesetNewResponseRulesActionManagedChallenge RulesetNewResponseRulesAction = "managed_challenge" RulesetNewResponseRulesActionRedirect RulesetNewResponseRulesAction = "redirect" RulesetNewResponseRulesActionRewrite RulesetNewResponseRulesAction = "rewrite" RulesetNewResponseRulesActionRoute RulesetNewResponseRulesAction = "route" RulesetNewResponseRulesActionScore RulesetNewResponseRulesAction = "score" RulesetNewResponseRulesActionServeError RulesetNewResponseRulesAction = "serve_error" RulesetNewResponseRulesActionSetCacheControl RulesetNewResponseRulesAction = "set_cache_control" RulesetNewResponseRulesActionSetCacheSettings RulesetNewResponseRulesAction = "set_cache_settings" RulesetNewResponseRulesActionSetCacheTags RulesetNewResponseRulesAction = "set_cache_tags" RulesetNewResponseRulesActionSetConfig RulesetNewResponseRulesAction = "set_config" RulesetNewResponseRulesActionSkip RulesetNewResponseRulesAction = "skip" )
func (RulesetNewResponseRulesAction) IsKnown ¶
func (r RulesetNewResponseRulesAction) IsKnown() bool
type RulesetNewResponseRulesRulesetsChallengeRule ¶
type RulesetNewResponseRulesRulesetsChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RulesetNewResponseRulesRulesetsChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RulesetNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RulesetNewResponseRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetNewResponseRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*RulesetNewResponseRulesRulesetsChallengeRule) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsChallengeRuleAction ¶
type RulesetNewResponseRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
RulesetNewResponseRulesRulesetsChallengeRuleActionChallenge RulesetNewResponseRulesRulesetsChallengeRuleAction = "challenge"
)
func (RulesetNewResponseRulesRulesetsChallengeRuleAction) IsKnown ¶
func (r RulesetNewResponseRulesRulesetsChallengeRuleAction) IsKnown() bool
type RulesetNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck ¶
type RulesetNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON rulesetNewResponseRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsChallengeRuleRatelimit ¶
type RulesetNewResponseRulesRulesetsChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON rulesetNewResponseRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetNewResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsJSChallengeRule ¶
type RulesetNewResponseRulesRulesetsJSChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RulesetNewResponseRulesRulesetsJSChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RulesetNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RulesetNewResponseRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetNewResponseRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*RulesetNewResponseRulesRulesetsJSChallengeRule) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsJSChallengeRuleAction ¶
type RulesetNewResponseRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
RulesetNewResponseRulesRulesetsJSChallengeRuleActionJSChallenge RulesetNewResponseRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (RulesetNewResponseRulesRulesetsJSChallengeRuleAction) IsKnown ¶
func (r RulesetNewResponseRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type RulesetNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶
type RulesetNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON rulesetNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsJSChallengeRuleRatelimit ¶
type RulesetNewResponseRulesRulesetsJSChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON rulesetNewResponseRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetNewResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRule ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RulesetNewResponseRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RulesetNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RulesetNewResponseRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*RulesetNewResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleAction ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
RulesetNewResponseRulesRulesetsSetCacheControlRuleActionSetCacheControl RulesetNewResponseRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (RulesetNewResponseRulesRulesetsSetCacheControlRuleAction) IsKnown ¶
func (r RulesetNewResponseRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParameters ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶
func (r RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶
func (r RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶
func (r RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶
func (r RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶
func (r RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶
func (r RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶
func (r RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶
func (r RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶
func (r RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶
func (r RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶
func (r RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶
func (r RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶
func (r RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or RulesetNewResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type RulesetNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheControlRuleRatelimit ¶
type RulesetNewResponseRulesRulesetsSetCacheControlRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON rulesetNewResponseRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetNewResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheTagsRule ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RulesetNewResponseRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RulesetNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RulesetNewResponseRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetNewResponseRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*RulesetNewResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleAction ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionSetCacheTags RulesetNewResponseRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (RulesetNewResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶
func (r RulesetNewResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParameters ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation `json:"operation" api:"required"`
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression"`
// This field can have the runtime type of [[]string].
Values interface{} `json:"values"`
JSON rulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶
func (r RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON rulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON rulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationSet RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
func (RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown ¶
func (r RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown() bool
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON rulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON rulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON rulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON rulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or RulesetNewResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON rulesetNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleRatelimit ¶
type RulesetNewResponseRulesRulesetsSetCacheTagsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON rulesetNewResponseRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetNewResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶
func (r *RulesetNewResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseRulesUnion ¶
type RulesetNewResponseRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, RulesetNewResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RulesetNewResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RulesetNewResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RulesetNewResponseRulesRulesetsSetCacheTagsRule, SetConfigRule or SkipRule.
type RulesetService ¶
type RulesetService struct {
Options []option.RequestOption
Phases *PhaseService
Rules *RuleService
Versions *VersionService
}
RulesetService 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 NewRulesetService method instead.
func NewRulesetService ¶
func NewRulesetService(opts ...option.RequestOption) (r *RulesetService)
NewRulesetService 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 (*RulesetService) Delete ¶
func (r *RulesetService) Delete(ctx context.Context, rulesetID string, body RulesetDeleteParams, opts ...option.RequestOption) (err error)
Deletes all versions of an existing account or zone ruleset.
func (*RulesetService) Get ¶
func (r *RulesetService) Get(ctx context.Context, rulesetID string, query RulesetGetParams, opts ...option.RequestOption) (res *RulesetGetResponse, err error)
Fetches the latest version of an account or zone ruleset.
func (*RulesetService) List ¶
func (r *RulesetService) List(ctx context.Context, params RulesetListParams, opts ...option.RequestOption) (res *pagination.CursorPagination[RulesetListResponse], err error)
Fetches all rulesets.
func (*RulesetService) ListAutoPaging ¶
func (r *RulesetService) ListAutoPaging(ctx context.Context, params RulesetListParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[RulesetListResponse]
Fetches all rulesets.
func (*RulesetService) New ¶
func (r *RulesetService) New(ctx context.Context, params RulesetNewParams, opts ...option.RequestOption) (res *RulesetNewResponse, err error)
Creates a ruleset.
func (*RulesetService) Update ¶
func (r *RulesetService) Update(ctx context.Context, rulesetID string, params RulesetUpdateParams, opts ...option.RequestOption) (res *RulesetUpdateResponse, err error)
Updates an account or zone ruleset, creating a new version.
type RulesetUpdateParams ¶
type RulesetUpdateParams struct {
// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
AccountID param.Field[string] `path:"account_id"`
// The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
ZoneID param.Field[string] `path:"zone_id"`
// An informative description of the ruleset.
Description param.Field[string] `json:"description"`
// The kind of the ruleset.
Kind param.Field[Kind] `json:"kind"`
// The human-readable name of the ruleset.
Name param.Field[string] `json:"name"`
// The phase of the ruleset.
Phase param.Field[Phase] `json:"phase"`
// The list of rules in the ruleset.
Rules param.Field[[]RulesetUpdateParamsRuleUnion] `json:"rules"`
}
func (RulesetUpdateParams) MarshalJSON ¶
func (r RulesetUpdateParams) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRule ¶
type RulesetUpdateParamsRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RulesetUpdateParamsRulesAction] `json:"action"`
ActionParameters param.Field[interface{}] `json:"action_parameters"`
Categories param.Field[interface{}] `json:"categories"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
ExposedCredentialCheck param.Field[interface{}] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
Ratelimit param.Field[interface{}] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RulesetUpdateParamsRule) MarshalJSON ¶
func (r RulesetUpdateParamsRule) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRuleUnion ¶
type RulesetUpdateParamsRuleUnion interface {
// contains filtered or unexported methods
}
Satisfied by rulesets.BlockRuleParam, rulesets.RulesetUpdateParamsRulesRulesetsChallengeRule, rulesets.CompressResponseRuleParam, rulesets.DDoSDynamicRuleParam, rulesets.ExecuteRuleParam, rulesets.ForceConnectionCloseRuleParam, rulesets.RulesetUpdateParamsRulesRulesetsJSChallengeRule, rulesets.LogRuleParam, rulesets.LogCustomFieldRuleParam, rulesets.ManagedChallengeRuleParam, rulesets.RedirectRuleParam, rulesets.RewriteRuleParam, rulesets.RouteRuleParam, rulesets.ScoreRuleParam, rulesets.ServeErrorRuleParam, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRule, rulesets.SetCacheSettingsRuleParam, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheTagsRule, rulesets.SetConfigRuleParam, rulesets.SkipRuleParam, RulesetUpdateParamsRule.
type RulesetUpdateParamsRulesAction ¶
type RulesetUpdateParamsRulesAction string
The action to perform when the rule matches.
const ( RulesetUpdateParamsRulesActionBlock RulesetUpdateParamsRulesAction = "block" RulesetUpdateParamsRulesActionChallenge RulesetUpdateParamsRulesAction = "challenge" RulesetUpdateParamsRulesActionCompressResponse RulesetUpdateParamsRulesAction = "compress_response" RulesetUpdateParamsRulesActionDDoSDynamic RulesetUpdateParamsRulesAction = "ddos_dynamic" RulesetUpdateParamsRulesActionExecute RulesetUpdateParamsRulesAction = "execute" RulesetUpdateParamsRulesActionForceConnectionClose RulesetUpdateParamsRulesAction = "force_connection_close" RulesetUpdateParamsRulesActionJSChallenge RulesetUpdateParamsRulesAction = "js_challenge" RulesetUpdateParamsRulesActionLog RulesetUpdateParamsRulesAction = "log" RulesetUpdateParamsRulesActionLogCustomField RulesetUpdateParamsRulesAction = "log_custom_field" RulesetUpdateParamsRulesActionManagedChallenge RulesetUpdateParamsRulesAction = "managed_challenge" RulesetUpdateParamsRulesActionRedirect RulesetUpdateParamsRulesAction = "redirect" RulesetUpdateParamsRulesActionRewrite RulesetUpdateParamsRulesAction = "rewrite" RulesetUpdateParamsRulesActionRoute RulesetUpdateParamsRulesAction = "route" RulesetUpdateParamsRulesActionScore RulesetUpdateParamsRulesAction = "score" RulesetUpdateParamsRulesActionServeError RulesetUpdateParamsRulesAction = "serve_error" RulesetUpdateParamsRulesActionSetCacheControl RulesetUpdateParamsRulesAction = "set_cache_control" RulesetUpdateParamsRulesActionSetCacheSettings RulesetUpdateParamsRulesAction = "set_cache_settings" RulesetUpdateParamsRulesActionSetCacheTags RulesetUpdateParamsRulesAction = "set_cache_tags" RulesetUpdateParamsRulesActionSetConfig RulesetUpdateParamsRulesAction = "set_config" RulesetUpdateParamsRulesActionSkip RulesetUpdateParamsRulesAction = "skip" )
func (RulesetUpdateParamsRulesAction) IsKnown ¶
func (r RulesetUpdateParamsRulesAction) IsKnown() bool
type RulesetUpdateParamsRulesRulesetsChallengeRule ¶
type RulesetUpdateParamsRulesRulesetsChallengeRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RulesetUpdateParamsRulesRulesetsChallengeRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[interface{}] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RulesetUpdateParamsRulesRulesetsChallengeRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RulesetUpdateParamsRulesRulesetsChallengeRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RulesetUpdateParamsRulesRulesetsChallengeRule) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsChallengeRule) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsChallengeRuleAction ¶
type RulesetUpdateParamsRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
RulesetUpdateParamsRulesRulesetsChallengeRuleActionChallenge RulesetUpdateParamsRulesRulesetsChallengeRuleAction = "challenge"
)
func (RulesetUpdateParamsRulesRulesetsChallengeRuleAction) IsKnown ¶
func (r RulesetUpdateParamsRulesRulesetsChallengeRuleAction) IsKnown() bool
type RulesetUpdateParamsRulesRulesetsChallengeRuleExposedCredentialCheck ¶
type RulesetUpdateParamsRulesRulesetsChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RulesetUpdateParamsRulesRulesetsChallengeRuleExposedCredentialCheck) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsChallengeRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsChallengeRuleRatelimit ¶
type RulesetUpdateParamsRulesRulesetsChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RulesetUpdateParamsRulesRulesetsChallengeRuleRatelimit) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsChallengeRuleRatelimit) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsJSChallengeRule ¶
type RulesetUpdateParamsRulesRulesetsJSChallengeRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RulesetUpdateParamsRulesRulesetsJSChallengeRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[interface{}] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RulesetUpdateParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RulesetUpdateParamsRulesRulesetsJSChallengeRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RulesetUpdateParamsRulesRulesetsJSChallengeRule) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsJSChallengeRule) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsJSChallengeRuleAction ¶
type RulesetUpdateParamsRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
RulesetUpdateParamsRulesRulesetsJSChallengeRuleActionJSChallenge RulesetUpdateParamsRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (RulesetUpdateParamsRulesRulesetsJSChallengeRuleAction) IsKnown ¶
func (r RulesetUpdateParamsRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type RulesetUpdateParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶
type RulesetUpdateParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RulesetUpdateParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsJSChallengeRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsJSChallengeRuleRatelimit ¶
type RulesetUpdateParamsRulesRulesetsJSChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RulesetUpdateParamsRulesRulesetsJSChallengeRuleRatelimit) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsJSChallengeRuleRatelimit) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRule ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParameters] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRule) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRule) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleAction ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionSetCacheControl RulesetUpdateParamsRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleAction) IsKnown ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParameters ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion] `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion] `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion] `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion] `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion] `json:"no-cache"`
// A cache-control directive configuration.
NoStore param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion] `json:"no-store"`
// A cache-control directive configuration.
NoTransform param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion] `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion] `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion] `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicUnion] `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion] `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion] `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion] `json:"stale-while-revalidate"`
}
The parameters configuring the rule's action.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParameters) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParameters) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective, RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutable.
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective, RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAge.
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective, RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate.
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective, RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand.
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
Qualifiers param.Field[interface{}] `json:"qualifiers"`
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers param.Field[[]string] `json:"qualifiers"`
}
Set the directive with optional qualifiers.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Satisfied by rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective, RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCache.
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective, RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStore.
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective, RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransform.
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
Qualifiers param.Field[interface{}] `json:"qualifiers"`
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers param.Field[[]string] `json:"qualifiers"`
}
Set the directive with optional qualifiers.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Satisfied by rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective, RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivate.
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective, RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate.
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublic ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
A cache-control directive configuration.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublic) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublic) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Satisfied by rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective, RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublic.
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective, RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxage.
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective, RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfError.
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value"`
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation] `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Remove the directive.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation] `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value param.Field[int64] `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly param.Field[bool] `json:"cloudflare_only"`
}
Set the directive with a duration value in seconds.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Satisfied by rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective, RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate.
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleRatelimit ¶
type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RulesetUpdateParamsRulesRulesetsSetCacheControlRuleRatelimit) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheControlRuleRatelimit) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRule ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersUnion] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RulesetUpdateParamsRulesRulesetsSetCacheTagsRule) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheTagsRule) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleAction ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionSetCacheTags RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParameters ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation] `json:"operation" api:"required"`
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression"`
Values param.Field[interface{}] `json:"values"`
}
The parameters configuring the rule's action.
func (RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParameters) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParameters) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation] `json:"operation" api:"required"`
}
Add cache tags using an expression.
func (RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation] `json:"operation" api:"required"`
// A list of cache tag values.
Values param.Field[[]string] `json:"values" api:"required"`
}
Add cache tags using a list of values.
func (RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperationSet RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
func (RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown() bool
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation] `json:"operation" api:"required"`
}
Remove cache tags using an expression.
func (RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation] `json:"operation" api:"required"`
// A list of cache tag values.
Values param.Field[[]string] `json:"values" api:"required"`
}
Remove cache tags using a list of values.
func (RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression param.Field[string] `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation] `json:"operation" api:"required"`
}
Set cache tags using an expression.
func (RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation param.Field[RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation] `json:"operation" api:"required"`
// A list of cache tag values.
Values param.Field[[]string] `json:"values" api:"required"`
}
Set cache tags using a list of values.
func (RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Satisfied by rulesets.RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, rulesets.RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression, RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParameters.
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleRatelimit ¶
type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleRatelimit) MarshalJSON ¶
func (r RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleRatelimit) MarshalJSON() (data []byte, err error)
type RulesetUpdateResponse ¶
type RulesetUpdateResponse struct {
// The unique ID of the ruleset.
ID string `json:"id" api:"required"`
// The kind of the ruleset.
Kind Kind `json:"kind" api:"required"`
// The timestamp of when the ruleset was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The human-readable name of the ruleset.
Name string `json:"name" api:"required"`
// The phase of the ruleset.
Phase Phase `json:"phase" api:"required"`
// The list of rules in the ruleset.
Rules []RulesetUpdateResponseRule `json:"rules" api:"required"`
// The version of the ruleset.
Version string `json:"version" api:"required"`
// An informative description of the ruleset.
Description string `json:"description"`
JSON rulesetUpdateResponseJSON `json:"-"`
}
A ruleset object.
func (*RulesetUpdateResponse) UnmarshalJSON ¶
func (r *RulesetUpdateResponse) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelope ¶
type RulesetUpdateResponseEnvelope struct {
// A list of error messages.
Errors []RulesetUpdateResponseEnvelopeErrors `json:"errors" api:"required"`
// A list of warning messages.
Messages []RulesetUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
// A ruleset object.
Result RulesetUpdateResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success RulesetUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
JSON rulesetUpdateResponseEnvelopeJSON `json:"-"`
}
A response object.
func (*RulesetUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *RulesetUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeErrors ¶
type RulesetUpdateResponseEnvelopeErrors struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source RulesetUpdateResponseEnvelopeErrorsSource `json:"source"`
JSON rulesetUpdateResponseEnvelopeErrorsJSON `json:"-"`
}
A message.
func (*RulesetUpdateResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *RulesetUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeErrorsSource ¶
type RulesetUpdateResponseEnvelopeErrorsSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON rulesetUpdateResponseEnvelopeErrorsSourceJSON `json:"-"`
}
The source of this message.
func (*RulesetUpdateResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *RulesetUpdateResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeMessages ¶
type RulesetUpdateResponseEnvelopeMessages struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source RulesetUpdateResponseEnvelopeMessagesSource `json:"source"`
JSON rulesetUpdateResponseEnvelopeMessagesJSON `json:"-"`
}
A message.
func (*RulesetUpdateResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *RulesetUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeMessagesSource ¶
type RulesetUpdateResponseEnvelopeMessagesSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON rulesetUpdateResponseEnvelopeMessagesSourceJSON `json:"-"`
}
The source of this message.
func (*RulesetUpdateResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *RulesetUpdateResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeSuccess ¶
type RulesetUpdateResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
RulesetUpdateResponseEnvelopeSuccessTrue RulesetUpdateResponseEnvelopeSuccess = true
)
func (RulesetUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r RulesetUpdateResponseEnvelopeSuccess) IsKnown() bool
type RulesetUpdateResponseRule ¶
type RulesetUpdateResponseRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RulesetUpdateResponseRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters].
ActionParameters interface{} `json:"action_parameters"`
// This field can have the runtime type of [[]string].
Categories interface{} `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// This field can have the runtime type of [BlockRuleExposedCredentialCheck],
// [RulesetUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [RulesetUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [RulesetUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck].
ExposedCredentialCheck interface{} `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// This field can have the runtime type of [BlockRuleRatelimit],
// [RulesetUpdateResponseRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [RulesetUpdateResponseRulesRulesetsJSChallengeRuleRatelimit],
// [LogRuleRatelimit], [LogCustomFieldRuleRatelimit],
// [ManagedChallengeRuleRatelimit], [RedirectRuleRatelimit],
// [RewriteRuleRatelimit], [RouteRuleRatelimit], [ScoreRuleRatelimit],
// [ServeErrorRuleRatelimit],
// [RulesetUpdateResponseRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetUpdateResponseRuleJSON `json:"-"`
// contains filtered or unexported fields
}
func (RulesetUpdateResponseRule) AsUnion ¶
func (r RulesetUpdateResponseRule) AsUnion() RulesetUpdateResponseRulesUnion
AsUnion returns a RulesetUpdateResponseRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, RulesetUpdateResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RulesetUpdateResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RulesetUpdateResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RulesetUpdateResponseRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule.
func (*RulesetUpdateResponseRule) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRule) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesAction ¶
type RulesetUpdateResponseRulesAction string
The action to perform when the rule matches.
const ( RulesetUpdateResponseRulesActionBlock RulesetUpdateResponseRulesAction = "block" RulesetUpdateResponseRulesActionChallenge RulesetUpdateResponseRulesAction = "challenge" RulesetUpdateResponseRulesActionCompressResponse RulesetUpdateResponseRulesAction = "compress_response" RulesetUpdateResponseRulesActionDDoSDynamic RulesetUpdateResponseRulesAction = "ddos_dynamic" RulesetUpdateResponseRulesActionExecute RulesetUpdateResponseRulesAction = "execute" RulesetUpdateResponseRulesActionForceConnectionClose RulesetUpdateResponseRulesAction = "force_connection_close" RulesetUpdateResponseRulesActionJSChallenge RulesetUpdateResponseRulesAction = "js_challenge" RulesetUpdateResponseRulesActionLog RulesetUpdateResponseRulesAction = "log" RulesetUpdateResponseRulesActionLogCustomField RulesetUpdateResponseRulesAction = "log_custom_field" RulesetUpdateResponseRulesActionManagedChallenge RulesetUpdateResponseRulesAction = "managed_challenge" RulesetUpdateResponseRulesActionRedirect RulesetUpdateResponseRulesAction = "redirect" RulesetUpdateResponseRulesActionRewrite RulesetUpdateResponseRulesAction = "rewrite" RulesetUpdateResponseRulesActionRoute RulesetUpdateResponseRulesAction = "route" RulesetUpdateResponseRulesActionScore RulesetUpdateResponseRulesAction = "score" RulesetUpdateResponseRulesActionServeError RulesetUpdateResponseRulesAction = "serve_error" RulesetUpdateResponseRulesActionSetCacheControl RulesetUpdateResponseRulesAction = "set_cache_control" RulesetUpdateResponseRulesActionSetCacheSettings RulesetUpdateResponseRulesAction = "set_cache_settings" RulesetUpdateResponseRulesActionSetCacheTags RulesetUpdateResponseRulesAction = "set_cache_tags" RulesetUpdateResponseRulesActionSetConfig RulesetUpdateResponseRulesAction = "set_config" RulesetUpdateResponseRulesActionSkip RulesetUpdateResponseRulesAction = "skip" )
func (RulesetUpdateResponseRulesAction) IsKnown ¶
func (r RulesetUpdateResponseRulesAction) IsKnown() bool
type RulesetUpdateResponseRulesRulesetsChallengeRule ¶
type RulesetUpdateResponseRulesRulesetsChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RulesetUpdateResponseRulesRulesetsChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RulesetUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RulesetUpdateResponseRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetUpdateResponseRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*RulesetUpdateResponseRulesRulesetsChallengeRule) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsChallengeRuleAction ¶
type RulesetUpdateResponseRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
RulesetUpdateResponseRulesRulesetsChallengeRuleActionChallenge RulesetUpdateResponseRulesRulesetsChallengeRuleAction = "challenge"
)
func (RulesetUpdateResponseRulesRulesetsChallengeRuleAction) IsKnown ¶
func (r RulesetUpdateResponseRulesRulesetsChallengeRuleAction) IsKnown() bool
type RulesetUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck ¶
type RulesetUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON rulesetUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsChallengeRuleRatelimit ¶
type RulesetUpdateResponseRulesRulesetsChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON rulesetUpdateResponseRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetUpdateResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsJSChallengeRule ¶
type RulesetUpdateResponseRulesRulesetsJSChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RulesetUpdateResponseRulesRulesetsJSChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RulesetUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RulesetUpdateResponseRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetUpdateResponseRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*RulesetUpdateResponseRulesRulesetsJSChallengeRule) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsJSChallengeRuleAction ¶
type RulesetUpdateResponseRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
RulesetUpdateResponseRulesRulesetsJSChallengeRuleActionJSChallenge RulesetUpdateResponseRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (RulesetUpdateResponseRulesRulesetsJSChallengeRuleAction) IsKnown ¶
func (r RulesetUpdateResponseRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type RulesetUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶
type RulesetUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON rulesetUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsJSChallengeRuleRatelimit ¶
type RulesetUpdateResponseRulesRulesetsJSChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON rulesetUpdateResponseRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetUpdateResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRule ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RulesetUpdateResponseRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RulesetUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RulesetUpdateResponseRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleAction ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionSetCacheControl RulesetUpdateResponseRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (RulesetUpdateResponseRulesRulesetsSetCacheControlRuleAction) IsKnown ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParameters ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or RulesetUpdateResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleRatelimit ¶
type RulesetUpdateResponseRulesRulesetsSetCacheControlRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetUpdateResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRule ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*RulesetUpdateResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleAction ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionSetCacheTags RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation `json:"operation" api:"required"`
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression"`
// This field can have the runtime type of [[]string].
Values interface{} `json:"values"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationSet RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
func (RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown ¶
func (r RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown() bool
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimit ¶
type RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON rulesetUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶
func (r *RulesetUpdateResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseRulesUnion ¶
type RulesetUpdateResponseRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, RulesetUpdateResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RulesetUpdateResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RulesetUpdateResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RulesetUpdateResponseRulesRulesetsSetCacheTagsRule, SetConfigRule or SkipRule.
type ScoreRule ¶
type ScoreRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action ScoreRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters ScoreRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck ScoreRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit ScoreRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON scoreRuleJSON `json:"-"`
}
func (*ScoreRule) UnmarshalJSON ¶
type ScoreRuleAction ¶
type ScoreRuleAction string
The action to perform when the rule matches.
const (
ScoreRuleActionScore ScoreRuleAction = "score"
)
func (ScoreRuleAction) IsKnown ¶
func (r ScoreRuleAction) IsKnown() bool
type ScoreRuleActionParameters ¶
type ScoreRuleActionParameters struct {
// A delta to change the score by, which can be either positive or negative.
Increment int64 `json:"increment" api:"required"`
JSON scoreRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*ScoreRuleActionParameters) UnmarshalJSON ¶
func (r *ScoreRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type ScoreRuleActionParametersParam ¶
type ScoreRuleActionParametersParam struct {
// A delta to change the score by, which can be either positive or negative.
Increment param.Field[int64] `json:"increment" api:"required"`
}
The parameters configuring the rule's action.
func (ScoreRuleActionParametersParam) MarshalJSON ¶
func (r ScoreRuleActionParametersParam) MarshalJSON() (data []byte, err error)
type ScoreRuleExposedCredentialCheck ¶
type ScoreRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON scoreRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*ScoreRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *ScoreRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type ScoreRuleExposedCredentialCheckParam ¶
type ScoreRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (ScoreRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r ScoreRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type ScoreRuleParam ¶
type ScoreRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[ScoreRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[ScoreRuleActionParametersParam] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[ScoreRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[ScoreRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (ScoreRuleParam) MarshalJSON ¶
func (r ScoreRuleParam) MarshalJSON() (data []byte, err error)
type ScoreRuleRatelimit ¶
type ScoreRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON scoreRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*ScoreRuleRatelimit) UnmarshalJSON ¶
func (r *ScoreRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type ScoreRuleRatelimitParam ¶
type ScoreRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (ScoreRuleRatelimitParam) MarshalJSON ¶
func (r ScoreRuleRatelimitParam) MarshalJSON() (data []byte, err error)
type ServeErrorRule ¶
type ServeErrorRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action ServeErrorRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters ServeErrorRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck ServeErrorRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit ServeErrorRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON serveErrorRuleJSON `json:"-"`
}
func (*ServeErrorRule) UnmarshalJSON ¶
func (r *ServeErrorRule) UnmarshalJSON(data []byte) (err error)
type ServeErrorRuleAction ¶
type ServeErrorRuleAction string
The action to perform when the rule matches.
const (
ServeErrorRuleActionServeError ServeErrorRuleAction = "serve_error"
)
func (ServeErrorRuleAction) IsKnown ¶
func (r ServeErrorRuleAction) IsKnown() bool
type ServeErrorRuleActionParameters ¶
type ServeErrorRuleActionParameters struct {
// The name of a custom asset to serve as the error response.
AssetName string `json:"asset_name"`
// The response content.
Content string `json:"content"`
// The content type header to set with the error response.
ContentType ServeErrorRuleActionParametersContentType `json:"content_type"`
// The status code to use for the error.
StatusCode int64 `json:"status_code"`
JSON serveErrorRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (ServeErrorRuleActionParameters) AsUnion ¶
func (r ServeErrorRuleActionParameters) AsUnion() ServeErrorRuleActionParametersUnion
AsUnion returns a ServeErrorRuleActionParametersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are ServeErrorRuleActionParametersActionParametersContent, ServeErrorRuleActionParametersActionParametersAsset.
func (*ServeErrorRuleActionParameters) UnmarshalJSON ¶
func (r *ServeErrorRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type ServeErrorRuleActionParametersActionParametersAsset ¶
type ServeErrorRuleActionParametersActionParametersAsset struct {
// The name of a custom asset to serve as the error response.
AssetName string `json:"asset_name" api:"required"`
// The content type header to set with the error response.
ContentType ServeErrorRuleActionParametersActionParametersAssetContentType `json:"content_type"`
// The status code to use for the error.
StatusCode int64 `json:"status_code"`
JSON serveErrorRuleActionParametersActionParametersAssetJSON `json:"-"`
}
func (*ServeErrorRuleActionParametersActionParametersAsset) UnmarshalJSON ¶
func (r *ServeErrorRuleActionParametersActionParametersAsset) UnmarshalJSON(data []byte) (err error)
type ServeErrorRuleActionParametersActionParametersAssetContentType ¶
type ServeErrorRuleActionParametersActionParametersAssetContentType string
The content type header to set with the error response.
const ( ServeErrorRuleActionParametersActionParametersAssetContentTypeApplicationJson ServeErrorRuleActionParametersActionParametersAssetContentType = "application/json" ServeErrorRuleActionParametersActionParametersAssetContentTypeTextHTML ServeErrorRuleActionParametersActionParametersAssetContentType = "text/html" ServeErrorRuleActionParametersActionParametersAssetContentTypeTextPlain ServeErrorRuleActionParametersActionParametersAssetContentType = "text/plain" ServeErrorRuleActionParametersActionParametersAssetContentTypeTextXml ServeErrorRuleActionParametersActionParametersAssetContentType = "text/xml" )
func (ServeErrorRuleActionParametersActionParametersAssetContentType) IsKnown ¶
func (r ServeErrorRuleActionParametersActionParametersAssetContentType) IsKnown() bool
type ServeErrorRuleActionParametersActionParametersAssetParam ¶
type ServeErrorRuleActionParametersActionParametersAssetParam struct {
// The name of a custom asset to serve as the error response.
AssetName param.Field[string] `json:"asset_name" api:"required"`
// The content type header to set with the error response.
ContentType param.Field[ServeErrorRuleActionParametersActionParametersAssetContentType] `json:"content_type"`
// The status code to use for the error.
StatusCode param.Field[int64] `json:"status_code"`
}
func (ServeErrorRuleActionParametersActionParametersAssetParam) MarshalJSON ¶
func (r ServeErrorRuleActionParametersActionParametersAssetParam) MarshalJSON() (data []byte, err error)
type ServeErrorRuleActionParametersActionParametersContent ¶
type ServeErrorRuleActionParametersActionParametersContent struct {
// The response content.
Content string `json:"content" api:"required"`
// The content type header to set with the error response.
ContentType ServeErrorRuleActionParametersActionParametersContentContentType `json:"content_type"`
// The status code to use for the error.
StatusCode int64 `json:"status_code"`
JSON serveErrorRuleActionParametersActionParametersContentJSON `json:"-"`
}
func (*ServeErrorRuleActionParametersActionParametersContent) UnmarshalJSON ¶
func (r *ServeErrorRuleActionParametersActionParametersContent) UnmarshalJSON(data []byte) (err error)
type ServeErrorRuleActionParametersActionParametersContentContentType ¶
type ServeErrorRuleActionParametersActionParametersContentContentType string
The content type header to set with the error response.
const ( ServeErrorRuleActionParametersActionParametersContentContentTypeApplicationJson ServeErrorRuleActionParametersActionParametersContentContentType = "application/json" ServeErrorRuleActionParametersActionParametersContentContentTypeTextHTML ServeErrorRuleActionParametersActionParametersContentContentType = "text/html" ServeErrorRuleActionParametersActionParametersContentContentTypeTextPlain ServeErrorRuleActionParametersActionParametersContentContentType = "text/plain" ServeErrorRuleActionParametersActionParametersContentContentTypeTextXml ServeErrorRuleActionParametersActionParametersContentContentType = "text/xml" )
func (ServeErrorRuleActionParametersActionParametersContentContentType) IsKnown ¶
func (r ServeErrorRuleActionParametersActionParametersContentContentType) IsKnown() bool
type ServeErrorRuleActionParametersActionParametersContentParam ¶
type ServeErrorRuleActionParametersActionParametersContentParam struct {
// The response content.
Content param.Field[string] `json:"content" api:"required"`
// The content type header to set with the error response.
ContentType param.Field[ServeErrorRuleActionParametersActionParametersContentContentType] `json:"content_type"`
// The status code to use for the error.
StatusCode param.Field[int64] `json:"status_code"`
}
func (ServeErrorRuleActionParametersActionParametersContentParam) MarshalJSON ¶
func (r ServeErrorRuleActionParametersActionParametersContentParam) MarshalJSON() (data []byte, err error)
type ServeErrorRuleActionParametersContentType ¶
type ServeErrorRuleActionParametersContentType string
The content type header to set with the error response.
const ( ServeErrorRuleActionParametersContentTypeApplicationJson ServeErrorRuleActionParametersContentType = "application/json" ServeErrorRuleActionParametersContentTypeTextHTML ServeErrorRuleActionParametersContentType = "text/html" ServeErrorRuleActionParametersContentTypeTextPlain ServeErrorRuleActionParametersContentType = "text/plain" ServeErrorRuleActionParametersContentTypeTextXml ServeErrorRuleActionParametersContentType = "text/xml" )
func (ServeErrorRuleActionParametersContentType) IsKnown ¶
func (r ServeErrorRuleActionParametersContentType) IsKnown() bool
type ServeErrorRuleActionParametersParam ¶
type ServeErrorRuleActionParametersParam struct {
// The name of a custom asset to serve as the error response.
AssetName param.Field[string] `json:"asset_name"`
// The response content.
Content param.Field[string] `json:"content"`
// The content type header to set with the error response.
ContentType param.Field[ServeErrorRuleActionParametersContentType] `json:"content_type"`
// The status code to use for the error.
StatusCode param.Field[int64] `json:"status_code"`
}
The parameters configuring the rule's action.
func (ServeErrorRuleActionParametersParam) MarshalJSON ¶
func (r ServeErrorRuleActionParametersParam) MarshalJSON() (data []byte, err error)
type ServeErrorRuleActionParametersUnion ¶
type ServeErrorRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by ServeErrorRuleActionParametersActionParametersContent or ServeErrorRuleActionParametersActionParametersAsset.
type ServeErrorRuleActionParametersUnionParam ¶
type ServeErrorRuleActionParametersUnionParam interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Satisfied by rulesets.ServeErrorRuleActionParametersActionParametersContentParam, rulesets.ServeErrorRuleActionParametersActionParametersAssetParam, ServeErrorRuleActionParametersParam.
type ServeErrorRuleExposedCredentialCheck ¶
type ServeErrorRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON serveErrorRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*ServeErrorRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *ServeErrorRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type ServeErrorRuleExposedCredentialCheckParam ¶
type ServeErrorRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (ServeErrorRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r ServeErrorRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type ServeErrorRuleParam ¶
type ServeErrorRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[ServeErrorRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[ServeErrorRuleActionParametersUnionParam] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[ServeErrorRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[ServeErrorRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (ServeErrorRuleParam) MarshalJSON ¶
func (r ServeErrorRuleParam) MarshalJSON() (data []byte, err error)
type ServeErrorRuleRatelimit ¶
type ServeErrorRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON serveErrorRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*ServeErrorRuleRatelimit) UnmarshalJSON ¶
func (r *ServeErrorRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type ServeErrorRuleRatelimitParam ¶
type ServeErrorRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (ServeErrorRuleRatelimitParam) MarshalJSON ¶
func (r ServeErrorRuleRatelimitParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRule ¶
type SetCacheSettingsRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action SetCacheSettingsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters SetCacheSettingsRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck SetCacheSettingsRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit SetCacheSettingsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON setCacheSettingsRuleJSON `json:"-"`
}
func (*SetCacheSettingsRule) UnmarshalJSON ¶
func (r *SetCacheSettingsRule) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleAction ¶
type SetCacheSettingsRuleAction string
The action to perform when the rule matches.
const (
SetCacheSettingsRuleActionSetCacheSettings SetCacheSettingsRuleAction = "set_cache_settings"
)
func (SetCacheSettingsRuleAction) IsKnown ¶
func (r SetCacheSettingsRuleAction) IsKnown() bool
type SetCacheSettingsRuleActionParameters ¶
type SetCacheSettingsRuleActionParameters struct {
// A list of additional ports that caching should be enabled on.
AdditionalCacheablePorts []int64 `json:"additional_cacheable_ports"`
// How long client browsers should cache the response. Cloudflare cache purge will
// not purge content cached on client browsers, so high browser TTLs may lead to
// stale content.
BrowserTTL SetCacheSettingsRuleActionParametersBrowserTTL `json:"browser_ttl"`
// Whether the request's response from the origin is eligible for caching. Caching
// itself will still depend on the cache control header and your other caching
// configurations.
Cache bool `json:"cache"`
// Which components of the request are included in or excluded from the cache key
// Cloudflare uses to store the response in cache.
CacheKey SetCacheSettingsRuleActionParametersCacheKey `json:"cache_key"`
// Settings to determine whether the request's response from origin is eligible for
// Cache Reserve (requires a Cache Reserve add-on plan).
CacheReserve SetCacheSettingsRuleActionParametersCacheReserve `json:"cache_reserve"`
// How long the Cloudflare edge network should cache the response.
EdgeTTL SetCacheSettingsRuleActionParametersEdgeTTL `json:"edge_ttl"`
// Whether Cloudflare will aim to strictly adhere to RFC 7234.
OriginCacheControl bool `json:"origin_cache_control"`
// Whether to generate Cloudflare error pages for issues from the origin server.
OriginErrorPagePassthru bool `json:"origin_error_page_passthru"`
// A timeout value between two successive read operations to use for your origin
// server. Historically, the timeout value between two read options from Cloudflare
// to an origin server is 100 seconds. If you are attempting to reduce HTTP 524
// errors because of timeouts from an origin server, try increasing this timeout
// value.
ReadTimeout int64 `json:"read_timeout"`
// Cloudflare converts strong ETag headers to weak ETag headers.
RespectStrongEtags bool `json:"respect_strong_etags"`
// When to serve stale content from cache.
ServeStale SetCacheSettingsRuleActionParametersServeStale `json:"serve_stale"`
// Use-As-Dictionary headers on matching cacheable responses.
SharedDictionary SetCacheSettingsRuleActionParametersSharedDictionary `json:"shared_dictionary"`
StripEtags bool `json:"strip_etags"`
// Whether to strip Last-Modified headers from the origin response before caching.
StripLastModified bool `json:"strip_last_modified"`
// Whether to strip Set-Cookie headers from the origin response before caching.
StripSetCookie bool `json:"strip_set_cookie"`
JSON setCacheSettingsRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*SetCacheSettingsRuleActionParameters) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersBrowserTTL ¶
type SetCacheSettingsRuleActionParametersBrowserTTL struct {
// The browser TTL mode.
Mode SetCacheSettingsRuleActionParametersBrowserTTLMode `json:"mode" api:"required"`
// The browser TTL (in seconds) if you choose the "override_origin" mode.
Default int64 `json:"default"`
JSON setCacheSettingsRuleActionParametersBrowserTTLJSON `json:"-"`
}
How long client browsers should cache the response. Cloudflare cache purge will not purge content cached on client browsers, so high browser TTLs may lead to stale content.
func (*SetCacheSettingsRuleActionParametersBrowserTTL) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersBrowserTTL) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersBrowserTTLMode ¶
type SetCacheSettingsRuleActionParametersBrowserTTLMode string
The browser TTL mode.
const ( SetCacheSettingsRuleActionParametersBrowserTTLModeRespectOrigin SetCacheSettingsRuleActionParametersBrowserTTLMode = "respect_origin" SetCacheSettingsRuleActionParametersBrowserTTLModeBypassByDefault SetCacheSettingsRuleActionParametersBrowserTTLMode = "bypass_by_default" SetCacheSettingsRuleActionParametersBrowserTTLModeOverrideOrigin SetCacheSettingsRuleActionParametersBrowserTTLMode = "override_origin" SetCacheSettingsRuleActionParametersBrowserTTLModeBypass SetCacheSettingsRuleActionParametersBrowserTTLMode = "bypass" )
func (SetCacheSettingsRuleActionParametersBrowserTTLMode) IsKnown ¶
func (r SetCacheSettingsRuleActionParametersBrowserTTLMode) IsKnown() bool
type SetCacheSettingsRuleActionParametersBrowserTTLParam ¶
type SetCacheSettingsRuleActionParametersBrowserTTLParam struct {
// The browser TTL mode.
Mode param.Field[SetCacheSettingsRuleActionParametersBrowserTTLMode] `json:"mode" api:"required"`
// The browser TTL (in seconds) if you choose the "override_origin" mode.
Default param.Field[int64] `json:"default"`
}
How long client browsers should cache the response. Cloudflare cache purge will not purge content cached on client browsers, so high browser TTLs may lead to stale content.
func (SetCacheSettingsRuleActionParametersBrowserTTLParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersBrowserTTLParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersCacheKey ¶
type SetCacheSettingsRuleActionParametersCacheKey struct {
// Whether to separate cached content based on the visitor's device type.
CacheByDeviceType bool `json:"cache_by_device_type"`
// Whether to protect from web cache deception attacks, while allowing static
// assets to be cached.
CacheDeceptionArmor bool `json:"cache_deception_armor"`
// Which components of the request are included or excluded from the cache key.
CustomKey SetCacheSettingsRuleActionParametersCacheKeyCustomKey `json:"custom_key"`
// Whether to treat requests with the same query parameters the same, regardless of
// the order those query parameters are in.
IgnoreQueryStringsOrder bool `json:"ignore_query_strings_order"`
JSON setCacheSettingsRuleActionParametersCacheKeyJSON `json:"-"`
}
Which components of the request are included in or excluded from the cache key Cloudflare uses to store the response in cache.
func (*SetCacheSettingsRuleActionParametersCacheKey) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersCacheKey) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKey ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKey struct {
// Which cookies to include in the cache key.
Cookie SetCacheSettingsRuleActionParametersCacheKeyCustomKeyCookie `json:"cookie"`
// Which headers to include in the cache key.
Header SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHeader `json:"header"`
// How to use the host in the cache key.
Host SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHost `json:"host"`
// Which query string parameters to include in or exclude from the cache key.
QueryString SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryString `json:"query_string"`
// How to use characteristics of the request user agent in the cache key.
User SetCacheSettingsRuleActionParametersCacheKeyCustomKeyUser `json:"user"`
JSON setCacheSettingsRuleActionParametersCacheKeyCustomKeyJSON `json:"-"`
}
Which components of the request are included or excluded from the cache key.
func (*SetCacheSettingsRuleActionParametersCacheKeyCustomKey) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersCacheKeyCustomKey) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyCookie ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyCookie struct {
// A list of cookies to check for the presence of. The presence of these cookies is
// included in the cache key.
CheckPresence []string `json:"check_presence"`
// A list of cookies to include in the cache key.
Include []string `json:"include"`
JSON setCacheSettingsRuleActionParametersCacheKeyCustomKeyCookieJSON `json:"-"`
}
Which cookies to include in the cache key.
func (*SetCacheSettingsRuleActionParametersCacheKeyCustomKeyCookie) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersCacheKeyCustomKeyCookie) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyCookieParam ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyCookieParam struct {
// A list of cookies to check for the presence of. The presence of these cookies is
// included in the cache key.
CheckPresence param.Field[[]string] `json:"check_presence"`
// A list of cookies to include in the cache key.
Include param.Field[[]string] `json:"include"`
}
Which cookies to include in the cache key.
func (SetCacheSettingsRuleActionParametersCacheKeyCustomKeyCookieParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersCacheKeyCustomKeyCookieParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHeader ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHeader struct {
// A list of headers to check for the presence of. The presence of these headers is
// included in the cache key.
CheckPresence []string `json:"check_presence"`
// A mapping of header names to a list of values. If a header is present in the
// request and contains any of the values provided, its value is included in the
// cache key.
Contains map[string][]string `json:"contains"`
// Whether to exclude the origin header in the cache key.
ExcludeOrigin bool `json:"exclude_origin"`
// A list of headers to include in the cache key.
Include []string `json:"include"`
JSON setCacheSettingsRuleActionParametersCacheKeyCustomKeyHeaderJSON `json:"-"`
}
Which headers to include in the cache key.
func (*SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHeader) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHeader) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHeaderParam ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHeaderParam struct {
// A list of headers to check for the presence of. The presence of these headers is
// included in the cache key.
CheckPresence param.Field[[]string] `json:"check_presence"`
// A mapping of header names to a list of values. If a header is present in the
// request and contains any of the values provided, its value is included in the
// cache key.
Contains param.Field[map[string][]string] `json:"contains"`
// Whether to exclude the origin header in the cache key.
ExcludeOrigin param.Field[bool] `json:"exclude_origin"`
// A list of headers to include in the cache key.
Include param.Field[[]string] `json:"include"`
}
Which headers to include in the cache key.
func (SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHeaderParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHeaderParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHost ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHost struct {
// Whether to use the resolved host in the cache key.
Resolved bool `json:"resolved"`
JSON setCacheSettingsRuleActionParametersCacheKeyCustomKeyHostJSON `json:"-"`
}
How to use the host in the cache key.
func (*SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHost) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHost) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHostParam ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHostParam struct {
// Whether to use the resolved host in the cache key.
Resolved param.Field[bool] `json:"resolved"`
}
How to use the host in the cache key.
func (SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHostParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHostParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyParam ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyParam struct {
// Which cookies to include in the cache key.
Cookie param.Field[SetCacheSettingsRuleActionParametersCacheKeyCustomKeyCookieParam] `json:"cookie"`
// Which headers to include in the cache key.
Header param.Field[SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHeaderParam] `json:"header"`
// How to use the host in the cache key.
Host param.Field[SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHostParam] `json:"host"`
// Which query string parameters to include in or exclude from the cache key.
QueryString param.Field[SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringParam] `json:"query_string"`
// How to use characteristics of the request user agent in the cache key.
User param.Field[SetCacheSettingsRuleActionParametersCacheKeyCustomKeyUserParam] `json:"user"`
}
Which components of the request are included or excluded from the cache key.
func (SetCacheSettingsRuleActionParametersCacheKeyCustomKeyParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersCacheKeyCustomKeyParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryString ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryString struct {
// Which query string parameters to exclude from the cache key.
Exclude SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExclude `json:"exclude"`
// Which query string parameters to include in the cache key.
Include SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringInclude `json:"include"`
JSON setCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringJSON `json:"-"`
}
Which query string parameters to include in or exclude from the cache key.
func (*SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryString) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryString) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExclude ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExclude struct {
// Whether to exclude all query string parameters from the cache key.
All SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeAll `json:"all"`
// A list of query string parameters to exclude from the cache key.
List []string `json:"list"`
JSON setCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeJSON `json:"-"`
}
Which query string parameters to exclude from the cache key.
func (*SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExclude) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExclude) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeAll ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeAll bool
Whether to exclude all query string parameters from the cache key.
const (
SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeAllTrue SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeAll = true
)
func (SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeAll) IsKnown ¶
func (r SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeAll) IsKnown() bool
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeParam ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeParam struct {
// Whether to exclude all query string parameters from the cache key.
All param.Field[SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeAll] `json:"all"`
// A list of query string parameters to exclude from the cache key.
List param.Field[[]string] `json:"list"`
}
Which query string parameters to exclude from the cache key.
func (SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringInclude ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringInclude struct {
// Whether to include all query string parameters in the cache key.
All SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeAll `json:"all"`
// A list of query string parameters to include in the cache key.
List []string `json:"list"`
JSON setCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeJSON `json:"-"`
}
Which query string parameters to include in the cache key.
func (*SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringInclude) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringInclude) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeAll ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeAll bool
Whether to include all query string parameters in the cache key.
const (
SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeAllTrue SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeAll = true
)
func (SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeAll) IsKnown ¶
func (r SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeAll) IsKnown() bool
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeParam ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeParam struct {
// Whether to include all query string parameters in the cache key.
All param.Field[SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeAll] `json:"all"`
// A list of query string parameters to include in the cache key.
List param.Field[[]string] `json:"list"`
}
Which query string parameters to include in the cache key.
func (SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringParam ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringParam struct {
// Which query string parameters to exclude from the cache key.
Exclude param.Field[SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeParam] `json:"exclude"`
// Which query string parameters to include in the cache key.
Include param.Field[SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeParam] `json:"include"`
}
Which query string parameters to include in or exclude from the cache key.
func (SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyUser ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyUser struct {
// Whether to use the user agent's device type in the cache key.
DeviceType bool `json:"device_type"`
// Whether to use the user agents's country in the cache key.
Geo bool `json:"geo"`
// Whether to use the user agent's language in the cache key.
Lang bool `json:"lang"`
JSON setCacheSettingsRuleActionParametersCacheKeyCustomKeyUserJSON `json:"-"`
}
How to use characteristics of the request user agent in the cache key.
func (*SetCacheSettingsRuleActionParametersCacheKeyCustomKeyUser) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersCacheKeyCustomKeyUser) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyUserParam ¶
type SetCacheSettingsRuleActionParametersCacheKeyCustomKeyUserParam struct {
// Whether to use the user agent's device type in the cache key.
DeviceType param.Field[bool] `json:"device_type"`
// Whether to use the user agents's country in the cache key.
Geo param.Field[bool] `json:"geo"`
// Whether to use the user agent's language in the cache key.
Lang param.Field[bool] `json:"lang"`
}
How to use characteristics of the request user agent in the cache key.
func (SetCacheSettingsRuleActionParametersCacheKeyCustomKeyUserParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersCacheKeyCustomKeyUserParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersCacheKeyParam ¶
type SetCacheSettingsRuleActionParametersCacheKeyParam struct {
// Whether to separate cached content based on the visitor's device type.
CacheByDeviceType param.Field[bool] `json:"cache_by_device_type"`
// Whether to protect from web cache deception attacks, while allowing static
// assets to be cached.
CacheDeceptionArmor param.Field[bool] `json:"cache_deception_armor"`
// Which components of the request are included or excluded from the cache key.
CustomKey param.Field[SetCacheSettingsRuleActionParametersCacheKeyCustomKeyParam] `json:"custom_key"`
// Whether to treat requests with the same query parameters the same, regardless of
// the order those query parameters are in.
IgnoreQueryStringsOrder param.Field[bool] `json:"ignore_query_strings_order"`
}
Which components of the request are included in or excluded from the cache key Cloudflare uses to store the response in cache.
func (SetCacheSettingsRuleActionParametersCacheKeyParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersCacheKeyParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersCacheReserve ¶
type SetCacheSettingsRuleActionParametersCacheReserve struct {
// Whether Cache Reserve is enabled. If this is true and a request meets
// eligibility criteria, Cloudflare will write the resource to Cache Reserve.
Eligible bool `json:"eligible" api:"required"`
// The minimum file size eligible for storage in Cache Reserve.
MinimumFileSize int64 `json:"minimum_file_size"`
JSON setCacheSettingsRuleActionParametersCacheReserveJSON `json:"-"`
}
Settings to determine whether the request's response from origin is eligible for Cache Reserve (requires a Cache Reserve add-on plan).
func (*SetCacheSettingsRuleActionParametersCacheReserve) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersCacheReserve) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersCacheReserveParam ¶
type SetCacheSettingsRuleActionParametersCacheReserveParam struct {
// Whether Cache Reserve is enabled. If this is true and a request meets
// eligibility criteria, Cloudflare will write the resource to Cache Reserve.
Eligible param.Field[bool] `json:"eligible" api:"required"`
// The minimum file size eligible for storage in Cache Reserve.
MinimumFileSize param.Field[int64] `json:"minimum_file_size"`
}
Settings to determine whether the request's response from origin is eligible for Cache Reserve (requires a Cache Reserve add-on plan).
func (SetCacheSettingsRuleActionParametersCacheReserveParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersCacheReserveParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersEdgeTTL ¶
type SetCacheSettingsRuleActionParametersEdgeTTL struct {
// The edge TTL mode.
Mode SetCacheSettingsRuleActionParametersEdgeTTLMode `json:"mode" api:"required"`
// The edge TTL (in seconds) if you choose the "override_origin" mode.
Default int64 `json:"default"`
// A list of TTLs to apply to specific status codes or status code ranges.
StatusCodeTTL []SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTL `json:"status_code_ttl"`
JSON setCacheSettingsRuleActionParametersEdgeTTLJSON `json:"-"`
}
How long the Cloudflare edge network should cache the response.
func (*SetCacheSettingsRuleActionParametersEdgeTTL) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersEdgeTTL) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersEdgeTTLMode ¶
type SetCacheSettingsRuleActionParametersEdgeTTLMode string
The edge TTL mode.
const ( SetCacheSettingsRuleActionParametersEdgeTTLModeRespectOrigin SetCacheSettingsRuleActionParametersEdgeTTLMode = "respect_origin" SetCacheSettingsRuleActionParametersEdgeTTLModeBypassByDefault SetCacheSettingsRuleActionParametersEdgeTTLMode = "bypass_by_default" SetCacheSettingsRuleActionParametersEdgeTTLModeOverrideOrigin SetCacheSettingsRuleActionParametersEdgeTTLMode = "override_origin" )
func (SetCacheSettingsRuleActionParametersEdgeTTLMode) IsKnown ¶
func (r SetCacheSettingsRuleActionParametersEdgeTTLMode) IsKnown() bool
type SetCacheSettingsRuleActionParametersEdgeTTLParam ¶
type SetCacheSettingsRuleActionParametersEdgeTTLParam struct {
// The edge TTL mode.
Mode param.Field[SetCacheSettingsRuleActionParametersEdgeTTLMode] `json:"mode" api:"required"`
// The edge TTL (in seconds) if you choose the "override_origin" mode.
Default param.Field[int64] `json:"default"`
// A list of TTLs to apply to specific status codes or status code ranges.
StatusCodeTTL param.Field[[]SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLParam] `json:"status_code_ttl"`
}
How long the Cloudflare edge network should cache the response.
func (SetCacheSettingsRuleActionParametersEdgeTTLParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersEdgeTTLParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTL ¶
type SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTL struct {
// The time to cache the response for (in seconds). A value of 0 is equivalent to
// setting the cache control header with the value "no-cache". A value of -1 is
// equivalent to setting the cache control header with the value of "no-store".
Value int64 `json:"value" api:"required"`
// A single status code to apply the TTL to.
StatusCode int64 `json:"status_code"`
// A range of status codes to apply the TTL to.
StatusCodeRange SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRange `json:"status_code_range"`
JSON setCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLJSON `json:"-"`
}
func (*SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTL) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTL) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLParam ¶
type SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLParam struct {
// The time to cache the response for (in seconds). A value of 0 is equivalent to
// setting the cache control header with the value "no-cache". A value of -1 is
// equivalent to setting the cache control header with the value of "no-store".
Value param.Field[int64] `json:"value" api:"required"`
// A single status code to apply the TTL to.
StatusCode param.Field[int64] `json:"status_code"`
// A range of status codes to apply the TTL to.
StatusCodeRange param.Field[SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRangeParam] `json:"status_code_range"`
}
func (SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRange ¶
type SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRange struct {
// The lower bound of the range.
From int64 `json:"from"`
// The upper bound of the range.
To int64 `json:"to"`
JSON setCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRangeJSON `json:"-"`
}
A range of status codes to apply the TTL to.
func (*SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRange) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRange) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRangeParam ¶
type SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRangeParam struct {
// The lower bound of the range.
From param.Field[int64] `json:"from"`
// The upper bound of the range.
To param.Field[int64] `json:"to"`
}
A range of status codes to apply the TTL to.
func (SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRangeParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRangeParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersParam ¶
type SetCacheSettingsRuleActionParametersParam struct {
// A list of additional ports that caching should be enabled on.
AdditionalCacheablePorts param.Field[[]int64] `json:"additional_cacheable_ports"`
// How long client browsers should cache the response. Cloudflare cache purge will
// not purge content cached on client browsers, so high browser TTLs may lead to
// stale content.
BrowserTTL param.Field[SetCacheSettingsRuleActionParametersBrowserTTLParam] `json:"browser_ttl"`
// Whether the request's response from the origin is eligible for caching. Caching
// itself will still depend on the cache control header and your other caching
// configurations.
Cache param.Field[bool] `json:"cache"`
// Which components of the request are included in or excluded from the cache key
// Cloudflare uses to store the response in cache.
CacheKey param.Field[SetCacheSettingsRuleActionParametersCacheKeyParam] `json:"cache_key"`
// Settings to determine whether the request's response from origin is eligible for
// Cache Reserve (requires a Cache Reserve add-on plan).
CacheReserve param.Field[SetCacheSettingsRuleActionParametersCacheReserveParam] `json:"cache_reserve"`
// How long the Cloudflare edge network should cache the response.
EdgeTTL param.Field[SetCacheSettingsRuleActionParametersEdgeTTLParam] `json:"edge_ttl"`
// Whether Cloudflare will aim to strictly adhere to RFC 7234.
OriginCacheControl param.Field[bool] `json:"origin_cache_control"`
// Whether to generate Cloudflare error pages for issues from the origin server.
OriginErrorPagePassthru param.Field[bool] `json:"origin_error_page_passthru"`
// A timeout value between two successive read operations to use for your origin
// server. Historically, the timeout value between two read options from Cloudflare
// to an origin server is 100 seconds. If you are attempting to reduce HTTP 524
// errors because of timeouts from an origin server, try increasing this timeout
// value.
ReadTimeout param.Field[int64] `json:"read_timeout"`
// Cloudflare converts strong ETag headers to weak ETag headers.
RespectStrongEtags param.Field[bool] `json:"respect_strong_etags"`
// When to serve stale content from cache.
ServeStale param.Field[SetCacheSettingsRuleActionParametersServeStaleParam] `json:"serve_stale"`
// Use-As-Dictionary headers on matching cacheable responses.
SharedDictionary param.Field[SetCacheSettingsRuleActionParametersSharedDictionaryParam] `json:"shared_dictionary"`
StripEtags param.Field[bool] `json:"strip_etags"`
// Whether to strip Last-Modified headers from the origin response before caching.
StripLastModified param.Field[bool] `json:"strip_last_modified"`
// Whether to strip Set-Cookie headers from the origin response before caching.
StripSetCookie param.Field[bool] `json:"strip_set_cookie"`
}
The parameters configuring the rule's action.
func (SetCacheSettingsRuleActionParametersParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersServeStale ¶
type SetCacheSettingsRuleActionParametersServeStale struct {
// Whether Cloudflare should disable serving stale content while getting the latest
// content from the origin.
DisableStaleWhileUpdating bool `json:"disable_stale_while_updating"`
JSON setCacheSettingsRuleActionParametersServeStaleJSON `json:"-"`
}
When to serve stale content from cache.
func (*SetCacheSettingsRuleActionParametersServeStale) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersServeStale) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersServeStaleParam ¶
type SetCacheSettingsRuleActionParametersServeStaleParam struct {
// Whether Cloudflare should disable serving stale content while getting the latest
// content from the origin.
DisableStaleWhileUpdating param.Field[bool] `json:"disable_stale_while_updating"`
}
When to serve stale content from cache.
func (SetCacheSettingsRuleActionParametersServeStaleParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersServeStaleParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersSharedDictionary ¶
type SetCacheSettingsRuleActionParametersSharedDictionary struct {
// URL pattern for the Use-As-Dictionary match field. This pattern specifies which
// URLs can use this response as a dictionary.
}
Configuration for shared dictionary compression. When set, Cloudflare injects Use-As-Dictionary headers on matching cacheable responses.
func (*SetCacheSettingsRuleActionParametersSharedDictionary) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleActionParametersSharedDictionary) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersSharedDictionaryParam ¶
type SetCacheSettingsRuleActionParametersSharedDictionaryParam struct {
// URLs can use this response as a dictionary.
MatchPattern param.Field[string] `json:"match_pattern" api:"required"`
}
Configuration for shared dictionary compression. When set, Cloudflare injects Use-As-Dictionary headers on matching cacheable responses.
func (SetCacheSettingsRuleActionParametersSharedDictionaryParam) MarshalJSON ¶
func (r SetCacheSettingsRuleActionParametersSharedDictionaryParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleExposedCredentialCheck ¶
type SetCacheSettingsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON setCacheSettingsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*SetCacheSettingsRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleExposedCredentialCheckParam ¶
type SetCacheSettingsRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (SetCacheSettingsRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r SetCacheSettingsRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleParam ¶
type SetCacheSettingsRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[SetCacheSettingsRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[SetCacheSettingsRuleActionParametersParam] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[SetCacheSettingsRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[SetCacheSettingsRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (SetCacheSettingsRuleParam) MarshalJSON ¶
func (r SetCacheSettingsRuleParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleRatelimit ¶
type SetCacheSettingsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON setCacheSettingsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*SetCacheSettingsRuleRatelimit) UnmarshalJSON ¶
func (r *SetCacheSettingsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleRatelimitParam ¶
type SetCacheSettingsRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (SetCacheSettingsRuleRatelimitParam) MarshalJSON ¶
func (r SetCacheSettingsRuleRatelimitParam) MarshalJSON() (data []byte, err error)
type SetConfigRule ¶
type SetConfigRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action SetConfigRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters SetConfigRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck SetConfigRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit SetConfigRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON setConfigRuleJSON `json:"-"`
}
func (*SetConfigRule) UnmarshalJSON ¶
func (r *SetConfigRule) UnmarshalJSON(data []byte) (err error)
type SetConfigRuleAction ¶
type SetConfigRuleAction string
The action to perform when the rule matches.
const (
SetConfigRuleActionSetConfig SetConfigRuleAction = "set_config"
)
func (SetConfigRuleAction) IsKnown ¶
func (r SetConfigRuleAction) IsKnown() bool
type SetConfigRuleActionParameters ¶
type SetConfigRuleActionParameters struct {
// Whether to enable Automatic HTTPS Rewrites.
AutomaticHTTPSRewrites bool `json:"automatic_https_rewrites"`
// Which file extensions to minify automatically.
Autominify SetConfigRuleActionParametersAutominify `json:"autominify"`
// Whether to enable Browser Integrity Check (BIC).
BIC bool `json:"bic"`
// Whether to enable content conversion (e.g., HTML to Markdown).
ContentConverter bool `json:"content_converter"`
// Whether to disable Cloudflare Apps.
//
// Deprecated: Cloudflare Apps are deprected.
DisableApps SetConfigRuleActionParametersDisableApps `json:"disable_apps"`
// Whether to disable Pay Per Crawl.
DisablePayPerCrawl SetConfigRuleActionParametersDisablePayPerCrawl `json:"disable_pay_per_crawl"`
// Whether to disable Real User Monitoring (RUM).
DisableRUM SetConfigRuleActionParametersDisableRUM `json:"disable_rum"`
// Whether to disable Zaraz.
DisableZaraz SetConfigRuleActionParametersDisableZaraz `json:"disable_zaraz"`
// Whether to enable Email Obfuscation.
EmailObfuscation bool `json:"email_obfuscation"`
// Whether to enable Cloudflare Fonts.
Fonts bool `json:"fonts"`
// Whether to enable Hotlink Protection.
HotlinkProtection bool `json:"hotlink_protection"`
// Whether to enable Mirage.
//
// Deprecated: Mirage is deprecated. More information at
// https://developers.cloudflare.com/speed/optimization/images/mirage/.
Mirage bool `json:"mirage"`
// Whether to enable Opportunistic Encryption.
OpportunisticEncryption bool `json:"opportunistic_encryption"`
// The Polish level to configure.
Polish SetConfigRuleActionParametersPolish `json:"polish"`
// Whether to redirect verified AI training crawlers to canonical URLs found in the
// HTML response.
RedirectsForAITraining bool `json:"redirects_for_ai_training"`
// The request body buffering mode.
RequestBodyBuffering SetConfigRuleActionParametersRequestBodyBuffering `json:"request_body_buffering"`
// The response body buffering mode.
ResponseBodyBuffering SetConfigRuleActionParametersResponseBodyBuffering `json:"response_body_buffering"`
// Whether to enable Rocket Loader.
RocketLoader bool `json:"rocket_loader"`
// The Security Level to configure.
SecurityLevel SetConfigRuleActionParametersSecurityLevel `json:"security_level"`
// Whether to enable Server-Side Excludes.
ServerSideExcludes bool `json:"server_side_excludes"`
// The SSL level to configure.
SSL SetConfigRuleActionParametersSSL `json:"ssl"`
// Whether to enable Signed Exchanges (SXG).
SXG bool `json:"sxg"`
JSON setConfigRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*SetConfigRuleActionParameters) UnmarshalJSON ¶
func (r *SetConfigRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type SetConfigRuleActionParametersAutominify ¶
type SetConfigRuleActionParametersAutominify struct {
// Whether to minify CSS files.
CSS bool `json:"css"`
// Whether to minify HTML files.
HTML bool `json:"html"`
// Whether to minify JavaScript files.
JS bool `json:"js"`
JSON setConfigRuleActionParametersAutominifyJSON `json:"-"`
}
Which file extensions to minify automatically.
func (*SetConfigRuleActionParametersAutominify) UnmarshalJSON ¶
func (r *SetConfigRuleActionParametersAutominify) UnmarshalJSON(data []byte) (err error)
type SetConfigRuleActionParametersAutominifyParam ¶
type SetConfigRuleActionParametersAutominifyParam struct {
// Whether to minify CSS files.
CSS param.Field[bool] `json:"css"`
// Whether to minify HTML files.
HTML param.Field[bool] `json:"html"`
// Whether to minify JavaScript files.
JS param.Field[bool] `json:"js"`
}
Which file extensions to minify automatically.
func (SetConfigRuleActionParametersAutominifyParam) MarshalJSON ¶
func (r SetConfigRuleActionParametersAutominifyParam) MarshalJSON() (data []byte, err error)
type SetConfigRuleActionParametersDisableApps ¶
type SetConfigRuleActionParametersDisableApps bool
Whether to disable Cloudflare Apps.
const (
SetConfigRuleActionParametersDisableAppsTrue SetConfigRuleActionParametersDisableApps = true
)
func (SetConfigRuleActionParametersDisableApps) IsKnown ¶
func (r SetConfigRuleActionParametersDisableApps) IsKnown() bool
type SetConfigRuleActionParametersDisablePayPerCrawl ¶
type SetConfigRuleActionParametersDisablePayPerCrawl bool
Whether to disable Pay Per Crawl.
const (
SetConfigRuleActionParametersDisablePayPerCrawlTrue SetConfigRuleActionParametersDisablePayPerCrawl = true
)
func (SetConfigRuleActionParametersDisablePayPerCrawl) IsKnown ¶
func (r SetConfigRuleActionParametersDisablePayPerCrawl) IsKnown() bool
type SetConfigRuleActionParametersDisableRUM ¶
type SetConfigRuleActionParametersDisableRUM bool
Whether to disable Real User Monitoring (RUM).
const (
SetConfigRuleActionParametersDisableRUMTrue SetConfigRuleActionParametersDisableRUM = true
)
func (SetConfigRuleActionParametersDisableRUM) IsKnown ¶
func (r SetConfigRuleActionParametersDisableRUM) IsKnown() bool
type SetConfigRuleActionParametersDisableZaraz ¶
type SetConfigRuleActionParametersDisableZaraz bool
Whether to disable Zaraz.
const (
SetConfigRuleActionParametersDisableZarazTrue SetConfigRuleActionParametersDisableZaraz = true
)
func (SetConfigRuleActionParametersDisableZaraz) IsKnown ¶
func (r SetConfigRuleActionParametersDisableZaraz) IsKnown() bool
type SetConfigRuleActionParametersParam ¶
type SetConfigRuleActionParametersParam struct {
// Whether to enable Automatic HTTPS Rewrites.
AutomaticHTTPSRewrites param.Field[bool] `json:"automatic_https_rewrites"`
// Which file extensions to minify automatically.
Autominify param.Field[SetConfigRuleActionParametersAutominifyParam] `json:"autominify"`
// Whether to enable Browser Integrity Check (BIC).
BIC param.Field[bool] `json:"bic"`
// Whether to enable content conversion (e.g., HTML to Markdown).
ContentConverter param.Field[bool] `json:"content_converter"`
// Whether to disable Cloudflare Apps.
//
// Deprecated: Cloudflare Apps are deprected.
DisableApps param.Field[SetConfigRuleActionParametersDisableApps] `json:"disable_apps"`
// Whether to disable Pay Per Crawl.
DisablePayPerCrawl param.Field[SetConfigRuleActionParametersDisablePayPerCrawl] `json:"disable_pay_per_crawl"`
// Whether to disable Real User Monitoring (RUM).
DisableRUM param.Field[SetConfigRuleActionParametersDisableRUM] `json:"disable_rum"`
// Whether to disable Zaraz.
DisableZaraz param.Field[SetConfigRuleActionParametersDisableZaraz] `json:"disable_zaraz"`
// Whether to enable Email Obfuscation.
EmailObfuscation param.Field[bool] `json:"email_obfuscation"`
// Whether to enable Cloudflare Fonts.
Fonts param.Field[bool] `json:"fonts"`
// Whether to enable Hotlink Protection.
HotlinkProtection param.Field[bool] `json:"hotlink_protection"`
// Whether to enable Mirage.
//
// Deprecated: Mirage is deprecated. More information at
// https://developers.cloudflare.com/speed/optimization/images/mirage/.
Mirage param.Field[bool] `json:"mirage"`
// Whether to enable Opportunistic Encryption.
OpportunisticEncryption param.Field[bool] `json:"opportunistic_encryption"`
// The Polish level to configure.
Polish param.Field[SetConfigRuleActionParametersPolish] `json:"polish"`
// Whether to redirect verified AI training crawlers to canonical URLs found in the
// HTML response.
RedirectsForAITraining param.Field[bool] `json:"redirects_for_ai_training"`
// The request body buffering mode.
RequestBodyBuffering param.Field[SetConfigRuleActionParametersRequestBodyBuffering] `json:"request_body_buffering"`
// The response body buffering mode.
ResponseBodyBuffering param.Field[SetConfigRuleActionParametersResponseBodyBuffering] `json:"response_body_buffering"`
// Whether to enable Rocket Loader.
RocketLoader param.Field[bool] `json:"rocket_loader"`
// The Security Level to configure.
SecurityLevel param.Field[SetConfigRuleActionParametersSecurityLevel] `json:"security_level"`
// Whether to enable Server-Side Excludes.
ServerSideExcludes param.Field[bool] `json:"server_side_excludes"`
// The SSL level to configure.
SSL param.Field[SetConfigRuleActionParametersSSL] `json:"ssl"`
// Whether to enable Signed Exchanges (SXG).
SXG param.Field[bool] `json:"sxg"`
}
The parameters configuring the rule's action.
func (SetConfigRuleActionParametersParam) MarshalJSON ¶
func (r SetConfigRuleActionParametersParam) MarshalJSON() (data []byte, err error)
type SetConfigRuleActionParametersPolish ¶
type SetConfigRuleActionParametersPolish string
The Polish level to configure.
const ( SetConfigRuleActionParametersPolishOff SetConfigRuleActionParametersPolish = "off" SetConfigRuleActionParametersPolishLossless SetConfigRuleActionParametersPolish = "lossless" SetConfigRuleActionParametersPolishLossy SetConfigRuleActionParametersPolish = "lossy" SetConfigRuleActionParametersPolishWebP SetConfigRuleActionParametersPolish = "webp" )
func (SetConfigRuleActionParametersPolish) IsKnown ¶
func (r SetConfigRuleActionParametersPolish) IsKnown() bool
type SetConfigRuleActionParametersRequestBodyBuffering ¶
type SetConfigRuleActionParametersRequestBodyBuffering string
The request body buffering mode.
const ( SetConfigRuleActionParametersRequestBodyBufferingNone SetConfigRuleActionParametersRequestBodyBuffering = "none" SetConfigRuleActionParametersRequestBodyBufferingStandard SetConfigRuleActionParametersRequestBodyBuffering = "standard" SetConfigRuleActionParametersRequestBodyBufferingFull SetConfigRuleActionParametersRequestBodyBuffering = "full" )
func (SetConfigRuleActionParametersRequestBodyBuffering) IsKnown ¶
func (r SetConfigRuleActionParametersRequestBodyBuffering) IsKnown() bool
type SetConfigRuleActionParametersResponseBodyBuffering ¶
type SetConfigRuleActionParametersResponseBodyBuffering string
The response body buffering mode.
const ( SetConfigRuleActionParametersResponseBodyBufferingNone SetConfigRuleActionParametersResponseBodyBuffering = "none" SetConfigRuleActionParametersResponseBodyBufferingStandard SetConfigRuleActionParametersResponseBodyBuffering = "standard" )
func (SetConfigRuleActionParametersResponseBodyBuffering) IsKnown ¶
func (r SetConfigRuleActionParametersResponseBodyBuffering) IsKnown() bool
type SetConfigRuleActionParametersSSL ¶
type SetConfigRuleActionParametersSSL string
The SSL level to configure.
const ( SetConfigRuleActionParametersSSLOff SetConfigRuleActionParametersSSL = "off" SetConfigRuleActionParametersSSLFlexible SetConfigRuleActionParametersSSL = "flexible" SetConfigRuleActionParametersSSLFull SetConfigRuleActionParametersSSL = "full" SetConfigRuleActionParametersSSLStrict SetConfigRuleActionParametersSSL = "strict" SetConfigRuleActionParametersSSLOriginPull SetConfigRuleActionParametersSSL = "origin_pull" )
func (SetConfigRuleActionParametersSSL) IsKnown ¶
func (r SetConfigRuleActionParametersSSL) IsKnown() bool
type SetConfigRuleActionParametersSecurityLevel ¶
type SetConfigRuleActionParametersSecurityLevel string
The Security Level to configure.
const ( SetConfigRuleActionParametersSecurityLevelOff SetConfigRuleActionParametersSecurityLevel = "off" SetConfigRuleActionParametersSecurityLevelEssentiallyOff SetConfigRuleActionParametersSecurityLevel = "essentially_off" SetConfigRuleActionParametersSecurityLevelLow SetConfigRuleActionParametersSecurityLevel = "low" SetConfigRuleActionParametersSecurityLevelMedium SetConfigRuleActionParametersSecurityLevel = "medium" SetConfigRuleActionParametersSecurityLevelHigh SetConfigRuleActionParametersSecurityLevel = "high" SetConfigRuleActionParametersSecurityLevelUnderAttack SetConfigRuleActionParametersSecurityLevel = "under_attack" )
func (SetConfigRuleActionParametersSecurityLevel) IsKnown ¶
func (r SetConfigRuleActionParametersSecurityLevel) IsKnown() bool
type SetConfigRuleExposedCredentialCheck ¶
type SetConfigRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON setConfigRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*SetConfigRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *SetConfigRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type SetConfigRuleExposedCredentialCheckParam ¶
type SetConfigRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (SetConfigRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r SetConfigRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type SetConfigRuleParam ¶
type SetConfigRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[SetConfigRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[SetConfigRuleActionParametersParam] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[SetConfigRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[SetConfigRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (SetConfigRuleParam) MarshalJSON ¶
func (r SetConfigRuleParam) MarshalJSON() (data []byte, err error)
type SetConfigRuleRatelimit ¶
type SetConfigRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON setConfigRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*SetConfigRuleRatelimit) UnmarshalJSON ¶
func (r *SetConfigRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type SetConfigRuleRatelimitParam ¶
type SetConfigRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (SetConfigRuleRatelimitParam) MarshalJSON ¶
func (r SetConfigRuleRatelimitParam) MarshalJSON() (data []byte, err error)
type SkipRule ¶
type SkipRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action SkipRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters SkipRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck SkipRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit SkipRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON skipRuleJSON `json:"-"`
}
func (*SkipRule) UnmarshalJSON ¶
type SkipRuleAction ¶
type SkipRuleAction string
The action to perform when the rule matches.
const (
SkipRuleActionSkip SkipRuleAction = "skip"
)
func (SkipRuleAction) IsKnown ¶
func (r SkipRuleAction) IsKnown() bool
type SkipRuleActionParameters ¶
type SkipRuleActionParameters struct {
// A phase to skip the execution of. This option is only compatible with the
// products option.
Phase SkipRuleActionParametersPhase `json:"phase"`
// A list of phases to skip the execution of. This option is incompatible with the
// rulesets option.
Phases []Phase `json:"phases"`
// A list of legacy security products to skip the execution of.
Products []SkipRuleActionParametersProduct `json:"products"`
// A mapping of ruleset IDs to a list of rule IDs in that ruleset to skip the
// execution of. This option is incompatible with the ruleset option.
Rules map[string][]string `json:"rules"`
// A ruleset to skip the execution of. This option is incompatible with the
// rulesets option.
Ruleset SkipRuleActionParametersRuleset `json:"ruleset"`
// A list of ruleset IDs to skip the execution of. This option is incompatible with
// the ruleset and phases options.
Rulesets []string `json:"rulesets"`
JSON skipRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*SkipRuleActionParameters) UnmarshalJSON ¶
func (r *SkipRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type SkipRuleActionParametersParam ¶
type SkipRuleActionParametersParam struct {
// A phase to skip the execution of. This option is only compatible with the
// products option.
Phase param.Field[SkipRuleActionParametersPhase] `json:"phase"`
// A list of phases to skip the execution of. This option is incompatible with the
// rulesets option.
Phases param.Field[[]Phase] `json:"phases"`
// A list of legacy security products to skip the execution of.
Products param.Field[[]SkipRuleActionParametersProduct] `json:"products"`
// A mapping of ruleset IDs to a list of rule IDs in that ruleset to skip the
// execution of. This option is incompatible with the ruleset option.
Rules param.Field[map[string][]string] `json:"rules"`
// A ruleset to skip the execution of. This option is incompatible with the
// rulesets option.
Ruleset param.Field[SkipRuleActionParametersRuleset] `json:"ruleset"`
// A list of ruleset IDs to skip the execution of. This option is incompatible with
// the ruleset and phases options.
Rulesets param.Field[[]string] `json:"rulesets"`
}
The parameters configuring the rule's action.
func (SkipRuleActionParametersParam) MarshalJSON ¶
func (r SkipRuleActionParametersParam) MarshalJSON() (data []byte, err error)
type SkipRuleActionParametersPhase ¶
type SkipRuleActionParametersPhase string
A phase to skip the execution of. This option is only compatible with the products option.
const (
SkipRuleActionParametersPhaseCurrent SkipRuleActionParametersPhase = "current"
)
func (SkipRuleActionParametersPhase) IsKnown ¶
func (r SkipRuleActionParametersPhase) IsKnown() bool
type SkipRuleActionParametersProduct ¶
type SkipRuleActionParametersProduct string
The name of a legacy security product to skip the execution of.
const ( SkipRuleActionParametersProductBIC SkipRuleActionParametersProduct = "bic" SkipRuleActionParametersProductHot SkipRuleActionParametersProduct = "hot" SkipRuleActionParametersProductRateLimit SkipRuleActionParametersProduct = "rateLimit" SkipRuleActionParametersProductSecurityLevel SkipRuleActionParametersProduct = "securityLevel" SkipRuleActionParametersProductUABlock SkipRuleActionParametersProduct = "uaBlock" SkipRuleActionParametersProductWAF SkipRuleActionParametersProduct = "waf" SkipRuleActionParametersProductZoneLockdown SkipRuleActionParametersProduct = "zoneLockdown" )
func (SkipRuleActionParametersProduct) IsKnown ¶
func (r SkipRuleActionParametersProduct) IsKnown() bool
type SkipRuleActionParametersRuleset ¶
type SkipRuleActionParametersRuleset string
A ruleset to skip the execution of. This option is incompatible with the rulesets option.
const (
SkipRuleActionParametersRulesetCurrent SkipRuleActionParametersRuleset = "current"
)
func (SkipRuleActionParametersRuleset) IsKnown ¶
func (r SkipRuleActionParametersRuleset) IsKnown() bool
type SkipRuleExposedCredentialCheck ¶
type SkipRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON skipRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*SkipRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *SkipRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type SkipRuleExposedCredentialCheckParam ¶
type SkipRuleExposedCredentialCheckParam struct {
// An expression that selects the password used in the credentials check.
PasswordExpression param.Field[string] `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression param.Field[string] `json:"username_expression" api:"required"`
}
Configuration for exposed credential checking.
func (SkipRuleExposedCredentialCheckParam) MarshalJSON ¶
func (r SkipRuleExposedCredentialCheckParam) MarshalJSON() (data []byte, err error)
type SkipRuleParam ¶
type SkipRuleParam struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[SkipRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[SkipRuleActionParametersParam] `json:"action_parameters"`
// An informative description of the rule.
Description param.Field[string] `json:"description"`
// Whether the rule should be executed.
Enabled param.Field[bool] `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck param.Field[SkipRuleExposedCredentialCheckParam] `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression param.Field[string] `json:"expression"`
// An object configuring the rule's logging behavior.
Logging param.Field[LoggingParam] `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[SkipRuleRatelimitParam] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (SkipRuleParam) MarshalJSON ¶
func (r SkipRuleParam) MarshalJSON() (data []byte, err error)
type SkipRuleRatelimit ¶
type SkipRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON skipRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*SkipRuleRatelimit) UnmarshalJSON ¶
func (r *SkipRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type SkipRuleRatelimitParam ¶
type SkipRuleRatelimitParam struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics param.Field[[]string] `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period param.Field[int64] `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression param.Field[string] `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod param.Field[int64] `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin param.Field[bool] `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod param.Field[int64] `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName param.Field[string] `json:"score_response_header_name"`
}
An object configuring the rule's rate limit behavior.
func (SkipRuleRatelimitParam) MarshalJSON ¶
func (r SkipRuleRatelimitParam) MarshalJSON() (data []byte, err error)
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 TokenPolicyResourcesIAMResourcesTypeObjectNested ¶
type TokenPolicyResourcesIAMResourcesTypeObjectNested = shared.TokenPolicyResourcesIAMResourcesTypeObjectNested
Map of nested resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam ¶
type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectNestedParam
Map of nested resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesIAMResourcesTypeObjectString ¶
type TokenPolicyResourcesIAMResourcesTypeObjectString = shared.TokenPolicyResourcesIAMResourcesTypeObjectString
Map of simple string resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesIAMResourcesTypeObjectStringParam ¶
type TokenPolicyResourcesIAMResourcesTypeObjectStringParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectStringParam
Map of simple string resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesUnion ¶
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
A list of resource names that the policy applies to.
This is an alias to an internal type.
type TokenPolicyResourcesUnionParam ¶
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
A list of resource names that the policy applies to.
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 VersionDeleteParams ¶
type VersionGetParams ¶
type VersionGetResponse ¶
type VersionGetResponse struct {
// The unique ID of the ruleset.
ID string `json:"id" api:"required"`
// The kind of the ruleset.
Kind Kind `json:"kind" api:"required"`
// The timestamp of when the ruleset was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The human-readable name of the ruleset.
Name string `json:"name" api:"required"`
// The phase of the ruleset.
Phase Phase `json:"phase" api:"required"`
// The list of rules in the ruleset.
Rules []VersionGetResponseRule `json:"rules" api:"required"`
// The version of the ruleset.
Version string `json:"version" api:"required"`
// An informative description of the ruleset.
Description string `json:"description"`
JSON versionGetResponseJSON `json:"-"`
}
A ruleset object.
func (*VersionGetResponse) UnmarshalJSON ¶
func (r *VersionGetResponse) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseEnvelope ¶
type VersionGetResponseEnvelope struct {
// A list of error messages.
Errors []VersionGetResponseEnvelopeErrors `json:"errors" api:"required"`
// A list of warning messages.
Messages []VersionGetResponseEnvelopeMessages `json:"messages" api:"required"`
// A ruleset object.
Result VersionGetResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success VersionGetResponseEnvelopeSuccess `json:"success" api:"required"`
JSON versionGetResponseEnvelopeJSON `json:"-"`
}
A response object.
func (*VersionGetResponseEnvelope) UnmarshalJSON ¶
func (r *VersionGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseEnvelopeErrors ¶
type VersionGetResponseEnvelopeErrors struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source VersionGetResponseEnvelopeErrorsSource `json:"source"`
JSON versionGetResponseEnvelopeErrorsJSON `json:"-"`
}
A message.
func (*VersionGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *VersionGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseEnvelopeErrorsSource ¶
type VersionGetResponseEnvelopeErrorsSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON versionGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
The source of this message.
func (*VersionGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *VersionGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseEnvelopeMessages ¶
type VersionGetResponseEnvelopeMessages struct {
// A text description of this message.
Message string `json:"message" api:"required"`
// A unique code for this message.
Code int64 `json:"code"`
// The source of this message.
Source VersionGetResponseEnvelopeMessagesSource `json:"source"`
JSON versionGetResponseEnvelopeMessagesJSON `json:"-"`
}
A message.
func (*VersionGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *VersionGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseEnvelopeMessagesSource ¶
type VersionGetResponseEnvelopeMessagesSource struct {
// A JSON pointer to the field that is the source of the message.
Pointer string `json:"pointer" api:"required"`
JSON versionGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
The source of this message.
func (*VersionGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *VersionGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseEnvelopeSuccess ¶
type VersionGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
VersionGetResponseEnvelopeSuccessTrue VersionGetResponseEnvelopeSuccess = true
)
func (VersionGetResponseEnvelopeSuccess) IsKnown ¶
func (r VersionGetResponseEnvelopeSuccess) IsKnown() bool
type VersionGetResponseRule ¶
type VersionGetResponseRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action VersionGetResponseRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [VersionGetResponseRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters].
ActionParameters interface{} `json:"action_parameters"`
// This field can have the runtime type of [[]string].
Categories interface{} `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// This field can have the runtime type of [BlockRuleExposedCredentialCheck],
// [VersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [VersionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [VersionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [VersionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck].
ExposedCredentialCheck interface{} `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// This field can have the runtime type of [BlockRuleRatelimit],
// [VersionGetResponseRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [VersionGetResponseRulesRulesetsJSChallengeRuleRatelimit], [LogRuleRatelimit],
// [LogCustomFieldRuleRatelimit], [ManagedChallengeRuleRatelimit],
// [RedirectRuleRatelimit], [RewriteRuleRatelimit], [RouteRuleRatelimit],
// [ScoreRuleRatelimit], [ServeErrorRuleRatelimit],
// [VersionGetResponseRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [VersionGetResponseRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON versionGetResponseRuleJSON `json:"-"`
// contains filtered or unexported fields
}
func (VersionGetResponseRule) AsUnion ¶
func (r VersionGetResponseRule) AsUnion() VersionGetResponseRulesUnion
AsUnion returns a VersionGetResponseRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, VersionGetResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, VersionGetResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, VersionGetResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, VersionGetResponseRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule.
func (*VersionGetResponseRule) UnmarshalJSON ¶
func (r *VersionGetResponseRule) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesAction ¶
type VersionGetResponseRulesAction string
The action to perform when the rule matches.
const ( VersionGetResponseRulesActionBlock VersionGetResponseRulesAction = "block" VersionGetResponseRulesActionChallenge VersionGetResponseRulesAction = "challenge" VersionGetResponseRulesActionCompressResponse VersionGetResponseRulesAction = "compress_response" VersionGetResponseRulesActionDDoSDynamic VersionGetResponseRulesAction = "ddos_dynamic" VersionGetResponseRulesActionExecute VersionGetResponseRulesAction = "execute" VersionGetResponseRulesActionForceConnectionClose VersionGetResponseRulesAction = "force_connection_close" VersionGetResponseRulesActionJSChallenge VersionGetResponseRulesAction = "js_challenge" VersionGetResponseRulesActionLog VersionGetResponseRulesAction = "log" VersionGetResponseRulesActionLogCustomField VersionGetResponseRulesAction = "log_custom_field" VersionGetResponseRulesActionManagedChallenge VersionGetResponseRulesAction = "managed_challenge" VersionGetResponseRulesActionRedirect VersionGetResponseRulesAction = "redirect" VersionGetResponseRulesActionRewrite VersionGetResponseRulesAction = "rewrite" VersionGetResponseRulesActionRoute VersionGetResponseRulesAction = "route" VersionGetResponseRulesActionScore VersionGetResponseRulesAction = "score" VersionGetResponseRulesActionServeError VersionGetResponseRulesAction = "serve_error" VersionGetResponseRulesActionSetCacheControl VersionGetResponseRulesAction = "set_cache_control" VersionGetResponseRulesActionSetCacheSettings VersionGetResponseRulesAction = "set_cache_settings" VersionGetResponseRulesActionSetCacheTags VersionGetResponseRulesAction = "set_cache_tags" VersionGetResponseRulesActionSetConfig VersionGetResponseRulesAction = "set_config" VersionGetResponseRulesActionSkip VersionGetResponseRulesAction = "skip" )
func (VersionGetResponseRulesAction) IsKnown ¶
func (r VersionGetResponseRulesAction) IsKnown() bool
type VersionGetResponseRulesRulesetsChallengeRule ¶
type VersionGetResponseRulesRulesetsChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action VersionGetResponseRulesRulesetsChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck VersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit VersionGetResponseRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON versionGetResponseRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*VersionGetResponseRulesRulesetsChallengeRule) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsChallengeRuleAction ¶
type VersionGetResponseRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
VersionGetResponseRulesRulesetsChallengeRuleActionChallenge VersionGetResponseRulesRulesetsChallengeRuleAction = "challenge"
)
func (VersionGetResponseRulesRulesetsChallengeRuleAction) IsKnown ¶
func (r VersionGetResponseRulesRulesetsChallengeRuleAction) IsKnown() bool
type VersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck ¶
type VersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON versionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*VersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsChallengeRuleRatelimit ¶
type VersionGetResponseRulesRulesetsChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON versionGetResponseRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*VersionGetResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsJSChallengeRule ¶
type VersionGetResponseRulesRulesetsJSChallengeRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action VersionGetResponseRulesRulesetsJSChallengeRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters interface{} `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck VersionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit VersionGetResponseRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON versionGetResponseRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*VersionGetResponseRulesRulesetsJSChallengeRule) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsJSChallengeRuleAction ¶
type VersionGetResponseRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
VersionGetResponseRulesRulesetsJSChallengeRuleActionJSChallenge VersionGetResponseRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (VersionGetResponseRulesRulesetsJSChallengeRuleAction) IsKnown ¶
func (r VersionGetResponseRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type VersionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶
type VersionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON versionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*VersionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsJSChallengeRuleRatelimit ¶
type VersionGetResponseRulesRulesetsJSChallengeRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON versionGetResponseRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*VersionGetResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRule ¶
type VersionGetResponseRulesRulesetsSetCacheControlRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action VersionGetResponseRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters VersionGetResponseRulesRulesetsSetCacheControlRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck VersionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit VersionGetResponseRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*VersionGetResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleAction ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
VersionGetResponseRulesRulesetsSetCacheControlRuleActionSetCacheControl VersionGetResponseRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (VersionGetResponseRulesRulesetsSetCacheControlRuleAction) IsKnown ¶
func (r VersionGetResponseRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParameters ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶
func (r VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶
func (r VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶
func (r VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶
func (r VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶
func (r VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶
func (r VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶
func (r VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// This field can have the runtime type of [[]string].
Qualifiers interface{} `json:"qualifiers"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶
func (r VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// Optional list of header names to qualify the directive (e.g., for "private" or
// "no-cache" directives).
Qualifiers []string `json:"qualifiers"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶
func (r VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶
func (r VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶
func (r VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶
func (r VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
// The duration value in seconds for the directive.
Value int64 `json:"value"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶
func (r VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// The duration value in seconds for the directive.
Value int64 `json:"value" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or VersionGetResponseRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type VersionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheControlRuleRatelimit ¶
type VersionGetResponseRulesRulesetsSetCacheControlRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON versionGetResponseRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*VersionGetResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheTagsRule ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRule struct {
// The timestamp of when the rule was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The version of the rule.
Version string `json:"version" api:"required"`
// The unique ID of the rule.
ID string `json:"id"`
// The action to perform when the rule matches.
Action VersionGetResponseRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters `json:"action_parameters"`
// The categories of the rule.
Categories []string `json:"categories"`
// An informative description of the rule.
Description string `json:"description"`
// Whether the rule should be executed.
Enabled bool `json:"enabled"`
// Configuration for exposed credential checking.
ExposedCredentialCheck VersionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `json:"exposed_credential_check"`
// The expression defining which traffic will match the rule.
Expression string `json:"expression"`
// An object configuring the rule's logging behavior.
Logging Logging `json:"logging"`
// An object configuring the rule's rate limit behavior.
Ratelimit VersionGetResponseRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON versionGetResponseRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*VersionGetResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheTagsRuleAction ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
VersionGetResponseRulesRulesetsSetCacheTagsRuleActionSetCacheTags VersionGetResponseRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (VersionGetResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶
func (r VersionGetResponseRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation `json:"operation" api:"required"`
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression"`
// This field can have the runtime type of [[]string].
Values interface{} `json:"values"`
JSON versionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶
func (r VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON versionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON versionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperationSet VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
func (VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown ¶
func (r VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersOperation) IsKnown() bool
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON versionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON versionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression struct {
// An expression that evaluates to an array of cache tag values.
Expression string `json:"expression" api:"required"`
// The operation to perform on the cache tags.
Operation VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON versionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON versionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or VersionGetResponseRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type VersionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck struct {
// An expression that selects the password used in the credentials check.
PasswordExpression string `json:"password_expression" api:"required"`
// An expression that selects the user ID used in the credentials check.
UsernameExpression string `json:"username_expression" api:"required"`
JSON versionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*VersionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsSetCacheTagsRuleRatelimit ¶
type VersionGetResponseRulesRulesetsSetCacheTagsRuleRatelimit struct {
// Characteristics of the request on which the rate limit counter will be
// incremented.
Characteristics []string `json:"characteristics" api:"required"`
// Period in seconds over which the counter is being incremented.
Period int64 `json:"period" api:"required"`
// An expression that defines when the rate limit counter should be incremented. It
// defaults to the same as the rule's expression.
CountingExpression string `json:"counting_expression"`
// Period of time in seconds after which the action will be disabled following its
// first execution.
MitigationTimeout int64 `json:"mitigation_timeout"`
// The threshold of requests per period after which the action will be executed for
// the first time.
RequestsPerPeriod int64 `json:"requests_per_period"`
// Whether counting is only performed when an origin is reached.
RequestsToOrigin bool `json:"requests_to_origin"`
// The score threshold per period for which the action will be executed the first
// time.
ScorePerPeriod int64 `json:"score_per_period"`
// A response header name provided by the origin, which contains the score to
// increment rate limit counter with.
ScoreResponseHeaderName string `json:"score_response_header_name"`
JSON versionGetResponseRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*VersionGetResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶
func (r *VersionGetResponseRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesUnion ¶
type VersionGetResponseRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, VersionGetResponseRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, VersionGetResponseRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, VersionGetResponseRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, VersionGetResponseRulesRulesetsSetCacheTagsRule, SetConfigRule or SkipRule.
type VersionListParams ¶
type VersionListResponse ¶
type VersionListResponse struct {
// The unique ID of the ruleset.
ID string `json:"id" api:"required"`
// The kind of the ruleset.
Kind Kind `json:"kind" api:"required"`
// The timestamp of when the ruleset was last modified.
LastUpdated time.Time `json:"last_updated" api:"required" format:"date-time"`
// The human-readable name of the ruleset.
Name string `json:"name" api:"required"`
// The phase of the ruleset.
Phase Phase `json:"phase" api:"required"`
// The version of the ruleset.
Version string `json:"version" api:"required"`
// An informative description of the ruleset.
Description string `json:"description"`
JSON versionListResponseJSON `json:"-"`
}
A ruleset object.
func (*VersionListResponse) UnmarshalJSON ¶
func (r *VersionListResponse) UnmarshalJSON(data []byte) (err error)
type VersionService ¶
type VersionService struct {
Options []option.RequestOption
}
VersionService 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 NewVersionService method instead.
func NewVersionService ¶
func NewVersionService(opts ...option.RequestOption) (r *VersionService)
NewVersionService 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 (*VersionService) Delete ¶
func (r *VersionService) Delete(ctx context.Context, rulesetID string, rulesetVersion string, body VersionDeleteParams, opts ...option.RequestOption) (err error)
Deletes an existing version of an account or zone ruleset.
func (*VersionService) Get ¶
func (r *VersionService) Get(ctx context.Context, rulesetID string, rulesetVersion string, query VersionGetParams, opts ...option.RequestOption) (res *VersionGetResponse, err error)
Fetches a specific version of an account or zone ruleset.
func (*VersionService) List ¶
func (r *VersionService) List(ctx context.Context, rulesetID string, query VersionListParams, opts ...option.RequestOption) (res *pagination.SinglePage[VersionListResponse], err error)
Fetches the versions of an account or zone ruleset.
func (*VersionService) ListAutoPaging ¶
func (r *VersionService) ListAutoPaging(ctx context.Context, rulesetID string, query VersionListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[VersionListResponse]
Fetches the versions of an account or zone ruleset.