Versions in this module Expand all Collapse all v4 v4.1.0 Feb 11, 2025 Changes in this version + const RatePlanIDBusiness + const RatePlanIDEnterprise + const RatePlanIDFree + const RatePlanIDLite + const RatePlanIDPartnersBusiness + const RatePlanIDPartnersEnterprise + const RatePlanIDPartnersFree + const RatePlanIDPartnersPro + const RatePlanIDPro + const RatePlanIDProPlus + type RatePlanID = shared.RatePlanID type RuleService + func (r *RuleService) UpdateAutoPaging(ctx context.Context, params RuleUpdateParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[RuleUpdateResponse] v4.0.0 Jan 10, 2025 Changes in this version + const AuditLogActorTypeAdmin + const AuditLogActorTypeCloudflare + const AuditLogActorTypeUser + const CertificateCADigicert + const CertificateCAGoogle + const CertificateCALetsEncrypt + const CertificateCASSLCom + const CertificateRequestTypeKeylessCertificate + const CertificateRequestTypeOriginECC + const CertificateRequestTypeOriginRSA + const CloudflareTunnelStatusDegraded + const CloudflareTunnelStatusDown + const CloudflareTunnelStatusHealthy + const CloudflareTunnelStatusInactive + const CloudflareTunnelTunTypeCNI + const CloudflareTunnelTunTypeCfdTunnel + const CloudflareTunnelTunTypeGRE + const CloudflareTunnelTunTypeIPSec + const CloudflareTunnelTunTypeWARPConnector + const MemberPoliciesAccessAllow + const MemberPoliciesAccessDeny + const MemberStatusAccepted + const MemberStatusPending + const SortDirectionAsc + const SortDirectionDesc + const SubscriptionFrequencyMonthly + const SubscriptionFrequencyQuarterly + const SubscriptionFrequencyWeekly + const SubscriptionFrequencyYearly + const SubscriptionStateAwaitingPayment + const SubscriptionStateCancelled + const SubscriptionStateExpired + const SubscriptionStateFailed + const SubscriptionStatePaid + const SubscriptionStateProvisioned + const SubscriptionStateTrial + const TokenPolicyEffectAllow + const TokenPolicyEffectDeny + const TokenStatusActive + const TokenStatusDisabled + const TokenStatusExpired + type ASN = shared.ASN + type ASNParam = shared.ASNParam + type AuditLog = shared.AuditLog + type AuditLogAction = shared.AuditLogAction + type AuditLogActor = shared.AuditLogActor + type AuditLogActorType = shared.AuditLogActorType + type AuditLogOwner = shared.AuditLogOwner + type AuditLogResource = shared.AuditLogResource + type CertificateCA = shared.CertificateCA + type CertificateRequestType = shared.CertificateRequestType + type CloudflareTunnel = shared.CloudflareTunnel + type CloudflareTunnelConnection = shared.CloudflareTunnelConnection + type CloudflareTunnelStatus = shared.CloudflareTunnelStatus + type CloudflareTunnelTunType = shared.CloudflareTunnelTunType + type ContentGetParams struct + ZoneID param.Field[string] + type ContentService struct + Options []option.RequestOption + func NewContentService(opts ...option.RequestOption) (r *ContentService) + func (r *ContentService) Get(ctx context.Context, snippetName string, query ContentGetParams, ...) (res *http.Response, err error) + type Error = apierror.Error + type ErrorData = shared.ErrorData + type Member = shared.Member + type MemberPoliciesAccess = shared.MemberPoliciesAccess + type MemberPoliciesPermissionGroup = shared.MemberPoliciesPermissionGroup + type MemberPoliciesPermissionGroupsMeta = shared.MemberPoliciesPermissionGroupsMeta + type MemberPoliciesResourceGroup = shared.MemberPoliciesResourceGroup + type MemberPoliciesResourceGroupsMeta = shared.MemberPoliciesResourceGroupsMeta + type MemberPoliciesResourceGroupsScope = shared.MemberPoliciesResourceGroupsScope + type MemberPoliciesResourceGroupsScopeObject = shared.MemberPoliciesResourceGroupsScopeObject + type MemberPolicy = shared.MemberPolicy + type MemberStatus = shared.MemberStatus + type MemberUser = shared.MemberUser + type Permission = shared.Permission + type PermissionGrant = shared.PermissionGrant + type PermissionGrantParam = shared.PermissionGrantParam + type RatePlan = shared.RatePlan + type RatePlanParam = shared.RatePlanParam + type ResponseInfo = shared.ResponseInfo + type Role = shared.Role + type RoleParam = shared.RoleParam + type RolePermissions = shared.RolePermissions + type RolePermissionsParam = shared.RolePermissionsParam + type RuleDeleteParams struct + ZoneID param.Field[string] + type RuleDeleteResponse struct + Errors []shared.ResponseInfo + JSON ruleDeleteResponseJSON + Messages []shared.ResponseInfo + Success RuleDeleteResponseSuccess + func (r *RuleDeleteResponse) UnmarshalJSON(data []byte) (err error) + type RuleDeleteResponseSuccess bool + const RuleDeleteResponseSuccessTrue + func (r RuleDeleteResponseSuccess) IsKnown() bool + type RuleListParams struct + ZoneID param.Field[string] + type RuleListResponse struct + Description string + Enabled bool + Expression string + JSON ruleListResponseJSON + SnippetName string + func (r *RuleListResponse) UnmarshalJSON(data []byte) (err error) + type RuleService struct + Options []option.RequestOption + func NewRuleService(opts ...option.RequestOption) (r *RuleService) + func (r *RuleService) Delete(ctx context.Context, body RuleDeleteParams, opts ...option.RequestOption) (res *RuleDeleteResponse, err error) + func (r *RuleService) List(ctx context.Context, query RuleListParams, opts ...option.RequestOption) (res *pagination.SinglePage[RuleListResponse], err error) + func (r *RuleService) ListAutoPaging(ctx context.Context, query RuleListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[RuleListResponse] + func (r *RuleService) Update(ctx context.Context, params RuleUpdateParams, opts ...option.RequestOption) (res *[]RuleUpdateResponse, err error) + type RuleUpdateParams struct + Rules param.Field[[]RuleUpdateParamsRule] + ZoneID param.Field[string] + func (r RuleUpdateParams) MarshalJSON() (data []byte, err error) + type RuleUpdateParamsRule struct + Description param.Field[string] + Enabled param.Field[bool] + Expression param.Field[string] + SnippetName param.Field[string] + func (r RuleUpdateParamsRule) MarshalJSON() (data []byte, err error) + type RuleUpdateResponse struct + Description string + Enabled bool + Expression string + JSON ruleUpdateResponseJSON + SnippetName string + func (r *RuleUpdateResponse) UnmarshalJSON(data []byte) (err error) + type RuleUpdateResponseEnvelope struct + Errors []shared.ResponseInfo + JSON ruleUpdateResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result []RuleUpdateResponse + Success RuleUpdateResponseEnvelopeSuccess + func (r *RuleUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type RuleUpdateResponseEnvelopeSuccess bool + const RuleUpdateResponseEnvelopeSuccessTrue + func (r RuleUpdateResponseEnvelopeSuccess) IsKnown() bool + type Snippet struct + CreatedOn string + JSON snippetJSON + ModifiedOn string + SnippetName string + func (r *Snippet) UnmarshalJSON(data []byte) (err error) + type SnippetDeleteParams struct + ZoneID param.Field[string] + type SnippetDeleteResponse struct + Errors []shared.ResponseInfo + JSON snippetDeleteResponseJSON + Messages []shared.ResponseInfo + Success SnippetDeleteResponseSuccess + func (r *SnippetDeleteResponse) UnmarshalJSON(data []byte) (err error) + type SnippetDeleteResponseSuccess bool + const SnippetDeleteResponseSuccessTrue + func (r SnippetDeleteResponseSuccess) IsKnown() bool + type SnippetGetParams struct + ZoneID param.Field[string] + type SnippetGetResponseEnvelope struct + Errors []shared.ResponseInfo + JSON snippetGetResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result Snippet + Success SnippetGetResponseEnvelopeSuccess + func (r *SnippetGetResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type SnippetGetResponseEnvelopeSuccess bool + const SnippetGetResponseEnvelopeSuccessTrue + func (r SnippetGetResponseEnvelopeSuccess) IsKnown() bool + type SnippetListParams struct + ZoneID param.Field[string] + type SnippetService struct + Content *ContentService + Options []option.RequestOption + Rules *RuleService + func NewSnippetService(opts ...option.RequestOption) (r *SnippetService) + func (r *SnippetService) Delete(ctx context.Context, snippetName string, body SnippetDeleteParams, ...) (res *SnippetDeleteResponse, err error) + func (r *SnippetService) Get(ctx context.Context, snippetName string, query SnippetGetParams, ...) (res *Snippet, err error) + func (r *SnippetService) List(ctx context.Context, query SnippetListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Snippet], err error) + func (r *SnippetService) ListAutoPaging(ctx context.Context, query SnippetListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Snippet] + func (r *SnippetService) Update(ctx context.Context, snippetName string, params SnippetUpdateParams, ...) (res *Snippet, err error) + type SnippetUpdateParams struct + Files param.Field[string] + Metadata param.Field[SnippetUpdateParamsMetadata] + ZoneID param.Field[string] + func (r SnippetUpdateParams) MarshalMultipart() (data []byte, contentType string, err error) + type SnippetUpdateParamsMetadata struct + MainModule param.Field[string] + func (r SnippetUpdateParamsMetadata) MarshalJSON() (data []byte, err error) + type SnippetUpdateResponseEnvelope struct + Errors []shared.ResponseInfo + JSON snippetUpdateResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result Snippet + Success SnippetUpdateResponseEnvelopeSuccess + func (r *SnippetUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type SnippetUpdateResponseEnvelopeSuccess bool + const SnippetUpdateResponseEnvelopeSuccessTrue + func (r SnippetUpdateResponseEnvelopeSuccess) IsKnown() bool + type SortDirection = shared.SortDirection + type Subscription = shared.Subscription + type SubscriptionFrequency = shared.SubscriptionFrequency + type SubscriptionParam = shared.SubscriptionParam + type SubscriptionState = shared.SubscriptionState + type Token = shared.Token + type TokenCondition = shared.TokenCondition + type TokenConditionCIDRList = shared.TokenConditionCIDRList + type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam + type TokenConditionParam = shared.TokenConditionParam + type TokenConditionRequestIP = shared.TokenConditionRequestIP + type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam + type TokenParam = shared.TokenParam + type TokenPolicy = shared.TokenPolicy + type TokenPolicyEffect = shared.TokenPolicyEffect + type TokenPolicyParam = shared.TokenPolicyParam + type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup + type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam + type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta + type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam + type TokenStatus = shared.TokenStatus + type TokenValue = shared.TokenValue Other modules containing this package github.com/cloudflare/cloudflare-go/v2 github.com/cloudflare/cloudflare-go/v3