Versions in this module Expand all Collapse all v2 v2.0.0 Nov 7, 2024 Changes in this version + const AuditLogActorTypeAdmin + const AuditLogActorTypeCloudflare + const AuditLogActorTypeUser + const CertificateCADigicert + const CertificateCAGoogle + const CertificateCALetsEncrypt + 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 MemberStatusAccepted + const MemberStatusPending + const SortDirectionAsc + const SortDirectionDesc + 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 Error = apierror.Error + type ErrorData = shared.ErrorData + type Hostname struct + JSON hostnameJSON + URLHostname string + func (r *Hostname) UnmarshalJSON(data []byte) (err error) + func (r Hostname) ImplementsRulesListItemGetResponseUnion() + type HostnameParam struct + URLHostname param.Field[string] + func (r HostnameParam) MarshalJSON() (data []byte, err error) + type ListBulkOperationGetResponse = interface + type ListBulkOperationGetResponseEnvelope struct + Errors []shared.ResponseInfo + JSON listBulkOperationGetResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result []ListBulkOperationGetResponse + Success ListBulkOperationGetResponseEnvelopeSuccess + func (r *ListBulkOperationGetResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type ListBulkOperationGetResponseEnvelopeSuccess bool + const ListBulkOperationGetResponseEnvelopeSuccessTrue + func (r ListBulkOperationGetResponseEnvelopeSuccess) IsKnown() bool + type ListBulkOperationService struct + Options []option.RequestOption + func NewListBulkOperationService(opts ...option.RequestOption) (r *ListBulkOperationService) + func (r *ListBulkOperationService) Get(ctx context.Context, accountIdentifier string, operationID string, ...) (res *[]ListBulkOperationGetResponse, err error) + type ListCursor struct + After string + Before string + JSON listCursorJSON + func (r *ListCursor) UnmarshalJSON(data []byte) (err error) + type ListDeleteResponse struct + ID string + JSON listDeleteResponseJSON + func (r *ListDeleteResponse) UnmarshalJSON(data []byte) (err error) + type ListDeleteResponseEnvelope struct + Errors []shared.ResponseInfo + JSON listDeleteResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result ListDeleteResponse + Success ListDeleteResponseEnvelopeSuccess + func (r *ListDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type ListDeleteResponseEnvelopeSuccess bool + const ListDeleteResponseEnvelopeSuccessTrue + func (r ListDeleteResponseEnvelopeSuccess) IsKnown() bool + type ListGetResponse = interface + type ListGetResponseEnvelope struct + Errors []shared.ResponseInfo + JSON listGetResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result ListsList + Success ListGetResponseEnvelopeSuccess + func (r *ListGetResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type ListGetResponseEnvelopeSuccess bool + const ListGetResponseEnvelopeSuccessTrue + func (r ListGetResponseEnvelopeSuccess) IsKnown() bool + type ListItemDeleteResponse struct + JSON listItemDeleteResponseJSON + OperationID string + func (r *ListItemDeleteResponse) UnmarshalJSON(data []byte) (err error) + type ListItemDeleteResponseEnvelope struct + Errors []shared.ResponseInfo + JSON listItemDeleteResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result ListItemDeleteResponse + Success ListItemDeleteResponseEnvelopeSuccess + func (r *ListItemDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type ListItemDeleteResponseEnvelopeSuccess bool + const ListItemDeleteResponseEnvelopeSuccessTrue + func (r ListItemDeleteResponseEnvelopeSuccess) IsKnown() bool + type ListItemGetResponseEnvelope struct + Errors []shared.ResponseInfo + JSON listItemGetResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result ListItemGetResponseUnion + Success ListItemGetResponseEnvelopeSuccess + func (r *ListItemGetResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type ListItemGetResponseEnvelopeSuccess bool + const ListItemGetResponseEnvelopeSuccessTrue + func (r ListItemGetResponseEnvelopeSuccess) IsKnown() bool + type ListItemGetResponseUnion interface + ImplementsRulesListItemGetResponseUnion func() + type ListItemListParams struct + Cursor param.Field[string] + PerPage param.Field[int64] + Search param.Field[string] + func (r ListItemListParams) URLQuery() (v url.Values) + type ListItemListResponse = interface + type ListItemNewParams struct + Body []ListItemNewParamsBody + func (r ListItemNewParams) MarshalJSON() (data []byte, err error) + type ListItemNewParamsBody struct + ASN param.Field[int64] + Comment param.Field[string] + Hostname param.Field[HostnameParam] + IP param.Field[string] + Redirect param.Field[RedirectParam] + func (r ListItemNewParamsBody) MarshalJSON() (data []byte, err error) + type ListItemNewResponse struct + JSON listItemNewResponseJSON + OperationID string + func (r *ListItemNewResponse) UnmarshalJSON(data []byte) (err error) + type ListItemNewResponseEnvelope struct + Errors []shared.ResponseInfo + JSON listItemNewResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result ListItemNewResponse + Success ListItemNewResponseEnvelopeSuccess + func (r *ListItemNewResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type ListItemNewResponseEnvelopeSuccess bool + const ListItemNewResponseEnvelopeSuccessTrue + func (r ListItemNewResponseEnvelopeSuccess) IsKnown() bool + type ListItemService struct + Options []option.RequestOption + func NewListItemService(opts ...option.RequestOption) (r *ListItemService) + func (r *ListItemService) Delete(ctx context.Context, accountID string, listID string, ...) (res *ListItemDeleteResponse, err error) + func (r *ListItemService) Get(ctx context.Context, accountIdentifier string, listID string, itemID string, ...) (res *ListItemGetResponseUnion, err error) + func (r *ListItemService) List(ctx context.Context, accountID string, listID string, query ListItemListParams, ...) (res *pagination.CursorPagination[ListItemListResponse], err error) + func (r *ListItemService) ListAutoPaging(ctx context.Context, accountID string, listID string, query ListItemListParams, ...) *pagination.CursorPaginationAutoPager[ListItemListResponse] + func (r *ListItemService) New(ctx context.Context, accountID string, listID string, body ListItemNewParams, ...) (res *ListItemNewResponse, err error) + func (r *ListItemService) Update(ctx context.Context, accountID string, listID string, ...) (res *ListItemUpdateResponse, err error) + type ListItemUpdateParams struct + Body []ListItemUpdateParamsBody + func (r ListItemUpdateParams) MarshalJSON() (data []byte, err error) + type ListItemUpdateParamsBody struct + ASN param.Field[int64] + Comment param.Field[string] + Hostname param.Field[HostnameParam] + IP param.Field[string] + Redirect param.Field[RedirectParam] + func (r ListItemUpdateParamsBody) MarshalJSON() (data []byte, err error) + type ListItemUpdateResponse struct + JSON listItemUpdateResponseJSON + OperationID string + func (r *ListItemUpdateResponse) UnmarshalJSON(data []byte) (err error) + type ListItemUpdateResponseEnvelope struct + Errors []shared.ResponseInfo + JSON listItemUpdateResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result ListItemUpdateResponse + Success ListItemUpdateResponseEnvelopeSuccess + func (r *ListItemUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type ListItemUpdateResponseEnvelopeSuccess bool + const ListItemUpdateResponseEnvelopeSuccessTrue + func (r ListItemUpdateResponseEnvelopeSuccess) IsKnown() bool + type ListNewParams struct + Description param.Field[string] + Kind param.Field[ListNewParamsKind] + Name param.Field[string] + func (r ListNewParams) MarshalJSON() (data []byte, err error) + type ListNewParamsKind string + const ListNewParamsKindASN + const ListNewParamsKindHostname + const ListNewParamsKindIP + const ListNewParamsKindRedirect + func (r ListNewParamsKind) IsKnown() bool + type ListNewResponse = interface + type ListNewResponseEnvelope struct + Errors []shared.ResponseInfo + JSON listNewResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result ListsList + Success ListNewResponseEnvelopeSuccess + func (r *ListNewResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type ListNewResponseEnvelopeSuccess bool + const ListNewResponseEnvelopeSuccessTrue + func (r ListNewResponseEnvelopeSuccess) IsKnown() bool + type ListService struct + BulkOperations *ListBulkOperationService + Items *ListItemService + Options []option.RequestOption + func NewListService(opts ...option.RequestOption) (r *ListService) + func (r *ListService) Delete(ctx context.Context, accountID string, listID string, ...) (res *ListDeleteResponse, err error) + func (r *ListService) Get(ctx context.Context, accountID string, listID string, ...) (res *ListsList, err error) + func (r *ListService) List(ctx context.Context, accountID string, opts ...option.RequestOption) (res *pagination.SinglePage[ListsList], err error) + func (r *ListService) ListAutoPaging(ctx context.Context, accountID string, opts ...option.RequestOption) *pagination.SinglePageAutoPager[ListsList] + func (r *ListService) New(ctx context.Context, accountID string, body ListNewParams, ...) (res *ListsList, err error) + func (r *ListService) Update(ctx context.Context, accountID string, listID string, body ListUpdateParams, ...) (res *ListsList, err error) + type ListUpdateParams struct + Description param.Field[string] + func (r ListUpdateParams) MarshalJSON() (data []byte, err error) + type ListUpdateResponse = interface + type ListUpdateResponseEnvelope struct + Errors []shared.ResponseInfo + JSON listUpdateResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result ListsList + Success ListUpdateResponseEnvelopeSuccess + func (r *ListUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type ListUpdateResponseEnvelopeSuccess bool + const ListUpdateResponseEnvelopeSuccessTrue + func (r ListUpdateResponseEnvelopeSuccess) IsKnown() bool + type ListsList struct + CreatedOn string + Description string + ID string + JSON listsListJSON + Kind ListsListKind + ModifiedOn string + Name string + NumItems float64 + NumReferencingFilters float64 + func (r *ListsList) UnmarshalJSON(data []byte) (err error) + type ListsListKind string + const ListsListKindASN + const ListsListKindHostname + const ListsListKindIP + const ListsListKindRedirect + func (r ListsListKind) IsKnown() bool + type MemberParam = shared.MemberParam + type MemberRoleParam = shared.MemberRoleParam + type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam + type MemberStatus = shared.MemberStatus + type MemberUserParam = shared.MemberUserParam + type Permission = shared.Permission + type PermissionGrant = shared.PermissionGrant + type PermissionGrantParam = shared.PermissionGrantParam + type Redirect struct + IncludeSubdomains bool + JSON redirectJSON + PreservePathSuffix bool + PreserveQueryString bool + SourceURL string + StatusCode RedirectStatusCode + SubpathMatching bool + TargetURL string + func (r *Redirect) UnmarshalJSON(data []byte) (err error) + func (r Redirect) ImplementsRulesListItemGetResponseUnion() + type RedirectParam struct + IncludeSubdomains param.Field[bool] + PreservePathSuffix param.Field[bool] + PreserveQueryString param.Field[bool] + SourceURL param.Field[string] + StatusCode param.Field[RedirectStatusCode] + SubpathMatching param.Field[bool] + TargetURL param.Field[string] + func (r RedirectParam) MarshalJSON() (data []byte, err error) + type RedirectStatusCode int64 + const RedirectStatusCode301 + const RedirectStatusCode302 + const RedirectStatusCode307 + const RedirectStatusCode308 + func (r RedirectStatusCode) IsKnown() bool + type ResponseInfo = shared.ResponseInfo + type Role = shared.Role + type RuleService struct + Lists *ListService + Options []option.RequestOption + func NewRuleService(opts ...option.RequestOption) (r *RuleService) + type SortDirection = shared.SortDirection