event_notifications

package
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin

This is an alias to an internal value.

View Source
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare

This is an alias to an internal value.

View Source
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser

This is an alias to an internal value.

View Source
const CertificateCADigicert = shared.CertificateCADigicert

This is an alias to an internal value.

View Source
const CertificateCAGoogle = shared.CertificateCAGoogle

This is an alias to an internal value.

View Source
const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt

This is an alias to an internal value.

View Source
const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector

This is an alias to an internal value.

View Source
const SortDirectionAsc = shared.SortDirectionAsc

This is an alias to an internal value.

View Source
const SortDirectionDesc = shared.SortDirectionDesc

This is an alias to an internal value.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASN

type ASN = shared.ASN

This is an alias to an internal type.

type ASNParam

type ASNParam = shared.ASNParam

This is an alias to an internal type.

type AuditLog

type AuditLog = shared.AuditLog

This is an alias to an internal type.

type AuditLogAction

type AuditLogAction = shared.AuditLogAction

This is an alias to an internal type.

type AuditLogActor

type AuditLogActor = shared.AuditLogActor

This is an alias to an internal type.

type AuditLogActorType

type AuditLogActorType = shared.AuditLogActorType

The type of actor, whether a User, Cloudflare Admin, or an Automated System.

This is an alias to an internal type.

type AuditLogOwner

type AuditLogOwner = shared.AuditLogOwner

This is an alias to an internal type.

type AuditLogResource

type AuditLogResource = shared.AuditLogResource

This is an alias to an internal type.

type CertificateCA added in v2.2.0

type CertificateCA = shared.CertificateCA

The Certificate Authority that will issue the certificate

This is an alias to an internal type.

type CertificateRequestType added in v2.2.0

type CertificateRequestType = shared.CertificateRequestType

Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).

This is an alias to an internal type.

type CloudflareTunnel

type CloudflareTunnel = shared.CloudflareTunnel

A Cloudflare Tunnel that connects your origin to Cloudflare's edge.

This is an alias to an internal type.

type CloudflareTunnelConnection

type CloudflareTunnelConnection = shared.CloudflareTunnelConnection

This is an alias to an internal type.

type CloudflareTunnelTunType

type CloudflareTunnelTunType = shared.CloudflareTunnelTunType

The type of tunnel.

This is an alias to an internal type.

type Error

type Error = apierror.Error

type ErrorData

type ErrorData = shared.ErrorData

This is an alias to an internal type.

type EventNotificationService

type EventNotificationService struct {
	Options []option.RequestOption
	R2      *R2Service
}

EventNotificationService 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 NewEventNotificationService method instead.

func NewEventNotificationService

func NewEventNotificationService(opts ...option.RequestOption) (r *EventNotificationService)

NewEventNotificationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type Member

type Member = shared.Member

This is an alias to an internal type.

type MemberParam

type MemberParam = shared.MemberParam

This is an alias to an internal type.

type MemberRole

type MemberRole = shared.MemberRole

This is an alias to an internal type.

type MemberRoleParam

type MemberRoleParam = shared.MemberRoleParam

This is an alias to an internal type.

type MemberRolesPermissions

type MemberRolesPermissions = shared.MemberRolesPermissions

This is an alias to an internal type.

type MemberRolesPermissionsParam

type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam

This is an alias to an internal type.

type MemberUser

type MemberUser = shared.MemberUser

This is an alias to an internal type.

type MemberUserParam

type MemberUserParam = shared.MemberUserParam

This is an alias to an internal type.

type Permission

type Permission = shared.Permission

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 R2ConfigurationGetParams

type R2ConfigurationGetParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
}

type R2ConfigurationGetResponse

type R2ConfigurationGetResponse map[string]map[string]R2ConfigurationGetResponseItem

type R2ConfigurationGetResponseEnvelope

type R2ConfigurationGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo      `json:"errors,required"`
	Messages []shared.ResponseInfo      `json:"messages,required"`
	Result   R2ConfigurationGetResponse `json:"result,required"`
	// Whether the API call was successful
	Success R2ConfigurationGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    r2ConfigurationGetResponseEnvelopeJSON    `json:"-"`
}

func (*R2ConfigurationGetResponseEnvelope) UnmarshalJSON

func (r *R2ConfigurationGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type R2ConfigurationGetResponseEnvelopeSuccess

type R2ConfigurationGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	R2ConfigurationGetResponseEnvelopeSuccessTrue R2ConfigurationGetResponseEnvelopeSuccess = true
)

func (R2ConfigurationGetResponseEnvelopeSuccess) IsKnown

type R2ConfigurationGetResponseItem added in v2.2.0

type R2ConfigurationGetResponseItem struct {
	// Queue ID that will receive notifications based on the configured rules
	Queue string `json:"queue,required"`
	// Array of rules to drive notifications
	Rules []R2ConfigurationGetResponseItemRule `json:"rules,required"`
	JSON  r2ConfigurationGetResponseItemJSON   `json:"-"`
}

func (*R2ConfigurationGetResponseItem) UnmarshalJSON added in v2.2.0

func (r *R2ConfigurationGetResponseItem) UnmarshalJSON(data []byte) (err error)

type R2ConfigurationGetResponseItemRule added in v2.2.0

type R2ConfigurationGetResponseItemRule struct {
	// Array of R2 object actions that will trigger notifications
	Actions []R2ConfigurationGetResponseItemRulesAction `json:"actions,required"`
	// Notifications will be sent only for objects with this prefix
	Prefix string `json:"prefix"`
	// Notifications will be sent only for objects with this suffix
	Suffix string                                 `json:"suffix"`
	JSON   r2ConfigurationGetResponseItemRuleJSON `json:"-"`
}

func (*R2ConfigurationGetResponseItemRule) UnmarshalJSON added in v2.2.0

func (r *R2ConfigurationGetResponseItemRule) UnmarshalJSON(data []byte) (err error)

type R2ConfigurationGetResponseItemRulesAction added in v2.2.0

type R2ConfigurationGetResponseItemRulesAction string
const (
	R2ConfigurationGetResponseItemRulesActionPutObject               R2ConfigurationGetResponseItemRulesAction = "PutObject"
	R2ConfigurationGetResponseItemRulesActionCopyObject              R2ConfigurationGetResponseItemRulesAction = "CopyObject"
	R2ConfigurationGetResponseItemRulesActionDeleteObject            R2ConfigurationGetResponseItemRulesAction = "DeleteObject"
	R2ConfigurationGetResponseItemRulesActionCompleteMultipartUpload R2ConfigurationGetResponseItemRulesAction = "CompleteMultipartUpload"
	R2ConfigurationGetResponseItemRulesActionAbortMultipartUpload    R2ConfigurationGetResponseItemRulesAction = "AbortMultipartUpload"
)

func (R2ConfigurationGetResponseItemRulesAction) IsKnown added in v2.2.0

type R2ConfigurationQueueDeleteParams

type R2ConfigurationQueueDeleteParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
}

type R2ConfigurationQueueDeleteResponseArray

type R2ConfigurationQueueDeleteResponseArray []interface{}

func (R2ConfigurationQueueDeleteResponseArray) ImplementsEventNotificationsR2ConfigurationQueueDeleteResponseUnion

func (r R2ConfigurationQueueDeleteResponseArray) ImplementsEventNotificationsR2ConfigurationQueueDeleteResponseUnion()

type R2ConfigurationQueueDeleteResponseEnvelope

type R2ConfigurationQueueDeleteResponseEnvelope struct {
	Errors   []shared.ResponseInfo                   `json:"errors,required"`
	Messages []shared.ResponseInfo                   `json:"messages,required"`
	Result   R2ConfigurationQueueDeleteResponseUnion `json:"result,required"`
	// Whether the API call was successful
	Success R2ConfigurationQueueDeleteResponseEnvelopeSuccess `json:"success,required"`
	JSON    r2ConfigurationQueueDeleteResponseEnvelopeJSON    `json:"-"`
}

func (*R2ConfigurationQueueDeleteResponseEnvelope) UnmarshalJSON

func (r *R2ConfigurationQueueDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type R2ConfigurationQueueDeleteResponseEnvelopeSuccess

type R2ConfigurationQueueDeleteResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	R2ConfigurationQueueDeleteResponseEnvelopeSuccessTrue R2ConfigurationQueueDeleteResponseEnvelopeSuccess = true
)

func (R2ConfigurationQueueDeleteResponseEnvelopeSuccess) IsKnown

type R2ConfigurationQueueDeleteResponseUnion

type R2ConfigurationQueueDeleteResponseUnion interface {
	ImplementsEventNotificationsR2ConfigurationQueueDeleteResponseUnion()
}

Union satisfied by event_notifications.R2ConfigurationQueueDeleteResponseUnknown, event_notifications.R2ConfigurationQueueDeleteResponseArray or shared.UnionString.

type R2ConfigurationQueueService

type R2ConfigurationQueueService struct {
	Options []option.RequestOption
}

R2ConfigurationQueueService 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 NewR2ConfigurationQueueService method instead.

func NewR2ConfigurationQueueService

func NewR2ConfigurationQueueService(opts ...option.RequestOption) (r *R2ConfigurationQueueService)

NewR2ConfigurationQueueService 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 (*R2ConfigurationQueueService) Delete

Turn off all event notifications configured for delivery to a given queue. No further notifications will be produced for the queue once complete.

func (*R2ConfigurationQueueService) Update

Define the rules for a given queue which will determine event notification production.

type R2ConfigurationQueueUpdateParams

type R2ConfigurationQueueUpdateParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	// Array of rules to drive notifications
	Rules param.Field[[]R2ConfigurationQueueUpdateParamsRule] `json:"rules"`
}

func (R2ConfigurationQueueUpdateParams) MarshalJSON

func (r R2ConfigurationQueueUpdateParams) MarshalJSON() (data []byte, err error)

type R2ConfigurationQueueUpdateParamsRule

type R2ConfigurationQueueUpdateParamsRule struct {
	// Array of R2 object actions that will trigger notifications
	Actions param.Field[[]R2ConfigurationQueueUpdateParamsRulesAction] `json:"actions,required"`
	// Notifications will be sent only for objects with this prefix
	Prefix param.Field[string] `json:"prefix"`
	// Notifications will be sent only for objects with this suffix
	Suffix param.Field[string] `json:"suffix"`
}

func (R2ConfigurationQueueUpdateParamsRule) MarshalJSON

func (r R2ConfigurationQueueUpdateParamsRule) MarshalJSON() (data []byte, err error)

type R2ConfigurationQueueUpdateParamsRulesAction

type R2ConfigurationQueueUpdateParamsRulesAction string
const (
	R2ConfigurationQueueUpdateParamsRulesActionPutObject               R2ConfigurationQueueUpdateParamsRulesAction = "PutObject"
	R2ConfigurationQueueUpdateParamsRulesActionCopyObject              R2ConfigurationQueueUpdateParamsRulesAction = "CopyObject"
	R2ConfigurationQueueUpdateParamsRulesActionDeleteObject            R2ConfigurationQueueUpdateParamsRulesAction = "DeleteObject"
	R2ConfigurationQueueUpdateParamsRulesActionCompleteMultipartUpload R2ConfigurationQueueUpdateParamsRulesAction = "CompleteMultipartUpload"
	R2ConfigurationQueueUpdateParamsRulesActionAbortMultipartUpload    R2ConfigurationQueueUpdateParamsRulesAction = "AbortMultipartUpload"
)

func (R2ConfigurationQueueUpdateParamsRulesAction) IsKnown

type R2ConfigurationQueueUpdateResponse

type R2ConfigurationQueueUpdateResponse struct {
	EventNotificationDetailID string                                 `json:"event_notification_detail_id"`
	JSON                      r2ConfigurationQueueUpdateResponseJSON `json:"-"`
}

func (*R2ConfigurationQueueUpdateResponse) UnmarshalJSON

func (r *R2ConfigurationQueueUpdateResponse) UnmarshalJSON(data []byte) (err error)

type R2ConfigurationQueueUpdateResponseEnvelope

type R2ConfigurationQueueUpdateResponseEnvelope struct {
	Errors   []shared.ResponseInfo              `json:"errors,required"`
	Messages []shared.ResponseInfo              `json:"messages,required"`
	Result   R2ConfigurationQueueUpdateResponse `json:"result,required"`
	// Whether the API call was successful
	Success R2ConfigurationQueueUpdateResponseEnvelopeSuccess `json:"success,required"`
	JSON    r2ConfigurationQueueUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*R2ConfigurationQueueUpdateResponseEnvelope) UnmarshalJSON

func (r *R2ConfigurationQueueUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type R2ConfigurationQueueUpdateResponseEnvelopeSuccess

type R2ConfigurationQueueUpdateResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	R2ConfigurationQueueUpdateResponseEnvelopeSuccessTrue R2ConfigurationQueueUpdateResponseEnvelopeSuccess = true
)

func (R2ConfigurationQueueUpdateResponseEnvelopeSuccess) IsKnown

type R2ConfigurationService

type R2ConfigurationService struct {
	Options []option.RequestOption
	Queues  *R2ConfigurationQueueService
}

R2ConfigurationService 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 NewR2ConfigurationService method instead.

func NewR2ConfigurationService

func NewR2ConfigurationService(opts ...option.RequestOption) (r *R2ConfigurationService)

NewR2ConfigurationService 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 (*R2ConfigurationService) Get

Returns all notification rules for each queue for which bucket notifications are produced.

type R2Service

type R2Service struct {
	Options       []option.RequestOption
	Configuration *R2ConfigurationService
}

R2Service 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 NewR2Service method instead.

func NewR2Service

func NewR2Service(opts ...option.RequestOption) (r *R2Service)

NewR2Service generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type ResponseInfo

type ResponseInfo = shared.ResponseInfo

This is an alias to an internal type.

type Role

type Role = shared.Role

This is an alias to an internal type.

type SortDirection added in v2.2.0

type SortDirection = shared.SortDirection

Direction to order DNS records in.

This is an alias to an internal type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL