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 PhaseGetResponseRulesRulesetsTransformResponseHTMLRule
- type PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleAction
- type PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters
- type PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck
- type PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit
- 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 PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRule
- type PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleAction
- type PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionParameters
- type PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck
- type PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleRatelimit
- type PhaseUpdateResponseEnvelope
- type PhaseUpdateResponseEnvelopeErrors
- type PhaseUpdateResponseEnvelopeErrorsSource
- type PhaseUpdateResponseEnvelopeMessages
- type PhaseUpdateResponseEnvelopeMessagesSource
- type PhaseUpdateResponseEnvelopeResult
- type PhaseUpdateResponseEnvelopeResultRules
- type PhaseUpdateResponseEnvelopeResultRulesAction
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRule
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleAction
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRule
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRule
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRule
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck
- type PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit
- type PhaseUpdateResponseEnvelopeResultRulesUnion
- type PhaseUpdateResponseEnvelopeSuccess
- 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 PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRule
- type PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleAction
- type PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters
- type PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck
- type PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit
- 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 RuleDeleteResponseEnvelope
- type RuleDeleteResponseEnvelopeErrors
- type RuleDeleteResponseEnvelopeErrorsSource
- type RuleDeleteResponseEnvelopeMessages
- type RuleDeleteResponseEnvelopeMessagesSource
- type RuleDeleteResponseEnvelopeResult
- type RuleDeleteResponseEnvelopeResultRules
- type RuleDeleteResponseEnvelopeResultRulesAction
- type RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRule
- type RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleAction
- type RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck
- type RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit
- type RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRule
- type RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction
- type RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRule
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRule
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit
- type RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule
- type RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction
- type RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters
- type RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck
- type RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit
- type RuleDeleteResponseEnvelopeResultRulesUnion
- type RuleDeleteResponseEnvelopeSuccess
- 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 RuleEditParamsBodyTransformResponseHTMLRule
- type RuleEditParamsBodyTransformResponseHTMLRuleAction
- type RuleEditParamsBodyTransformResponseHTMLRuleActionParameters
- type RuleEditParamsBodyTransformResponseHTMLRuleExposedCredentialCheck
- type RuleEditParamsBodyTransformResponseHTMLRulePosition
- type RuleEditParamsBodyTransformResponseHTMLRulePositionAfterPosition
- type RuleEditParamsBodyTransformResponseHTMLRulePositionBeforePosition
- type RuleEditParamsBodyTransformResponseHTMLRulePositionIndexPosition
- type RuleEditParamsBodyTransformResponseHTMLRulePositionUnion
- type RuleEditParamsBodyTransformResponseHTMLRuleRatelimit
- type RuleEditParamsBodyUnion
- type RuleEditResponseEnvelope
- type RuleEditResponseEnvelopeErrors
- type RuleEditResponseEnvelopeErrorsSource
- type RuleEditResponseEnvelopeMessages
- type RuleEditResponseEnvelopeMessagesSource
- type RuleEditResponseEnvelopeResult
- type RuleEditResponseEnvelopeResultRules
- type RuleEditResponseEnvelopeResultRulesAction
- type RuleEditResponseEnvelopeResultRulesRulesetsChallengeRule
- type RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleAction
- type RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck
- type RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit
- type RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRule
- type RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction
- type RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRule
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRule
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit
- type RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule
- type RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction
- type RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters
- type RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck
- type RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit
- type RuleEditResponseEnvelopeResultRulesUnion
- type RuleEditResponseEnvelopeSuccess
- 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 RuleNewParamsBodyTransformResponseHTMLRule
- type RuleNewParamsBodyTransformResponseHTMLRuleAction
- type RuleNewParamsBodyTransformResponseHTMLRuleActionParameters
- type RuleNewParamsBodyTransformResponseHTMLRuleExposedCredentialCheck
- type RuleNewParamsBodyTransformResponseHTMLRulePosition
- type RuleNewParamsBodyTransformResponseHTMLRulePositionAfterPosition
- type RuleNewParamsBodyTransformResponseHTMLRulePositionBeforePosition
- type RuleNewParamsBodyTransformResponseHTMLRulePositionIndexPosition
- type RuleNewParamsBodyTransformResponseHTMLRulePositionUnion
- type RuleNewParamsBodyTransformResponseHTMLRuleRatelimit
- type RuleNewParamsBodyUnion
- type RuleNewResponseEnvelope
- type RuleNewResponseEnvelopeErrors
- type RuleNewResponseEnvelopeErrorsSource
- type RuleNewResponseEnvelopeMessages
- type RuleNewResponseEnvelopeMessagesSource
- type RuleNewResponseEnvelopeResult
- type RuleNewResponseEnvelopeResultRules
- type RuleNewResponseEnvelopeResultRulesAction
- type RuleNewResponseEnvelopeResultRulesRulesetsChallengeRule
- type RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleAction
- type RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck
- type RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit
- type RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRule
- type RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction
- type RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRule
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRule
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit
- type RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule
- type RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction
- type RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters
- type RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck
- type RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit
- type RuleNewResponseEnvelopeResultRulesUnion
- type RuleNewResponseEnvelopeSuccess
- type RuleService
- func (r *RuleService) Delete(ctx context.Context, rulesetID string, ruleID string, params RuleDeleteParams, ...) (res *RuleDeleteResponseEnvelopeResult, err error)
- func (r *RuleService) Edit(ctx context.Context, rulesetID string, ruleID string, params RuleEditParams, ...) (res *RuleEditResponseEnvelopeResult, err error)
- func (r *RuleService) New(ctx context.Context, rulesetID string, params RuleNewParams, ...) (res *RuleNewResponseEnvelopeResult, 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 RulesetGetResponseRulesRulesetsTransformResponseHTMLRule
- type RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleAction
- type RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters
- type RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck
- type RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit
- 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 RulesetNewParamsRulesRulesetsTransformResponseHTMLRule
- type RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleAction
- type RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleActionParameters
- type RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck
- type RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleRatelimit
- type RulesetNewResponseEnvelope
- type RulesetNewResponseEnvelopeErrors
- type RulesetNewResponseEnvelopeErrorsSource
- type RulesetNewResponseEnvelopeMessages
- type RulesetNewResponseEnvelopeMessagesSource
- type RulesetNewResponseEnvelopeResult
- type RulesetNewResponseEnvelopeResultRules
- type RulesetNewResponseEnvelopeResultRulesAction
- type RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRule
- type RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleAction
- type RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck
- type RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit
- type RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRule
- type RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction
- type RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRule
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRule
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit
- type RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule
- type RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction
- type RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters
- type RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck
- type RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit
- type RulesetNewResponseEnvelopeResultRulesUnion
- type RulesetNewResponseEnvelopeSuccess
- type RulesetService
- func (r *RulesetService) Delete(ctx context.Context, rulesetID string, params 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 *RulesetNewResponseEnvelopeResult, err error)
- func (r *RulesetService) Update(ctx context.Context, rulesetID string, params RulesetUpdateParams, ...) (res *RulesetUpdateResponseEnvelopeResult, 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 RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRule
- type RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleAction
- type RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionParameters
- type RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck
- type RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleRatelimit
- type RulesetUpdateResponseEnvelope
- type RulesetUpdateResponseEnvelopeErrors
- type RulesetUpdateResponseEnvelopeErrorsSource
- type RulesetUpdateResponseEnvelopeMessages
- type RulesetUpdateResponseEnvelopeMessagesSource
- type RulesetUpdateResponseEnvelopeResult
- type RulesetUpdateResponseEnvelopeResultRules
- type RulesetUpdateResponseEnvelopeResultRulesAction
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRule
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleAction
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRule
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRule
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRule
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck
- type RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit
- type RulesetUpdateResponseEnvelopeResultRulesUnion
- type RulesetUpdateResponseEnvelopeSuccess
- 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 SetCacheSettingsRuleActionParametersOriginRangeRequests
- type SetCacheSettingsRuleActionParametersOriginRangeRequestsMode
- type SetCacheSettingsRuleActionParametersOriginRangeRequestsParam
- type SetCacheSettingsRuleActionParametersParam
- type SetCacheSettingsRuleActionParametersServeStale
- type SetCacheSettingsRuleActionParametersServeStaleParam
- type SetCacheSettingsRuleActionParametersSharedDictionary
- type SetCacheSettingsRuleActionParametersSharedDictionaryParam
- type SetCacheSettingsRuleActionParametersVary
- type SetCacheSettingsRuleActionParametersVaryDefault
- type SetCacheSettingsRuleActionParametersVaryDefaultAction
- type SetCacheSettingsRuleActionParametersVaryDefaultParam
- type SetCacheSettingsRuleActionParametersVaryHeader
- type SetCacheSettingsRuleActionParametersVaryHeaderParam
- type SetCacheSettingsRuleActionParametersVaryHeadersAction
- type SetCacheSettingsRuleActionParametersVaryParam
- 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 VersionGetResponseRulesRulesetsTransformResponseHTMLRule
- type VersionGetResponseRulesRulesetsTransformResponseHTMLRuleAction
- type VersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters
- type VersionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck
- type VersionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit
- 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],
// [PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters].
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],
// [PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck].
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],
// [PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit].
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, PhaseGetResponseRulesRulesetsTransformResponseHTMLRule.
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" PhaseGetResponseRulesActionTransformResponseHTML PhaseGetResponseRulesAction = "transform_response_html" )
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 PhaseGetResponseRulesRulesetsTransformResponseHTMLRule ¶ added in v7.7.0
type PhaseGetResponseRulesRulesetsTransformResponseHTMLRule 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 PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters `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 PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck `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 PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseGetResponseRulesRulesetsTransformResponseHTMLRuleJSON `json:"-"`
}
func (*PhaseGetResponseRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON ¶ added in v7.7.0
func (r *PhaseGetResponseRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleAction ¶ added in v7.7.0
type PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleAction string
The action to perform when the rule matches.
const (
PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleActionTransformResponseHTML PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleAction = "transform_response_html"
)
func (PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleAction) IsKnown ¶ added in v7.7.0
func (r PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleAction) IsKnown() bool
type PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters ¶ added in v7.7.0
type PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters struct {
// Enables the link maze transformation on the response.
LinkMaze interface{} `json:"link_maze" api:"required"`
JSON phaseGetResponseRulesRulesetsTransformResponseHTMLRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON ¶ added in v7.7.0
func (r *PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck ¶ added in v7.7.0
type PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck 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 phaseGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.7.0
func (r *PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit ¶ added in v7.7.0
type PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit 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 phaseGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON ¶ added in v7.7.0
func (r *PhaseGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit) 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, SkipRule or PhaseGetResponseRulesRulesetsTransformResponseHTMLRule.
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 *PhaseUpdateResponseEnvelopeResult, 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"`
// Validates the request without persisting changes when set to `true`. Responses
// that normally return 200 return `result: null`; endpoints that normally return
// 204 continue to return 204.
DryRun param.Field[bool] `query:"dry_run"`
// 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)
func (PhaseUpdateParams) URLQuery ¶ added in v7.9.0
func (r PhaseUpdateParams) URLQuery() (v url.Values)
URLQuery serializes PhaseUpdateParams's query parameters as `url.Values`.
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, rulesets.PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRule, 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" PhaseUpdateParamsRulesActionTransformResponseHTML PhaseUpdateParamsRulesAction = "transform_response_html" )
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 PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRule ¶ added in v7.7.0
type PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionParameters] `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[PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck] `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[PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRule) MarshalJSON ¶ added in v7.7.0
func (r PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRule) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleAction ¶ added in v7.7.0
type PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleAction string
The action to perform when the rule matches.
const (
PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionTransformResponseHTML PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleAction = "transform_response_html"
)
func (PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleAction) IsKnown ¶ added in v7.7.0
func (r PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleAction) IsKnown() bool
type PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionParameters ¶ added in v7.7.0
type PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionParameters struct {
// Enables the link maze transformation on the response.
LinkMaze param.Field[interface{}] `json:"link_maze" api:"required"`
}
The parameters configuring the rule's action.
func (PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionParameters) MarshalJSON ¶ added in v7.7.0
func (r PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionParameters) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck ¶ added in v7.7.0
type PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck 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 (PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) MarshalJSON ¶ added in v7.7.0
func (r PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleRatelimit ¶ added in v7.7.0
type PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleRatelimit 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 (PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleRatelimit) MarshalJSON ¶ added in v7.7.0
func (r PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleRatelimit) MarshalJSON() (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 result.
Result PhaseUpdateResponseEnvelopeResult `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 PhaseUpdateResponseEnvelopeResult ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResult 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 []PhaseUpdateResponseEnvelopeResultRules `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 phaseUpdateResponseEnvelopeResultJSON `json:"-"`
}
A ruleset object.
func (*PhaseUpdateResponseEnvelopeResult) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResult) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRules ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRules 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 PhaseUpdateResponseEnvelopeResultRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters],
// [PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters].
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],
// [PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck],
// [PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck].
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],
// [PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit],
// [LogRuleRatelimit], [LogCustomFieldRuleRatelimit],
// [ManagedChallengeRuleRatelimit], [RedirectRuleRatelimit],
// [RewriteRuleRatelimit], [RouteRuleRatelimit], [ScoreRuleRatelimit],
// [ServeErrorRuleRatelimit],
// [PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit],
// [PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseUpdateResponseEnvelopeResultRulesJSON `json:"-"`
// contains filtered or unexported fields
}
func (PhaseUpdateResponseEnvelopeResultRules) AsUnion ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRules) AsUnion() PhaseUpdateResponseEnvelopeResultRulesUnion
AsUnion returns a PhaseUpdateResponseEnvelopeResultRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule, PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule.
func (*PhaseUpdateResponseEnvelopeResultRules) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRules) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesAction ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesAction string
The action to perform when the rule matches.
const ( PhaseUpdateResponseEnvelopeResultRulesActionBlock PhaseUpdateResponseEnvelopeResultRulesAction = "block" PhaseUpdateResponseEnvelopeResultRulesActionChallenge PhaseUpdateResponseEnvelopeResultRulesAction = "challenge" PhaseUpdateResponseEnvelopeResultRulesActionCompressResponse PhaseUpdateResponseEnvelopeResultRulesAction = "compress_response" PhaseUpdateResponseEnvelopeResultRulesActionDDoSDynamic PhaseUpdateResponseEnvelopeResultRulesAction = "ddos_dynamic" PhaseUpdateResponseEnvelopeResultRulesActionExecute PhaseUpdateResponseEnvelopeResultRulesAction = "execute" PhaseUpdateResponseEnvelopeResultRulesActionForceConnectionClose PhaseUpdateResponseEnvelopeResultRulesAction = "force_connection_close" PhaseUpdateResponseEnvelopeResultRulesActionJSChallenge PhaseUpdateResponseEnvelopeResultRulesAction = "js_challenge" PhaseUpdateResponseEnvelopeResultRulesActionLog PhaseUpdateResponseEnvelopeResultRulesAction = "log" PhaseUpdateResponseEnvelopeResultRulesActionLogCustomField PhaseUpdateResponseEnvelopeResultRulesAction = "log_custom_field" PhaseUpdateResponseEnvelopeResultRulesActionManagedChallenge PhaseUpdateResponseEnvelopeResultRulesAction = "managed_challenge" PhaseUpdateResponseEnvelopeResultRulesActionRedirect PhaseUpdateResponseEnvelopeResultRulesAction = "redirect" PhaseUpdateResponseEnvelopeResultRulesActionRewrite PhaseUpdateResponseEnvelopeResultRulesAction = "rewrite" PhaseUpdateResponseEnvelopeResultRulesActionRoute PhaseUpdateResponseEnvelopeResultRulesAction = "route" PhaseUpdateResponseEnvelopeResultRulesActionScore PhaseUpdateResponseEnvelopeResultRulesAction = "score" PhaseUpdateResponseEnvelopeResultRulesActionServeError PhaseUpdateResponseEnvelopeResultRulesAction = "serve_error" PhaseUpdateResponseEnvelopeResultRulesActionSetCacheControl PhaseUpdateResponseEnvelopeResultRulesAction = "set_cache_control" PhaseUpdateResponseEnvelopeResultRulesActionSetCacheSettings PhaseUpdateResponseEnvelopeResultRulesAction = "set_cache_settings" PhaseUpdateResponseEnvelopeResultRulesActionSetCacheTags PhaseUpdateResponseEnvelopeResultRulesAction = "set_cache_tags" PhaseUpdateResponseEnvelopeResultRulesActionSetConfig PhaseUpdateResponseEnvelopeResultRulesAction = "set_config" PhaseUpdateResponseEnvelopeResultRulesActionSkip PhaseUpdateResponseEnvelopeResultRulesAction = "skip" PhaseUpdateResponseEnvelopeResultRulesActionTransformResponseHTML PhaseUpdateResponseEnvelopeResultRulesAction = "transform_response_html" )
func (PhaseUpdateResponseEnvelopeResultRulesAction) IsKnown ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesAction) IsKnown() bool
type PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRule ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRule 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 PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleAction `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 PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck `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 PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRule) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleAction ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleActionChallenge PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleAction = "challenge"
)
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleAction) IsKnown ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleAction) IsKnown() bool
type PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck 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 phaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit 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 phaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRule ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRule 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 PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction `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 PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck `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 PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRule) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleActionJSChallenge PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction) IsKnown ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck 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 phaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit 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 phaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRule ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRule 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 PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters `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 PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck `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 PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionSetCacheControl PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction) IsKnown ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck 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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit 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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRule ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRule 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 PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters `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 PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `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 PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionSetCacheTags PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation `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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶ added in v7.9.0
func (r PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression 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 PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression 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 PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression 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 PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck 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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit 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 phaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule 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 PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters `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 PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck `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 PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleJSON `json:"-"`
}
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction string
The action to perform when the rule matches.
const (
PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionTransformResponseHTML PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction = "transform_response_html"
)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters struct {
// Enables the link maze transformation on the response.
LinkMaze interface{} `json:"link_maze" api:"required"`
JSON phaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck 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 phaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit 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 phaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type PhaseUpdateResponseEnvelopeResultRulesUnion ¶ added in v7.9.0
type PhaseUpdateResponseEnvelopeResultRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, PhaseUpdateResponseEnvelopeResultRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, PhaseUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, PhaseUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule or PhaseUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule.
type PhaseUpdateResponseEnvelopeSuccess ¶
type PhaseUpdateResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
PhaseUpdateResponseEnvelopeSuccessTrue PhaseUpdateResponseEnvelopeSuccess = true
)
func (PhaseUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r PhaseUpdateResponseEnvelopeSuccess) IsKnown() bool
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],
// [PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters].
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],
// [PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck].
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],
// [PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit].
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, PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRule.
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" PhaseVersionGetResponseRulesActionTransformResponseHTML PhaseVersionGetResponseRulesAction = "transform_response_html" )
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 PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRule ¶ added in v7.7.0
type PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRule 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 PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters `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 PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck `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 PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON phaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleJSON `json:"-"`
}
func (*PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON ¶ added in v7.7.0
func (r *PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleAction ¶ added in v7.7.0
type PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleAction string
The action to perform when the rule matches.
const (
PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionTransformResponseHTML PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleAction = "transform_response_html"
)
func (PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleAction) IsKnown ¶ added in v7.7.0
func (r PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleAction) IsKnown() bool
type PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters ¶ added in v7.7.0
type PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters struct {
// Enables the link maze transformation on the response.
LinkMaze interface{} `json:"link_maze" api:"required"`
JSON phaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON ¶ added in v7.7.0
func (r *PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck ¶ added in v7.7.0
type PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck 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 phaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.7.0
func (r *PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit ¶ added in v7.7.0
type PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit 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 phaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON ¶ added in v7.7.0
func (r *PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit) 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, SkipRule or PhaseVersionGetResponseRulesRulesetsTransformResponseHTMLRule.
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 RuleDeleteParams 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"`
// Validates the request without persisting changes when set to `true`. Responses
// that normally return 200 return `result: null`; endpoints that normally return
// 204 continue to return 204.
DryRun param.Field[bool] `query:"dry_run"`
}
func (RuleDeleteParams) URLQuery ¶ added in v7.9.0
func (r RuleDeleteParams) URLQuery() (v url.Values)
URLQuery serializes RuleDeleteParams's query parameters as `url.Values`.
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 result.
Result RuleDeleteResponseEnvelopeResult `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 RuleDeleteResponseEnvelopeResult ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResult 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 []RuleDeleteResponseEnvelopeResultRules `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 ruleDeleteResponseEnvelopeResultJSON `json:"-"`
}
A ruleset object.
func (*RuleDeleteResponseEnvelopeResult) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResult) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRules ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRules 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 RuleDeleteResponseEnvelopeResultRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters],
// [RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters].
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],
// [RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck],
// [RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck].
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],
// [RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit],
// [LogRuleRatelimit], [LogCustomFieldRuleRatelimit],
// [ManagedChallengeRuleRatelimit], [RedirectRuleRatelimit],
// [RewriteRuleRatelimit], [RouteRuleRatelimit], [ScoreRuleRatelimit],
// [ServeErrorRuleRatelimit],
// [RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit],
// [RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleDeleteResponseEnvelopeResultRulesJSON `json:"-"`
// contains filtered or unexported fields
}
func (RuleDeleteResponseEnvelopeResultRules) AsUnion ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRules) AsUnion() RuleDeleteResponseEnvelopeResultRulesUnion
AsUnion returns a RuleDeleteResponseEnvelopeResultRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule, RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule.
func (*RuleDeleteResponseEnvelopeResultRules) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRules) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesAction ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesAction string
The action to perform when the rule matches.
const ( RuleDeleteResponseEnvelopeResultRulesActionBlock RuleDeleteResponseEnvelopeResultRulesAction = "block" RuleDeleteResponseEnvelopeResultRulesActionChallenge RuleDeleteResponseEnvelopeResultRulesAction = "challenge" RuleDeleteResponseEnvelopeResultRulesActionCompressResponse RuleDeleteResponseEnvelopeResultRulesAction = "compress_response" RuleDeleteResponseEnvelopeResultRulesActionDDoSDynamic RuleDeleteResponseEnvelopeResultRulesAction = "ddos_dynamic" RuleDeleteResponseEnvelopeResultRulesActionExecute RuleDeleteResponseEnvelopeResultRulesAction = "execute" RuleDeleteResponseEnvelopeResultRulesActionForceConnectionClose RuleDeleteResponseEnvelopeResultRulesAction = "force_connection_close" RuleDeleteResponseEnvelopeResultRulesActionJSChallenge RuleDeleteResponseEnvelopeResultRulesAction = "js_challenge" RuleDeleteResponseEnvelopeResultRulesActionLog RuleDeleteResponseEnvelopeResultRulesAction = "log" RuleDeleteResponseEnvelopeResultRulesActionLogCustomField RuleDeleteResponseEnvelopeResultRulesAction = "log_custom_field" RuleDeleteResponseEnvelopeResultRulesActionManagedChallenge RuleDeleteResponseEnvelopeResultRulesAction = "managed_challenge" RuleDeleteResponseEnvelopeResultRulesActionRedirect RuleDeleteResponseEnvelopeResultRulesAction = "redirect" RuleDeleteResponseEnvelopeResultRulesActionRewrite RuleDeleteResponseEnvelopeResultRulesAction = "rewrite" RuleDeleteResponseEnvelopeResultRulesActionRoute RuleDeleteResponseEnvelopeResultRulesAction = "route" RuleDeleteResponseEnvelopeResultRulesActionScore RuleDeleteResponseEnvelopeResultRulesAction = "score" RuleDeleteResponseEnvelopeResultRulesActionServeError RuleDeleteResponseEnvelopeResultRulesAction = "serve_error" RuleDeleteResponseEnvelopeResultRulesActionSetCacheControl RuleDeleteResponseEnvelopeResultRulesAction = "set_cache_control" RuleDeleteResponseEnvelopeResultRulesActionSetCacheSettings RuleDeleteResponseEnvelopeResultRulesAction = "set_cache_settings" RuleDeleteResponseEnvelopeResultRulesActionSetCacheTags RuleDeleteResponseEnvelopeResultRulesAction = "set_cache_tags" RuleDeleteResponseEnvelopeResultRulesActionSetConfig RuleDeleteResponseEnvelopeResultRulesAction = "set_config" RuleDeleteResponseEnvelopeResultRulesActionSkip RuleDeleteResponseEnvelopeResultRulesAction = "skip" RuleDeleteResponseEnvelopeResultRulesActionTransformResponseHTML RuleDeleteResponseEnvelopeResultRulesAction = "transform_response_html" )
func (RuleDeleteResponseEnvelopeResultRulesAction) IsKnown ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesAction) IsKnown() bool
type RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRule ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRule 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 RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleAction `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 RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck `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 RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleAction ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleActionChallenge RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleAction = "challenge"
)
func (RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleAction) IsKnown ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleAction) IsKnown() bool
type RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck 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 ruleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit 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 ruleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRule ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRule 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 RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction `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 RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck `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 RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleActionJSChallenge RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction) IsKnown ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck 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 ruleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit 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 ruleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRule ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRule 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 RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters `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 RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck `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 RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionSetCacheControl RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction) IsKnown ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck 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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit 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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRule ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRule 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 RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters `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 RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `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 RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionSetCacheTags RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation `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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression 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 RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression 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 RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression 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 RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck 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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit 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 ruleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule 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 RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters `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 RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck `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 RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleJSON `json:"-"`
}
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction string
The action to perform when the rule matches.
const (
RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionTransformResponseHTML RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction = "transform_response_html"
)
func (RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction) IsKnown ¶ added in v7.9.0
func (r RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction) IsKnown() bool
type RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters struct {
// Enables the link maze transformation on the response.
LinkMaze interface{} `json:"link_maze" api:"required"`
JSON ruleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck 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 ruleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit 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 ruleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleDeleteResponseEnvelopeResultRulesUnion ¶ added in v7.9.0
type RuleDeleteResponseEnvelopeResultRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, RuleDeleteResponseEnvelopeResultRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RuleDeleteResponseEnvelopeResultRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RuleDeleteResponseEnvelopeResultRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule or RuleDeleteResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule.
type RuleDeleteResponseEnvelopeSuccess ¶
type RuleDeleteResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
RuleDeleteResponseEnvelopeSuccessTrue RuleDeleteResponseEnvelopeSuccess = true
)
func (RuleDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r RuleDeleteResponseEnvelopeSuccess) IsKnown() bool
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"`
// Validates the request without persisting changes when set to `true`. Responses
// that normally return 200 return `result: null`; endpoints that normally return
// 204 continue to return 204.
DryRun param.Field[bool] `query:"dry_run"`
}
func (RuleEditParams) MarshalJSON ¶
func (r RuleEditParams) MarshalJSON() (data []byte, err error)
func (RuleEditParams) URLQuery ¶ added in v7.9.0
func (r RuleEditParams) URLQuery() (v url.Values)
URLQuery serializes RuleEditParams's query parameters as `url.Values`.
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" RuleEditParamsBodyActionTransformResponseHTML RuleEditParamsBodyAction = "transform_response_html" )
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 RuleEditParamsBodyTransformResponseHTMLRule ¶ added in v7.7.0
type RuleEditParamsBodyTransformResponseHTMLRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RuleEditParamsBodyTransformResponseHTMLRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[RuleEditParamsBodyTransformResponseHTMLRuleActionParameters] `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[RuleEditParamsBodyTransformResponseHTMLRuleExposedCredentialCheck] `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[RuleEditParamsBodyTransformResponseHTMLRulePositionUnion] `json:"position"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RuleEditParamsBodyTransformResponseHTMLRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RuleEditParamsBodyTransformResponseHTMLRule) MarshalJSON ¶ added in v7.7.0
func (r RuleEditParamsBodyTransformResponseHTMLRule) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyTransformResponseHTMLRuleAction ¶ added in v7.7.0
type RuleEditParamsBodyTransformResponseHTMLRuleAction string
The action to perform when the rule matches.
const (
RuleEditParamsBodyTransformResponseHTMLRuleActionTransformResponseHTML RuleEditParamsBodyTransformResponseHTMLRuleAction = "transform_response_html"
)
func (RuleEditParamsBodyTransformResponseHTMLRuleAction) IsKnown ¶ added in v7.7.0
func (r RuleEditParamsBodyTransformResponseHTMLRuleAction) IsKnown() bool
type RuleEditParamsBodyTransformResponseHTMLRuleActionParameters ¶ added in v7.7.0
type RuleEditParamsBodyTransformResponseHTMLRuleActionParameters struct {
// Enables the link maze transformation on the response.
LinkMaze param.Field[interface{}] `json:"link_maze" api:"required"`
}
The parameters configuring the rule's action.
func (RuleEditParamsBodyTransformResponseHTMLRuleActionParameters) MarshalJSON ¶ added in v7.7.0
func (r RuleEditParamsBodyTransformResponseHTMLRuleActionParameters) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyTransformResponseHTMLRuleExposedCredentialCheck ¶ added in v7.7.0
type RuleEditParamsBodyTransformResponseHTMLRuleExposedCredentialCheck 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 (RuleEditParamsBodyTransformResponseHTMLRuleExposedCredentialCheck) MarshalJSON ¶ added in v7.7.0
func (r RuleEditParamsBodyTransformResponseHTMLRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyTransformResponseHTMLRulePosition ¶ added in v7.7.0
type RuleEditParamsBodyTransformResponseHTMLRulePosition 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 (RuleEditParamsBodyTransformResponseHTMLRulePosition) MarshalJSON ¶ added in v7.7.0
func (r RuleEditParamsBodyTransformResponseHTMLRulePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyTransformResponseHTMLRulePositionAfterPosition ¶ added in v7.7.0
type RuleEditParamsBodyTransformResponseHTMLRulePositionAfterPosition 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 (RuleEditParamsBodyTransformResponseHTMLRulePositionAfterPosition) MarshalJSON ¶ added in v7.7.0
func (r RuleEditParamsBodyTransformResponseHTMLRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyTransformResponseHTMLRulePositionBeforePosition ¶ added in v7.7.0
type RuleEditParamsBodyTransformResponseHTMLRulePositionBeforePosition 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 (RuleEditParamsBodyTransformResponseHTMLRulePositionBeforePosition) MarshalJSON ¶ added in v7.7.0
func (r RuleEditParamsBodyTransformResponseHTMLRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyTransformResponseHTMLRulePositionIndexPosition ¶ added in v7.7.0
type RuleEditParamsBodyTransformResponseHTMLRulePositionIndexPosition 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 (RuleEditParamsBodyTransformResponseHTMLRulePositionIndexPosition) MarshalJSON ¶ added in v7.7.0
func (r RuleEditParamsBodyTransformResponseHTMLRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleEditParamsBodyTransformResponseHTMLRulePositionUnion ¶ added in v7.7.0
type RuleEditParamsBodyTransformResponseHTMLRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleEditParamsBodyTransformResponseHTMLRulePositionBeforePosition, rulesets.RuleEditParamsBodyTransformResponseHTMLRulePositionAfterPosition, rulesets.RuleEditParamsBodyTransformResponseHTMLRulePositionIndexPosition, RuleEditParamsBodyTransformResponseHTMLRulePosition.
type RuleEditParamsBodyTransformResponseHTMLRuleRatelimit ¶ added in v7.7.0
type RuleEditParamsBodyTransformResponseHTMLRuleRatelimit 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 (RuleEditParamsBodyTransformResponseHTMLRuleRatelimit) MarshalJSON ¶ added in v7.7.0
func (r RuleEditParamsBodyTransformResponseHTMLRuleRatelimit) MarshalJSON() (data []byte, err error)
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, rulesets.RuleEditParamsBodyTransformResponseHTMLRule, RuleEditParamsBody.
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 result.
Result RuleEditResponseEnvelopeResult `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 RuleEditResponseEnvelopeResult ¶ added in v7.9.0
type RuleEditResponseEnvelopeResult 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 []RuleEditResponseEnvelopeResultRules `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 ruleEditResponseEnvelopeResultJSON `json:"-"`
}
A ruleset object.
func (*RuleEditResponseEnvelopeResult) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResult) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRules ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRules 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 RuleEditResponseEnvelopeResultRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters],
// [RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters].
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],
// [RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck],
// [RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck].
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],
// [RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit],
// [LogRuleRatelimit], [LogCustomFieldRuleRatelimit],
// [ManagedChallengeRuleRatelimit], [RedirectRuleRatelimit],
// [RewriteRuleRatelimit], [RouteRuleRatelimit], [ScoreRuleRatelimit],
// [ServeErrorRuleRatelimit],
// [RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit],
// [RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleEditResponseEnvelopeResultRulesJSON `json:"-"`
// contains filtered or unexported fields
}
func (RuleEditResponseEnvelopeResultRules) AsUnion ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRules) AsUnion() RuleEditResponseEnvelopeResultRulesUnion
AsUnion returns a RuleEditResponseEnvelopeResultRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, RuleEditResponseEnvelopeResultRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule, RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule.
func (*RuleEditResponseEnvelopeResultRules) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRules) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesAction ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesAction string
The action to perform when the rule matches.
const ( RuleEditResponseEnvelopeResultRulesActionBlock RuleEditResponseEnvelopeResultRulesAction = "block" RuleEditResponseEnvelopeResultRulesActionChallenge RuleEditResponseEnvelopeResultRulesAction = "challenge" RuleEditResponseEnvelopeResultRulesActionCompressResponse RuleEditResponseEnvelopeResultRulesAction = "compress_response" RuleEditResponseEnvelopeResultRulesActionDDoSDynamic RuleEditResponseEnvelopeResultRulesAction = "ddos_dynamic" RuleEditResponseEnvelopeResultRulesActionExecute RuleEditResponseEnvelopeResultRulesAction = "execute" RuleEditResponseEnvelopeResultRulesActionForceConnectionClose RuleEditResponseEnvelopeResultRulesAction = "force_connection_close" RuleEditResponseEnvelopeResultRulesActionJSChallenge RuleEditResponseEnvelopeResultRulesAction = "js_challenge" RuleEditResponseEnvelopeResultRulesActionLog RuleEditResponseEnvelopeResultRulesAction = "log" RuleEditResponseEnvelopeResultRulesActionLogCustomField RuleEditResponseEnvelopeResultRulesAction = "log_custom_field" RuleEditResponseEnvelopeResultRulesActionManagedChallenge RuleEditResponseEnvelopeResultRulesAction = "managed_challenge" RuleEditResponseEnvelopeResultRulesActionRedirect RuleEditResponseEnvelopeResultRulesAction = "redirect" RuleEditResponseEnvelopeResultRulesActionRewrite RuleEditResponseEnvelopeResultRulesAction = "rewrite" RuleEditResponseEnvelopeResultRulesActionRoute RuleEditResponseEnvelopeResultRulesAction = "route" RuleEditResponseEnvelopeResultRulesActionScore RuleEditResponseEnvelopeResultRulesAction = "score" RuleEditResponseEnvelopeResultRulesActionServeError RuleEditResponseEnvelopeResultRulesAction = "serve_error" RuleEditResponseEnvelopeResultRulesActionSetCacheControl RuleEditResponseEnvelopeResultRulesAction = "set_cache_control" RuleEditResponseEnvelopeResultRulesActionSetCacheSettings RuleEditResponseEnvelopeResultRulesAction = "set_cache_settings" RuleEditResponseEnvelopeResultRulesActionSetCacheTags RuleEditResponseEnvelopeResultRulesAction = "set_cache_tags" RuleEditResponseEnvelopeResultRulesActionSetConfig RuleEditResponseEnvelopeResultRulesAction = "set_config" RuleEditResponseEnvelopeResultRulesActionSkip RuleEditResponseEnvelopeResultRulesAction = "skip" RuleEditResponseEnvelopeResultRulesActionTransformResponseHTML RuleEditResponseEnvelopeResultRulesAction = "transform_response_html" )
func (RuleEditResponseEnvelopeResultRulesAction) IsKnown ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesAction) IsKnown() bool
type RuleEditResponseEnvelopeResultRulesRulesetsChallengeRule ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsChallengeRule 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 RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleAction `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 RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck `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 RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*RuleEditResponseEnvelopeResultRulesRulesetsChallengeRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleAction ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleActionChallenge RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleAction = "challenge"
)
func (RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleAction) IsKnown ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleAction) IsKnown() bool
type RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck 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 ruleEditResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit 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 ruleEditResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRule ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRule 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 RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction `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 RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck `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 RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleActionJSChallenge RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction) IsKnown ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck 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 ruleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit 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 ruleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRule ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRule 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 RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters `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 RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck `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 RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionSetCacheControl RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction) IsKnown ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck 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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit 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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRule ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRule 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 RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters `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 RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `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 RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionSetCacheTags RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation `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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression 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 RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression 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 RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression 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 RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck 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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit 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 ruleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule 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 RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters `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 RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck `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 RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleJSON `json:"-"`
}
func (*RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction string
The action to perform when the rule matches.
const (
RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionTransformResponseHTML RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction = "transform_response_html"
)
func (RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction) IsKnown ¶ added in v7.9.0
func (r RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction) IsKnown() bool
type RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters struct {
// Enables the link maze transformation on the response.
LinkMaze interface{} `json:"link_maze" api:"required"`
JSON ruleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck 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 ruleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit 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 ruleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleEditResponseEnvelopeResultRulesUnion ¶ added in v7.9.0
type RuleEditResponseEnvelopeResultRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, RuleEditResponseEnvelopeResultRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RuleEditResponseEnvelopeResultRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RuleEditResponseEnvelopeResultRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule or RuleEditResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule.
type RuleEditResponseEnvelopeSuccess ¶
type RuleEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
RuleEditResponseEnvelopeSuccessTrue RuleEditResponseEnvelopeSuccess = true
)
func (RuleEditResponseEnvelopeSuccess) IsKnown ¶
func (r RuleEditResponseEnvelopeSuccess) IsKnown() bool
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"`
// Validates the request without persisting changes when set to `true`. Responses
// that normally return 200 return `result: null`; endpoints that normally return
// 204 continue to return 204.
DryRun param.Field[bool] `query:"dry_run"`
}
func (RuleNewParams) MarshalJSON ¶
func (r RuleNewParams) MarshalJSON() (data []byte, err error)
func (RuleNewParams) URLQuery ¶ added in v7.9.0
func (r RuleNewParams) URLQuery() (v url.Values)
URLQuery serializes RuleNewParams's query parameters as `url.Values`.
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" RuleNewParamsBodyActionTransformResponseHTML RuleNewParamsBodyAction = "transform_response_html" )
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 RuleNewParamsBodyTransformResponseHTMLRule ¶ added in v7.7.0
type RuleNewParamsBodyTransformResponseHTMLRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RuleNewParamsBodyTransformResponseHTMLRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[RuleNewParamsBodyTransformResponseHTMLRuleActionParameters] `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[RuleNewParamsBodyTransformResponseHTMLRuleExposedCredentialCheck] `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[RuleNewParamsBodyTransformResponseHTMLRulePositionUnion] `json:"position"`
// An object configuring the rule's rate limit behavior.
Ratelimit param.Field[RuleNewParamsBodyTransformResponseHTMLRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RuleNewParamsBodyTransformResponseHTMLRule) MarshalJSON ¶ added in v7.7.0
func (r RuleNewParamsBodyTransformResponseHTMLRule) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyTransformResponseHTMLRuleAction ¶ added in v7.7.0
type RuleNewParamsBodyTransformResponseHTMLRuleAction string
The action to perform when the rule matches.
const (
RuleNewParamsBodyTransformResponseHTMLRuleActionTransformResponseHTML RuleNewParamsBodyTransformResponseHTMLRuleAction = "transform_response_html"
)
func (RuleNewParamsBodyTransformResponseHTMLRuleAction) IsKnown ¶ added in v7.7.0
func (r RuleNewParamsBodyTransformResponseHTMLRuleAction) IsKnown() bool
type RuleNewParamsBodyTransformResponseHTMLRuleActionParameters ¶ added in v7.7.0
type RuleNewParamsBodyTransformResponseHTMLRuleActionParameters struct {
// Enables the link maze transformation on the response.
LinkMaze param.Field[interface{}] `json:"link_maze" api:"required"`
}
The parameters configuring the rule's action.
func (RuleNewParamsBodyTransformResponseHTMLRuleActionParameters) MarshalJSON ¶ added in v7.7.0
func (r RuleNewParamsBodyTransformResponseHTMLRuleActionParameters) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyTransformResponseHTMLRuleExposedCredentialCheck ¶ added in v7.7.0
type RuleNewParamsBodyTransformResponseHTMLRuleExposedCredentialCheck 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 (RuleNewParamsBodyTransformResponseHTMLRuleExposedCredentialCheck) MarshalJSON ¶ added in v7.7.0
func (r RuleNewParamsBodyTransformResponseHTMLRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyTransformResponseHTMLRulePosition ¶ added in v7.7.0
type RuleNewParamsBodyTransformResponseHTMLRulePosition 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 (RuleNewParamsBodyTransformResponseHTMLRulePosition) MarshalJSON ¶ added in v7.7.0
func (r RuleNewParamsBodyTransformResponseHTMLRulePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyTransformResponseHTMLRulePositionAfterPosition ¶ added in v7.7.0
type RuleNewParamsBodyTransformResponseHTMLRulePositionAfterPosition 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 (RuleNewParamsBodyTransformResponseHTMLRulePositionAfterPosition) MarshalJSON ¶ added in v7.7.0
func (r RuleNewParamsBodyTransformResponseHTMLRulePositionAfterPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyTransformResponseHTMLRulePositionBeforePosition ¶ added in v7.7.0
type RuleNewParamsBodyTransformResponseHTMLRulePositionBeforePosition 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 (RuleNewParamsBodyTransformResponseHTMLRulePositionBeforePosition) MarshalJSON ¶ added in v7.7.0
func (r RuleNewParamsBodyTransformResponseHTMLRulePositionBeforePosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyTransformResponseHTMLRulePositionIndexPosition ¶ added in v7.7.0
type RuleNewParamsBodyTransformResponseHTMLRulePositionIndexPosition 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 (RuleNewParamsBodyTransformResponseHTMLRulePositionIndexPosition) MarshalJSON ¶ added in v7.7.0
func (r RuleNewParamsBodyTransformResponseHTMLRulePositionIndexPosition) MarshalJSON() (data []byte, err error)
type RuleNewParamsBodyTransformResponseHTMLRulePositionUnion ¶ added in v7.7.0
type RuleNewParamsBodyTransformResponseHTMLRulePositionUnion interface {
// contains filtered or unexported methods
}
An object configuring where the rule will be placed.
Satisfied by rulesets.RuleNewParamsBodyTransformResponseHTMLRulePositionBeforePosition, rulesets.RuleNewParamsBodyTransformResponseHTMLRulePositionAfterPosition, rulesets.RuleNewParamsBodyTransformResponseHTMLRulePositionIndexPosition, RuleNewParamsBodyTransformResponseHTMLRulePosition.
type RuleNewParamsBodyTransformResponseHTMLRuleRatelimit ¶ added in v7.7.0
type RuleNewParamsBodyTransformResponseHTMLRuleRatelimit 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 (RuleNewParamsBodyTransformResponseHTMLRuleRatelimit) MarshalJSON ¶ added in v7.7.0
func (r RuleNewParamsBodyTransformResponseHTMLRuleRatelimit) MarshalJSON() (data []byte, err error)
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, rulesets.RuleNewParamsBodyTransformResponseHTMLRule, RuleNewParamsBody.
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 result.
Result RuleNewResponseEnvelopeResult `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 RuleNewResponseEnvelopeResult ¶ added in v7.9.0
type RuleNewResponseEnvelopeResult 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 []RuleNewResponseEnvelopeResultRules `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 ruleNewResponseEnvelopeResultJSON `json:"-"`
}
A ruleset object.
func (*RuleNewResponseEnvelopeResult) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResult) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRules ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRules 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 RuleNewResponseEnvelopeResultRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters],
// [RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters].
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],
// [RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck],
// [RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck].
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],
// [RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit],
// [LogRuleRatelimit], [LogCustomFieldRuleRatelimit],
// [ManagedChallengeRuleRatelimit], [RedirectRuleRatelimit],
// [RewriteRuleRatelimit], [RouteRuleRatelimit], [ScoreRuleRatelimit],
// [ServeErrorRuleRatelimit],
// [RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit],
// [RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleNewResponseEnvelopeResultRulesJSON `json:"-"`
// contains filtered or unexported fields
}
func (RuleNewResponseEnvelopeResultRules) AsUnion ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRules) AsUnion() RuleNewResponseEnvelopeResultRulesUnion
AsUnion returns a RuleNewResponseEnvelopeResultRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, RuleNewResponseEnvelopeResultRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule, RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule.
func (*RuleNewResponseEnvelopeResultRules) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRules) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesAction ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesAction string
The action to perform when the rule matches.
const ( RuleNewResponseEnvelopeResultRulesActionBlock RuleNewResponseEnvelopeResultRulesAction = "block" RuleNewResponseEnvelopeResultRulesActionChallenge RuleNewResponseEnvelopeResultRulesAction = "challenge" RuleNewResponseEnvelopeResultRulesActionCompressResponse RuleNewResponseEnvelopeResultRulesAction = "compress_response" RuleNewResponseEnvelopeResultRulesActionDDoSDynamic RuleNewResponseEnvelopeResultRulesAction = "ddos_dynamic" RuleNewResponseEnvelopeResultRulesActionExecute RuleNewResponseEnvelopeResultRulesAction = "execute" RuleNewResponseEnvelopeResultRulesActionForceConnectionClose RuleNewResponseEnvelopeResultRulesAction = "force_connection_close" RuleNewResponseEnvelopeResultRulesActionJSChallenge RuleNewResponseEnvelopeResultRulesAction = "js_challenge" RuleNewResponseEnvelopeResultRulesActionLog RuleNewResponseEnvelopeResultRulesAction = "log" RuleNewResponseEnvelopeResultRulesActionLogCustomField RuleNewResponseEnvelopeResultRulesAction = "log_custom_field" RuleNewResponseEnvelopeResultRulesActionManagedChallenge RuleNewResponseEnvelopeResultRulesAction = "managed_challenge" RuleNewResponseEnvelopeResultRulesActionRedirect RuleNewResponseEnvelopeResultRulesAction = "redirect" RuleNewResponseEnvelopeResultRulesActionRewrite RuleNewResponseEnvelopeResultRulesAction = "rewrite" RuleNewResponseEnvelopeResultRulesActionRoute RuleNewResponseEnvelopeResultRulesAction = "route" RuleNewResponseEnvelopeResultRulesActionScore RuleNewResponseEnvelopeResultRulesAction = "score" RuleNewResponseEnvelopeResultRulesActionServeError RuleNewResponseEnvelopeResultRulesAction = "serve_error" RuleNewResponseEnvelopeResultRulesActionSetCacheControl RuleNewResponseEnvelopeResultRulesAction = "set_cache_control" RuleNewResponseEnvelopeResultRulesActionSetCacheSettings RuleNewResponseEnvelopeResultRulesAction = "set_cache_settings" RuleNewResponseEnvelopeResultRulesActionSetCacheTags RuleNewResponseEnvelopeResultRulesAction = "set_cache_tags" RuleNewResponseEnvelopeResultRulesActionSetConfig RuleNewResponseEnvelopeResultRulesAction = "set_config" RuleNewResponseEnvelopeResultRulesActionSkip RuleNewResponseEnvelopeResultRulesAction = "skip" RuleNewResponseEnvelopeResultRulesActionTransformResponseHTML RuleNewResponseEnvelopeResultRulesAction = "transform_response_html" )
func (RuleNewResponseEnvelopeResultRulesAction) IsKnown ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesAction) IsKnown() bool
type RuleNewResponseEnvelopeResultRulesRulesetsChallengeRule ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsChallengeRule 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 RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleAction `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 RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck `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 RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*RuleNewResponseEnvelopeResultRulesRulesetsChallengeRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleAction ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleActionChallenge RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleAction = "challenge"
)
func (RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleAction) IsKnown ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleAction) IsKnown() bool
type RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck 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 ruleNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit 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 ruleNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRule ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRule 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 RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction `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 RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck `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 RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleActionJSChallenge RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction) IsKnown ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck 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 ruleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit 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 ruleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRule ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRule 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 RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters `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 RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck `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 RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionSetCacheControl RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction) IsKnown ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck 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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit 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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRule ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRule 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 RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters `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 RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `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 RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionSetCacheTags RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation `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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression 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 RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression 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 RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression 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 RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck 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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit 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 ruleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule 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 RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters `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 RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck `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 RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleJSON `json:"-"`
}
func (*RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction string
The action to perform when the rule matches.
const (
RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionTransformResponseHTML RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction = "transform_response_html"
)
func (RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction) IsKnown ¶ added in v7.9.0
func (r RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction) IsKnown() bool
type RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters struct {
// Enables the link maze transformation on the response.
LinkMaze interface{} `json:"link_maze" api:"required"`
JSON ruleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck 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 ruleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit 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 ruleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RuleNewResponseEnvelopeResultRulesUnion ¶ added in v7.9.0
type RuleNewResponseEnvelopeResultRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, RuleNewResponseEnvelopeResultRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RuleNewResponseEnvelopeResultRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RuleNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule or RuleNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule.
type RuleNewResponseEnvelopeSuccess ¶
type RuleNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
RuleNewResponseEnvelopeSuccessTrue RuleNewResponseEnvelopeSuccess = true
)
func (RuleNewResponseEnvelopeSuccess) IsKnown ¶
func (r RuleNewResponseEnvelopeSuccess) IsKnown() bool
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, params RuleDeleteParams, opts ...option.RequestOption) (res *RuleDeleteResponseEnvelopeResult, 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 *RuleEditResponseEnvelopeResult, 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 *RuleNewResponseEnvelopeResult, 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 RulesetDeleteParams 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"`
// Validates the request without persisting changes when set to `true`. Responses
// that normally return 200 return `result: null`; endpoints that normally return
// 204 continue to return 204.
DryRun param.Field[bool] `query:"dry_run"`
}
func (RulesetDeleteParams) URLQuery ¶ added in v7.9.0
func (r RulesetDeleteParams) URLQuery() (v url.Values)
URLQuery serializes RulesetDeleteParams's query parameters as `url.Values`.
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],
// [RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters].
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],
// [RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck].
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],
// [RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit].
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, RulesetGetResponseRulesRulesetsTransformResponseHTMLRule.
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" RulesetGetResponseRulesActionTransformResponseHTML RulesetGetResponseRulesAction = "transform_response_html" )
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 RulesetGetResponseRulesRulesetsTransformResponseHTMLRule ¶ added in v7.7.0
type RulesetGetResponseRulesRulesetsTransformResponseHTMLRule 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 RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters `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 RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck `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 RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetGetResponseRulesRulesetsTransformResponseHTMLRuleJSON `json:"-"`
}
func (*RulesetGetResponseRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON ¶ added in v7.7.0
func (r *RulesetGetResponseRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleAction ¶ added in v7.7.0
type RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleAction string
The action to perform when the rule matches.
const (
RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleActionTransformResponseHTML RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleAction = "transform_response_html"
)
func (RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleAction) IsKnown ¶ added in v7.7.0
func (r RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleAction) IsKnown() bool
type RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters ¶ added in v7.7.0
type RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters struct {
// Enables the link maze transformation on the response.
LinkMaze interface{} `json:"link_maze" api:"required"`
JSON rulesetGetResponseRulesRulesetsTransformResponseHTMLRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON ¶ added in v7.7.0
func (r *RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck ¶ added in v7.7.0
type RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck 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 rulesetGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.7.0
func (r *RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit ¶ added in v7.7.0
type RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit 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 rulesetGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON ¶ added in v7.7.0
func (r *RulesetGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit) 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, SkipRule or RulesetGetResponseRulesRulesetsTransformResponseHTMLRule.
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"`
// Validates the request without persisting changes when set to `true`. Responses
// that normally return 200 return `result: null`; endpoints that normally return
// 204 continue to return 204.
DryRun param.Field[bool] `query:"dry_run"`
// 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)
func (RulesetNewParams) URLQuery ¶ added in v7.9.0
func (r RulesetNewParams) URLQuery() (v url.Values)
URLQuery serializes RulesetNewParams's query parameters as `url.Values`.
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, rulesets.RulesetNewParamsRulesRulesetsTransformResponseHTMLRule, 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" RulesetNewParamsRulesActionTransformResponseHTML RulesetNewParamsRulesAction = "transform_response_html" )
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 RulesetNewParamsRulesRulesetsTransformResponseHTMLRule ¶ added in v7.7.0
type RulesetNewParamsRulesRulesetsTransformResponseHTMLRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleActionParameters] `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[RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck] `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[RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RulesetNewParamsRulesRulesetsTransformResponseHTMLRule) MarshalJSON ¶ added in v7.7.0
func (r RulesetNewParamsRulesRulesetsTransformResponseHTMLRule) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleAction ¶ added in v7.7.0
type RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleAction string
The action to perform when the rule matches.
const (
RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleActionTransformResponseHTML RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleAction = "transform_response_html"
)
func (RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleAction) IsKnown ¶ added in v7.7.0
func (r RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleAction) IsKnown() bool
type RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleActionParameters ¶ added in v7.7.0
type RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleActionParameters struct {
// Enables the link maze transformation on the response.
LinkMaze param.Field[interface{}] `json:"link_maze" api:"required"`
}
The parameters configuring the rule's action.
func (RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleActionParameters) MarshalJSON ¶ added in v7.7.0
func (r RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleActionParameters) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck ¶ added in v7.7.0
type RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck 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 (RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) MarshalJSON ¶ added in v7.7.0
func (r RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleRatelimit ¶ added in v7.7.0
type RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleRatelimit 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 (RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleRatelimit) MarshalJSON ¶ added in v7.7.0
func (r RulesetNewParamsRulesRulesetsTransformResponseHTMLRuleRatelimit) MarshalJSON() (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 result.
Result RulesetNewResponseEnvelopeResult `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 RulesetNewResponseEnvelopeResult ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResult 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 []RulesetNewResponseEnvelopeResultRules `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 rulesetNewResponseEnvelopeResultJSON `json:"-"`
}
A ruleset object.
func (*RulesetNewResponseEnvelopeResult) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResult) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRules ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRules 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 RulesetNewResponseEnvelopeResultRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters],
// [RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters].
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],
// [RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck],
// [RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck].
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],
// [RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit],
// [LogRuleRatelimit], [LogCustomFieldRuleRatelimit],
// [ManagedChallengeRuleRatelimit], [RedirectRuleRatelimit],
// [RewriteRuleRatelimit], [RouteRuleRatelimit], [ScoreRuleRatelimit],
// [ServeErrorRuleRatelimit],
// [RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit],
// [RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetNewResponseEnvelopeResultRulesJSON `json:"-"`
// contains filtered or unexported fields
}
func (RulesetNewResponseEnvelopeResultRules) AsUnion ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRules) AsUnion() RulesetNewResponseEnvelopeResultRulesUnion
AsUnion returns a RulesetNewResponseEnvelopeResultRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule, RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule.
func (*RulesetNewResponseEnvelopeResultRules) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRules) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesAction ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesAction string
The action to perform when the rule matches.
const ( RulesetNewResponseEnvelopeResultRulesActionBlock RulesetNewResponseEnvelopeResultRulesAction = "block" RulesetNewResponseEnvelopeResultRulesActionChallenge RulesetNewResponseEnvelopeResultRulesAction = "challenge" RulesetNewResponseEnvelopeResultRulesActionCompressResponse RulesetNewResponseEnvelopeResultRulesAction = "compress_response" RulesetNewResponseEnvelopeResultRulesActionDDoSDynamic RulesetNewResponseEnvelopeResultRulesAction = "ddos_dynamic" RulesetNewResponseEnvelopeResultRulesActionExecute RulesetNewResponseEnvelopeResultRulesAction = "execute" RulesetNewResponseEnvelopeResultRulesActionForceConnectionClose RulesetNewResponseEnvelopeResultRulesAction = "force_connection_close" RulesetNewResponseEnvelopeResultRulesActionJSChallenge RulesetNewResponseEnvelopeResultRulesAction = "js_challenge" RulesetNewResponseEnvelopeResultRulesActionLog RulesetNewResponseEnvelopeResultRulesAction = "log" RulesetNewResponseEnvelopeResultRulesActionLogCustomField RulesetNewResponseEnvelopeResultRulesAction = "log_custom_field" RulesetNewResponseEnvelopeResultRulesActionManagedChallenge RulesetNewResponseEnvelopeResultRulesAction = "managed_challenge" RulesetNewResponseEnvelopeResultRulesActionRedirect RulesetNewResponseEnvelopeResultRulesAction = "redirect" RulesetNewResponseEnvelopeResultRulesActionRewrite RulesetNewResponseEnvelopeResultRulesAction = "rewrite" RulesetNewResponseEnvelopeResultRulesActionRoute RulesetNewResponseEnvelopeResultRulesAction = "route" RulesetNewResponseEnvelopeResultRulesActionScore RulesetNewResponseEnvelopeResultRulesAction = "score" RulesetNewResponseEnvelopeResultRulesActionServeError RulesetNewResponseEnvelopeResultRulesAction = "serve_error" RulesetNewResponseEnvelopeResultRulesActionSetCacheControl RulesetNewResponseEnvelopeResultRulesAction = "set_cache_control" RulesetNewResponseEnvelopeResultRulesActionSetCacheSettings RulesetNewResponseEnvelopeResultRulesAction = "set_cache_settings" RulesetNewResponseEnvelopeResultRulesActionSetCacheTags RulesetNewResponseEnvelopeResultRulesAction = "set_cache_tags" RulesetNewResponseEnvelopeResultRulesActionSetConfig RulesetNewResponseEnvelopeResultRulesAction = "set_config" RulesetNewResponseEnvelopeResultRulesActionSkip RulesetNewResponseEnvelopeResultRulesAction = "skip" RulesetNewResponseEnvelopeResultRulesActionTransformResponseHTML RulesetNewResponseEnvelopeResultRulesAction = "transform_response_html" )
func (RulesetNewResponseEnvelopeResultRulesAction) IsKnown ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesAction) IsKnown() bool
type RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRule ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRule 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 RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleAction `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 RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck `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 RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleAction ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleActionChallenge RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleAction = "challenge"
)
func (RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleAction) IsKnown ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleAction) IsKnown() bool
type RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck 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 rulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit 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 rulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRule ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRule 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 RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction `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 RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck `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 RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleActionJSChallenge RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction) IsKnown ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck 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 rulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit 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 rulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRule ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRule 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 RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters `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 RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck `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 RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionSetCacheControl RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction) IsKnown ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck 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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit 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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRule ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRule 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 RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters `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 RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `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 RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionSetCacheTags RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation `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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression 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 RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression 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 RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression 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 RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck 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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit 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 rulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule 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 RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters `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 RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck `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 RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleJSON `json:"-"`
}
func (*RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction string
The action to perform when the rule matches.
const (
RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionTransformResponseHTML RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction = "transform_response_html"
)
func (RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction) IsKnown ¶ added in v7.9.0
func (r RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction) IsKnown() bool
type RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters struct {
// Enables the link maze transformation on the response.
LinkMaze interface{} `json:"link_maze" api:"required"`
JSON rulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck 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 rulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit 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 rulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetNewResponseEnvelopeResultRulesUnion ¶ added in v7.9.0
type RulesetNewResponseEnvelopeResultRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, RulesetNewResponseEnvelopeResultRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RulesetNewResponseEnvelopeResultRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RulesetNewResponseEnvelopeResultRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule or RulesetNewResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule.
type RulesetNewResponseEnvelopeSuccess ¶
type RulesetNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
RulesetNewResponseEnvelopeSuccessTrue RulesetNewResponseEnvelopeSuccess = true
)
func (RulesetNewResponseEnvelopeSuccess) IsKnown ¶
func (r RulesetNewResponseEnvelopeSuccess) IsKnown() bool
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, params 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 *RulesetNewResponseEnvelopeResult, err error)
Creates a ruleset.
func (*RulesetService) Update ¶
func (r *RulesetService) Update(ctx context.Context, rulesetID string, params RulesetUpdateParams, opts ...option.RequestOption) (res *RulesetUpdateResponseEnvelopeResult, 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"`
// Validates the request without persisting changes when set to `true`. Responses
// that normally return 200 return `result: null`; endpoints that normally return
// 204 continue to return 204.
DryRun param.Field[bool] `query:"dry_run"`
// 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)
func (RulesetUpdateParams) URLQuery ¶ added in v7.9.0
func (r RulesetUpdateParams) URLQuery() (v url.Values)
URLQuery serializes RulesetUpdateParams's query parameters as `url.Values`.
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, rulesets.RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRule, 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" RulesetUpdateParamsRulesActionTransformResponseHTML RulesetUpdateParamsRulesAction = "transform_response_html" )
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 RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRule ¶ added in v7.7.0
type RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRule struct {
// The unique ID of the rule.
ID param.Field[string] `json:"id"`
// The action to perform when the rule matches.
Action param.Field[RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleAction] `json:"action"`
// The parameters configuring the rule's action.
ActionParameters param.Field[RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionParameters] `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[RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck] `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[RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleRatelimit] `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref param.Field[string] `json:"ref"`
}
func (RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRule) MarshalJSON ¶ added in v7.7.0
func (r RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRule) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleAction ¶ added in v7.7.0
type RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleAction string
The action to perform when the rule matches.
const (
RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionTransformResponseHTML RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleAction = "transform_response_html"
)
func (RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleAction) IsKnown ¶ added in v7.7.0
func (r RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleAction) IsKnown() bool
type RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionParameters ¶ added in v7.7.0
type RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionParameters struct {
// Enables the link maze transformation on the response.
LinkMaze param.Field[interface{}] `json:"link_maze" api:"required"`
}
The parameters configuring the rule's action.
func (RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionParameters) MarshalJSON ¶ added in v7.7.0
func (r RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionParameters) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck ¶ added in v7.7.0
type RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck 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 (RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) MarshalJSON ¶ added in v7.7.0
func (r RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) MarshalJSON() (data []byte, err error)
type RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleRatelimit ¶ added in v7.7.0
type RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleRatelimit 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 (RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleRatelimit) MarshalJSON ¶ added in v7.7.0
func (r RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleRatelimit) MarshalJSON() (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 result.
Result RulesetUpdateResponseEnvelopeResult `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 RulesetUpdateResponseEnvelopeResult ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResult 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 []RulesetUpdateResponseEnvelopeResultRules `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 rulesetUpdateResponseEnvelopeResultJSON `json:"-"`
}
A ruleset object.
func (*RulesetUpdateResponseEnvelopeResult) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResult) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRules ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRules 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 RulesetUpdateResponseEnvelopeResultRulesAction `json:"action"`
// This field can have the runtime type of [BlockRuleActionParameters],
// [interface{}], [CompressResponseRuleActionParameters],
// [ExecuteRuleActionParameters], [LogCustomFieldRuleActionParameters],
// [RedirectRuleActionParameters], [RewriteRuleActionParameters],
// [RouteRuleActionParameters], [ScoreRuleActionParameters],
// [ServeErrorRuleActionParameters],
// [RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters],
// [SetCacheSettingsRuleActionParameters],
// [RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters],
// [SetConfigRuleActionParameters], [SkipRuleActionParameters],
// [RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters].
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],
// [RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck],
// [CompressResponseRuleExposedCredentialCheck],
// [DDoSDynamicRuleExposedCredentialCheck], [ExecuteRuleExposedCredentialCheck],
// [ForceConnectionCloseRuleExposedCredentialCheck],
// [RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck],
// [LogRuleExposedCredentialCheck], [LogCustomFieldRuleExposedCredentialCheck],
// [ManagedChallengeRuleExposedCredentialCheck],
// [RedirectRuleExposedCredentialCheck], [RewriteRuleExposedCredentialCheck],
// [RouteRuleExposedCredentialCheck], [ScoreRuleExposedCredentialCheck],
// [ServeErrorRuleExposedCredentialCheck],
// [RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck],
// [SetCacheSettingsRuleExposedCredentialCheck],
// [RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck],
// [SetConfigRuleExposedCredentialCheck], [SkipRuleExposedCredentialCheck],
// [RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck].
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],
// [RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit],
// [CompressResponseRuleRatelimit], [DDoSDynamicRuleRatelimit],
// [ExecuteRuleRatelimit], [ForceConnectionCloseRuleRatelimit],
// [RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit],
// [LogRuleRatelimit], [LogCustomFieldRuleRatelimit],
// [ManagedChallengeRuleRatelimit], [RedirectRuleRatelimit],
// [RewriteRuleRatelimit], [RouteRuleRatelimit], [ScoreRuleRatelimit],
// [ServeErrorRuleRatelimit],
// [RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit],
// [SetCacheSettingsRuleRatelimit],
// [RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit],
// [SetConfigRuleRatelimit], [SkipRuleRatelimit],
// [RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit].
Ratelimit interface{} `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetUpdateResponseEnvelopeResultRulesJSON `json:"-"`
// contains filtered or unexported fields
}
func (RulesetUpdateResponseEnvelopeResultRules) AsUnion ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRules) AsUnion() RulesetUpdateResponseEnvelopeResultRulesUnion
AsUnion returns a RulesetUpdateResponseEnvelopeResultRulesUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BlockRule, RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule, RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule.
func (*RulesetUpdateResponseEnvelopeResultRules) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRules) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesAction ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesAction string
The action to perform when the rule matches.
const ( RulesetUpdateResponseEnvelopeResultRulesActionBlock RulesetUpdateResponseEnvelopeResultRulesAction = "block" RulesetUpdateResponseEnvelopeResultRulesActionChallenge RulesetUpdateResponseEnvelopeResultRulesAction = "challenge" RulesetUpdateResponseEnvelopeResultRulesActionCompressResponse RulesetUpdateResponseEnvelopeResultRulesAction = "compress_response" RulesetUpdateResponseEnvelopeResultRulesActionDDoSDynamic RulesetUpdateResponseEnvelopeResultRulesAction = "ddos_dynamic" RulesetUpdateResponseEnvelopeResultRulesActionExecute RulesetUpdateResponseEnvelopeResultRulesAction = "execute" RulesetUpdateResponseEnvelopeResultRulesActionForceConnectionClose RulesetUpdateResponseEnvelopeResultRulesAction = "force_connection_close" RulesetUpdateResponseEnvelopeResultRulesActionJSChallenge RulesetUpdateResponseEnvelopeResultRulesAction = "js_challenge" RulesetUpdateResponseEnvelopeResultRulesActionLog RulesetUpdateResponseEnvelopeResultRulesAction = "log" RulesetUpdateResponseEnvelopeResultRulesActionLogCustomField RulesetUpdateResponseEnvelopeResultRulesAction = "log_custom_field" RulesetUpdateResponseEnvelopeResultRulesActionManagedChallenge RulesetUpdateResponseEnvelopeResultRulesAction = "managed_challenge" RulesetUpdateResponseEnvelopeResultRulesActionRedirect RulesetUpdateResponseEnvelopeResultRulesAction = "redirect" RulesetUpdateResponseEnvelopeResultRulesActionRewrite RulesetUpdateResponseEnvelopeResultRulesAction = "rewrite" RulesetUpdateResponseEnvelopeResultRulesActionRoute RulesetUpdateResponseEnvelopeResultRulesAction = "route" RulesetUpdateResponseEnvelopeResultRulesActionScore RulesetUpdateResponseEnvelopeResultRulesAction = "score" RulesetUpdateResponseEnvelopeResultRulesActionServeError RulesetUpdateResponseEnvelopeResultRulesAction = "serve_error" RulesetUpdateResponseEnvelopeResultRulesActionSetCacheControl RulesetUpdateResponseEnvelopeResultRulesAction = "set_cache_control" RulesetUpdateResponseEnvelopeResultRulesActionSetCacheSettings RulesetUpdateResponseEnvelopeResultRulesAction = "set_cache_settings" RulesetUpdateResponseEnvelopeResultRulesActionSetCacheTags RulesetUpdateResponseEnvelopeResultRulesAction = "set_cache_tags" RulesetUpdateResponseEnvelopeResultRulesActionSetConfig RulesetUpdateResponseEnvelopeResultRulesAction = "set_config" RulesetUpdateResponseEnvelopeResultRulesActionSkip RulesetUpdateResponseEnvelopeResultRulesAction = "skip" RulesetUpdateResponseEnvelopeResultRulesActionTransformResponseHTML RulesetUpdateResponseEnvelopeResultRulesAction = "transform_response_html" )
func (RulesetUpdateResponseEnvelopeResultRulesAction) IsKnown ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesAction) IsKnown() bool
type RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRule ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRule 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 RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleAction `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 RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck `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 RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleJSON `json:"-"`
}
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRule) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleAction ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleAction string
The action to perform when the rule matches.
const (
RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleActionChallenge RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleAction = "challenge"
)
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleAction) IsKnown ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleAction) IsKnown() bool
type RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck 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 rulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit 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 rulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRule ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRule 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 RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction `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 RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck `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 RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleJSON `json:"-"`
}
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRule) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction string
The action to perform when the rule matches.
const (
RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleActionJSChallenge RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction = "js_challenge"
)
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction) IsKnown ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleAction) IsKnown() bool
type RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck 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 rulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit 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 rulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRule ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRule 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 RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters `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 RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck `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 RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleJSON `json:"-"`
}
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRule) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction string
The action to perform when the rule matches.
const (
RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionSetCacheControl RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction = "set_cache_control"
)
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction) IsKnown ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleAction) IsKnown() bool
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters struct {
// A cache-control directive configuration.
Immutable RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable `json:"immutable"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
MaxAge RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge `json:"max-age"`
// A cache-control directive configuration.
MustRevalidate RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate `json:"must-revalidate"`
// A cache-control directive configuration.
MustUnderstand RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand `json:"must-understand"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
NoCache RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache `json:"no-cache"`
// A cache-control directive configuration.
NoStore RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore `json:"no-store"`
// A cache-control directive configuration.
NoTransform RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform `json:"no-transform"`
// A cache-control directive configuration that accepts optional qualifiers (header
// names).
Private RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate `json:"private"`
// A cache-control directive configuration.
ProxyRevalidate RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate `json:"proxy-revalidate"`
// A cache-control directive configuration.
Public RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic `json:"public"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
SMaxage RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage `json:"s-maxage"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleIfError RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError `json:"stale-if-error"`
// A cache-control directive configuration that accepts a duration value in
// seconds.
StaleWhileRevalidate RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate `json:"stale-while-revalidate"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) AsUnion() RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion
AsUnion returns a RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutable) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective or RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective.
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation `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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) AsUnion() RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion
AsUnion returns a RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAge) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation `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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective or RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective.
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) AsUnion() RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion
AsUnion returns a RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidate) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective or RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective.
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) AsUnion() RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion
AsUnion returns a RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstand) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective or RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective.
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation `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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) AsUnion() RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion
AsUnion returns a RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCache) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation `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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective or RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective.
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) AsUnion() RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion
AsUnion returns a RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStore) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective or RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective.
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) AsUnion() RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion
AsUnion returns a RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransform) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective or RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective.
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation `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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts optional qualifiers (header names).
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) AsUnion() RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion
AsUnion returns a RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivate) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation `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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveJSON `json:"-"`
}
Set the directive with optional qualifiers.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts optional qualifiers (header names).
Union satisfied by RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective or RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective.
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) AsUnion() RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion
AsUnion returns a RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidate) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective or RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective.
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration.
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) AsUnion() RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion
AsUnion returns a RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublic) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveJSON `json:"-"`
}
Set the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration.
Union satisfied by RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective or RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective.
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation `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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) AsUnion() RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion
AsUnion returns a RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxage) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation `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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective or RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective.
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation `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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) AsUnion() RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion
AsUnion returns a RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfError) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation `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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective or RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective.
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation `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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateJSON `json:"-"`
// contains filtered or unexported fields
}
A cache-control directive configuration that accepts a duration value in seconds.
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) AsUnion() RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion
AsUnion returns a RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidate) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation `json:"operation" api:"required"`
// Whether the directive should only be applied to the Cloudflare CDN cache.
CloudflareOnly bool `json:"cloudflare_only"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveJSON `json:"-"`
}
Remove the directive.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct {
// The operation to perform on the cache-control directive.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation `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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveJSON `json:"-"`
}
Set the directive with a duration value in seconds.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation string
The operation to perform on the cache-control directive.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateUnion interface {
// contains filtered or unexported methods
}
A cache-control directive configuration that accepts a duration value in seconds.
Union satisfied by RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective or RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective.
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck 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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit 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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRule ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRule 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 RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters `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 RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck `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 RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleJSON `json:"-"`
}
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRule) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction string
The action to perform when the rule matches.
const (
RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionSetCacheTags RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction = "set_cache_tags"
)
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction) IsKnown ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleAction) IsKnown() bool
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters struct {
// The operation to perform on the cache tags.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation `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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersJSON `json:"-"`
// contains filtered or unexported fields
}
The parameters configuring the rule's action.
func (RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion ¶ added in v7.9.0
func (r RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) AsUnion() RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion
AsUnion returns a RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression 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 RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionJSON `json:"-"`
}
Add cache tags using an expression.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesJSON `json:"-"`
}
Add cache tags using a list of values.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationAdd RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "add" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "remove" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersOperation = "set" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression 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 RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionJSON `json:"-"`
}
Remove cache tags using an expression.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesJSON `json:"-"`
}
Remove cache tags using a list of values.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression 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 RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation `json:"operation" api:"required"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionJSON `json:"-"`
}
Set cache tags using an expression.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct {
// The operation to perform on the cache tags.
Operation RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation `json:"operation" api:"required"`
// A list of cache tag values.
Values []string `json:"values" api:"required"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesJSON `json:"-"`
}
Set cache tags using a list of values.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation string
The operation to perform on the cache tags.
const ( RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove" RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set" )
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersUnion interface {
// contains filtered or unexported methods
}
The parameters configuring the rule's action.
Union satisfied by RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues or RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression.
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck 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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit 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 rulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule 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 RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters `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 RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck `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 RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleJSON `json:"-"`
}
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction string
The action to perform when the rule matches.
const (
RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionTransformResponseHTML RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleAction = "transform_response_html"
)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters struct {
// Enables the link maze transformation on the response.
LinkMaze interface{} `json:"link_maze" api:"required"`
JSON rulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck 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 rulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit 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 rulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON ¶ added in v7.9.0
func (r *RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON(data []byte) (err error)
type RulesetUpdateResponseEnvelopeResultRulesUnion ¶ added in v7.9.0
type RulesetUpdateResponseEnvelopeResultRulesUnion interface {
// contains filtered or unexported methods
}
Union satisfied by BlockRule, RulesetUpdateResponseEnvelopeResultRulesRulesetsChallengeRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, RulesetUpdateResponseEnvelopeResultRulesRulesetsJSChallengeRule, LogRule, LogCustomFieldRule, ManagedChallengeRule, RedirectRule, RewriteRule, RouteRule, ScoreRule, ServeErrorRule, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheControlRule, SetCacheSettingsRule, RulesetUpdateResponseEnvelopeResultRulesRulesetsSetCacheTagsRule, SetConfigRule, SkipRule or RulesetUpdateResponseEnvelopeResultRulesRulesetsTransformResponseHTMLRule.
type RulesetUpdateResponseEnvelopeSuccess ¶
type RulesetUpdateResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
RulesetUpdateResponseEnvelopeSuccessTrue RulesetUpdateResponseEnvelopeSuccess = true
)
func (RulesetUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r RulesetUpdateResponseEnvelopeSuccess) IsKnown() bool
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"`
// Controls whether Cloudflare fetches a large asset from the origin as a series of
// range requests instead of one whole-body request.
OriginRangeRequests SetCacheSettingsRuleActionParametersOriginRangeRequests `json:"origin_range_requests"`
// 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"`
// Controls how cached responses vary based on request headers. `default` is
// required by the API and applies to any Vary response header that does not have a
// per-header override.
Vary SetCacheSettingsRuleActionParametersVary `json:"vary"`
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 SetCacheSettingsRuleActionParametersOriginRangeRequests ¶ added in v7.10.0
type SetCacheSettingsRuleActionParametersOriginRangeRequests struct {
// Whether to use range requests. `default` is the behaviour the zone gets without
// this rule.
Mode SetCacheSettingsRuleActionParametersOriginRangeRequestsMode `json:"mode" api:"required"`
JSON setCacheSettingsRuleActionParametersOriginRangeRequestsJSON `json:"-"`
}
Controls whether Cloudflare fetches a large asset from the origin as a series of range requests instead of one whole-body request.
func (*SetCacheSettingsRuleActionParametersOriginRangeRequests) UnmarshalJSON ¶ added in v7.10.0
func (r *SetCacheSettingsRuleActionParametersOriginRangeRequests) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersOriginRangeRequestsMode ¶ added in v7.10.0
type SetCacheSettingsRuleActionParametersOriginRangeRequestsMode string
Whether to use range requests. `default` is the behaviour the zone gets without this rule.
const ( SetCacheSettingsRuleActionParametersOriginRangeRequestsModeOn SetCacheSettingsRuleActionParametersOriginRangeRequestsMode = "on" SetCacheSettingsRuleActionParametersOriginRangeRequestsModeOff SetCacheSettingsRuleActionParametersOriginRangeRequestsMode = "off" SetCacheSettingsRuleActionParametersOriginRangeRequestsModeDefault SetCacheSettingsRuleActionParametersOriginRangeRequestsMode = "default" )
func (SetCacheSettingsRuleActionParametersOriginRangeRequestsMode) IsKnown ¶ added in v7.10.0
func (r SetCacheSettingsRuleActionParametersOriginRangeRequestsMode) IsKnown() bool
type SetCacheSettingsRuleActionParametersOriginRangeRequestsParam ¶ added in v7.10.0
type SetCacheSettingsRuleActionParametersOriginRangeRequestsParam struct {
// Whether to use range requests. `default` is the behaviour the zone gets without
// this rule.
Mode param.Field[SetCacheSettingsRuleActionParametersOriginRangeRequestsMode] `json:"mode" api:"required"`
}
Controls whether Cloudflare fetches a large asset from the origin as a series of range requests instead of one whole-body request.
func (SetCacheSettingsRuleActionParametersOriginRangeRequestsParam) MarshalJSON ¶ added in v7.10.0
func (r SetCacheSettingsRuleActionParametersOriginRangeRequestsParam) 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"`
// Controls whether Cloudflare fetches a large asset from the origin as a series of
// range requests instead of one whole-body request.
OriginRangeRequests param.Field[SetCacheSettingsRuleActionParametersOriginRangeRequestsParam] `json:"origin_range_requests"`
// 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"`
// Controls how cached responses vary based on request headers. `default` is
// required by the API and applies to any Vary response header that does not have a
// per-header override.
Vary param.Field[SetCacheSettingsRuleActionParametersVaryParam] `json:"vary"`
}
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 SetCacheSettingsRuleActionParametersVary ¶ added in v7.7.0
type SetCacheSettingsRuleActionParametersVary struct {
// Controls how response Vary headers without a per-header override contribute to
// the cache key.
Default SetCacheSettingsRuleActionParametersVaryDefault `json:"default"`
// A mapping of lowercase request header names to their vary configuration.
Headers map[string]SetCacheSettingsRuleActionParametersVaryHeader `json:"headers"`
JSON setCacheSettingsRuleActionParametersVaryJSON `json:"-"`
}
Controls how cached responses vary based on request headers. `default` is required by the API and applies to any Vary response header that does not have a per-header override.
func (*SetCacheSettingsRuleActionParametersVary) UnmarshalJSON ¶ added in v7.7.0
func (r *SetCacheSettingsRuleActionParametersVary) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersVaryDefault ¶ added in v7.7.0
type SetCacheSettingsRuleActionParametersVaryDefault struct {
// How the header value is treated when building the cache key.
Action SetCacheSettingsRuleActionParametersVaryDefaultAction `json:"action" api:"required"`
JSON setCacheSettingsRuleActionParametersVaryDefaultJSON `json:"-"`
}
Controls how response Vary headers without a per-header override contribute to the cache key.
func (*SetCacheSettingsRuleActionParametersVaryDefault) UnmarshalJSON ¶ added in v7.7.0
func (r *SetCacheSettingsRuleActionParametersVaryDefault) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersVaryDefaultAction ¶ added in v7.7.0
type SetCacheSettingsRuleActionParametersVaryDefaultAction string
How the header value is treated when building the cache key.
const ( SetCacheSettingsRuleActionParametersVaryDefaultActionBypass SetCacheSettingsRuleActionParametersVaryDefaultAction = "bypass" SetCacheSettingsRuleActionParametersVaryDefaultActionPassthrough SetCacheSettingsRuleActionParametersVaryDefaultAction = "passthrough" SetCacheSettingsRuleActionParametersVaryDefaultActionNormalize SetCacheSettingsRuleActionParametersVaryDefaultAction = "normalize" )
func (SetCacheSettingsRuleActionParametersVaryDefaultAction) IsKnown ¶ added in v7.7.0
func (r SetCacheSettingsRuleActionParametersVaryDefaultAction) IsKnown() bool
type SetCacheSettingsRuleActionParametersVaryDefaultParam ¶ added in v7.7.0
type SetCacheSettingsRuleActionParametersVaryDefaultParam struct {
// How the header value is treated when building the cache key.
Action param.Field[SetCacheSettingsRuleActionParametersVaryDefaultAction] `json:"action" api:"required"`
}
Controls how response Vary headers without a per-header override contribute to the cache key.
func (SetCacheSettingsRuleActionParametersVaryDefaultParam) MarshalJSON ¶ added in v7.7.0
func (r SetCacheSettingsRuleActionParametersVaryDefaultParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersVaryHeader ¶ added in v7.7.0
type SetCacheSettingsRuleActionParametersVaryHeader struct {
// How the header value is treated when building the cache key.
Action SetCacheSettingsRuleActionParametersVaryHeadersAction `json:"action" api:"required"`
// The set of languages to normalize against. Only valid for the `accept-language`
// header.
Languages []string `json:"languages"`
// The set of media types to normalize against. Only valid for the `accept` header.
MediaTypes []string `json:"media_types"`
JSON setCacheSettingsRuleActionParametersVaryHeaderJSON `json:"-"`
}
Controls how a single request header contributes to the cache key.
func (*SetCacheSettingsRuleActionParametersVaryHeader) UnmarshalJSON ¶ added in v7.7.0
func (r *SetCacheSettingsRuleActionParametersVaryHeader) UnmarshalJSON(data []byte) (err error)
type SetCacheSettingsRuleActionParametersVaryHeaderParam ¶ added in v7.7.0
type SetCacheSettingsRuleActionParametersVaryHeaderParam struct {
// How the header value is treated when building the cache key.
Action param.Field[SetCacheSettingsRuleActionParametersVaryHeadersAction] `json:"action" api:"required"`
// The set of languages to normalize against. Only valid for the `accept-language`
// header.
Languages param.Field[[]string] `json:"languages"`
// The set of media types to normalize against. Only valid for the `accept` header.
MediaTypes param.Field[[]string] `json:"media_types"`
}
Controls how a single request header contributes to the cache key.
func (SetCacheSettingsRuleActionParametersVaryHeaderParam) MarshalJSON ¶ added in v7.7.0
func (r SetCacheSettingsRuleActionParametersVaryHeaderParam) MarshalJSON() (data []byte, err error)
type SetCacheSettingsRuleActionParametersVaryHeadersAction ¶ added in v7.7.0
type SetCacheSettingsRuleActionParametersVaryHeadersAction string
How the header value is treated when building the cache key.
const ( SetCacheSettingsRuleActionParametersVaryHeadersActionBypass SetCacheSettingsRuleActionParametersVaryHeadersAction = "bypass" SetCacheSettingsRuleActionParametersVaryHeadersActionPassthrough SetCacheSettingsRuleActionParametersVaryHeadersAction = "passthrough" SetCacheSettingsRuleActionParametersVaryHeadersActionNormalize SetCacheSettingsRuleActionParametersVaryHeadersAction = "normalize" )
func (SetCacheSettingsRuleActionParametersVaryHeadersAction) IsKnown ¶ added in v7.7.0
func (r SetCacheSettingsRuleActionParametersVaryHeadersAction) IsKnown() bool
type SetCacheSettingsRuleActionParametersVaryParam ¶ added in v7.7.0
type SetCacheSettingsRuleActionParametersVaryParam struct {
// Controls how response Vary headers without a per-header override contribute to
// the cache key.
Default param.Field[SetCacheSettingsRuleActionParametersVaryDefaultParam] `json:"default"`
// A mapping of lowercase request header names to their vary configuration.
Headers param.Field[map[string]SetCacheSettingsRuleActionParametersVaryHeaderParam] `json:"headers"`
}
Controls how cached responses vary based on request headers. `default` is required by the API and applies to any Vary response header that does not have a per-header override.
func (SetCacheSettingsRuleActionParametersVaryParam) MarshalJSON ¶ added in v7.7.0
func (r SetCacheSettingsRuleActionParametersVaryParam) 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).
//
// Deprecated: Signed Exchanges (SXG) is deprecated.
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).
//
// Deprecated: Signed Exchanges (SXG) is deprecated.
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 VersionDeleteParams 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"`
// Validates the request without persisting changes when set to `true`. Responses
// that normally return 200 return `result: null`; endpoints that normally return
// 204 continue to return 204.
DryRun param.Field[bool] `query:"dry_run"`
}
func (VersionDeleteParams) URLQuery ¶ added in v7.9.0
func (r VersionDeleteParams) URLQuery() (v url.Values)
URLQuery serializes VersionDeleteParams's query parameters as `url.Values`.
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],
// [VersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters].
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],
// [VersionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck].
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],
// [VersionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit].
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, VersionGetResponseRulesRulesetsTransformResponseHTMLRule.
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" VersionGetResponseRulesActionTransformResponseHTML VersionGetResponseRulesAction = "transform_response_html" )
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 VersionGetResponseRulesRulesetsTransformResponseHTMLRule ¶ added in v7.7.0
type VersionGetResponseRulesRulesetsTransformResponseHTMLRule 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 VersionGetResponseRulesRulesetsTransformResponseHTMLRuleAction `json:"action"`
// The parameters configuring the rule's action.
ActionParameters VersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters `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 VersionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck `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 VersionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit `json:"ratelimit"`
// The reference of the rule (the rule's ID by default).
Ref string `json:"ref"`
JSON versionGetResponseRulesRulesetsTransformResponseHTMLRuleJSON `json:"-"`
}
func (*VersionGetResponseRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON ¶ added in v7.7.0
func (r *VersionGetResponseRulesRulesetsTransformResponseHTMLRule) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsTransformResponseHTMLRuleAction ¶ added in v7.7.0
type VersionGetResponseRulesRulesetsTransformResponseHTMLRuleAction string
The action to perform when the rule matches.
const (
VersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionTransformResponseHTML VersionGetResponseRulesRulesetsTransformResponseHTMLRuleAction = "transform_response_html"
)
func (VersionGetResponseRulesRulesetsTransformResponseHTMLRuleAction) IsKnown ¶ added in v7.7.0
func (r VersionGetResponseRulesRulesetsTransformResponseHTMLRuleAction) IsKnown() bool
type VersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters ¶ added in v7.7.0
type VersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters struct {
// Enables the link maze transformation on the response.
LinkMaze interface{} `json:"link_maze" api:"required"`
JSON versionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParametersJSON `json:"-"`
}
The parameters configuring the rule's action.
func (*VersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON ¶ added in v7.7.0
func (r *VersionGetResponseRulesRulesetsTransformResponseHTMLRuleActionParameters) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck ¶ added in v7.7.0
type VersionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck 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 versionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheckJSON `json:"-"`
}
Configuration for exposed credential checking.
func (*VersionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON ¶ added in v7.7.0
func (r *VersionGetResponseRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheck) UnmarshalJSON(data []byte) (err error)
type VersionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit ¶ added in v7.7.0
type VersionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit 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 versionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimitJSON `json:"-"`
}
An object configuring the rule's rate limit behavior.
func (*VersionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit) UnmarshalJSON ¶ added in v7.7.0
func (r *VersionGetResponseRulesRulesetsTransformResponseHTMLRuleRatelimit) 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, SkipRule or VersionGetResponseRulesRulesetsTransformResponseHTMLRule.
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, params 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.