Documentation
¶
Index ¶
- Constants
- type ASN
- type ASNParam
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type CertificateCA
- type CertificateRequestType
- type CloudflareTunnel
- type CloudflareTunnelConfigSrc
- type CloudflareTunnelConnection
- type CloudflareTunnelStatus
- type CloudflareTunnelTunType
- type EmailSecurityService
- type Error
- type ErrorData
- type ErrorDataSource
- type InvestigateDetectionGetParams
- type InvestigateDetectionGetResponse
- type InvestigateDetectionGetResponseAttachment
- type InvestigateDetectionGetResponseAttachmentsDetection
- type InvestigateDetectionGetResponseEnvelope
- type InvestigateDetectionGetResponseEnvelopeErrors
- type InvestigateDetectionGetResponseEnvelopeErrorsSource
- type InvestigateDetectionGetResponseEnvelopeMessages
- type InvestigateDetectionGetResponseEnvelopeMessagesSource
- type InvestigateDetectionGetResponseEnvelopeSuccess
- type InvestigateDetectionGetResponseFinalDisposition
- type InvestigateDetectionGetResponseFinding
- type InvestigateDetectionGetResponseFindingsDetection
- type InvestigateDetectionGetResponseHeader
- type InvestigateDetectionGetResponseLink
- type InvestigateDetectionGetResponseSenderInfo
- type InvestigateDetectionGetResponseThreatCategory
- type InvestigateDetectionGetResponseValidation
- type InvestigateDetectionGetResponseValidationDKIM
- type InvestigateDetectionGetResponseValidationDMARC
- type InvestigateDetectionGetResponseValidationSPF
- type InvestigateDetectionService
- type InvestigateGetParams
- type InvestigateGetResponse
- type InvestigateGetResponseActionLog
- type InvestigateGetResponseActionLogOperation
- type InvestigateGetResponseActionLogProperties
- type InvestigateGetResponseDeliveryMode
- type InvestigateGetResponseDeliveryStatus
- type InvestigateGetResponseEnvelope
- type InvestigateGetResponseEnvelopeErrors
- type InvestigateGetResponseEnvelopeErrorsSource
- type InvestigateGetResponseEnvelopeMessages
- type InvestigateGetResponseEnvelopeMessagesSource
- type InvestigateGetResponseEnvelopeSuccess
- type InvestigateGetResponseFinalDisposition
- type InvestigateGetResponseFinding
- type InvestigateGetResponseFindingsDetection
- type InvestigateGetResponsePostDeliveryOperation
- type InvestigateGetResponseProperties
- type InvestigateGetResponsePropertiesAllowlistedPatternType
- type InvestigateGetResponsePropertiesWhitelistedPatternType
- type InvestigateGetResponseValidation
- type InvestigateGetResponseValidationDKIM
- type InvestigateGetResponseValidationDMARC
- type InvestigateGetResponseValidationSPF
- type InvestigateListParams
- type InvestigateListParamsDeliveryStatus
- type InvestigateListParamsFinalDisposition
- type InvestigateListParamsMessageAction
- type InvestigateListResponse
- type InvestigateListResponseActionLog
- type InvestigateListResponseActionLogOperation
- type InvestigateListResponseActionLogProperties
- type InvestigateListResponseDeliveryMode
- type InvestigateListResponseDeliveryStatus
- type InvestigateListResponseFinalDisposition
- type InvestigateListResponseFinding
- type InvestigateListResponseFindingsDetection
- type InvestigateListResponsePostDeliveryOperation
- type InvestigateListResponseProperties
- type InvestigateListResponsePropertiesAllowlistedPatternType
- type InvestigateListResponsePropertiesWhitelistedPatternType
- type InvestigateListResponseValidation
- type InvestigateListResponseValidationDKIM
- type InvestigateListResponseValidationDMARC
- type InvestigateListResponseValidationSPF
- type InvestigateMoveBulkParams
- type InvestigateMoveBulkParamsDestination
- type InvestigateMoveBulkResponse
- type InvestigateMoveNewParams
- type InvestigateMoveNewParamsDestination
- type InvestigateMoveNewResponse
- type InvestigateMoveService
- func (r *InvestigateMoveService) Bulk(ctx context.Context, params InvestigateMoveBulkParams, ...) (res *pagination.SinglePage[InvestigateMoveBulkResponse], err error)
- func (r *InvestigateMoveService) BulkAutoPaging(ctx context.Context, params InvestigateMoveBulkParams, ...) *pagination.SinglePageAutoPager[InvestigateMoveBulkResponse]
- func (r *InvestigateMoveService) New(ctx context.Context, investigateID string, params InvestigateMoveNewParams, ...) (res *pagination.SinglePage[InvestigateMoveNewResponse], err error)
- func (r *InvestigateMoveService) NewAutoPaging(ctx context.Context, investigateID string, params InvestigateMoveNewParams, ...) *pagination.SinglePageAutoPager[InvestigateMoveNewResponse]
- type InvestigatePreviewGetParams
- type InvestigatePreviewGetResponse
- type InvestigatePreviewGetResponseEnvelope
- type InvestigatePreviewGetResponseEnvelopeErrors
- type InvestigatePreviewGetResponseEnvelopeErrorsSource
- type InvestigatePreviewGetResponseEnvelopeMessages
- type InvestigatePreviewGetResponseEnvelopeMessagesSource
- type InvestigatePreviewGetResponseEnvelopeSuccess
- type InvestigatePreviewNewParams
- type InvestigatePreviewNewResponse
- type InvestigatePreviewNewResponseEnvelope
- type InvestigatePreviewNewResponseEnvelopeErrors
- type InvestigatePreviewNewResponseEnvelopeErrorsSource
- type InvestigatePreviewNewResponseEnvelopeMessages
- type InvestigatePreviewNewResponseEnvelopeMessagesSource
- type InvestigatePreviewNewResponseEnvelopeSuccess
- type InvestigatePreviewService
- func (r *InvestigatePreviewService) Get(ctx context.Context, investigateID string, query InvestigatePreviewGetParams, ...) (res *InvestigatePreviewGetResponse, err error)
- func (r *InvestigatePreviewService) New(ctx context.Context, params InvestigatePreviewNewParams, ...) (res *InvestigatePreviewNewResponse, err error)
- type InvestigateRawGetParams
- type InvestigateRawGetResponse
- type InvestigateRawGetResponseEnvelope
- type InvestigateRawGetResponseEnvelopeErrors
- type InvestigateRawGetResponseEnvelopeErrorsSource
- type InvestigateRawGetResponseEnvelopeMessages
- type InvestigateRawGetResponseEnvelopeMessagesSource
- type InvestigateRawGetResponseEnvelopeSuccess
- type InvestigateRawService
- type InvestigateReclassifyNewParams
- type InvestigateReclassifyNewParamsExpectedDisposition
- type InvestigateReclassifyNewResponse
- type InvestigateReclassifyNewResponseEnvelope
- type InvestigateReclassifyNewResponseEnvelopeErrors
- type InvestigateReclassifyNewResponseEnvelopeErrorsSource
- type InvestigateReclassifyNewResponseEnvelopeMessages
- type InvestigateReclassifyNewResponseEnvelopeMessagesSource
- type InvestigateReclassifyNewResponseEnvelopeSuccess
- type InvestigateReclassifyService
- type InvestigateReleaseBulkParams
- type InvestigateReleaseBulkResponse
- type InvestigateReleaseService
- func (r *InvestigateReleaseService) Bulk(ctx context.Context, params InvestigateReleaseBulkParams, ...) (res *pagination.SinglePage[InvestigateReleaseBulkResponse], err error)
- func (r *InvestigateReleaseService) BulkAutoPaging(ctx context.Context, params InvestigateReleaseBulkParams, ...) *pagination.SinglePageAutoPager[InvestigateReleaseBulkResponse]
- type InvestigateService
- func (r *InvestigateService) Get(ctx context.Context, investigateID string, params InvestigateGetParams, ...) (res *InvestigateGetResponse, err error)
- func (r *InvestigateService) List(ctx context.Context, params InvestigateListParams, ...) (res *pagination.V4PagePaginationArray[InvestigateListResponse], err error)
- func (r *InvestigateService) ListAutoPaging(ctx context.Context, params InvestigateListParams, ...) *pagination.V4PagePaginationArrayAutoPager[InvestigateListResponse]
- type InvestigateTraceGetParams
- type InvestigateTraceGetResponse
- type InvestigateTraceGetResponseEnvelope
- type InvestigateTraceGetResponseEnvelopeErrors
- type InvestigateTraceGetResponseEnvelopeErrorsSource
- type InvestigateTraceGetResponseEnvelopeMessages
- type InvestigateTraceGetResponseEnvelopeMessagesSource
- type InvestigateTraceGetResponseEnvelopeSuccess
- type InvestigateTraceGetResponseInbound
- type InvestigateTraceGetResponseInboundLine
- type InvestigateTraceGetResponseOutbound
- type InvestigateTraceGetResponseOutboundLine
- type InvestigateTraceService
- 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 PhishguardReportListParams
- type PhishguardReportListResponse
- type PhishguardReportListResponseDisposition
- type PhishguardReportListResponseFields
- type PhishguardReportListResponseTag
- type PhishguardReportService
- func (r *PhishguardReportService) List(ctx context.Context, params PhishguardReportListParams, ...) (res *pagination.SinglePage[PhishguardReportListResponse], err error)
- func (r *PhishguardReportService) ListAutoPaging(ctx context.Context, params PhishguardReportListParams, ...) *pagination.SinglePageAutoPager[PhishguardReportListResponse]
- type PhishguardService
- type RatePlan
- type RatePlanID
- type RatePlanParam
- type ResponseInfo
- type ResponseInfoSource
- type Role
- type RoleParam
- type RolePermissions
- type RolePermissionsParam
- type SettingAllowPolicyDeleteParams
- type SettingAllowPolicyDeleteResponse
- type SettingAllowPolicyDeleteResponseEnvelope
- type SettingAllowPolicyDeleteResponseEnvelopeErrors
- type SettingAllowPolicyDeleteResponseEnvelopeErrorsSource
- type SettingAllowPolicyDeleteResponseEnvelopeMessages
- type SettingAllowPolicyDeleteResponseEnvelopeMessagesSource
- type SettingAllowPolicyDeleteResponseEnvelopeSuccess
- type SettingAllowPolicyEditParams
- type SettingAllowPolicyEditParamsPatternType
- type SettingAllowPolicyEditResponse
- type SettingAllowPolicyEditResponseEnvelope
- type SettingAllowPolicyEditResponseEnvelopeErrors
- type SettingAllowPolicyEditResponseEnvelopeErrorsSource
- type SettingAllowPolicyEditResponseEnvelopeMessages
- type SettingAllowPolicyEditResponseEnvelopeMessagesSource
- type SettingAllowPolicyEditResponseEnvelopeSuccess
- type SettingAllowPolicyEditResponsePatternType
- type SettingAllowPolicyGetParams
- type SettingAllowPolicyGetResponse
- type SettingAllowPolicyGetResponseEnvelope
- type SettingAllowPolicyGetResponseEnvelopeErrors
- type SettingAllowPolicyGetResponseEnvelopeErrorsSource
- type SettingAllowPolicyGetResponseEnvelopeMessages
- type SettingAllowPolicyGetResponseEnvelopeMessagesSource
- type SettingAllowPolicyGetResponseEnvelopeSuccess
- type SettingAllowPolicyGetResponsePatternType
- type SettingAllowPolicyListParams
- type SettingAllowPolicyListParamsDirection
- type SettingAllowPolicyListParamsOrder
- type SettingAllowPolicyListParamsPatternType
- type SettingAllowPolicyListResponse
- type SettingAllowPolicyListResponsePatternType
- type SettingAllowPolicyNewParams
- type SettingAllowPolicyNewParamsPatternType
- type SettingAllowPolicyNewResponse
- type SettingAllowPolicyNewResponseEnvelope
- type SettingAllowPolicyNewResponseEnvelopeErrors
- type SettingAllowPolicyNewResponseEnvelopeErrorsSource
- type SettingAllowPolicyNewResponseEnvelopeMessages
- type SettingAllowPolicyNewResponseEnvelopeMessagesSource
- type SettingAllowPolicyNewResponseEnvelopeSuccess
- type SettingAllowPolicyNewResponsePatternType
- type SettingAllowPolicyService
- func (r *SettingAllowPolicyService) Delete(ctx context.Context, policyID string, body SettingAllowPolicyDeleteParams, ...) (res *SettingAllowPolicyDeleteResponse, err error)
- func (r *SettingAllowPolicyService) Edit(ctx context.Context, policyID string, params SettingAllowPolicyEditParams, ...) (res *SettingAllowPolicyEditResponse, err error)
- func (r *SettingAllowPolicyService) Get(ctx context.Context, policyID string, query SettingAllowPolicyGetParams, ...) (res *SettingAllowPolicyGetResponse, err error)
- func (r *SettingAllowPolicyService) List(ctx context.Context, params SettingAllowPolicyListParams, ...) (res *pagination.V4PagePaginationArray[SettingAllowPolicyListResponse], ...)
- func (r *SettingAllowPolicyService) ListAutoPaging(ctx context.Context, params SettingAllowPolicyListParams, ...) *pagination.V4PagePaginationArrayAutoPager[SettingAllowPolicyListResponse]
- func (r *SettingAllowPolicyService) New(ctx context.Context, params SettingAllowPolicyNewParams, ...) (res *SettingAllowPolicyNewResponse, err error)
- type SettingBlockSenderDeleteParams
- type SettingBlockSenderDeleteResponse
- type SettingBlockSenderDeleteResponseEnvelope
- type SettingBlockSenderDeleteResponseEnvelopeErrors
- type SettingBlockSenderDeleteResponseEnvelopeErrorsSource
- type SettingBlockSenderDeleteResponseEnvelopeMessages
- type SettingBlockSenderDeleteResponseEnvelopeMessagesSource
- type SettingBlockSenderDeleteResponseEnvelopeSuccess
- type SettingBlockSenderEditParams
- type SettingBlockSenderEditParamsPatternType
- type SettingBlockSenderEditResponse
- type SettingBlockSenderEditResponseEnvelope
- type SettingBlockSenderEditResponseEnvelopeErrors
- type SettingBlockSenderEditResponseEnvelopeErrorsSource
- type SettingBlockSenderEditResponseEnvelopeMessages
- type SettingBlockSenderEditResponseEnvelopeMessagesSource
- type SettingBlockSenderEditResponseEnvelopeSuccess
- type SettingBlockSenderEditResponsePatternType
- type SettingBlockSenderGetParams
- type SettingBlockSenderGetResponse
- type SettingBlockSenderGetResponseEnvelope
- type SettingBlockSenderGetResponseEnvelopeErrors
- type SettingBlockSenderGetResponseEnvelopeErrorsSource
- type SettingBlockSenderGetResponseEnvelopeMessages
- type SettingBlockSenderGetResponseEnvelopeMessagesSource
- type SettingBlockSenderGetResponseEnvelopeSuccess
- type SettingBlockSenderGetResponsePatternType
- type SettingBlockSenderListParams
- type SettingBlockSenderListParamsDirection
- type SettingBlockSenderListParamsOrder
- type SettingBlockSenderListParamsPatternType
- type SettingBlockSenderListResponse
- type SettingBlockSenderListResponsePatternType
- type SettingBlockSenderNewParams
- type SettingBlockSenderNewParamsPatternType
- type SettingBlockSenderNewResponse
- type SettingBlockSenderNewResponseEnvelope
- type SettingBlockSenderNewResponseEnvelopeErrors
- type SettingBlockSenderNewResponseEnvelopeErrorsSource
- type SettingBlockSenderNewResponseEnvelopeMessages
- type SettingBlockSenderNewResponseEnvelopeMessagesSource
- type SettingBlockSenderNewResponseEnvelopeSuccess
- type SettingBlockSenderNewResponsePatternType
- type SettingBlockSenderService
- func (r *SettingBlockSenderService) Delete(ctx context.Context, patternID string, body SettingBlockSenderDeleteParams, ...) (res *SettingBlockSenderDeleteResponse, err error)
- func (r *SettingBlockSenderService) Edit(ctx context.Context, patternID string, params SettingBlockSenderEditParams, ...) (res *SettingBlockSenderEditResponse, err error)
- func (r *SettingBlockSenderService) Get(ctx context.Context, patternID string, query SettingBlockSenderGetParams, ...) (res *SettingBlockSenderGetResponse, err error)
- func (r *SettingBlockSenderService) List(ctx context.Context, params SettingBlockSenderListParams, ...) (res *pagination.V4PagePaginationArray[SettingBlockSenderListResponse], ...)
- func (r *SettingBlockSenderService) ListAutoPaging(ctx context.Context, params SettingBlockSenderListParams, ...) *pagination.V4PagePaginationArrayAutoPager[SettingBlockSenderListResponse]
- func (r *SettingBlockSenderService) New(ctx context.Context, params SettingBlockSenderNewParams, ...) (res *SettingBlockSenderNewResponse, err error)
- type SettingDomainDeleteParams
- type SettingDomainDeleteResponse
- type SettingDomainDeleteResponseEnvelope
- type SettingDomainDeleteResponseEnvelopeErrors
- type SettingDomainDeleteResponseEnvelopeErrorsSource
- type SettingDomainDeleteResponseEnvelopeMessages
- type SettingDomainDeleteResponseEnvelopeMessagesSource
- type SettingDomainDeleteResponseEnvelopeSuccess
- type SettingDomainEditParams
- type SettingDomainEditParamsAllowedDeliveryMode
- type SettingDomainEditParamsDropDisposition
- type SettingDomainEditParamsFolder
- type SettingDomainEditParamsRegion
- type SettingDomainEditResponse
- type SettingDomainEditResponseAllowedDeliveryMode
- type SettingDomainEditResponseAuthorization
- type SettingDomainEditResponseDMARCStatus
- type SettingDomainEditResponseDropDisposition
- type SettingDomainEditResponseEmailsProcessed
- type SettingDomainEditResponseEnvelope
- type SettingDomainEditResponseEnvelopeErrors
- type SettingDomainEditResponseEnvelopeErrorsSource
- type SettingDomainEditResponseEnvelopeMessages
- type SettingDomainEditResponseEnvelopeMessagesSource
- type SettingDomainEditResponseEnvelopeSuccess
- type SettingDomainEditResponseFolder
- type SettingDomainEditResponseInboxProvider
- type SettingDomainEditResponseRegion
- type SettingDomainEditResponseSPFStatus
- type SettingDomainEditResponseStatus
- type SettingDomainGetParams
- type SettingDomainGetResponse
- type SettingDomainGetResponseAllowedDeliveryMode
- type SettingDomainGetResponseAuthorization
- type SettingDomainGetResponseDMARCStatus
- type SettingDomainGetResponseDropDisposition
- type SettingDomainGetResponseEmailsProcessed
- type SettingDomainGetResponseEnvelope
- type SettingDomainGetResponseEnvelopeErrors
- type SettingDomainGetResponseEnvelopeErrorsSource
- type SettingDomainGetResponseEnvelopeMessages
- type SettingDomainGetResponseEnvelopeMessagesSource
- type SettingDomainGetResponseEnvelopeSuccess
- type SettingDomainGetResponseFolder
- type SettingDomainGetResponseInboxProvider
- type SettingDomainGetResponseRegion
- type SettingDomainGetResponseSPFStatus
- type SettingDomainGetResponseStatus
- type SettingDomainListParams
- type SettingDomainListParamsActiveDeliveryMode
- type SettingDomainListParamsAllowedDeliveryMode
- type SettingDomainListParamsDirection
- type SettingDomainListParamsOrder
- type SettingDomainListParamsStatus
- type SettingDomainListResponse
- type SettingDomainListResponseAllowedDeliveryMode
- type SettingDomainListResponseAuthorization
- type SettingDomainListResponseDMARCStatus
- type SettingDomainListResponseDropDisposition
- type SettingDomainListResponseEmailsProcessed
- type SettingDomainListResponseFolder
- type SettingDomainListResponseInboxProvider
- type SettingDomainListResponseRegion
- type SettingDomainListResponseSPFStatus
- type SettingDomainListResponseStatus
- type SettingDomainService
- func (r *SettingDomainService) Delete(ctx context.Context, domainID string, body SettingDomainDeleteParams, ...) (res *SettingDomainDeleteResponse, err error)
- func (r *SettingDomainService) Edit(ctx context.Context, domainID string, params SettingDomainEditParams, ...) (res *SettingDomainEditResponse, err error)
- func (r *SettingDomainService) Get(ctx context.Context, domainID string, query SettingDomainGetParams, ...) (res *SettingDomainGetResponse, err error)
- func (r *SettingDomainService) List(ctx context.Context, params SettingDomainListParams, ...) (res *pagination.V4PagePaginationArray[SettingDomainListResponse], err error)
- func (r *SettingDomainService) ListAutoPaging(ctx context.Context, params SettingDomainListParams, ...) *pagination.V4PagePaginationArrayAutoPager[SettingDomainListResponse]
- type SettingImpersonationRegistryDeleteParams
- type SettingImpersonationRegistryDeleteResponse
- type SettingImpersonationRegistryDeleteResponseEnvelope
- type SettingImpersonationRegistryDeleteResponseEnvelopeErrors
- type SettingImpersonationRegistryDeleteResponseEnvelopeErrorsSource
- type SettingImpersonationRegistryDeleteResponseEnvelopeMessages
- type SettingImpersonationRegistryDeleteResponseEnvelopeMessagesSource
- type SettingImpersonationRegistryDeleteResponseEnvelopeSuccess
- type SettingImpersonationRegistryEditParams
- type SettingImpersonationRegistryEditParamsProvenance
- type SettingImpersonationRegistryEditResponse
- type SettingImpersonationRegistryEditResponseEnvelope
- type SettingImpersonationRegistryEditResponseEnvelopeErrors
- type SettingImpersonationRegistryEditResponseEnvelopeErrorsSource
- type SettingImpersonationRegistryEditResponseEnvelopeMessages
- type SettingImpersonationRegistryEditResponseEnvelopeMessagesSource
- type SettingImpersonationRegistryEditResponseEnvelopeSuccess
- type SettingImpersonationRegistryEditResponseProvenance
- type SettingImpersonationRegistryGetParams
- type SettingImpersonationRegistryGetResponse
- type SettingImpersonationRegistryGetResponseEnvelope
- type SettingImpersonationRegistryGetResponseEnvelopeErrors
- type SettingImpersonationRegistryGetResponseEnvelopeErrorsSource
- type SettingImpersonationRegistryGetResponseEnvelopeMessages
- type SettingImpersonationRegistryGetResponseEnvelopeMessagesSource
- type SettingImpersonationRegistryGetResponseEnvelopeSuccess
- type SettingImpersonationRegistryGetResponseProvenance
- type SettingImpersonationRegistryListParams
- type SettingImpersonationRegistryListParamsDirection
- type SettingImpersonationRegistryListParamsOrder
- type SettingImpersonationRegistryListParamsProvenance
- type SettingImpersonationRegistryListResponse
- type SettingImpersonationRegistryListResponseProvenance
- type SettingImpersonationRegistryNewParams
- type SettingImpersonationRegistryNewParamsProvenance
- type SettingImpersonationRegistryNewResponse
- type SettingImpersonationRegistryNewResponseEnvelope
- type SettingImpersonationRegistryNewResponseEnvelopeErrors
- type SettingImpersonationRegistryNewResponseEnvelopeErrorsSource
- type SettingImpersonationRegistryNewResponseEnvelopeMessages
- type SettingImpersonationRegistryNewResponseEnvelopeMessagesSource
- type SettingImpersonationRegistryNewResponseEnvelopeSuccess
- type SettingImpersonationRegistryNewResponseProvenance
- type SettingImpersonationRegistryService
- func (r *SettingImpersonationRegistryService) Delete(ctx context.Context, impersonationRegistryID string, ...) (res *SettingImpersonationRegistryDeleteResponse, err error)
- func (r *SettingImpersonationRegistryService) Edit(ctx context.Context, impersonationRegistryID string, ...) (res *SettingImpersonationRegistryEditResponse, err error)
- func (r *SettingImpersonationRegistryService) Get(ctx context.Context, impersonationRegistryID string, ...) (res *SettingImpersonationRegistryGetResponse, err error)
- func (r *SettingImpersonationRegistryService) List(ctx context.Context, params SettingImpersonationRegistryListParams, ...) (...)
- func (r *SettingImpersonationRegistryService) ListAutoPaging(ctx context.Context, params SettingImpersonationRegistryListParams, ...) ...
- func (r *SettingImpersonationRegistryService) New(ctx context.Context, params SettingImpersonationRegistryNewParams, ...) (res *SettingImpersonationRegistryNewResponse, err error)
- type SettingService
- type SettingTrustedDomainDeleteParams
- type SettingTrustedDomainDeleteResponse
- type SettingTrustedDomainDeleteResponseEnvelope
- type SettingTrustedDomainDeleteResponseEnvelopeErrors
- type SettingTrustedDomainDeleteResponseEnvelopeErrorsSource
- type SettingTrustedDomainDeleteResponseEnvelopeMessages
- type SettingTrustedDomainDeleteResponseEnvelopeMessagesSource
- type SettingTrustedDomainDeleteResponseEnvelopeSuccess
- type SettingTrustedDomainEditParams
- type SettingTrustedDomainEditResponse
- type SettingTrustedDomainEditResponseEnvelope
- type SettingTrustedDomainEditResponseEnvelopeErrors
- type SettingTrustedDomainEditResponseEnvelopeErrorsSource
- type SettingTrustedDomainEditResponseEnvelopeMessages
- type SettingTrustedDomainEditResponseEnvelopeMessagesSource
- type SettingTrustedDomainEditResponseEnvelopeSuccess
- type SettingTrustedDomainGetParams
- type SettingTrustedDomainGetResponse
- type SettingTrustedDomainGetResponseEnvelope
- type SettingTrustedDomainGetResponseEnvelopeErrors
- type SettingTrustedDomainGetResponseEnvelopeErrorsSource
- type SettingTrustedDomainGetResponseEnvelopeMessages
- type SettingTrustedDomainGetResponseEnvelopeMessagesSource
- type SettingTrustedDomainGetResponseEnvelopeSuccess
- type SettingTrustedDomainListParams
- type SettingTrustedDomainListParamsDirection
- type SettingTrustedDomainListParamsOrder
- type SettingTrustedDomainListResponse
- type SettingTrustedDomainNewParams
- type SettingTrustedDomainNewResponse
- type SettingTrustedDomainNewResponseEnvelope
- type SettingTrustedDomainNewResponseEnvelopeErrors
- type SettingTrustedDomainNewResponseEnvelopeErrorsSource
- type SettingTrustedDomainNewResponseEnvelopeMessages
- type SettingTrustedDomainNewResponseEnvelopeMessagesSource
- type SettingTrustedDomainNewResponseEnvelopeSuccess
- type SettingTrustedDomainService
- func (r *SettingTrustedDomainService) Delete(ctx context.Context, trustedDomainID string, ...) (res *SettingTrustedDomainDeleteResponse, err error)
- func (r *SettingTrustedDomainService) Edit(ctx context.Context, trustedDomainID string, ...) (res *SettingTrustedDomainEditResponse, err error)
- func (r *SettingTrustedDomainService) Get(ctx context.Context, trustedDomainID string, ...) (res *SettingTrustedDomainGetResponse, err error)
- func (r *SettingTrustedDomainService) List(ctx context.Context, params SettingTrustedDomainListParams, ...) (res *pagination.V4PagePaginationArray[SettingTrustedDomainListResponse], ...)
- func (r *SettingTrustedDomainService) ListAutoPaging(ctx context.Context, params SettingTrustedDomainListParams, ...) *pagination.V4PagePaginationArrayAutoPager[SettingTrustedDomainListResponse]
- func (r *SettingTrustedDomainService) New(ctx context.Context, params SettingTrustedDomainNewParams, ...) (res *SettingTrustedDomainNewResponse, err error)
- type SortDirection
- type SubmissionListParams
- type SubmissionListParamsOriginalDisposition
- type SubmissionListParamsOutcomeDisposition
- type SubmissionListParamsRequestedDisposition
- type SubmissionListParamsType
- type SubmissionListResponse
- type SubmissionListResponseCustomerStatus
- type SubmissionListResponseEscalatedAs
- type SubmissionListResponseOriginalDisposition
- type SubmissionListResponseOutcomeDisposition
- type SubmissionListResponseRequestedDisposition
- type SubmissionListResponseType
- type SubmissionService
- func (r *SubmissionService) List(ctx context.Context, params SubmissionListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[SubmissionListResponse], err error)
- func (r *SubmissionService) ListAutoPaging(ctx context.Context, params SubmissionListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[SubmissionListResponse]
- 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
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 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 EmailSecurityService ¶
type EmailSecurityService struct {
Options []option.RequestOption
Investigate *InvestigateService
Phishguard *PhishguardService
Settings *SettingService
Submissions *SubmissionService
}
EmailSecurityService 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 NewEmailSecurityService method instead.
func NewEmailSecurityService ¶
func NewEmailSecurityService(opts ...option.RequestOption) (r *EmailSecurityService)
NewEmailSecurityService 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 ErrorDataSource ¶
type ErrorDataSource = shared.ErrorDataSource
This is an alias to an internal type.
type InvestigateDetectionGetResponse ¶
type InvestigateDetectionGetResponse struct {
Action string `json:"action" api:"required"`
Attachments []InvestigateDetectionGetResponseAttachment `json:"attachments" api:"required"`
Findings []InvestigateDetectionGetResponseFinding `json:"findings" api:"required,nullable"`
Headers []InvestigateDetectionGetResponseHeader `json:"headers" api:"required"`
Links []InvestigateDetectionGetResponseLink `json:"links" api:"required"`
SenderInfo InvestigateDetectionGetResponseSenderInfo `json:"sender_info" api:"required"`
ThreatCategories []InvestigateDetectionGetResponseThreatCategory `json:"threat_categories" api:"required"`
Validation InvestigateDetectionGetResponseValidation `json:"validation" api:"required"`
FinalDisposition InvestigateDetectionGetResponseFinalDisposition `json:"final_disposition"`
JSON investigateDetectionGetResponseJSON `json:"-"`
}
func (*InvestigateDetectionGetResponse) UnmarshalJSON ¶
func (r *InvestigateDetectionGetResponse) UnmarshalJSON(data []byte) (err error)
type InvestigateDetectionGetResponseAttachment ¶
type InvestigateDetectionGetResponseAttachment struct {
// Size of the attachment in bytes
Size int64 `json:"size" api:"required"`
// MIME type of the attachment
ContentType string `json:"content_type" api:"nullable"`
// Detection result for this attachment
Detection InvestigateDetectionGetResponseAttachmentsDetection `json:"detection" api:"nullable"`
// Whether the attachment is encrypted
Encrypted bool `json:"encrypted" api:"nullable"`
// Name of the attached file
Filename string `json:"filename" api:"nullable"`
// MD5 hash of the attachment
Md5 string `json:"md5" api:"nullable"`
// Attachment name (alternative to filename)
Name string `json:"name" api:"nullable"`
// SHA1 hash of the attachment
Sha1 string `json:"sha1" api:"nullable"`
// SHA256 hash of the attachment
Sha256 string `json:"sha256" api:"nullable"`
JSON investigateDetectionGetResponseAttachmentJSON `json:"-"`
}
func (*InvestigateDetectionGetResponseAttachment) UnmarshalJSON ¶
func (r *InvestigateDetectionGetResponseAttachment) UnmarshalJSON(data []byte) (err error)
type InvestigateDetectionGetResponseAttachmentsDetection ¶
type InvestigateDetectionGetResponseAttachmentsDetection string
Detection result for this attachment
const ( InvestigateDetectionGetResponseAttachmentsDetectionMalicious InvestigateDetectionGetResponseAttachmentsDetection = "MALICIOUS" InvestigateDetectionGetResponseAttachmentsDetectionMaliciousBec InvestigateDetectionGetResponseAttachmentsDetection = "MALICIOUS-BEC" InvestigateDetectionGetResponseAttachmentsDetectionSuspicious InvestigateDetectionGetResponseAttachmentsDetection = "SUSPICIOUS" InvestigateDetectionGetResponseAttachmentsDetectionSpoof InvestigateDetectionGetResponseAttachmentsDetection = "SPOOF" InvestigateDetectionGetResponseAttachmentsDetectionSpam InvestigateDetectionGetResponseAttachmentsDetection = "SPAM" InvestigateDetectionGetResponseAttachmentsDetectionBulk InvestigateDetectionGetResponseAttachmentsDetection = "BULK" InvestigateDetectionGetResponseAttachmentsDetectionEncrypted InvestigateDetectionGetResponseAttachmentsDetection = "ENCRYPTED" InvestigateDetectionGetResponseAttachmentsDetectionExternal InvestigateDetectionGetResponseAttachmentsDetection = "EXTERNAL" InvestigateDetectionGetResponseAttachmentsDetectionUnknown InvestigateDetectionGetResponseAttachmentsDetection = "UNKNOWN" InvestigateDetectionGetResponseAttachmentsDetectionNone InvestigateDetectionGetResponseAttachmentsDetection = "NONE" )
func (InvestigateDetectionGetResponseAttachmentsDetection) IsKnown ¶
func (r InvestigateDetectionGetResponseAttachmentsDetection) IsKnown() bool
type InvestigateDetectionGetResponseEnvelope ¶
type InvestigateDetectionGetResponseEnvelope struct {
Errors []InvestigateDetectionGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []InvestigateDetectionGetResponseEnvelopeMessages `json:"messages" api:"required"`
Result InvestigateDetectionGetResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success InvestigateDetectionGetResponseEnvelopeSuccess `json:"success" api:"required"`
JSON investigateDetectionGetResponseEnvelopeJSON `json:"-"`
}
func (*InvestigateDetectionGetResponseEnvelope) UnmarshalJSON ¶
func (r *InvestigateDetectionGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type InvestigateDetectionGetResponseEnvelopeErrors ¶
type InvestigateDetectionGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source InvestigateDetectionGetResponseEnvelopeErrorsSource `json:"source"`
JSON investigateDetectionGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*InvestigateDetectionGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *InvestigateDetectionGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type InvestigateDetectionGetResponseEnvelopeErrorsSource ¶
type InvestigateDetectionGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON investigateDetectionGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*InvestigateDetectionGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *InvestigateDetectionGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type InvestigateDetectionGetResponseEnvelopeMessages ¶
type InvestigateDetectionGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source InvestigateDetectionGetResponseEnvelopeMessagesSource `json:"source"`
JSON investigateDetectionGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*InvestigateDetectionGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *InvestigateDetectionGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type InvestigateDetectionGetResponseEnvelopeMessagesSource ¶
type InvestigateDetectionGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON investigateDetectionGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*InvestigateDetectionGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *InvestigateDetectionGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type InvestigateDetectionGetResponseEnvelopeSuccess ¶
type InvestigateDetectionGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
InvestigateDetectionGetResponseEnvelopeSuccessTrue InvestigateDetectionGetResponseEnvelopeSuccess = true
)
func (InvestigateDetectionGetResponseEnvelopeSuccess) IsKnown ¶
func (r InvestigateDetectionGetResponseEnvelopeSuccess) IsKnown() bool
type InvestigateDetectionGetResponseFinalDisposition ¶
type InvestigateDetectionGetResponseFinalDisposition string
const ( InvestigateDetectionGetResponseFinalDispositionMalicious InvestigateDetectionGetResponseFinalDisposition = "MALICIOUS" InvestigateDetectionGetResponseFinalDispositionMaliciousBec InvestigateDetectionGetResponseFinalDisposition = "MALICIOUS-BEC" InvestigateDetectionGetResponseFinalDispositionSuspicious InvestigateDetectionGetResponseFinalDisposition = "SUSPICIOUS" InvestigateDetectionGetResponseFinalDispositionSpoof InvestigateDetectionGetResponseFinalDisposition = "SPOOF" InvestigateDetectionGetResponseFinalDispositionSpam InvestigateDetectionGetResponseFinalDisposition = "SPAM" InvestigateDetectionGetResponseFinalDispositionBulk InvestigateDetectionGetResponseFinalDisposition = "BULK" InvestigateDetectionGetResponseFinalDispositionEncrypted InvestigateDetectionGetResponseFinalDisposition = "ENCRYPTED" InvestigateDetectionGetResponseFinalDispositionExternal InvestigateDetectionGetResponseFinalDisposition = "EXTERNAL" InvestigateDetectionGetResponseFinalDispositionUnknown InvestigateDetectionGetResponseFinalDisposition = "UNKNOWN" InvestigateDetectionGetResponseFinalDispositionNone InvestigateDetectionGetResponseFinalDisposition = "NONE" )
func (InvestigateDetectionGetResponseFinalDisposition) IsKnown ¶
func (r InvestigateDetectionGetResponseFinalDisposition) IsKnown() bool
type InvestigateDetectionGetResponseFinding ¶
type InvestigateDetectionGetResponseFinding struct {
Attachment string `json:"attachment" api:"nullable"`
Detail string `json:"detail" api:"nullable"`
Detection InvestigateDetectionGetResponseFindingsDetection `json:"detection"`
Field string `json:"field" api:"nullable"`
Name string `json:"name" api:"nullable"`
Portion string `json:"portion" api:"nullable"`
Reason string `json:"reason" api:"nullable"`
Score float64 `json:"score" api:"nullable"`
Value string `json:"value" api:"nullable"`
JSON investigateDetectionGetResponseFindingJSON `json:"-"`
}
func (*InvestigateDetectionGetResponseFinding) UnmarshalJSON ¶
func (r *InvestigateDetectionGetResponseFinding) UnmarshalJSON(data []byte) (err error)
type InvestigateDetectionGetResponseFindingsDetection ¶
type InvestigateDetectionGetResponseFindingsDetection string
const ( InvestigateDetectionGetResponseFindingsDetectionMalicious InvestigateDetectionGetResponseFindingsDetection = "MALICIOUS" InvestigateDetectionGetResponseFindingsDetectionMaliciousBec InvestigateDetectionGetResponseFindingsDetection = "MALICIOUS-BEC" InvestigateDetectionGetResponseFindingsDetectionSuspicious InvestigateDetectionGetResponseFindingsDetection = "SUSPICIOUS" InvestigateDetectionGetResponseFindingsDetectionSpoof InvestigateDetectionGetResponseFindingsDetection = "SPOOF" InvestigateDetectionGetResponseFindingsDetectionSpam InvestigateDetectionGetResponseFindingsDetection = "SPAM" InvestigateDetectionGetResponseFindingsDetectionBulk InvestigateDetectionGetResponseFindingsDetection = "BULK" InvestigateDetectionGetResponseFindingsDetectionEncrypted InvestigateDetectionGetResponseFindingsDetection = "ENCRYPTED" InvestigateDetectionGetResponseFindingsDetectionExternal InvestigateDetectionGetResponseFindingsDetection = "EXTERNAL" InvestigateDetectionGetResponseFindingsDetectionUnknown InvestigateDetectionGetResponseFindingsDetection = "UNKNOWN" InvestigateDetectionGetResponseFindingsDetectionNone InvestigateDetectionGetResponseFindingsDetection = "NONE" )
func (InvestigateDetectionGetResponseFindingsDetection) IsKnown ¶
func (r InvestigateDetectionGetResponseFindingsDetection) IsKnown() bool
type InvestigateDetectionGetResponseHeader ¶
type InvestigateDetectionGetResponseHeader struct {
Name string `json:"name" api:"required"`
Value string `json:"value" api:"required"`
JSON investigateDetectionGetResponseHeaderJSON `json:"-"`
}
func (*InvestigateDetectionGetResponseHeader) UnmarshalJSON ¶
func (r *InvestigateDetectionGetResponseHeader) UnmarshalJSON(data []byte) (err error)
type InvestigateDetectionGetResponseLink ¶
type InvestigateDetectionGetResponseLink struct {
Href string `json:"href" api:"required"`
Text string `json:"text" api:"nullable"`
JSON investigateDetectionGetResponseLinkJSON `json:"-"`
}
func (*InvestigateDetectionGetResponseLink) UnmarshalJSON ¶
func (r *InvestigateDetectionGetResponseLink) UnmarshalJSON(data []byte) (err error)
type InvestigateDetectionGetResponseSenderInfo ¶
type InvestigateDetectionGetResponseSenderInfo struct {
// The name of the autonomous system.
AsName string `json:"as_name" api:"nullable"`
// The number of the autonomous system.
AsNumber int64 `json:"as_number" api:"nullable"`
Geo string `json:"geo" api:"nullable"`
IP string `json:"ip" api:"nullable"`
Pld string `json:"pld" api:"nullable"`
JSON investigateDetectionGetResponseSenderInfoJSON `json:"-"`
}
func (*InvestigateDetectionGetResponseSenderInfo) UnmarshalJSON ¶
func (r *InvestigateDetectionGetResponseSenderInfo) UnmarshalJSON(data []byte) (err error)
type InvestigateDetectionGetResponseThreatCategory ¶
type InvestigateDetectionGetResponseThreatCategory struct {
ID int64 `json:"id"`
Description string `json:"description" api:"nullable"`
Name string `json:"name" api:"nullable"`
JSON investigateDetectionGetResponseThreatCategoryJSON `json:"-"`
}
func (*InvestigateDetectionGetResponseThreatCategory) UnmarshalJSON ¶
func (r *InvestigateDetectionGetResponseThreatCategory) UnmarshalJSON(data []byte) (err error)
type InvestigateDetectionGetResponseValidation ¶
type InvestigateDetectionGetResponseValidation struct {
Comment string `json:"comment" api:"nullable"`
DKIM InvestigateDetectionGetResponseValidationDKIM `json:"dkim"`
DMARC InvestigateDetectionGetResponseValidationDMARC `json:"dmarc"`
SPF InvestigateDetectionGetResponseValidationSPF `json:"spf"`
JSON investigateDetectionGetResponseValidationJSON `json:"-"`
}
func (*InvestigateDetectionGetResponseValidation) UnmarshalJSON ¶
func (r *InvestigateDetectionGetResponseValidation) UnmarshalJSON(data []byte) (err error)
type InvestigateDetectionGetResponseValidationDKIM ¶
type InvestigateDetectionGetResponseValidationDKIM string
const ( InvestigateDetectionGetResponseValidationDKIMPass InvestigateDetectionGetResponseValidationDKIM = "pass" InvestigateDetectionGetResponseValidationDKIMNeutral InvestigateDetectionGetResponseValidationDKIM = "neutral" InvestigateDetectionGetResponseValidationDKIMFail InvestigateDetectionGetResponseValidationDKIM = "fail" InvestigateDetectionGetResponseValidationDKIMError InvestigateDetectionGetResponseValidationDKIM = "error" InvestigateDetectionGetResponseValidationDKIMNone InvestigateDetectionGetResponseValidationDKIM = "none" )
func (InvestigateDetectionGetResponseValidationDKIM) IsKnown ¶
func (r InvestigateDetectionGetResponseValidationDKIM) IsKnown() bool
type InvestigateDetectionGetResponseValidationDMARC ¶
type InvestigateDetectionGetResponseValidationDMARC string
const ( InvestigateDetectionGetResponseValidationDMARCPass InvestigateDetectionGetResponseValidationDMARC = "pass" InvestigateDetectionGetResponseValidationDMARCNeutral InvestigateDetectionGetResponseValidationDMARC = "neutral" InvestigateDetectionGetResponseValidationDMARCFail InvestigateDetectionGetResponseValidationDMARC = "fail" InvestigateDetectionGetResponseValidationDMARCError InvestigateDetectionGetResponseValidationDMARC = "error" InvestigateDetectionGetResponseValidationDMARCNone InvestigateDetectionGetResponseValidationDMARC = "none" )
func (InvestigateDetectionGetResponseValidationDMARC) IsKnown ¶
func (r InvestigateDetectionGetResponseValidationDMARC) IsKnown() bool
type InvestigateDetectionGetResponseValidationSPF ¶
type InvestigateDetectionGetResponseValidationSPF string
const ( InvestigateDetectionGetResponseValidationSPFPass InvestigateDetectionGetResponseValidationSPF = "pass" InvestigateDetectionGetResponseValidationSPFNeutral InvestigateDetectionGetResponseValidationSPF = "neutral" InvestigateDetectionGetResponseValidationSPFFail InvestigateDetectionGetResponseValidationSPF = "fail" InvestigateDetectionGetResponseValidationSPFError InvestigateDetectionGetResponseValidationSPF = "error" InvestigateDetectionGetResponseValidationSPFNone InvestigateDetectionGetResponseValidationSPF = "none" )
func (InvestigateDetectionGetResponseValidationSPF) IsKnown ¶
func (r InvestigateDetectionGetResponseValidationSPF) IsKnown() bool
type InvestigateDetectionService ¶
type InvestigateDetectionService struct {
Options []option.RequestOption
}
InvestigateDetectionService 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 NewInvestigateDetectionService method instead.
func NewInvestigateDetectionService ¶
func NewInvestigateDetectionService(opts ...option.RequestOption) (r *InvestigateDetectionService)
NewInvestigateDetectionService 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 (*InvestigateDetectionService) Get ¶
func (r *InvestigateDetectionService) Get(ctx context.Context, investigateID string, query InvestigateDetectionGetParams, opts ...option.RequestOption) (res *InvestigateDetectionGetResponse, err error)
Returns detection details such as threat categories and sender information for non-benign messages.
type InvestigateGetParams ¶
type InvestigateGetParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// When true, search the submissions datastore only. When false or omitted, search
// the regular datastore only.
Submission param.Field[bool] `query:"submission"`
}
func (InvestigateGetParams) URLQuery ¶
func (r InvestigateGetParams) URLQuery() (v url.Values)
URLQuery serializes InvestigateGetParams's query parameters as `url.Values`.
type InvestigateGetResponse ¶
type InvestigateGetResponse struct {
// Unique identifier for a message retrieved from investigation
ID string `json:"id" api:"required"`
// Deprecated, use `GET /investigate/{investigate_id}/action_log` instead. End of
// life: November 1, 2026.
//
// Deprecated: deprecated
ActionLog []InvestigateGetResponseActionLog `json:"action_log" api:"required"`
ClientRecipients []string `json:"client_recipients" api:"required"`
DetectionReasons []string `json:"detection_reasons" api:"required"`
IsPhishSubmission bool `json:"is_phish_submission" api:"required"`
IsQuarantined bool `json:"is_quarantined" api:"required"`
// The identifier of the message
PostfixID string `json:"postfix_id" api:"required"`
// Message processing properties
Properties InvestigateGetResponseProperties `json:"properties" api:"required"`
// Deprecated, use `scanned_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
Ts string `json:"ts" api:"required"`
AlertID string `json:"alert_id" api:"nullable"`
DeliveryMode InvestigateGetResponseDeliveryMode `json:"delivery_mode"`
DeliveryStatus []InvestigateGetResponseDeliveryStatus `json:"delivery_status" api:"nullable"`
EdfHash string `json:"edf_hash" api:"nullable"`
EnvelopeFrom string `json:"envelope_from" api:"nullable"`
EnvelopeTo []string `json:"envelope_to" api:"nullable"`
FinalDisposition InvestigateGetResponseFinalDisposition `json:"final_disposition"`
// Deprecated, use the `findings` field from
// `GET /investigate/{investigate_id}/detections` instead. End of life: November
// 1, 2026. Detection findings for this message.
//
// Deprecated: deprecated
Findings []InvestigateGetResponseFinding `json:"findings" api:"nullable"`
From string `json:"from" api:"nullable"`
FromName string `json:"from_name" api:"nullable"`
HtmltextStructureHash string `json:"htmltext_structure_hash" api:"nullable"`
MessageID string `json:"message_id" api:"nullable"`
// Post-delivery operations performed on this message
PostDeliveryOperations []InvestigateGetResponsePostDeliveryOperation `json:"post_delivery_operations" api:"nullable"`
PostfixIDOutbound string `json:"postfix_id_outbound" api:"nullable"`
Replyto string `json:"replyto" api:"nullable"`
// When the message was scanned (UTC)
ScannedAt time.Time `json:"scanned_at" api:"nullable" format:"date-time"`
// When the message was sent (UTC)
SentAt time.Time `json:"sent_at" api:"nullable" format:"date-time"`
SentDate string `json:"sent_date" api:"nullable"`
SmtpHeloServerIP string `json:"smtp_helo_server_ip" api:"nullable"`
SmtpPreviousHopIP string `json:"smtp_previous_hop_ip" api:"nullable"`
Subject string `json:"subject" api:"nullable"`
ThreatCategories []string `json:"threat_categories" api:"nullable"`
To []string `json:"to" api:"nullable"`
ToName []string `json:"to_name" api:"nullable"`
Validation InvestigateGetResponseValidation `json:"validation"`
XOriginatingIP string `json:"x_originating_ip" api:"nullable"`
JSON investigateGetResponseJSON `json:"-"`
}
func (*InvestigateGetResponse) UnmarshalJSON ¶
func (r *InvestigateGetResponse) UnmarshalJSON(data []byte) (err error)
type InvestigateGetResponseActionLog ¶
type InvestigateGetResponseActionLog struct {
// Timestamp when action completed
CompletedAt time.Time `json:"completed_at" api:"required" format:"date-time"`
// Type of action performed
Operation InvestigateGetResponseActionLogOperation `json:"operation" api:"required"`
// Deprecated, use `completed_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
CompletedTimestamp string `json:"completed_timestamp"`
// Additional properties for the action
Properties InvestigateGetResponseActionLogProperties `json:"properties"`
// Status of the action
Status string `json:"status" api:"nullable"`
JSON investigateGetResponseActionLogJSON `json:"-"`
}
func (*InvestigateGetResponseActionLog) UnmarshalJSON ¶
func (r *InvestigateGetResponseActionLog) UnmarshalJSON(data []byte) (err error)
type InvestigateGetResponseActionLogOperation ¶
type InvestigateGetResponseActionLogOperation string
Type of action performed
const ( InvestigateGetResponseActionLogOperationMove InvestigateGetResponseActionLogOperation = "MOVE" InvestigateGetResponseActionLogOperationRelease InvestigateGetResponseActionLogOperation = "RELEASE" InvestigateGetResponseActionLogOperationReclassify InvestigateGetResponseActionLogOperation = "RECLASSIFY" InvestigateGetResponseActionLogOperationSubmission InvestigateGetResponseActionLogOperation = "SUBMISSION" InvestigateGetResponseActionLogOperationQuarantineRelease InvestigateGetResponseActionLogOperation = "QUARANTINE_RELEASE" InvestigateGetResponseActionLogOperationPreview InvestigateGetResponseActionLogOperation = "PREVIEW" )
func (InvestigateGetResponseActionLogOperation) IsKnown ¶
func (r InvestigateGetResponseActionLogOperation) IsKnown() bool
type InvestigateGetResponseActionLogProperties ¶
type InvestigateGetResponseActionLogProperties struct {
// Target folder for move operations
Folder string `json:"folder"`
// User who requested the action
RequestedBy string `json:"requested_by"`
JSON investigateGetResponseActionLogPropertiesJSON `json:"-"`
}
Additional properties for the action
func (*InvestigateGetResponseActionLogProperties) UnmarshalJSON ¶
func (r *InvestigateGetResponseActionLogProperties) UnmarshalJSON(data []byte) (err error)
type InvestigateGetResponseDeliveryMode ¶
type InvestigateGetResponseDeliveryMode string
const ( InvestigateGetResponseDeliveryModeDirect InvestigateGetResponseDeliveryMode = "DIRECT" InvestigateGetResponseDeliveryModeBcc InvestigateGetResponseDeliveryMode = "BCC" InvestigateGetResponseDeliveryModeJournal InvestigateGetResponseDeliveryMode = "JOURNAL" InvestigateGetResponseDeliveryModeReviewSubmission InvestigateGetResponseDeliveryMode = "REVIEW_SUBMISSION" InvestigateGetResponseDeliveryModeDMARCUnverified InvestigateGetResponseDeliveryMode = "DMARC_UNVERIFIED" InvestigateGetResponseDeliveryModeDMARCFailureReport InvestigateGetResponseDeliveryMode = "DMARC_FAILURE_REPORT" InvestigateGetResponseDeliveryModeDMARCAggregateReport InvestigateGetResponseDeliveryMode = "DMARC_AGGREGATE_REPORT" InvestigateGetResponseDeliveryModeThreatIntelSubmission InvestigateGetResponseDeliveryMode = "THREAT_INTEL_SUBMISSION" InvestigateGetResponseDeliveryModeSimulationSubmission InvestigateGetResponseDeliveryMode = "SIMULATION_SUBMISSION" InvestigateGetResponseDeliveryModeAPI InvestigateGetResponseDeliveryMode = "API" InvestigateGetResponseDeliveryModeRetroScan InvestigateGetResponseDeliveryMode = "RETRO_SCAN" )
func (InvestigateGetResponseDeliveryMode) IsKnown ¶
func (r InvestigateGetResponseDeliveryMode) IsKnown() bool
type InvestigateGetResponseDeliveryStatus ¶
type InvestigateGetResponseDeliveryStatus string
Delivery status of the message.
const ( InvestigateGetResponseDeliveryStatusDelivered InvestigateGetResponseDeliveryStatus = "delivered" InvestigateGetResponseDeliveryStatusMoved InvestigateGetResponseDeliveryStatus = "moved" InvestigateGetResponseDeliveryStatusQuarantined InvestigateGetResponseDeliveryStatus = "quarantined" InvestigateGetResponseDeliveryStatusRejected InvestigateGetResponseDeliveryStatus = "rejected" InvestigateGetResponseDeliveryStatusDeferred InvestigateGetResponseDeliveryStatus = "deferred" InvestigateGetResponseDeliveryStatusBounced InvestigateGetResponseDeliveryStatus = "bounced" InvestigateGetResponseDeliveryStatusQueued InvestigateGetResponseDeliveryStatus = "queued" )
func (InvestigateGetResponseDeliveryStatus) IsKnown ¶
func (r InvestigateGetResponseDeliveryStatus) IsKnown() bool
type InvestigateGetResponseEnvelope ¶
type InvestigateGetResponseEnvelope struct {
Errors []InvestigateGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []InvestigateGetResponseEnvelopeMessages `json:"messages" api:"required"`
Result InvestigateGetResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success InvestigateGetResponseEnvelopeSuccess `json:"success" api:"required"`
JSON investigateGetResponseEnvelopeJSON `json:"-"`
}
func (*InvestigateGetResponseEnvelope) UnmarshalJSON ¶
func (r *InvestigateGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type InvestigateGetResponseEnvelopeErrors ¶
type InvestigateGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source InvestigateGetResponseEnvelopeErrorsSource `json:"source"`
JSON investigateGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*InvestigateGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *InvestigateGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type InvestigateGetResponseEnvelopeErrorsSource ¶
type InvestigateGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON investigateGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*InvestigateGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *InvestigateGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type InvestigateGetResponseEnvelopeMessages ¶
type InvestigateGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source InvestigateGetResponseEnvelopeMessagesSource `json:"source"`
JSON investigateGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*InvestigateGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *InvestigateGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type InvestigateGetResponseEnvelopeMessagesSource ¶
type InvestigateGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON investigateGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*InvestigateGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *InvestigateGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type InvestigateGetResponseEnvelopeSuccess ¶
type InvestigateGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
InvestigateGetResponseEnvelopeSuccessTrue InvestigateGetResponseEnvelopeSuccess = true
)
func (InvestigateGetResponseEnvelopeSuccess) IsKnown ¶
func (r InvestigateGetResponseEnvelopeSuccess) IsKnown() bool
type InvestigateGetResponseFinalDisposition ¶
type InvestigateGetResponseFinalDisposition string
const ( InvestigateGetResponseFinalDispositionMalicious InvestigateGetResponseFinalDisposition = "MALICIOUS" InvestigateGetResponseFinalDispositionMaliciousBec InvestigateGetResponseFinalDisposition = "MALICIOUS-BEC" InvestigateGetResponseFinalDispositionSuspicious InvestigateGetResponseFinalDisposition = "SUSPICIOUS" InvestigateGetResponseFinalDispositionSpoof InvestigateGetResponseFinalDisposition = "SPOOF" InvestigateGetResponseFinalDispositionSpam InvestigateGetResponseFinalDisposition = "SPAM" InvestigateGetResponseFinalDispositionBulk InvestigateGetResponseFinalDisposition = "BULK" InvestigateGetResponseFinalDispositionEncrypted InvestigateGetResponseFinalDisposition = "ENCRYPTED" InvestigateGetResponseFinalDispositionExternal InvestigateGetResponseFinalDisposition = "EXTERNAL" InvestigateGetResponseFinalDispositionUnknown InvestigateGetResponseFinalDisposition = "UNKNOWN" InvestigateGetResponseFinalDispositionNone InvestigateGetResponseFinalDisposition = "NONE" )
func (InvestigateGetResponseFinalDisposition) IsKnown ¶
func (r InvestigateGetResponseFinalDisposition) IsKnown() bool
type InvestigateGetResponseFinding ¶
type InvestigateGetResponseFinding struct {
Attachment string `json:"attachment" api:"nullable"`
Detail string `json:"detail" api:"nullable"`
Detection InvestigateGetResponseFindingsDetection `json:"detection"`
Field string `json:"field" api:"nullable"`
Name string `json:"name" api:"nullable"`
Portion string `json:"portion" api:"nullable"`
Reason string `json:"reason" api:"nullable"`
Score float64 `json:"score" api:"nullable"`
Value string `json:"value" api:"nullable"`
JSON investigateGetResponseFindingJSON `json:"-"`
}
func (*InvestigateGetResponseFinding) UnmarshalJSON ¶
func (r *InvestigateGetResponseFinding) UnmarshalJSON(data []byte) (err error)
type InvestigateGetResponseFindingsDetection ¶
type InvestigateGetResponseFindingsDetection string
const ( InvestigateGetResponseFindingsDetectionMalicious InvestigateGetResponseFindingsDetection = "MALICIOUS" InvestigateGetResponseFindingsDetectionMaliciousBec InvestigateGetResponseFindingsDetection = "MALICIOUS-BEC" InvestigateGetResponseFindingsDetectionSuspicious InvestigateGetResponseFindingsDetection = "SUSPICIOUS" InvestigateGetResponseFindingsDetectionSpoof InvestigateGetResponseFindingsDetection = "SPOOF" InvestigateGetResponseFindingsDetectionSpam InvestigateGetResponseFindingsDetection = "SPAM" InvestigateGetResponseFindingsDetectionBulk InvestigateGetResponseFindingsDetection = "BULK" InvestigateGetResponseFindingsDetectionEncrypted InvestigateGetResponseFindingsDetection = "ENCRYPTED" InvestigateGetResponseFindingsDetectionExternal InvestigateGetResponseFindingsDetection = "EXTERNAL" InvestigateGetResponseFindingsDetectionUnknown InvestigateGetResponseFindingsDetection = "UNKNOWN" InvestigateGetResponseFindingsDetectionNone InvestigateGetResponseFindingsDetection = "NONE" )
func (InvestigateGetResponseFindingsDetection) IsKnown ¶
func (r InvestigateGetResponseFindingsDetection) IsKnown() bool
type InvestigateGetResponsePostDeliveryOperation ¶
type InvestigateGetResponsePostDeliveryOperation string
const ( InvestigateGetResponsePostDeliveryOperationPreview InvestigateGetResponsePostDeliveryOperation = "PREVIEW" InvestigateGetResponsePostDeliveryOperationQuarantineRelease InvestigateGetResponsePostDeliveryOperation = "QUARANTINE_RELEASE" InvestigateGetResponsePostDeliveryOperationSubmission InvestigateGetResponsePostDeliveryOperation = "SUBMISSION" InvestigateGetResponsePostDeliveryOperationMove InvestigateGetResponsePostDeliveryOperation = "MOVE" )
func (InvestigateGetResponsePostDeliveryOperation) IsKnown ¶
func (r InvestigateGetResponsePostDeliveryOperation) IsKnown() bool
type InvestigateGetResponseProperties ¶
type InvestigateGetResponseProperties struct {
// Pattern that allowlisted this message
AllowlistedPattern string `json:"allowlisted_pattern" api:"nullable"`
// Type of allowlist pattern
AllowlistedPatternType InvestigateGetResponsePropertiesAllowlistedPatternType `json:"allowlisted_pattern_type" api:"nullable"`
// Whether message was blocklisted
BlocklistedMessage bool `json:"blocklisted_message" api:"nullable"`
// Pattern that blocklisted this message
BlocklistedPattern string `json:"blocklisted_pattern" api:"nullable"`
// Legacy field for allowlist pattern type
WhitelistedPatternType InvestigateGetResponsePropertiesWhitelistedPatternType `json:"whitelisted_pattern_type" api:"nullable"`
JSON investigateGetResponsePropertiesJSON `json:"-"`
}
Message processing properties
func (*InvestigateGetResponseProperties) UnmarshalJSON ¶
func (r *InvestigateGetResponseProperties) UnmarshalJSON(data []byte) (err error)
type InvestigateGetResponsePropertiesAllowlistedPatternType ¶
type InvestigateGetResponsePropertiesAllowlistedPatternType string
Type of allowlist pattern
const ( InvestigateGetResponsePropertiesAllowlistedPatternTypeQuarantineRelease InvestigateGetResponsePropertiesAllowlistedPatternType = "quarantine_release" InvestigateGetResponsePropertiesAllowlistedPatternTypeAcceptableSender InvestigateGetResponsePropertiesAllowlistedPatternType = "acceptable_sender" InvestigateGetResponsePropertiesAllowlistedPatternTypeAllowedSender InvestigateGetResponsePropertiesAllowlistedPatternType = "allowed_sender" InvestigateGetResponsePropertiesAllowlistedPatternTypeAllowedRecipient InvestigateGetResponsePropertiesAllowlistedPatternType = "allowed_recipient" InvestigateGetResponsePropertiesAllowlistedPatternTypeDomainSimilarity InvestigateGetResponsePropertiesAllowlistedPatternType = "domain_similarity" InvestigateGetResponsePropertiesAllowlistedPatternTypeDomainRecency InvestigateGetResponsePropertiesAllowlistedPatternType = "domain_recency" InvestigateGetResponsePropertiesAllowlistedPatternTypeManagedAcceptableSender InvestigateGetResponsePropertiesAllowlistedPatternType = "managed_acceptable_sender" InvestigateGetResponsePropertiesAllowlistedPatternTypeOutboundNdr InvestigateGetResponsePropertiesAllowlistedPatternType = "outbound_ndr" )
func (InvestigateGetResponsePropertiesAllowlistedPatternType) IsKnown ¶
func (r InvestigateGetResponsePropertiesAllowlistedPatternType) IsKnown() bool
type InvestigateGetResponsePropertiesWhitelistedPatternType ¶
type InvestigateGetResponsePropertiesWhitelistedPatternType string
Legacy field for allowlist pattern type
const ( InvestigateGetResponsePropertiesWhitelistedPatternTypeQuarantineRelease InvestigateGetResponsePropertiesWhitelistedPatternType = "quarantine_release" InvestigateGetResponsePropertiesWhitelistedPatternTypeAcceptableSender InvestigateGetResponsePropertiesWhitelistedPatternType = "acceptable_sender" InvestigateGetResponsePropertiesWhitelistedPatternTypeAllowedSender InvestigateGetResponsePropertiesWhitelistedPatternType = "allowed_sender" InvestigateGetResponsePropertiesWhitelistedPatternTypeAllowedRecipient InvestigateGetResponsePropertiesWhitelistedPatternType = "allowed_recipient" InvestigateGetResponsePropertiesWhitelistedPatternTypeDomainSimilarity InvestigateGetResponsePropertiesWhitelistedPatternType = "domain_similarity" InvestigateGetResponsePropertiesWhitelistedPatternTypeDomainRecency InvestigateGetResponsePropertiesWhitelistedPatternType = "domain_recency" InvestigateGetResponsePropertiesWhitelistedPatternTypeManagedAcceptableSender InvestigateGetResponsePropertiesWhitelistedPatternType = "managed_acceptable_sender" InvestigateGetResponsePropertiesWhitelistedPatternTypeOutboundNdr InvestigateGetResponsePropertiesWhitelistedPatternType = "outbound_ndr" )
func (InvestigateGetResponsePropertiesWhitelistedPatternType) IsKnown ¶
func (r InvestigateGetResponsePropertiesWhitelistedPatternType) IsKnown() bool
type InvestigateGetResponseValidation ¶
type InvestigateGetResponseValidation struct {
Comment string `json:"comment" api:"nullable"`
DKIM InvestigateGetResponseValidationDKIM `json:"dkim"`
DMARC InvestigateGetResponseValidationDMARC `json:"dmarc"`
SPF InvestigateGetResponseValidationSPF `json:"spf"`
JSON investigateGetResponseValidationJSON `json:"-"`
}
func (*InvestigateGetResponseValidation) UnmarshalJSON ¶
func (r *InvestigateGetResponseValidation) UnmarshalJSON(data []byte) (err error)
type InvestigateGetResponseValidationDKIM ¶
type InvestigateGetResponseValidationDKIM string
const ( InvestigateGetResponseValidationDKIMPass InvestigateGetResponseValidationDKIM = "pass" InvestigateGetResponseValidationDKIMNeutral InvestigateGetResponseValidationDKIM = "neutral" InvestigateGetResponseValidationDKIMFail InvestigateGetResponseValidationDKIM = "fail" InvestigateGetResponseValidationDKIMError InvestigateGetResponseValidationDKIM = "error" InvestigateGetResponseValidationDKIMNone InvestigateGetResponseValidationDKIM = "none" )
func (InvestigateGetResponseValidationDKIM) IsKnown ¶
func (r InvestigateGetResponseValidationDKIM) IsKnown() bool
type InvestigateGetResponseValidationDMARC ¶
type InvestigateGetResponseValidationDMARC string
const ( InvestigateGetResponseValidationDMARCPass InvestigateGetResponseValidationDMARC = "pass" InvestigateGetResponseValidationDMARCNeutral InvestigateGetResponseValidationDMARC = "neutral" InvestigateGetResponseValidationDMARCFail InvestigateGetResponseValidationDMARC = "fail" InvestigateGetResponseValidationDMARCError InvestigateGetResponseValidationDMARC = "error" InvestigateGetResponseValidationDMARCNone InvestigateGetResponseValidationDMARC = "none" )
func (InvestigateGetResponseValidationDMARC) IsKnown ¶
func (r InvestigateGetResponseValidationDMARC) IsKnown() bool
type InvestigateGetResponseValidationSPF ¶
type InvestigateGetResponseValidationSPF string
const ( InvestigateGetResponseValidationSPFPass InvestigateGetResponseValidationSPF = "pass" InvestigateGetResponseValidationSPFNeutral InvestigateGetResponseValidationSPF = "neutral" InvestigateGetResponseValidationSPFFail InvestigateGetResponseValidationSPF = "fail" InvestigateGetResponseValidationSPFError InvestigateGetResponseValidationSPF = "error" InvestigateGetResponseValidationSPFNone InvestigateGetResponseValidationSPF = "none" )
func (InvestigateGetResponseValidationSPF) IsKnown ¶
func (r InvestigateGetResponseValidationSPF) IsKnown() bool
type InvestigateListParams ¶
type InvestigateListParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// Whether to include the message action log in the response.
ActionLog param.Field[bool] `query:"action_log"`
AlertID param.Field[string] `query:"alert_id"`
Cursor param.Field[string] `query:"cursor"`
// Delivery status to filter by.
DeliveryStatus param.Field[InvestigateListParamsDeliveryStatus] `query:"delivery_status"`
// Whether to include only detections in search results.
DetectionsOnly param.Field[bool] `query:"detections_only"`
// Sender domains to filter by.
Domain param.Field[string] `query:"domain"`
// The end of the search date range. Defaults to `now`.
End param.Field[time.Time] `query:"end" format:"date-time"`
// Dispositions to filter by.
FinalDisposition param.Field[InvestigateListParamsFinalDisposition] `query:"final_disposition"`
// Message actions to filter by.
MessageAction param.Field[InvestigateListParamsMessageAction] `query:"message_action"`
MessageID param.Field[string] `query:"message_id"`
Metric param.Field[string] `query:"metric"`
// Deprecated: Use cursor pagination instead. End of life: November 1, 2026.
Page param.Field[int64] `query:"page"`
// The number of results per page. Maximum value is 1000.
PerPage param.Field[int64] `query:"per_page"`
// Space-delimited search term. Case-insensitive.
Query param.Field[string] `query:"query"`
Recipient param.Field[string] `query:"recipient"`
Sender param.Field[string] `query:"sender"`
// The beginning of the search date range. Defaults to `now - 30 days`.
Start param.Field[time.Time] `query:"start" format:"date-time"`
Subject param.Field[string] `query:"subject"`
}
func (InvestigateListParams) URLQuery ¶
func (r InvestigateListParams) URLQuery() (v url.Values)
URLQuery serializes InvestigateListParams's query parameters as `url.Values`.
type InvestigateListParamsDeliveryStatus ¶
type InvestigateListParamsDeliveryStatus string
Delivery status to filter by.
const ( InvestigateListParamsDeliveryStatusDelivered InvestigateListParamsDeliveryStatus = "delivered" InvestigateListParamsDeliveryStatusMoved InvestigateListParamsDeliveryStatus = "moved" InvestigateListParamsDeliveryStatusQuarantined InvestigateListParamsDeliveryStatus = "quarantined" InvestigateListParamsDeliveryStatusRejected InvestigateListParamsDeliveryStatus = "rejected" InvestigateListParamsDeliveryStatusDeferred InvestigateListParamsDeliveryStatus = "deferred" InvestigateListParamsDeliveryStatusBounced InvestigateListParamsDeliveryStatus = "bounced" InvestigateListParamsDeliveryStatusQueued InvestigateListParamsDeliveryStatus = "queued" )
func (InvestigateListParamsDeliveryStatus) IsKnown ¶
func (r InvestigateListParamsDeliveryStatus) IsKnown() bool
type InvestigateListParamsFinalDisposition ¶
type InvestigateListParamsFinalDisposition string
Dispositions to filter by.
const ( InvestigateListParamsFinalDispositionMalicious InvestigateListParamsFinalDisposition = "MALICIOUS" InvestigateListParamsFinalDispositionSuspicious InvestigateListParamsFinalDisposition = "SUSPICIOUS" InvestigateListParamsFinalDispositionSpoof InvestigateListParamsFinalDisposition = "SPOOF" InvestigateListParamsFinalDispositionSpam InvestigateListParamsFinalDisposition = "SPAM" InvestigateListParamsFinalDispositionBulk InvestigateListParamsFinalDisposition = "BULK" InvestigateListParamsFinalDispositionNone InvestigateListParamsFinalDisposition = "NONE" )
func (InvestigateListParamsFinalDisposition) IsKnown ¶
func (r InvestigateListParamsFinalDisposition) IsKnown() bool
type InvestigateListParamsMessageAction ¶
type InvestigateListParamsMessageAction string
Message actions to filter by.
const ( InvestigateListParamsMessageActionPreview InvestigateListParamsMessageAction = "PREVIEW" InvestigateListParamsMessageActionQuarantineReleased InvestigateListParamsMessageAction = "QUARANTINE_RELEASED" InvestigateListParamsMessageActionMoved InvestigateListParamsMessageAction = "MOVED" )
func (InvestigateListParamsMessageAction) IsKnown ¶
func (r InvestigateListParamsMessageAction) IsKnown() bool
type InvestigateListResponse ¶
type InvestigateListResponse struct {
// Unique identifier for a message retrieved from investigation
ID string `json:"id" api:"required"`
// Deprecated, use `GET /investigate/{investigate_id}/action_log` instead. End of
// life: November 1, 2026.
//
// Deprecated: deprecated
ActionLog []InvestigateListResponseActionLog `json:"action_log" api:"required"`
ClientRecipients []string `json:"client_recipients" api:"required"`
DetectionReasons []string `json:"detection_reasons" api:"required"`
IsPhishSubmission bool `json:"is_phish_submission" api:"required"`
IsQuarantined bool `json:"is_quarantined" api:"required"`
// The identifier of the message
PostfixID string `json:"postfix_id" api:"required"`
// Message processing properties
Properties InvestigateListResponseProperties `json:"properties" api:"required"`
// Deprecated, use `scanned_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
Ts string `json:"ts" api:"required"`
AlertID string `json:"alert_id" api:"nullable"`
DeliveryMode InvestigateListResponseDeliveryMode `json:"delivery_mode"`
DeliveryStatus []InvestigateListResponseDeliveryStatus `json:"delivery_status" api:"nullable"`
EdfHash string `json:"edf_hash" api:"nullable"`
EnvelopeFrom string `json:"envelope_from" api:"nullable"`
EnvelopeTo []string `json:"envelope_to" api:"nullable"`
FinalDisposition InvestigateListResponseFinalDisposition `json:"final_disposition"`
// Deprecated, use the `findings` field from
// `GET /investigate/{investigate_id}/detections` instead. End of life: November
// 1, 2026. Detection findings for this message.
//
// Deprecated: deprecated
Findings []InvestigateListResponseFinding `json:"findings" api:"nullable"`
From string `json:"from" api:"nullable"`
FromName string `json:"from_name" api:"nullable"`
HtmltextStructureHash string `json:"htmltext_structure_hash" api:"nullable"`
MessageID string `json:"message_id" api:"nullable"`
// Post-delivery operations performed on this message
PostDeliveryOperations []InvestigateListResponsePostDeliveryOperation `json:"post_delivery_operations" api:"nullable"`
PostfixIDOutbound string `json:"postfix_id_outbound" api:"nullable"`
Replyto string `json:"replyto" api:"nullable"`
// When the message was scanned (UTC)
ScannedAt time.Time `json:"scanned_at" api:"nullable" format:"date-time"`
// When the message was sent (UTC)
SentAt time.Time `json:"sent_at" api:"nullable" format:"date-time"`
SentDate string `json:"sent_date" api:"nullable"`
SmtpHeloServerIP string `json:"smtp_helo_server_ip" api:"nullable"`
SmtpPreviousHopIP string `json:"smtp_previous_hop_ip" api:"nullable"`
Subject string `json:"subject" api:"nullable"`
ThreatCategories []string `json:"threat_categories" api:"nullable"`
To []string `json:"to" api:"nullable"`
ToName []string `json:"to_name" api:"nullable"`
Validation InvestigateListResponseValidation `json:"validation"`
XOriginatingIP string `json:"x_originating_ip" api:"nullable"`
JSON investigateListResponseJSON `json:"-"`
}
func (*InvestigateListResponse) UnmarshalJSON ¶
func (r *InvestigateListResponse) UnmarshalJSON(data []byte) (err error)
type InvestigateListResponseActionLog ¶
type InvestigateListResponseActionLog struct {
// Timestamp when action completed
CompletedAt time.Time `json:"completed_at" api:"required" format:"date-time"`
// Type of action performed
Operation InvestigateListResponseActionLogOperation `json:"operation" api:"required"`
// Deprecated, use `completed_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
CompletedTimestamp string `json:"completed_timestamp"`
// Additional properties for the action
Properties InvestigateListResponseActionLogProperties `json:"properties"`
// Status of the action
Status string `json:"status" api:"nullable"`
JSON investigateListResponseActionLogJSON `json:"-"`
}
func (*InvestigateListResponseActionLog) UnmarshalJSON ¶
func (r *InvestigateListResponseActionLog) UnmarshalJSON(data []byte) (err error)
type InvestigateListResponseActionLogOperation ¶
type InvestigateListResponseActionLogOperation string
Type of action performed
const ( InvestigateListResponseActionLogOperationMove InvestigateListResponseActionLogOperation = "MOVE" InvestigateListResponseActionLogOperationRelease InvestigateListResponseActionLogOperation = "RELEASE" InvestigateListResponseActionLogOperationReclassify InvestigateListResponseActionLogOperation = "RECLASSIFY" InvestigateListResponseActionLogOperationSubmission InvestigateListResponseActionLogOperation = "SUBMISSION" InvestigateListResponseActionLogOperationQuarantineRelease InvestigateListResponseActionLogOperation = "QUARANTINE_RELEASE" InvestigateListResponseActionLogOperationPreview InvestigateListResponseActionLogOperation = "PREVIEW" )
func (InvestigateListResponseActionLogOperation) IsKnown ¶
func (r InvestigateListResponseActionLogOperation) IsKnown() bool
type InvestigateListResponseActionLogProperties ¶
type InvestigateListResponseActionLogProperties struct {
// Target folder for move operations
Folder string `json:"folder"`
// User who requested the action
RequestedBy string `json:"requested_by"`
JSON investigateListResponseActionLogPropertiesJSON `json:"-"`
}
Additional properties for the action
func (*InvestigateListResponseActionLogProperties) UnmarshalJSON ¶
func (r *InvestigateListResponseActionLogProperties) UnmarshalJSON(data []byte) (err error)
type InvestigateListResponseDeliveryMode ¶
type InvestigateListResponseDeliveryMode string
const ( InvestigateListResponseDeliveryModeDirect InvestigateListResponseDeliveryMode = "DIRECT" InvestigateListResponseDeliveryModeBcc InvestigateListResponseDeliveryMode = "BCC" InvestigateListResponseDeliveryModeJournal InvestigateListResponseDeliveryMode = "JOURNAL" InvestigateListResponseDeliveryModeReviewSubmission InvestigateListResponseDeliveryMode = "REVIEW_SUBMISSION" InvestigateListResponseDeliveryModeDMARCUnverified InvestigateListResponseDeliveryMode = "DMARC_UNVERIFIED" InvestigateListResponseDeliveryModeDMARCFailureReport InvestigateListResponseDeliveryMode = "DMARC_FAILURE_REPORT" InvestigateListResponseDeliveryModeDMARCAggregateReport InvestigateListResponseDeliveryMode = "DMARC_AGGREGATE_REPORT" InvestigateListResponseDeliveryModeThreatIntelSubmission InvestigateListResponseDeliveryMode = "THREAT_INTEL_SUBMISSION" InvestigateListResponseDeliveryModeSimulationSubmission InvestigateListResponseDeliveryMode = "SIMULATION_SUBMISSION" InvestigateListResponseDeliveryModeAPI InvestigateListResponseDeliveryMode = "API" InvestigateListResponseDeliveryModeRetroScan InvestigateListResponseDeliveryMode = "RETRO_SCAN" )
func (InvestigateListResponseDeliveryMode) IsKnown ¶
func (r InvestigateListResponseDeliveryMode) IsKnown() bool
type InvestigateListResponseDeliveryStatus ¶
type InvestigateListResponseDeliveryStatus string
Delivery status of the message.
const ( InvestigateListResponseDeliveryStatusDelivered InvestigateListResponseDeliveryStatus = "delivered" InvestigateListResponseDeliveryStatusMoved InvestigateListResponseDeliveryStatus = "moved" InvestigateListResponseDeliveryStatusQuarantined InvestigateListResponseDeliveryStatus = "quarantined" InvestigateListResponseDeliveryStatusRejected InvestigateListResponseDeliveryStatus = "rejected" InvestigateListResponseDeliveryStatusDeferred InvestigateListResponseDeliveryStatus = "deferred" InvestigateListResponseDeliveryStatusBounced InvestigateListResponseDeliveryStatus = "bounced" InvestigateListResponseDeliveryStatusQueued InvestigateListResponseDeliveryStatus = "queued" )
func (InvestigateListResponseDeliveryStatus) IsKnown ¶
func (r InvestigateListResponseDeliveryStatus) IsKnown() bool
type InvestigateListResponseFinalDisposition ¶
type InvestigateListResponseFinalDisposition string
const ( InvestigateListResponseFinalDispositionMalicious InvestigateListResponseFinalDisposition = "MALICIOUS" InvestigateListResponseFinalDispositionMaliciousBec InvestigateListResponseFinalDisposition = "MALICIOUS-BEC" InvestigateListResponseFinalDispositionSuspicious InvestigateListResponseFinalDisposition = "SUSPICIOUS" InvestigateListResponseFinalDispositionSpoof InvestigateListResponseFinalDisposition = "SPOOF" InvestigateListResponseFinalDispositionSpam InvestigateListResponseFinalDisposition = "SPAM" InvestigateListResponseFinalDispositionBulk InvestigateListResponseFinalDisposition = "BULK" InvestigateListResponseFinalDispositionEncrypted InvestigateListResponseFinalDisposition = "ENCRYPTED" InvestigateListResponseFinalDispositionExternal InvestigateListResponseFinalDisposition = "EXTERNAL" InvestigateListResponseFinalDispositionUnknown InvestigateListResponseFinalDisposition = "UNKNOWN" InvestigateListResponseFinalDispositionNone InvestigateListResponseFinalDisposition = "NONE" )
func (InvestigateListResponseFinalDisposition) IsKnown ¶
func (r InvestigateListResponseFinalDisposition) IsKnown() bool
type InvestigateListResponseFinding ¶
type InvestigateListResponseFinding struct {
Attachment string `json:"attachment" api:"nullable"`
Detail string `json:"detail" api:"nullable"`
Detection InvestigateListResponseFindingsDetection `json:"detection"`
Field string `json:"field" api:"nullable"`
Name string `json:"name" api:"nullable"`
Portion string `json:"portion" api:"nullable"`
Reason string `json:"reason" api:"nullable"`
Score float64 `json:"score" api:"nullable"`
Value string `json:"value" api:"nullable"`
JSON investigateListResponseFindingJSON `json:"-"`
}
func (*InvestigateListResponseFinding) UnmarshalJSON ¶
func (r *InvestigateListResponseFinding) UnmarshalJSON(data []byte) (err error)
type InvestigateListResponseFindingsDetection ¶
type InvestigateListResponseFindingsDetection string
const ( InvestigateListResponseFindingsDetectionMalicious InvestigateListResponseFindingsDetection = "MALICIOUS" InvestigateListResponseFindingsDetectionMaliciousBec InvestigateListResponseFindingsDetection = "MALICIOUS-BEC" InvestigateListResponseFindingsDetectionSuspicious InvestigateListResponseFindingsDetection = "SUSPICIOUS" InvestigateListResponseFindingsDetectionSpoof InvestigateListResponseFindingsDetection = "SPOOF" InvestigateListResponseFindingsDetectionSpam InvestigateListResponseFindingsDetection = "SPAM" InvestigateListResponseFindingsDetectionBulk InvestigateListResponseFindingsDetection = "BULK" InvestigateListResponseFindingsDetectionEncrypted InvestigateListResponseFindingsDetection = "ENCRYPTED" InvestigateListResponseFindingsDetectionExternal InvestigateListResponseFindingsDetection = "EXTERNAL" InvestigateListResponseFindingsDetectionUnknown InvestigateListResponseFindingsDetection = "UNKNOWN" InvestigateListResponseFindingsDetectionNone InvestigateListResponseFindingsDetection = "NONE" )
func (InvestigateListResponseFindingsDetection) IsKnown ¶
func (r InvestigateListResponseFindingsDetection) IsKnown() bool
type InvestigateListResponsePostDeliveryOperation ¶
type InvestigateListResponsePostDeliveryOperation string
const ( InvestigateListResponsePostDeliveryOperationPreview InvestigateListResponsePostDeliveryOperation = "PREVIEW" InvestigateListResponsePostDeliveryOperationQuarantineRelease InvestigateListResponsePostDeliveryOperation = "QUARANTINE_RELEASE" InvestigateListResponsePostDeliveryOperationSubmission InvestigateListResponsePostDeliveryOperation = "SUBMISSION" InvestigateListResponsePostDeliveryOperationMove InvestigateListResponsePostDeliveryOperation = "MOVE" )
func (InvestigateListResponsePostDeliveryOperation) IsKnown ¶
func (r InvestigateListResponsePostDeliveryOperation) IsKnown() bool
type InvestigateListResponseProperties ¶
type InvestigateListResponseProperties struct {
// Pattern that allowlisted this message
AllowlistedPattern string `json:"allowlisted_pattern" api:"nullable"`
// Type of allowlist pattern
AllowlistedPatternType InvestigateListResponsePropertiesAllowlistedPatternType `json:"allowlisted_pattern_type" api:"nullable"`
// Whether message was blocklisted
BlocklistedMessage bool `json:"blocklisted_message" api:"nullable"`
// Pattern that blocklisted this message
BlocklistedPattern string `json:"blocklisted_pattern" api:"nullable"`
// Legacy field for allowlist pattern type
WhitelistedPatternType InvestigateListResponsePropertiesWhitelistedPatternType `json:"whitelisted_pattern_type" api:"nullable"`
JSON investigateListResponsePropertiesJSON `json:"-"`
}
Message processing properties
func (*InvestigateListResponseProperties) UnmarshalJSON ¶
func (r *InvestigateListResponseProperties) UnmarshalJSON(data []byte) (err error)
type InvestigateListResponsePropertiesAllowlistedPatternType ¶
type InvestigateListResponsePropertiesAllowlistedPatternType string
Type of allowlist pattern
const ( InvestigateListResponsePropertiesAllowlistedPatternTypeQuarantineRelease InvestigateListResponsePropertiesAllowlistedPatternType = "quarantine_release" InvestigateListResponsePropertiesAllowlistedPatternTypeAcceptableSender InvestigateListResponsePropertiesAllowlistedPatternType = "acceptable_sender" InvestigateListResponsePropertiesAllowlistedPatternTypeAllowedSender InvestigateListResponsePropertiesAllowlistedPatternType = "allowed_sender" InvestigateListResponsePropertiesAllowlistedPatternTypeAllowedRecipient InvestigateListResponsePropertiesAllowlistedPatternType = "allowed_recipient" InvestigateListResponsePropertiesAllowlistedPatternTypeDomainSimilarity InvestigateListResponsePropertiesAllowlistedPatternType = "domain_similarity" InvestigateListResponsePropertiesAllowlistedPatternTypeDomainRecency InvestigateListResponsePropertiesAllowlistedPatternType = "domain_recency" InvestigateListResponsePropertiesAllowlistedPatternTypeManagedAcceptableSender InvestigateListResponsePropertiesAllowlistedPatternType = "managed_acceptable_sender" InvestigateListResponsePropertiesAllowlistedPatternTypeOutboundNdr InvestigateListResponsePropertiesAllowlistedPatternType = "outbound_ndr" )
func (InvestigateListResponsePropertiesAllowlistedPatternType) IsKnown ¶
func (r InvestigateListResponsePropertiesAllowlistedPatternType) IsKnown() bool
type InvestigateListResponsePropertiesWhitelistedPatternType ¶
type InvestigateListResponsePropertiesWhitelistedPatternType string
Legacy field for allowlist pattern type
const ( InvestigateListResponsePropertiesWhitelistedPatternTypeQuarantineRelease InvestigateListResponsePropertiesWhitelistedPatternType = "quarantine_release" InvestigateListResponsePropertiesWhitelistedPatternTypeAcceptableSender InvestigateListResponsePropertiesWhitelistedPatternType = "acceptable_sender" InvestigateListResponsePropertiesWhitelistedPatternTypeAllowedSender InvestigateListResponsePropertiesWhitelistedPatternType = "allowed_sender" InvestigateListResponsePropertiesWhitelistedPatternTypeAllowedRecipient InvestigateListResponsePropertiesWhitelistedPatternType = "allowed_recipient" InvestigateListResponsePropertiesWhitelistedPatternTypeDomainSimilarity InvestigateListResponsePropertiesWhitelistedPatternType = "domain_similarity" InvestigateListResponsePropertiesWhitelistedPatternTypeDomainRecency InvestigateListResponsePropertiesWhitelistedPatternType = "domain_recency" InvestigateListResponsePropertiesWhitelistedPatternTypeManagedAcceptableSender InvestigateListResponsePropertiesWhitelistedPatternType = "managed_acceptable_sender" InvestigateListResponsePropertiesWhitelistedPatternTypeOutboundNdr InvestigateListResponsePropertiesWhitelistedPatternType = "outbound_ndr" )
func (InvestigateListResponsePropertiesWhitelistedPatternType) IsKnown ¶
func (r InvestigateListResponsePropertiesWhitelistedPatternType) IsKnown() bool
type InvestigateListResponseValidation ¶
type InvestigateListResponseValidation struct {
Comment string `json:"comment" api:"nullable"`
DKIM InvestigateListResponseValidationDKIM `json:"dkim"`
DMARC InvestigateListResponseValidationDMARC `json:"dmarc"`
SPF InvestigateListResponseValidationSPF `json:"spf"`
JSON investigateListResponseValidationJSON `json:"-"`
}
func (*InvestigateListResponseValidation) UnmarshalJSON ¶
func (r *InvestigateListResponseValidation) UnmarshalJSON(data []byte) (err error)
type InvestigateListResponseValidationDKIM ¶
type InvestigateListResponseValidationDKIM string
const ( InvestigateListResponseValidationDKIMPass InvestigateListResponseValidationDKIM = "pass" InvestigateListResponseValidationDKIMNeutral InvestigateListResponseValidationDKIM = "neutral" InvestigateListResponseValidationDKIMFail InvestigateListResponseValidationDKIM = "fail" InvestigateListResponseValidationDKIMError InvestigateListResponseValidationDKIM = "error" InvestigateListResponseValidationDKIMNone InvestigateListResponseValidationDKIM = "none" )
func (InvestigateListResponseValidationDKIM) IsKnown ¶
func (r InvestigateListResponseValidationDKIM) IsKnown() bool
type InvestigateListResponseValidationDMARC ¶
type InvestigateListResponseValidationDMARC string
const ( InvestigateListResponseValidationDMARCPass InvestigateListResponseValidationDMARC = "pass" InvestigateListResponseValidationDMARCNeutral InvestigateListResponseValidationDMARC = "neutral" InvestigateListResponseValidationDMARCFail InvestigateListResponseValidationDMARC = "fail" InvestigateListResponseValidationDMARCError InvestigateListResponseValidationDMARC = "error" InvestigateListResponseValidationDMARCNone InvestigateListResponseValidationDMARC = "none" )
func (InvestigateListResponseValidationDMARC) IsKnown ¶
func (r InvestigateListResponseValidationDMARC) IsKnown() bool
type InvestigateListResponseValidationSPF ¶
type InvestigateListResponseValidationSPF string
const ( InvestigateListResponseValidationSPFPass InvestigateListResponseValidationSPF = "pass" InvestigateListResponseValidationSPFNeutral InvestigateListResponseValidationSPF = "neutral" InvestigateListResponseValidationSPFFail InvestigateListResponseValidationSPF = "fail" InvestigateListResponseValidationSPFError InvestigateListResponseValidationSPF = "error" InvestigateListResponseValidationSPFNone InvestigateListResponseValidationSPF = "none" )
func (InvestigateListResponseValidationSPF) IsKnown ¶
func (r InvestigateListResponseValidationSPF) IsKnown() bool
type InvestigateMoveBulkParams ¶
type InvestigateMoveBulkParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
Destination param.Field[InvestigateMoveBulkParamsDestination] `json:"destination" api:"required"`
// List of message IDs to move
IDs param.Field[[]string] `json:"ids"`
// Deprecated, use `ids` instead. End of life: November 1, 2026. List of message
// IDs to move.
PostfixIDs param.Field[[]string] `json:"postfix_ids"`
}
func (InvestigateMoveBulkParams) MarshalJSON ¶
func (r InvestigateMoveBulkParams) MarshalJSON() (data []byte, err error)
type InvestigateMoveBulkParamsDestination ¶
type InvestigateMoveBulkParamsDestination string
const ( InvestigateMoveBulkParamsDestinationInbox InvestigateMoveBulkParamsDestination = "Inbox" InvestigateMoveBulkParamsDestinationJunkEmail InvestigateMoveBulkParamsDestination = "JunkEmail" InvestigateMoveBulkParamsDestinationDeletedItems InvestigateMoveBulkParamsDestination = "DeletedItems" InvestigateMoveBulkParamsDestinationRecoverableItemsDeletions InvestigateMoveBulkParamsDestination = "RecoverableItemsDeletions" InvestigateMoveBulkParamsDestinationRecoverableItemsPurges InvestigateMoveBulkParamsDestination = "RecoverableItemsPurges" )
func (InvestigateMoveBulkParamsDestination) IsKnown ¶
func (r InvestigateMoveBulkParamsDestination) IsKnown() bool
type InvestigateMoveBulkResponse ¶
type InvestigateMoveBulkResponse struct {
// Whether the operation succeeded
Success bool `json:"success" api:"required"`
// When the move operation completed (UTC)
CompletedAt time.Time `json:"completed_at" api:"nullable" format:"date-time"`
// Deprecated, use `completed_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
CompletedTimestamp time.Time `json:"completed_timestamp" format:"date-time"`
// Destination folder for the message
Destination string `json:"destination" api:"nullable"`
// Number of items moved. End of life: November 1, 2026.
//
// Deprecated: deprecated
ItemCount int64 `json:"item_count"`
// Message identifier
MessageID string `json:"message_id" api:"nullable"`
// Type of operation performed
Operation string `json:"operation" api:"nullable"`
// Recipient email address
Recipient string `json:"recipient" api:"nullable"`
// Operation status
Status string `json:"status" api:"nullable"`
JSON investigateMoveBulkResponseJSON `json:"-"`
}
func (*InvestigateMoveBulkResponse) UnmarshalJSON ¶
func (r *InvestigateMoveBulkResponse) UnmarshalJSON(data []byte) (err error)
type InvestigateMoveNewParams ¶
type InvestigateMoveNewParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
Destination param.Field[InvestigateMoveNewParamsDestination] `json:"destination" api:"required"`
}
func (InvestigateMoveNewParams) MarshalJSON ¶
func (r InvestigateMoveNewParams) MarshalJSON() (data []byte, err error)
type InvestigateMoveNewParamsDestination ¶
type InvestigateMoveNewParamsDestination string
const ( InvestigateMoveNewParamsDestinationInbox InvestigateMoveNewParamsDestination = "Inbox" InvestigateMoveNewParamsDestinationJunkEmail InvestigateMoveNewParamsDestination = "JunkEmail" InvestigateMoveNewParamsDestinationDeletedItems InvestigateMoveNewParamsDestination = "DeletedItems" InvestigateMoveNewParamsDestinationRecoverableItemsDeletions InvestigateMoveNewParamsDestination = "RecoverableItemsDeletions" InvestigateMoveNewParamsDestinationRecoverableItemsPurges InvestigateMoveNewParamsDestination = "RecoverableItemsPurges" )
func (InvestigateMoveNewParamsDestination) IsKnown ¶
func (r InvestigateMoveNewParamsDestination) IsKnown() bool
type InvestigateMoveNewResponse ¶
type InvestigateMoveNewResponse struct {
// Whether the operation succeeded
Success bool `json:"success" api:"required"`
// When the move operation completed (UTC)
CompletedAt time.Time `json:"completed_at" api:"nullable" format:"date-time"`
// Deprecated, use `completed_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
CompletedTimestamp time.Time `json:"completed_timestamp" format:"date-time"`
// Destination folder for the message
Destination string `json:"destination" api:"nullable"`
// Number of items moved. End of life: November 1, 2026.
//
// Deprecated: deprecated
ItemCount int64 `json:"item_count"`
// Message identifier
MessageID string `json:"message_id" api:"nullable"`
// Type of operation performed
Operation string `json:"operation" api:"nullable"`
// Recipient email address
Recipient string `json:"recipient" api:"nullable"`
// Operation status
Status string `json:"status" api:"nullable"`
JSON investigateMoveNewResponseJSON `json:"-"`
}
func (*InvestigateMoveNewResponse) UnmarshalJSON ¶
func (r *InvestigateMoveNewResponse) UnmarshalJSON(data []byte) (err error)
type InvestigateMoveService ¶
type InvestigateMoveService struct {
Options []option.RequestOption
}
InvestigateMoveService 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 NewInvestigateMoveService method instead.
func NewInvestigateMoveService ¶
func NewInvestigateMoveService(opts ...option.RequestOption) (r *InvestigateMoveService)
NewInvestigateMoveService 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 (*InvestigateMoveService) Bulk ¶
func (r *InvestigateMoveService) Bulk(ctx context.Context, params InvestigateMoveBulkParams, opts ...option.RequestOption) (res *pagination.SinglePage[InvestigateMoveBulkResponse], err error)
Moves multiple messages to a specified mailbox folder (Inbox, JunkEmail, DeletedItems, RecoverableItemsDeletions, or RecoverableItemsPurges). Requires active integration.
func (*InvestigateMoveService) BulkAutoPaging ¶
func (r *InvestigateMoveService) BulkAutoPaging(ctx context.Context, params InvestigateMoveBulkParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[InvestigateMoveBulkResponse]
Moves multiple messages to a specified mailbox folder (Inbox, JunkEmail, DeletedItems, RecoverableItemsDeletions, or RecoverableItemsPurges). Requires active integration.
func (*InvestigateMoveService) New ¶
func (r *InvestigateMoveService) New(ctx context.Context, investigateID string, params InvestigateMoveNewParams, opts ...option.RequestOption) (res *pagination.SinglePage[InvestigateMoveNewResponse], err error)
Moves a single message to a specified mailbox folder (Inbox, JunkEmail, DeletedItems, RecoverableItemsDeletions, or RecoverableItemsPurges). Requires active integration.
func (*InvestigateMoveService) NewAutoPaging ¶
func (r *InvestigateMoveService) NewAutoPaging(ctx context.Context, investigateID string, params InvestigateMoveNewParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[InvestigateMoveNewResponse]
Moves a single message to a specified mailbox folder (Inbox, JunkEmail, DeletedItems, RecoverableItemsDeletions, or RecoverableItemsPurges). Requires active integration.
type InvestigatePreviewGetResponse ¶
type InvestigatePreviewGetResponse struct {
// A base64 encoded PNG image of the email.
Screenshot string `json:"screenshot" api:"required"`
JSON investigatePreviewGetResponseJSON `json:"-"`
}
func (*InvestigatePreviewGetResponse) UnmarshalJSON ¶
func (r *InvestigatePreviewGetResponse) UnmarshalJSON(data []byte) (err error)
type InvestigatePreviewGetResponseEnvelope ¶
type InvestigatePreviewGetResponseEnvelope struct {
Errors []InvestigatePreviewGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []InvestigatePreviewGetResponseEnvelopeMessages `json:"messages" api:"required"`
Result InvestigatePreviewGetResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success InvestigatePreviewGetResponseEnvelopeSuccess `json:"success" api:"required"`
JSON investigatePreviewGetResponseEnvelopeJSON `json:"-"`
}
func (*InvestigatePreviewGetResponseEnvelope) UnmarshalJSON ¶
func (r *InvestigatePreviewGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type InvestigatePreviewGetResponseEnvelopeErrors ¶
type InvestigatePreviewGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source InvestigatePreviewGetResponseEnvelopeErrorsSource `json:"source"`
JSON investigatePreviewGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*InvestigatePreviewGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *InvestigatePreviewGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type InvestigatePreviewGetResponseEnvelopeErrorsSource ¶
type InvestigatePreviewGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON investigatePreviewGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*InvestigatePreviewGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *InvestigatePreviewGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type InvestigatePreviewGetResponseEnvelopeMessages ¶
type InvestigatePreviewGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source InvestigatePreviewGetResponseEnvelopeMessagesSource `json:"source"`
JSON investigatePreviewGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*InvestigatePreviewGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *InvestigatePreviewGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type InvestigatePreviewGetResponseEnvelopeMessagesSource ¶
type InvestigatePreviewGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON investigatePreviewGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*InvestigatePreviewGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *InvestigatePreviewGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type InvestigatePreviewGetResponseEnvelopeSuccess ¶
type InvestigatePreviewGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
InvestigatePreviewGetResponseEnvelopeSuccessTrue InvestigatePreviewGetResponseEnvelopeSuccess = true
)
func (InvestigatePreviewGetResponseEnvelopeSuccess) IsKnown ¶
func (r InvestigatePreviewGetResponseEnvelopeSuccess) IsKnown() bool
type InvestigatePreviewNewParams ¶
type InvestigatePreviewNewParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The identifier of the message
PostfixID param.Field[string] `json:"postfix_id" api:"required"`
}
func (InvestigatePreviewNewParams) MarshalJSON ¶
func (r InvestigatePreviewNewParams) MarshalJSON() (data []byte, err error)
type InvestigatePreviewNewResponse ¶
type InvestigatePreviewNewResponse struct {
// A base64 encoded PNG image of the email.
Screenshot string `json:"screenshot" api:"required"`
JSON investigatePreviewNewResponseJSON `json:"-"`
}
func (*InvestigatePreviewNewResponse) UnmarshalJSON ¶
func (r *InvestigatePreviewNewResponse) UnmarshalJSON(data []byte) (err error)
type InvestigatePreviewNewResponseEnvelope ¶
type InvestigatePreviewNewResponseEnvelope struct {
Errors []InvestigatePreviewNewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []InvestigatePreviewNewResponseEnvelopeMessages `json:"messages" api:"required"`
Result InvestigatePreviewNewResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success InvestigatePreviewNewResponseEnvelopeSuccess `json:"success" api:"required"`
JSON investigatePreviewNewResponseEnvelopeJSON `json:"-"`
}
func (*InvestigatePreviewNewResponseEnvelope) UnmarshalJSON ¶
func (r *InvestigatePreviewNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type InvestigatePreviewNewResponseEnvelopeErrors ¶
type InvestigatePreviewNewResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source InvestigatePreviewNewResponseEnvelopeErrorsSource `json:"source"`
JSON investigatePreviewNewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*InvestigatePreviewNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *InvestigatePreviewNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type InvestigatePreviewNewResponseEnvelopeErrorsSource ¶
type InvestigatePreviewNewResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON investigatePreviewNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*InvestigatePreviewNewResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *InvestigatePreviewNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type InvestigatePreviewNewResponseEnvelopeMessages ¶
type InvestigatePreviewNewResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source InvestigatePreviewNewResponseEnvelopeMessagesSource `json:"source"`
JSON investigatePreviewNewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*InvestigatePreviewNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *InvestigatePreviewNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type InvestigatePreviewNewResponseEnvelopeMessagesSource ¶
type InvestigatePreviewNewResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON investigatePreviewNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*InvestigatePreviewNewResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *InvestigatePreviewNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type InvestigatePreviewNewResponseEnvelopeSuccess ¶
type InvestigatePreviewNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
InvestigatePreviewNewResponseEnvelopeSuccessTrue InvestigatePreviewNewResponseEnvelopeSuccess = true
)
func (InvestigatePreviewNewResponseEnvelopeSuccess) IsKnown ¶
func (r InvestigatePreviewNewResponseEnvelopeSuccess) IsKnown() bool
type InvestigatePreviewService ¶
type InvestigatePreviewService struct {
Options []option.RequestOption
}
InvestigatePreviewService 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 NewInvestigatePreviewService method instead.
func NewInvestigatePreviewService ¶
func NewInvestigatePreviewService(opts ...option.RequestOption) (r *InvestigatePreviewService)
NewInvestigatePreviewService 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 (*InvestigatePreviewService) Get ¶
func (r *InvestigatePreviewService) Get(ctx context.Context, investigateID string, query InvestigatePreviewGetParams, opts ...option.RequestOption) (res *InvestigatePreviewGetResponse, err error)
Returns a preview of the message body as a base64 encoded PNG image for non-benign messages.
func (*InvestigatePreviewService) New ¶
func (r *InvestigatePreviewService) New(ctx context.Context, params InvestigatePreviewNewParams, opts ...option.RequestOption) (res *InvestigatePreviewNewResponse, err error)
Generates a preview image for a message that was not flagged as a detection. Useful for investigating benign messages. Returns a base64-encoded PNG screenshot of the email body.
type InvestigateRawGetParams ¶
type InvestigateRawGetResponse ¶
type InvestigateRawGetResponse struct {
// A UTF-8 encoded eml file of the email.
Raw string `json:"raw" api:"required"`
JSON investigateRawGetResponseJSON `json:"-"`
}
func (*InvestigateRawGetResponse) UnmarshalJSON ¶
func (r *InvestigateRawGetResponse) UnmarshalJSON(data []byte) (err error)
type InvestigateRawGetResponseEnvelope ¶
type InvestigateRawGetResponseEnvelope struct {
Errors []InvestigateRawGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []InvestigateRawGetResponseEnvelopeMessages `json:"messages" api:"required"`
Result InvestigateRawGetResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success InvestigateRawGetResponseEnvelopeSuccess `json:"success" api:"required"`
JSON investigateRawGetResponseEnvelopeJSON `json:"-"`
}
func (*InvestigateRawGetResponseEnvelope) UnmarshalJSON ¶
func (r *InvestigateRawGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type InvestigateRawGetResponseEnvelopeErrors ¶
type InvestigateRawGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source InvestigateRawGetResponseEnvelopeErrorsSource `json:"source"`
JSON investigateRawGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*InvestigateRawGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *InvestigateRawGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type InvestigateRawGetResponseEnvelopeErrorsSource ¶
type InvestigateRawGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON investigateRawGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*InvestigateRawGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *InvestigateRawGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type InvestigateRawGetResponseEnvelopeMessages ¶
type InvestigateRawGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source InvestigateRawGetResponseEnvelopeMessagesSource `json:"source"`
JSON investigateRawGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*InvestigateRawGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *InvestigateRawGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type InvestigateRawGetResponseEnvelopeMessagesSource ¶
type InvestigateRawGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON investigateRawGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*InvestigateRawGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *InvestigateRawGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type InvestigateRawGetResponseEnvelopeSuccess ¶
type InvestigateRawGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
InvestigateRawGetResponseEnvelopeSuccessTrue InvestigateRawGetResponseEnvelopeSuccess = true
)
func (InvestigateRawGetResponseEnvelopeSuccess) IsKnown ¶
func (r InvestigateRawGetResponseEnvelopeSuccess) IsKnown() bool
type InvestigateRawService ¶
type InvestigateRawService struct {
Options []option.RequestOption
}
InvestigateRawService 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 NewInvestigateRawService method instead.
func NewInvestigateRawService ¶
func NewInvestigateRawService(opts ...option.RequestOption) (r *InvestigateRawService)
NewInvestigateRawService 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 (*InvestigateRawService) Get ¶
func (r *InvestigateRawService) Get(ctx context.Context, investigateID string, query InvestigateRawGetParams, opts ...option.RequestOption) (res *InvestigateRawGetResponse, err error)
Returns the raw eml of any non-benign message.
type InvestigateReclassifyNewParams ¶
type InvestigateReclassifyNewParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
ExpectedDisposition param.Field[InvestigateReclassifyNewParamsExpectedDisposition] `json:"expected_disposition" api:"required"`
// Base64 encoded content of the EML file.
EmlContent param.Field[string] `json:"eml_content"`
EscalatedSubmissionID param.Field[string] `json:"escalated_submission_id"`
}
func (InvestigateReclassifyNewParams) MarshalJSON ¶
func (r InvestigateReclassifyNewParams) MarshalJSON() (data []byte, err error)
type InvestigateReclassifyNewParamsExpectedDisposition ¶
type InvestigateReclassifyNewParamsExpectedDisposition string
const ( InvestigateReclassifyNewParamsExpectedDispositionNone InvestigateReclassifyNewParamsExpectedDisposition = "NONE" InvestigateReclassifyNewParamsExpectedDispositionBulk InvestigateReclassifyNewParamsExpectedDisposition = "BULK" InvestigateReclassifyNewParamsExpectedDispositionMalicious InvestigateReclassifyNewParamsExpectedDisposition = "MALICIOUS" InvestigateReclassifyNewParamsExpectedDispositionSpam InvestigateReclassifyNewParamsExpectedDisposition = "SPAM" InvestigateReclassifyNewParamsExpectedDispositionSpoof InvestigateReclassifyNewParamsExpectedDisposition = "SPOOF" InvestigateReclassifyNewParamsExpectedDispositionSuspicious InvestigateReclassifyNewParamsExpectedDisposition = "SUSPICIOUS" )
func (InvestigateReclassifyNewParamsExpectedDisposition) IsKnown ¶
func (r InvestigateReclassifyNewParamsExpectedDisposition) IsKnown() bool
type InvestigateReclassifyNewResponse ¶
type InvestigateReclassifyNewResponse = interface{}
type InvestigateReclassifyNewResponseEnvelope ¶
type InvestigateReclassifyNewResponseEnvelope struct {
Errors []InvestigateReclassifyNewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []InvestigateReclassifyNewResponseEnvelopeMessages `json:"messages" api:"required"`
Result InvestigateReclassifyNewResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success InvestigateReclassifyNewResponseEnvelopeSuccess `json:"success" api:"required"`
JSON investigateReclassifyNewResponseEnvelopeJSON `json:"-"`
}
func (*InvestigateReclassifyNewResponseEnvelope) UnmarshalJSON ¶
func (r *InvestigateReclassifyNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type InvestigateReclassifyNewResponseEnvelopeErrors ¶
type InvestigateReclassifyNewResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source InvestigateReclassifyNewResponseEnvelopeErrorsSource `json:"source"`
JSON investigateReclassifyNewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*InvestigateReclassifyNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *InvestigateReclassifyNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type InvestigateReclassifyNewResponseEnvelopeErrorsSource ¶
type InvestigateReclassifyNewResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON investigateReclassifyNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*InvestigateReclassifyNewResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *InvestigateReclassifyNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type InvestigateReclassifyNewResponseEnvelopeMessages ¶
type InvestigateReclassifyNewResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source InvestigateReclassifyNewResponseEnvelopeMessagesSource `json:"source"`
JSON investigateReclassifyNewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*InvestigateReclassifyNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *InvestigateReclassifyNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type InvestigateReclassifyNewResponseEnvelopeMessagesSource ¶
type InvestigateReclassifyNewResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON investigateReclassifyNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*InvestigateReclassifyNewResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *InvestigateReclassifyNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type InvestigateReclassifyNewResponseEnvelopeSuccess ¶
type InvestigateReclassifyNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
InvestigateReclassifyNewResponseEnvelopeSuccessTrue InvestigateReclassifyNewResponseEnvelopeSuccess = true
)
func (InvestigateReclassifyNewResponseEnvelopeSuccess) IsKnown ¶
func (r InvestigateReclassifyNewResponseEnvelopeSuccess) IsKnown() bool
type InvestigateReclassifyService ¶
type InvestigateReclassifyService struct {
Options []option.RequestOption
}
InvestigateReclassifyService 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 NewInvestigateReclassifyService method instead.
func NewInvestigateReclassifyService ¶
func NewInvestigateReclassifyService(opts ...option.RequestOption) (r *InvestigateReclassifyService)
NewInvestigateReclassifyService 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 (*InvestigateReclassifyService) New ¶
func (r *InvestigateReclassifyService) New(ctx context.Context, investigateID string, params InvestigateReclassifyNewParams, opts ...option.RequestOption) (res *InvestigateReclassifyNewResponse, err error)
Submits a request to reclassify an email's disposition. Use for reporting false positives or false negatives. Optionally provide the raw EML content for reanalysis. The reclassification is processed asynchronously.
type InvestigateReleaseBulkParams ¶
type InvestigateReleaseBulkParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
Body []string `json:"body" api:"required"`
}
func (InvestigateReleaseBulkParams) MarshalJSON ¶
func (r InvestigateReleaseBulkParams) MarshalJSON() (data []byte, err error)
type InvestigateReleaseBulkResponse ¶
type InvestigateReleaseBulkResponse struct {
// Unique identifier for a message retrieved from investigation
ID string `json:"id" api:"required"`
Delivered []string `json:"delivered" api:"nullable"`
Failed []string `json:"failed" api:"nullable"`
// Deprecated, use `id` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
PostfixID string `json:"postfix_id"`
Undelivered []string `json:"undelivered" api:"nullable"`
JSON investigateReleaseBulkResponseJSON `json:"-"`
}
func (*InvestigateReleaseBulkResponse) UnmarshalJSON ¶
func (r *InvestigateReleaseBulkResponse) UnmarshalJSON(data []byte) (err error)
type InvestigateReleaseService ¶
type InvestigateReleaseService struct {
Options []option.RequestOption
}
InvestigateReleaseService 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 NewInvestigateReleaseService method instead.
func NewInvestigateReleaseService ¶
func NewInvestigateReleaseService(opts ...option.RequestOption) (r *InvestigateReleaseService)
NewInvestigateReleaseService 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 (*InvestigateReleaseService) Bulk ¶
func (r *InvestigateReleaseService) Bulk(ctx context.Context, params InvestigateReleaseBulkParams, opts ...option.RequestOption) (res *pagination.SinglePage[InvestigateReleaseBulkResponse], err error)
Releases one or more quarantined messages, delivering them to the intended recipients. Use when a message was incorrectly quarantined. Returns delivery status for each recipient.
func (*InvestigateReleaseService) BulkAutoPaging ¶
func (r *InvestigateReleaseService) BulkAutoPaging(ctx context.Context, params InvestigateReleaseBulkParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[InvestigateReleaseBulkResponse]
Releases one or more quarantined messages, delivering them to the intended recipients. Use when a message was incorrectly quarantined. Returns delivery status for each recipient.
type InvestigateService ¶
type InvestigateService struct {
Options []option.RequestOption
Detections *InvestigateDetectionService
Preview *InvestigatePreviewService
Raw *InvestigateRawService
Trace *InvestigateTraceService
Move *InvestigateMoveService
Reclassify *InvestigateReclassifyService
Release *InvestigateReleaseService
}
InvestigateService 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 NewInvestigateService method instead.
func NewInvestigateService ¶
func NewInvestigateService(opts ...option.RequestOption) (r *InvestigateService)
NewInvestigateService 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 (*InvestigateService) Get ¶
func (r *InvestigateService) Get(ctx context.Context, investigateID string, params InvestigateGetParams, opts ...option.RequestOption) (res *InvestigateGetResponse, err error)
Retrieves comprehensive details for a specific email message including headers, recipients, sender information, and current quarantine status. Use the investigate_id from search results to fetch detailed information.
func (*InvestigateService) List ¶
func (r *InvestigateService) List(ctx context.Context, params InvestigateListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[InvestigateListResponse], err error)
Returns information for each email that matches the search parameter(s).
func (*InvestigateService) ListAutoPaging ¶
func (r *InvestigateService) ListAutoPaging(ctx context.Context, params InvestigateListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[InvestigateListResponse]
Returns information for each email that matches the search parameter(s).
type InvestigateTraceGetResponse ¶
type InvestigateTraceGetResponse struct {
Inbound InvestigateTraceGetResponseInbound `json:"inbound" api:"required"`
Outbound InvestigateTraceGetResponseOutbound `json:"outbound" api:"required"`
JSON investigateTraceGetResponseJSON `json:"-"`
}
func (*InvestigateTraceGetResponse) UnmarshalJSON ¶
func (r *InvestigateTraceGetResponse) UnmarshalJSON(data []byte) (err error)
type InvestigateTraceGetResponseEnvelope ¶
type InvestigateTraceGetResponseEnvelope struct {
Errors []InvestigateTraceGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []InvestigateTraceGetResponseEnvelopeMessages `json:"messages" api:"required"`
Result InvestigateTraceGetResponse `json:"result" api:"required"`
// Whether the API call was successful.
Success InvestigateTraceGetResponseEnvelopeSuccess `json:"success" api:"required"`
JSON investigateTraceGetResponseEnvelopeJSON `json:"-"`
}
func (*InvestigateTraceGetResponseEnvelope) UnmarshalJSON ¶
func (r *InvestigateTraceGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type InvestigateTraceGetResponseEnvelopeErrors ¶
type InvestigateTraceGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source InvestigateTraceGetResponseEnvelopeErrorsSource `json:"source"`
JSON investigateTraceGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*InvestigateTraceGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *InvestigateTraceGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type InvestigateTraceGetResponseEnvelopeErrorsSource ¶
type InvestigateTraceGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON investigateTraceGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*InvestigateTraceGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *InvestigateTraceGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type InvestigateTraceGetResponseEnvelopeMessages ¶
type InvestigateTraceGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source InvestigateTraceGetResponseEnvelopeMessagesSource `json:"source"`
JSON investigateTraceGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*InvestigateTraceGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *InvestigateTraceGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type InvestigateTraceGetResponseEnvelopeMessagesSource ¶
type InvestigateTraceGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON investigateTraceGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*InvestigateTraceGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *InvestigateTraceGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type InvestigateTraceGetResponseEnvelopeSuccess ¶
type InvestigateTraceGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
InvestigateTraceGetResponseEnvelopeSuccessTrue InvestigateTraceGetResponseEnvelopeSuccess = true
)
func (InvestigateTraceGetResponseEnvelopeSuccess) IsKnown ¶
func (r InvestigateTraceGetResponseEnvelopeSuccess) IsKnown() bool
type InvestigateTraceGetResponseInbound ¶
type InvestigateTraceGetResponseInbound struct {
Lines []InvestigateTraceGetResponseInboundLine `json:"lines" api:"nullable"`
Pending bool `json:"pending" api:"nullable"`
JSON investigateTraceGetResponseInboundJSON `json:"-"`
}
func (*InvestigateTraceGetResponseInbound) UnmarshalJSON ¶
func (r *InvestigateTraceGetResponseInbound) UnmarshalJSON(data []byte) (err error)
type InvestigateTraceGetResponseInboundLine ¶
type InvestigateTraceGetResponseInboundLine struct {
// Line number in the trace log
Lineno int64 `json:"lineno"`
LoggedAt time.Time `json:"logged_at" api:"nullable" format:"date-time"`
Message string `json:"message"`
// Deprecated, use `logged_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
Ts string `json:"ts"`
JSON investigateTraceGetResponseInboundLineJSON `json:"-"`
}
func (*InvestigateTraceGetResponseInboundLine) UnmarshalJSON ¶
func (r *InvestigateTraceGetResponseInboundLine) UnmarshalJSON(data []byte) (err error)
type InvestigateTraceGetResponseOutbound ¶
type InvestigateTraceGetResponseOutbound struct {
Lines []InvestigateTraceGetResponseOutboundLine `json:"lines" api:"nullable"`
Pending bool `json:"pending" api:"nullable"`
JSON investigateTraceGetResponseOutboundJSON `json:"-"`
}
func (*InvestigateTraceGetResponseOutbound) UnmarshalJSON ¶
func (r *InvestigateTraceGetResponseOutbound) UnmarshalJSON(data []byte) (err error)
type InvestigateTraceGetResponseOutboundLine ¶
type InvestigateTraceGetResponseOutboundLine struct {
// Line number in the trace log
Lineno int64 `json:"lineno"`
LoggedAt time.Time `json:"logged_at" api:"nullable" format:"date-time"`
Message string `json:"message"`
// Deprecated, use `logged_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
Ts string `json:"ts"`
JSON investigateTraceGetResponseOutboundLineJSON `json:"-"`
}
func (*InvestigateTraceGetResponseOutboundLine) UnmarshalJSON ¶
func (r *InvestigateTraceGetResponseOutboundLine) UnmarshalJSON(data []byte) (err error)
type InvestigateTraceService ¶
type InvestigateTraceService struct {
Options []option.RequestOption
}
InvestigateTraceService 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 NewInvestigateTraceService method instead.
func NewInvestigateTraceService ¶
func NewInvestigateTraceService(opts ...option.RequestOption) (r *InvestigateTraceService)
NewInvestigateTraceService 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 (*InvestigateTraceService) Get ¶
func (r *InvestigateTraceService) Get(ctx context.Context, investigateID string, query InvestigateTraceGetParams, opts ...option.RequestOption) (res *InvestigateTraceGetResponse, err error)
Retrieves delivery and processing trace information for an email message. Shows the delivery path, retraction history, and move operations performed on the message. Useful for debugging delivery issues.
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 PhishguardReportListParams ¶
type PhishguardReportListParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// End of the time range (RFC3339). Takes precedence over to_date.
End param.Field[time.Time] `query:"end" format:"date-time"`
// Deprecated, use `start` instead. Start date in YYYY-MM-DD format.
FromDate param.Field[time.Time] `query:"from_date" format:"date"`
// Start of the time range (RFC3339). Takes precedence over from_date.
Start param.Field[time.Time] `query:"start" format:"date-time"`
// Deprecated, use `end` instead. End date in YYYY-MM-DD format.
ToDate param.Field[time.Time] `query:"to_date" format:"date"`
}
func (PhishguardReportListParams) URLQuery ¶
func (r PhishguardReportListParams) URLQuery() (v url.Values)
URLQuery serializes PhishguardReportListParams's query parameters as `url.Values`.
type PhishguardReportListResponse ¶
type PhishguardReportListResponse struct {
ID int64 `json:"id" api:"required"`
Content string `json:"content" api:"required"`
Disposition PhishguardReportListResponseDisposition `json:"disposition" api:"required"`
Fields PhishguardReportListResponseFields `json:"fields" api:"required"`
Priority string `json:"priority" api:"required"`
Title string `json:"title" api:"required"`
CreatedAt time.Time `json:"created_at" api:"nullable" format:"date-time"`
Tags []PhishguardReportListResponseTag `json:"tags" api:"nullable"`
// Deprecated, use `created_at` instead
//
// Deprecated: deprecated
Ts time.Time `json:"ts" format:"date-time"`
UpdatedAt time.Time `json:"updated_at" api:"nullable" format:"date-time"`
JSON phishguardReportListResponseJSON `json:"-"`
}
func (*PhishguardReportListResponse) UnmarshalJSON ¶
func (r *PhishguardReportListResponse) UnmarshalJSON(data []byte) (err error)
type PhishguardReportListResponseDisposition ¶
type PhishguardReportListResponseDisposition string
const ( PhishguardReportListResponseDispositionMalicious PhishguardReportListResponseDisposition = "MALICIOUS" PhishguardReportListResponseDispositionMaliciousBec PhishguardReportListResponseDisposition = "MALICIOUS-BEC" PhishguardReportListResponseDispositionSuspicious PhishguardReportListResponseDisposition = "SUSPICIOUS" PhishguardReportListResponseDispositionSpoof PhishguardReportListResponseDisposition = "SPOOF" PhishguardReportListResponseDispositionSpam PhishguardReportListResponseDisposition = "SPAM" PhishguardReportListResponseDispositionBulk PhishguardReportListResponseDisposition = "BULK" PhishguardReportListResponseDispositionEncrypted PhishguardReportListResponseDisposition = "ENCRYPTED" PhishguardReportListResponseDispositionExternal PhishguardReportListResponseDisposition = "EXTERNAL" PhishguardReportListResponseDispositionUnknown PhishguardReportListResponseDisposition = "UNKNOWN" PhishguardReportListResponseDispositionNone PhishguardReportListResponseDisposition = "NONE" )
func (PhishguardReportListResponseDisposition) IsKnown ¶
func (r PhishguardReportListResponseDisposition) IsKnown() bool
type PhishguardReportListResponseFields ¶
type PhishguardReportListResponseFields struct {
To []string `json:"to" api:"required"`
From string `json:"from" api:"nullable"`
OccurredAt time.Time `json:"occurred_at" format:"date-time"`
PostfixID string `json:"postfix_id" api:"nullable"`
// Deprecated, use `occurred_at` instead
//
// Deprecated: deprecated
Ts time.Time `json:"ts" format:"date-time"`
JSON phishguardReportListResponseFieldsJSON `json:"-"`
}
func (*PhishguardReportListResponseFields) UnmarshalJSON ¶
func (r *PhishguardReportListResponseFields) UnmarshalJSON(data []byte) (err error)
type PhishguardReportListResponseTag ¶
type PhishguardReportListResponseTag struct {
Category string `json:"category" api:"required"`
Value string `json:"value" api:"required"`
JSON phishguardReportListResponseTagJSON `json:"-"`
}
func (*PhishguardReportListResponseTag) UnmarshalJSON ¶
func (r *PhishguardReportListResponseTag) UnmarshalJSON(data []byte) (err error)
type PhishguardReportService ¶
type PhishguardReportService struct {
Options []option.RequestOption
}
PhishguardReportService 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 NewPhishguardReportService method instead.
func NewPhishguardReportService ¶
func NewPhishguardReportService(opts ...option.RequestOption) (r *PhishguardReportService)
NewPhishguardReportService 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 (*PhishguardReportService) List ¶
func (r *PhishguardReportService) List(ctx context.Context, params PhishguardReportListParams, opts ...option.RequestOption) (res *pagination.SinglePage[PhishguardReportListResponse], err error)
Retrieves PhishGuard security alert reports for a specified date range. Reports include detected threats, dispositions, and contextual information. Use for security monitoring and threat analysis.
func (*PhishguardReportService) ListAutoPaging ¶
func (r *PhishguardReportService) ListAutoPaging(ctx context.Context, params PhishguardReportListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[PhishguardReportListResponse]
Retrieves PhishGuard security alert reports for a specified date range. Reports include detected threats, dispositions, and contextual information. Use for security monitoring and threat analysis.
type PhishguardService ¶
type PhishguardService struct {
Options []option.RequestOption
Reports *PhishguardReportService
}
PhishguardService 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 NewPhishguardService method instead.
func NewPhishguardService ¶
func NewPhishguardService(opts ...option.RequestOption) (r *PhishguardService)
NewPhishguardService 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 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 ResponseInfoSource ¶
type ResponseInfoSource = shared.ResponseInfoSource
This is an alias to an internal type.
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 SettingAllowPolicyDeleteResponse ¶
type SettingAllowPolicyDeleteResponse struct {
// Allow policy identifier
ID string `json:"id" api:"required" format:"uuid"`
JSON settingAllowPolicyDeleteResponseJSON `json:"-"`
}
func (*SettingAllowPolicyDeleteResponse) UnmarshalJSON ¶
func (r *SettingAllowPolicyDeleteResponse) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyDeleteResponseEnvelope ¶
type SettingAllowPolicyDeleteResponseEnvelope struct {
Errors []SettingAllowPolicyDeleteResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingAllowPolicyDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingAllowPolicyDeleteResponseEnvelopeSuccess `json:"success" api:"required"`
Result SettingAllowPolicyDeleteResponse `json:"result"`
JSON settingAllowPolicyDeleteResponseEnvelopeJSON `json:"-"`
}
func (*SettingAllowPolicyDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *SettingAllowPolicyDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyDeleteResponseEnvelopeErrors ¶
type SettingAllowPolicyDeleteResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingAllowPolicyDeleteResponseEnvelopeErrorsSource `json:"source"`
JSON settingAllowPolicyDeleteResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingAllowPolicyDeleteResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingAllowPolicyDeleteResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyDeleteResponseEnvelopeErrorsSource ¶
type SettingAllowPolicyDeleteResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingAllowPolicyDeleteResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingAllowPolicyDeleteResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingAllowPolicyDeleteResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyDeleteResponseEnvelopeMessages ¶
type SettingAllowPolicyDeleteResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingAllowPolicyDeleteResponseEnvelopeMessagesSource `json:"source"`
JSON settingAllowPolicyDeleteResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingAllowPolicyDeleteResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingAllowPolicyDeleteResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyDeleteResponseEnvelopeMessagesSource ¶
type SettingAllowPolicyDeleteResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingAllowPolicyDeleteResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingAllowPolicyDeleteResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingAllowPolicyDeleteResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyDeleteResponseEnvelopeSuccess ¶
type SettingAllowPolicyDeleteResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingAllowPolicyDeleteResponseEnvelopeSuccessTrue SettingAllowPolicyDeleteResponseEnvelopeSuccess = true
)
func (SettingAllowPolicyDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r SettingAllowPolicyDeleteResponseEnvelopeSuccess) IsKnown() bool
type SettingAllowPolicyEditParams ¶
type SettingAllowPolicyEditParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
Comments param.Field[string] `json:"comments"`
// Messages from this sender will be exempted from Spam, Spoof and Bulk
// dispositions. Note - This will not exempt messages with Malicious or Suspicious
// dispositions.
IsAcceptableSender param.Field[bool] `json:"is_acceptable_sender"`
// Messages to this recipient will bypass all detections
IsExemptRecipient param.Field[bool] `json:"is_exempt_recipient"`
// Deprecated as of July 1, 2025. Use `is_exempt_recipient` instead. End of life:
// July 1, 2026.
IsRecipient param.Field[bool] `json:"is_recipient"`
IsRegex param.Field[bool] `json:"is_regex"`
// Deprecated as of July 1, 2025. Use `is_trusted_sender` instead. End of life:
// July 1, 2026.
IsSender param.Field[bool] `json:"is_sender"`
// Deprecated as of July 1, 2025. Use `is_acceptable_sender` instead. End of life:
// July 1, 2026.
IsSpoof param.Field[bool] `json:"is_spoof"`
// Messages from this sender will bypass all detections and link following
IsTrustedSender param.Field[bool] `json:"is_trusted_sender"`
Pattern param.Field[string] `json:"pattern"`
// Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when
// creating or updating policies, but may be returned for existing entries.
PatternType param.Field[SettingAllowPolicyEditParamsPatternType] `json:"pattern_type"`
// Enforce DMARC, SPF or DKIM authentication. When on, Email Security only honors
// policies that pass authentication.
VerifySender param.Field[bool] `json:"verify_sender"`
}
func (SettingAllowPolicyEditParams) MarshalJSON ¶
func (r SettingAllowPolicyEditParams) MarshalJSON() (data []byte, err error)
type SettingAllowPolicyEditParamsPatternType ¶
type SettingAllowPolicyEditParamsPatternType string
Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries.
const ( SettingAllowPolicyEditParamsPatternTypeEmail SettingAllowPolicyEditParamsPatternType = "EMAIL" SettingAllowPolicyEditParamsPatternTypeDomain SettingAllowPolicyEditParamsPatternType = "DOMAIN" SettingAllowPolicyEditParamsPatternTypeIP SettingAllowPolicyEditParamsPatternType = "IP" SettingAllowPolicyEditParamsPatternTypeUnknown SettingAllowPolicyEditParamsPatternType = "UNKNOWN" )
func (SettingAllowPolicyEditParamsPatternType) IsKnown ¶
func (r SettingAllowPolicyEditParamsPatternType) IsKnown() bool
type SettingAllowPolicyEditResponse ¶
type SettingAllowPolicyEditResponse struct {
// Allow policy identifier
ID string `json:"id" api:"required" format:"uuid"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" api:"required" format:"date-time"`
Comments string `json:"comments" api:"nullable"`
// Messages from this sender will be exempted from Spam, Spoof and Bulk
// dispositions. Note - This will not exempt messages with Malicious or Suspicious
// dispositions.
IsAcceptableSender bool `json:"is_acceptable_sender"`
// Messages to this recipient will bypass all detections
IsExemptRecipient bool `json:"is_exempt_recipient"`
// Deprecated as of July 1, 2025. Use `is_exempt_recipient` instead. End of life:
// July 1, 2026.
//
// Deprecated: deprecated
IsRecipient bool `json:"is_recipient"`
IsRegex bool `json:"is_regex"`
// Deprecated as of July 1, 2025. Use `is_trusted_sender` instead. End of life:
// July 1, 2026.
//
// Deprecated: deprecated
IsSender bool `json:"is_sender"`
// Deprecated as of July 1, 2025. Use `is_acceptable_sender` instead. End of life:
// July 1, 2026.
//
// Deprecated: deprecated
IsSpoof bool `json:"is_spoof"`
// Messages from this sender will bypass all detections and link following
IsTrustedSender bool `json:"is_trusted_sender"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Pattern string `json:"pattern"`
// Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when
// creating or updating policies, but may be returned for existing entries.
PatternType SettingAllowPolicyEditResponsePatternType `json:"pattern_type"`
// Enforce DMARC, SPF or DKIM authentication. When on, Email Security only honors
// policies that pass authentication.
VerifySender bool `json:"verify_sender"`
JSON settingAllowPolicyEditResponseJSON `json:"-"`
}
An email allow policy
func (*SettingAllowPolicyEditResponse) UnmarshalJSON ¶
func (r *SettingAllowPolicyEditResponse) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyEditResponseEnvelope ¶
type SettingAllowPolicyEditResponseEnvelope struct {
Errors []SettingAllowPolicyEditResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingAllowPolicyEditResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingAllowPolicyEditResponseEnvelopeSuccess `json:"success" api:"required"`
// An email allow policy
Result SettingAllowPolicyEditResponse `json:"result"`
JSON settingAllowPolicyEditResponseEnvelopeJSON `json:"-"`
}
func (*SettingAllowPolicyEditResponseEnvelope) UnmarshalJSON ¶
func (r *SettingAllowPolicyEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyEditResponseEnvelopeErrors ¶
type SettingAllowPolicyEditResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingAllowPolicyEditResponseEnvelopeErrorsSource `json:"source"`
JSON settingAllowPolicyEditResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingAllowPolicyEditResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingAllowPolicyEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyEditResponseEnvelopeErrorsSource ¶
type SettingAllowPolicyEditResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingAllowPolicyEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingAllowPolicyEditResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingAllowPolicyEditResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyEditResponseEnvelopeMessages ¶
type SettingAllowPolicyEditResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingAllowPolicyEditResponseEnvelopeMessagesSource `json:"source"`
JSON settingAllowPolicyEditResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingAllowPolicyEditResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingAllowPolicyEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyEditResponseEnvelopeMessagesSource ¶
type SettingAllowPolicyEditResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingAllowPolicyEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingAllowPolicyEditResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingAllowPolicyEditResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyEditResponseEnvelopeSuccess ¶
type SettingAllowPolicyEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingAllowPolicyEditResponseEnvelopeSuccessTrue SettingAllowPolicyEditResponseEnvelopeSuccess = true
)
func (SettingAllowPolicyEditResponseEnvelopeSuccess) IsKnown ¶
func (r SettingAllowPolicyEditResponseEnvelopeSuccess) IsKnown() bool
type SettingAllowPolicyEditResponsePatternType ¶
type SettingAllowPolicyEditResponsePatternType string
Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries.
const ( SettingAllowPolicyEditResponsePatternTypeEmail SettingAllowPolicyEditResponsePatternType = "EMAIL" SettingAllowPolicyEditResponsePatternTypeDomain SettingAllowPolicyEditResponsePatternType = "DOMAIN" SettingAllowPolicyEditResponsePatternTypeIP SettingAllowPolicyEditResponsePatternType = "IP" SettingAllowPolicyEditResponsePatternTypeUnknown SettingAllowPolicyEditResponsePatternType = "UNKNOWN" )
func (SettingAllowPolicyEditResponsePatternType) IsKnown ¶
func (r SettingAllowPolicyEditResponsePatternType) IsKnown() bool
type SettingAllowPolicyGetResponse ¶
type SettingAllowPolicyGetResponse struct {
// Allow policy identifier
ID string `json:"id" api:"required" format:"uuid"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" api:"required" format:"date-time"`
Comments string `json:"comments" api:"nullable"`
// Messages from this sender will be exempted from Spam, Spoof and Bulk
// dispositions. Note - This will not exempt messages with Malicious or Suspicious
// dispositions.
IsAcceptableSender bool `json:"is_acceptable_sender"`
// Messages to this recipient will bypass all detections
IsExemptRecipient bool `json:"is_exempt_recipient"`
// Deprecated as of July 1, 2025. Use `is_exempt_recipient` instead. End of life:
// July 1, 2026.
//
// Deprecated: deprecated
IsRecipient bool `json:"is_recipient"`
IsRegex bool `json:"is_regex"`
// Deprecated as of July 1, 2025. Use `is_trusted_sender` instead. End of life:
// July 1, 2026.
//
// Deprecated: deprecated
IsSender bool `json:"is_sender"`
// Deprecated as of July 1, 2025. Use `is_acceptable_sender` instead. End of life:
// July 1, 2026.
//
// Deprecated: deprecated
IsSpoof bool `json:"is_spoof"`
// Messages from this sender will bypass all detections and link following
IsTrustedSender bool `json:"is_trusted_sender"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Pattern string `json:"pattern"`
// Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when
// creating or updating policies, but may be returned for existing entries.
PatternType SettingAllowPolicyGetResponsePatternType `json:"pattern_type"`
// Enforce DMARC, SPF or DKIM authentication. When on, Email Security only honors
// policies that pass authentication.
VerifySender bool `json:"verify_sender"`
JSON settingAllowPolicyGetResponseJSON `json:"-"`
}
An email allow policy
func (*SettingAllowPolicyGetResponse) UnmarshalJSON ¶
func (r *SettingAllowPolicyGetResponse) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyGetResponseEnvelope ¶
type SettingAllowPolicyGetResponseEnvelope struct {
Errors []SettingAllowPolicyGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingAllowPolicyGetResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingAllowPolicyGetResponseEnvelopeSuccess `json:"success" api:"required"`
// An email allow policy
Result SettingAllowPolicyGetResponse `json:"result"`
JSON settingAllowPolicyGetResponseEnvelopeJSON `json:"-"`
}
func (*SettingAllowPolicyGetResponseEnvelope) UnmarshalJSON ¶
func (r *SettingAllowPolicyGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyGetResponseEnvelopeErrors ¶
type SettingAllowPolicyGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingAllowPolicyGetResponseEnvelopeErrorsSource `json:"source"`
JSON settingAllowPolicyGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingAllowPolicyGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingAllowPolicyGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyGetResponseEnvelopeErrorsSource ¶
type SettingAllowPolicyGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingAllowPolicyGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingAllowPolicyGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingAllowPolicyGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyGetResponseEnvelopeMessages ¶
type SettingAllowPolicyGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingAllowPolicyGetResponseEnvelopeMessagesSource `json:"source"`
JSON settingAllowPolicyGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingAllowPolicyGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingAllowPolicyGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyGetResponseEnvelopeMessagesSource ¶
type SettingAllowPolicyGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingAllowPolicyGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingAllowPolicyGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingAllowPolicyGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyGetResponseEnvelopeSuccess ¶
type SettingAllowPolicyGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingAllowPolicyGetResponseEnvelopeSuccessTrue SettingAllowPolicyGetResponseEnvelopeSuccess = true
)
func (SettingAllowPolicyGetResponseEnvelopeSuccess) IsKnown ¶
func (r SettingAllowPolicyGetResponseEnvelopeSuccess) IsKnown() bool
type SettingAllowPolicyGetResponsePatternType ¶
type SettingAllowPolicyGetResponsePatternType string
Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries.
const ( SettingAllowPolicyGetResponsePatternTypeEmail SettingAllowPolicyGetResponsePatternType = "EMAIL" SettingAllowPolicyGetResponsePatternTypeDomain SettingAllowPolicyGetResponsePatternType = "DOMAIN" SettingAllowPolicyGetResponsePatternTypeIP SettingAllowPolicyGetResponsePatternType = "IP" SettingAllowPolicyGetResponsePatternTypeUnknown SettingAllowPolicyGetResponsePatternType = "UNKNOWN" )
func (SettingAllowPolicyGetResponsePatternType) IsKnown ¶
func (r SettingAllowPolicyGetResponsePatternType) IsKnown() bool
type SettingAllowPolicyListParams ¶
type SettingAllowPolicyListParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The sorting direction.
Direction param.Field[SettingAllowPolicyListParamsDirection] `query:"direction"`
// Filter to show only policies where messages from the sender are exempted from
// Spam, Spoof, and Bulk dispositions (not Malicious or Suspicious).
IsAcceptableSender param.Field[bool] `query:"is_acceptable_sender"`
// Filter to show only policies where messages to the recipient bypass all
// detections.
IsExemptRecipient param.Field[bool] `query:"is_exempt_recipient"`
// Filter to show only policies where messages from the sender bypass all
// detections and link following.
IsTrustedSender param.Field[bool] `query:"is_trusted_sender"`
// Field to sort by.
Order param.Field[SettingAllowPolicyListParamsOrder] `query:"order"`
// Current page within paginated list of results.
Page param.Field[int64] `query:"page"`
Pattern param.Field[string] `query:"pattern"`
// Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when
// creating or updating policies, but may be returned for existing entries.
PatternType param.Field[SettingAllowPolicyListParamsPatternType] `query:"pattern_type"`
// The number of results per page. Maximum value is 1000.
PerPage param.Field[int64] `query:"per_page"`
// Search term for filtering records. Behavior may change.
Search param.Field[string] `query:"search"`
// Filter to show only policies that enforce DMARC, SPF, or DKIM authentication.
VerifySender param.Field[bool] `query:"verify_sender"`
}
func (SettingAllowPolicyListParams) URLQuery ¶
func (r SettingAllowPolicyListParams) URLQuery() (v url.Values)
URLQuery serializes SettingAllowPolicyListParams's query parameters as `url.Values`.
type SettingAllowPolicyListParamsDirection ¶
type SettingAllowPolicyListParamsDirection string
The sorting direction.
const ( SettingAllowPolicyListParamsDirectionAsc SettingAllowPolicyListParamsDirection = "asc" SettingAllowPolicyListParamsDirectionDesc SettingAllowPolicyListParamsDirection = "desc" )
func (SettingAllowPolicyListParamsDirection) IsKnown ¶
func (r SettingAllowPolicyListParamsDirection) IsKnown() bool
type SettingAllowPolicyListParamsOrder ¶
type SettingAllowPolicyListParamsOrder string
Field to sort by.
const ( SettingAllowPolicyListParamsOrderPattern SettingAllowPolicyListParamsOrder = "pattern" SettingAllowPolicyListParamsOrderCreatedAt SettingAllowPolicyListParamsOrder = "created_at" )
func (SettingAllowPolicyListParamsOrder) IsKnown ¶
func (r SettingAllowPolicyListParamsOrder) IsKnown() bool
type SettingAllowPolicyListParamsPatternType ¶
type SettingAllowPolicyListParamsPatternType string
Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries.
const ( SettingAllowPolicyListParamsPatternTypeEmail SettingAllowPolicyListParamsPatternType = "EMAIL" SettingAllowPolicyListParamsPatternTypeDomain SettingAllowPolicyListParamsPatternType = "DOMAIN" SettingAllowPolicyListParamsPatternTypeIP SettingAllowPolicyListParamsPatternType = "IP" SettingAllowPolicyListParamsPatternTypeUnknown SettingAllowPolicyListParamsPatternType = "UNKNOWN" )
func (SettingAllowPolicyListParamsPatternType) IsKnown ¶
func (r SettingAllowPolicyListParamsPatternType) IsKnown() bool
type SettingAllowPolicyListResponse ¶
type SettingAllowPolicyListResponse struct {
// Allow policy identifier
ID string `json:"id" api:"required" format:"uuid"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" api:"required" format:"date-time"`
Comments string `json:"comments" api:"nullable"`
// Messages from this sender will be exempted from Spam, Spoof and Bulk
// dispositions. Note - This will not exempt messages with Malicious or Suspicious
// dispositions.
IsAcceptableSender bool `json:"is_acceptable_sender"`
// Messages to this recipient will bypass all detections
IsExemptRecipient bool `json:"is_exempt_recipient"`
// Deprecated as of July 1, 2025. Use `is_exempt_recipient` instead. End of life:
// July 1, 2026.
//
// Deprecated: deprecated
IsRecipient bool `json:"is_recipient"`
IsRegex bool `json:"is_regex"`
// Deprecated as of July 1, 2025. Use `is_trusted_sender` instead. End of life:
// July 1, 2026.
//
// Deprecated: deprecated
IsSender bool `json:"is_sender"`
// Deprecated as of July 1, 2025. Use `is_acceptable_sender` instead. End of life:
// July 1, 2026.
//
// Deprecated: deprecated
IsSpoof bool `json:"is_spoof"`
// Messages from this sender will bypass all detections and link following
IsTrustedSender bool `json:"is_trusted_sender"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Pattern string `json:"pattern"`
// Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when
// creating or updating policies, but may be returned for existing entries.
PatternType SettingAllowPolicyListResponsePatternType `json:"pattern_type"`
// Enforce DMARC, SPF or DKIM authentication. When on, Email Security only honors
// policies that pass authentication.
VerifySender bool `json:"verify_sender"`
JSON settingAllowPolicyListResponseJSON `json:"-"`
}
An email allow policy
func (*SettingAllowPolicyListResponse) UnmarshalJSON ¶
func (r *SettingAllowPolicyListResponse) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyListResponsePatternType ¶
type SettingAllowPolicyListResponsePatternType string
Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries.
const ( SettingAllowPolicyListResponsePatternTypeEmail SettingAllowPolicyListResponsePatternType = "EMAIL" SettingAllowPolicyListResponsePatternTypeDomain SettingAllowPolicyListResponsePatternType = "DOMAIN" SettingAllowPolicyListResponsePatternTypeIP SettingAllowPolicyListResponsePatternType = "IP" SettingAllowPolicyListResponsePatternTypeUnknown SettingAllowPolicyListResponsePatternType = "UNKNOWN" )
func (SettingAllowPolicyListResponsePatternType) IsKnown ¶
func (r SettingAllowPolicyListResponsePatternType) IsKnown() bool
type SettingAllowPolicyNewParams ¶
type SettingAllowPolicyNewParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// Messages from this sender will be exempted from Spam, Spoof and Bulk
// dispositions. Note - This will not exempt messages with Malicious or Suspicious
// dispositions.
IsAcceptableSender param.Field[bool] `json:"is_acceptable_sender" api:"required"`
// Messages to this recipient will bypass all detections
IsExemptRecipient param.Field[bool] `json:"is_exempt_recipient" api:"required"`
IsRegex param.Field[bool] `json:"is_regex" api:"required"`
// Messages from this sender will bypass all detections and link following
IsTrustedSender param.Field[bool] `json:"is_trusted_sender" api:"required"`
Pattern param.Field[string] `json:"pattern" api:"required"`
// Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when
// creating or updating policies, but may be returned for existing entries.
PatternType param.Field[SettingAllowPolicyNewParamsPatternType] `json:"pattern_type" api:"required"`
// Enforce DMARC, SPF or DKIM authentication. When on, Email Security only honors
// policies that pass authentication.
VerifySender param.Field[bool] `json:"verify_sender" api:"required"`
Comments param.Field[string] `json:"comments"`
// Deprecated as of July 1, 2025. Use `is_exempt_recipient` instead. End of life:
// July 1, 2026.
IsRecipient param.Field[bool] `json:"is_recipient"`
// Deprecated as of July 1, 2025. Use `is_trusted_sender` instead. End of life:
// July 1, 2026.
IsSender param.Field[bool] `json:"is_sender"`
// Deprecated as of July 1, 2025. Use `is_acceptable_sender` instead. End of life:
// July 1, 2026.
IsSpoof param.Field[bool] `json:"is_spoof"`
}
func (SettingAllowPolicyNewParams) MarshalJSON ¶
func (r SettingAllowPolicyNewParams) MarshalJSON() (data []byte, err error)
type SettingAllowPolicyNewParamsPatternType ¶
type SettingAllowPolicyNewParamsPatternType string
Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries.
const ( SettingAllowPolicyNewParamsPatternTypeEmail SettingAllowPolicyNewParamsPatternType = "EMAIL" SettingAllowPolicyNewParamsPatternTypeDomain SettingAllowPolicyNewParamsPatternType = "DOMAIN" SettingAllowPolicyNewParamsPatternTypeIP SettingAllowPolicyNewParamsPatternType = "IP" SettingAllowPolicyNewParamsPatternTypeUnknown SettingAllowPolicyNewParamsPatternType = "UNKNOWN" )
func (SettingAllowPolicyNewParamsPatternType) IsKnown ¶
func (r SettingAllowPolicyNewParamsPatternType) IsKnown() bool
type SettingAllowPolicyNewResponse ¶
type SettingAllowPolicyNewResponse struct {
// Allow policy identifier
ID string `json:"id" api:"required" format:"uuid"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" api:"required" format:"date-time"`
Comments string `json:"comments" api:"nullable"`
// Messages from this sender will be exempted from Spam, Spoof and Bulk
// dispositions. Note - This will not exempt messages with Malicious or Suspicious
// dispositions.
IsAcceptableSender bool `json:"is_acceptable_sender"`
// Messages to this recipient will bypass all detections
IsExemptRecipient bool `json:"is_exempt_recipient"`
// Deprecated as of July 1, 2025. Use `is_exempt_recipient` instead. End of life:
// July 1, 2026.
//
// Deprecated: deprecated
IsRecipient bool `json:"is_recipient"`
IsRegex bool `json:"is_regex"`
// Deprecated as of July 1, 2025. Use `is_trusted_sender` instead. End of life:
// July 1, 2026.
//
// Deprecated: deprecated
IsSender bool `json:"is_sender"`
// Deprecated as of July 1, 2025. Use `is_acceptable_sender` instead. End of life:
// July 1, 2026.
//
// Deprecated: deprecated
IsSpoof bool `json:"is_spoof"`
// Messages from this sender will bypass all detections and link following
IsTrustedSender bool `json:"is_trusted_sender"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Pattern string `json:"pattern"`
// Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when
// creating or updating policies, but may be returned for existing entries.
PatternType SettingAllowPolicyNewResponsePatternType `json:"pattern_type"`
// Enforce DMARC, SPF or DKIM authentication. When on, Email Security only honors
// policies that pass authentication.
VerifySender bool `json:"verify_sender"`
JSON settingAllowPolicyNewResponseJSON `json:"-"`
}
An email allow policy
func (*SettingAllowPolicyNewResponse) UnmarshalJSON ¶
func (r *SettingAllowPolicyNewResponse) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyNewResponseEnvelope ¶
type SettingAllowPolicyNewResponseEnvelope struct {
Errors []SettingAllowPolicyNewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingAllowPolicyNewResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingAllowPolicyNewResponseEnvelopeSuccess `json:"success" api:"required"`
// An email allow policy
Result SettingAllowPolicyNewResponse `json:"result"`
JSON settingAllowPolicyNewResponseEnvelopeJSON `json:"-"`
}
func (*SettingAllowPolicyNewResponseEnvelope) UnmarshalJSON ¶
func (r *SettingAllowPolicyNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyNewResponseEnvelopeErrors ¶
type SettingAllowPolicyNewResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingAllowPolicyNewResponseEnvelopeErrorsSource `json:"source"`
JSON settingAllowPolicyNewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingAllowPolicyNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingAllowPolicyNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyNewResponseEnvelopeErrorsSource ¶
type SettingAllowPolicyNewResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingAllowPolicyNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingAllowPolicyNewResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingAllowPolicyNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyNewResponseEnvelopeMessages ¶
type SettingAllowPolicyNewResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingAllowPolicyNewResponseEnvelopeMessagesSource `json:"source"`
JSON settingAllowPolicyNewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingAllowPolicyNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingAllowPolicyNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyNewResponseEnvelopeMessagesSource ¶
type SettingAllowPolicyNewResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingAllowPolicyNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingAllowPolicyNewResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingAllowPolicyNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingAllowPolicyNewResponseEnvelopeSuccess ¶
type SettingAllowPolicyNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingAllowPolicyNewResponseEnvelopeSuccessTrue SettingAllowPolicyNewResponseEnvelopeSuccess = true
)
func (SettingAllowPolicyNewResponseEnvelopeSuccess) IsKnown ¶
func (r SettingAllowPolicyNewResponseEnvelopeSuccess) IsKnown() bool
type SettingAllowPolicyNewResponsePatternType ¶
type SettingAllowPolicyNewResponsePatternType string
Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries.
const ( SettingAllowPolicyNewResponsePatternTypeEmail SettingAllowPolicyNewResponsePatternType = "EMAIL" SettingAllowPolicyNewResponsePatternTypeDomain SettingAllowPolicyNewResponsePatternType = "DOMAIN" SettingAllowPolicyNewResponsePatternTypeIP SettingAllowPolicyNewResponsePatternType = "IP" SettingAllowPolicyNewResponsePatternTypeUnknown SettingAllowPolicyNewResponsePatternType = "UNKNOWN" )
func (SettingAllowPolicyNewResponsePatternType) IsKnown ¶
func (r SettingAllowPolicyNewResponsePatternType) IsKnown() bool
type SettingAllowPolicyService ¶
type SettingAllowPolicyService struct {
Options []option.RequestOption
}
SettingAllowPolicyService 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 NewSettingAllowPolicyService method instead.
func NewSettingAllowPolicyService ¶
func NewSettingAllowPolicyService(opts ...option.RequestOption) (r *SettingAllowPolicyService)
NewSettingAllowPolicyService 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 (*SettingAllowPolicyService) Delete ¶
func (r *SettingAllowPolicyService) Delete(ctx context.Context, policyID string, body SettingAllowPolicyDeleteParams, opts ...option.RequestOption) (res *SettingAllowPolicyDeleteResponse, err error)
Removes an allow policy. After deletion, emails matching this pattern will be subject to normal security scanning and disposition actions.
func (*SettingAllowPolicyService) Edit ¶
func (r *SettingAllowPolicyService) Edit(ctx context.Context, policyID string, params SettingAllowPolicyEditParams, opts ...option.RequestOption) (res *SettingAllowPolicyEditResponse, err error)
Updates an existing allow policy. Only provided fields will be modified. Changes take effect for new emails matching the pattern.
func (*SettingAllowPolicyService) Get ¶
func (r *SettingAllowPolicyService) Get(ctx context.Context, policyID string, query SettingAllowPolicyGetParams, opts ...option.RequestOption) (res *SettingAllowPolicyGetResponse, err error)
Retrieves details for a specific allow policy including its pattern, dispositions that are exempted, and whether it applies to all detections.
func (*SettingAllowPolicyService) List ¶
func (r *SettingAllowPolicyService) List(ctx context.Context, params SettingAllowPolicyListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[SettingAllowPolicyListResponse], err error)
Returns a paginated list of email allow policies. These policies exempt matching emails from security detection, allowing them to bypass disposition actions. Supports filtering by pattern type and policy attributes.
func (*SettingAllowPolicyService) ListAutoPaging ¶
func (r *SettingAllowPolicyService) ListAutoPaging(ctx context.Context, params SettingAllowPolicyListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[SettingAllowPolicyListResponse]
Returns a paginated list of email allow policies. These policies exempt matching emails from security detection, allowing them to bypass disposition actions. Supports filtering by pattern type and policy attributes.
func (*SettingAllowPolicyService) New ¶
func (r *SettingAllowPolicyService) New(ctx context.Context, params SettingAllowPolicyNewParams, opts ...option.RequestOption) (res *SettingAllowPolicyNewResponse, err error)
Creates a new allow policy that exempts matching emails from security detections. Use with caution as this bypasses email security scanning. Policies can match on sender patterns and apply to specific detections or all detections.
type SettingBlockSenderDeleteResponse ¶
type SettingBlockSenderDeleteResponse struct {
// Blocked sender pattern identifier
ID string `json:"id" api:"required" format:"uuid"`
JSON settingBlockSenderDeleteResponseJSON `json:"-"`
}
func (*SettingBlockSenderDeleteResponse) UnmarshalJSON ¶
func (r *SettingBlockSenderDeleteResponse) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderDeleteResponseEnvelope ¶
type SettingBlockSenderDeleteResponseEnvelope struct {
Errors []SettingBlockSenderDeleteResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingBlockSenderDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingBlockSenderDeleteResponseEnvelopeSuccess `json:"success" api:"required"`
Result SettingBlockSenderDeleteResponse `json:"result"`
JSON settingBlockSenderDeleteResponseEnvelopeJSON `json:"-"`
}
func (*SettingBlockSenderDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *SettingBlockSenderDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderDeleteResponseEnvelopeErrors ¶
type SettingBlockSenderDeleteResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingBlockSenderDeleteResponseEnvelopeErrorsSource `json:"source"`
JSON settingBlockSenderDeleteResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingBlockSenderDeleteResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingBlockSenderDeleteResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderDeleteResponseEnvelopeErrorsSource ¶
type SettingBlockSenderDeleteResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingBlockSenderDeleteResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingBlockSenderDeleteResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingBlockSenderDeleteResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderDeleteResponseEnvelopeMessages ¶
type SettingBlockSenderDeleteResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingBlockSenderDeleteResponseEnvelopeMessagesSource `json:"source"`
JSON settingBlockSenderDeleteResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingBlockSenderDeleteResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingBlockSenderDeleteResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderDeleteResponseEnvelopeMessagesSource ¶
type SettingBlockSenderDeleteResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingBlockSenderDeleteResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingBlockSenderDeleteResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingBlockSenderDeleteResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderDeleteResponseEnvelopeSuccess ¶
type SettingBlockSenderDeleteResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingBlockSenderDeleteResponseEnvelopeSuccessTrue SettingBlockSenderDeleteResponseEnvelopeSuccess = true
)
func (SettingBlockSenderDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r SettingBlockSenderDeleteResponseEnvelopeSuccess) IsKnown() bool
type SettingBlockSenderEditParams ¶
type SettingBlockSenderEditParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
Comments param.Field[string] `json:"comments"`
IsRegex param.Field[bool] `json:"is_regex"`
Pattern param.Field[string] `json:"pattern"`
// Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when
// creating or updating policies, but may be returned for existing entries.
PatternType param.Field[SettingBlockSenderEditParamsPatternType] `json:"pattern_type"`
}
func (SettingBlockSenderEditParams) MarshalJSON ¶
func (r SettingBlockSenderEditParams) MarshalJSON() (data []byte, err error)
type SettingBlockSenderEditParamsPatternType ¶
type SettingBlockSenderEditParamsPatternType string
Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries.
const ( SettingBlockSenderEditParamsPatternTypeEmail SettingBlockSenderEditParamsPatternType = "EMAIL" SettingBlockSenderEditParamsPatternTypeDomain SettingBlockSenderEditParamsPatternType = "DOMAIN" SettingBlockSenderEditParamsPatternTypeIP SettingBlockSenderEditParamsPatternType = "IP" SettingBlockSenderEditParamsPatternTypeUnknown SettingBlockSenderEditParamsPatternType = "UNKNOWN" )
func (SettingBlockSenderEditParamsPatternType) IsKnown ¶
func (r SettingBlockSenderEditParamsPatternType) IsKnown() bool
type SettingBlockSenderEditResponse ¶
type SettingBlockSenderEditResponse struct {
// Blocked sender pattern identifier
ID string `json:"id" format:"uuid"`
Comments string `json:"comments" api:"nullable"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
IsRegex bool `json:"is_regex"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Pattern string `json:"pattern"`
// Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when
// creating or updating policies, but may be returned for existing entries.
PatternType SettingBlockSenderEditResponsePatternType `json:"pattern_type"`
JSON settingBlockSenderEditResponseJSON `json:"-"`
}
A blocked sender pattern
func (*SettingBlockSenderEditResponse) UnmarshalJSON ¶
func (r *SettingBlockSenderEditResponse) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderEditResponseEnvelope ¶
type SettingBlockSenderEditResponseEnvelope struct {
Errors []SettingBlockSenderEditResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingBlockSenderEditResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingBlockSenderEditResponseEnvelopeSuccess `json:"success" api:"required"`
// A blocked sender pattern
Result SettingBlockSenderEditResponse `json:"result"`
JSON settingBlockSenderEditResponseEnvelopeJSON `json:"-"`
}
func (*SettingBlockSenderEditResponseEnvelope) UnmarshalJSON ¶
func (r *SettingBlockSenderEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderEditResponseEnvelopeErrors ¶
type SettingBlockSenderEditResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingBlockSenderEditResponseEnvelopeErrorsSource `json:"source"`
JSON settingBlockSenderEditResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingBlockSenderEditResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingBlockSenderEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderEditResponseEnvelopeErrorsSource ¶
type SettingBlockSenderEditResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingBlockSenderEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingBlockSenderEditResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingBlockSenderEditResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderEditResponseEnvelopeMessages ¶
type SettingBlockSenderEditResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingBlockSenderEditResponseEnvelopeMessagesSource `json:"source"`
JSON settingBlockSenderEditResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingBlockSenderEditResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingBlockSenderEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderEditResponseEnvelopeMessagesSource ¶
type SettingBlockSenderEditResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingBlockSenderEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingBlockSenderEditResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingBlockSenderEditResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderEditResponseEnvelopeSuccess ¶
type SettingBlockSenderEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingBlockSenderEditResponseEnvelopeSuccessTrue SettingBlockSenderEditResponseEnvelopeSuccess = true
)
func (SettingBlockSenderEditResponseEnvelopeSuccess) IsKnown ¶
func (r SettingBlockSenderEditResponseEnvelopeSuccess) IsKnown() bool
type SettingBlockSenderEditResponsePatternType ¶
type SettingBlockSenderEditResponsePatternType string
Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries.
const ( SettingBlockSenderEditResponsePatternTypeEmail SettingBlockSenderEditResponsePatternType = "EMAIL" SettingBlockSenderEditResponsePatternTypeDomain SettingBlockSenderEditResponsePatternType = "DOMAIN" SettingBlockSenderEditResponsePatternTypeIP SettingBlockSenderEditResponsePatternType = "IP" SettingBlockSenderEditResponsePatternTypeUnknown SettingBlockSenderEditResponsePatternType = "UNKNOWN" )
func (SettingBlockSenderEditResponsePatternType) IsKnown ¶
func (r SettingBlockSenderEditResponsePatternType) IsKnown() bool
type SettingBlockSenderGetResponse ¶
type SettingBlockSenderGetResponse struct {
// Blocked sender pattern identifier
ID string `json:"id" format:"uuid"`
Comments string `json:"comments" api:"nullable"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
IsRegex bool `json:"is_regex"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Pattern string `json:"pattern"`
// Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when
// creating or updating policies, but may be returned for existing entries.
PatternType SettingBlockSenderGetResponsePatternType `json:"pattern_type"`
JSON settingBlockSenderGetResponseJSON `json:"-"`
}
A blocked sender pattern
func (*SettingBlockSenderGetResponse) UnmarshalJSON ¶
func (r *SettingBlockSenderGetResponse) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderGetResponseEnvelope ¶
type SettingBlockSenderGetResponseEnvelope struct {
Errors []SettingBlockSenderGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingBlockSenderGetResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingBlockSenderGetResponseEnvelopeSuccess `json:"success" api:"required"`
// A blocked sender pattern
Result SettingBlockSenderGetResponse `json:"result"`
JSON settingBlockSenderGetResponseEnvelopeJSON `json:"-"`
}
func (*SettingBlockSenderGetResponseEnvelope) UnmarshalJSON ¶
func (r *SettingBlockSenderGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderGetResponseEnvelopeErrors ¶
type SettingBlockSenderGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingBlockSenderGetResponseEnvelopeErrorsSource `json:"source"`
JSON settingBlockSenderGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingBlockSenderGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingBlockSenderGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderGetResponseEnvelopeErrorsSource ¶
type SettingBlockSenderGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingBlockSenderGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingBlockSenderGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingBlockSenderGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderGetResponseEnvelopeMessages ¶
type SettingBlockSenderGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingBlockSenderGetResponseEnvelopeMessagesSource `json:"source"`
JSON settingBlockSenderGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingBlockSenderGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingBlockSenderGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderGetResponseEnvelopeMessagesSource ¶
type SettingBlockSenderGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingBlockSenderGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingBlockSenderGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingBlockSenderGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderGetResponseEnvelopeSuccess ¶
type SettingBlockSenderGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingBlockSenderGetResponseEnvelopeSuccessTrue SettingBlockSenderGetResponseEnvelopeSuccess = true
)
func (SettingBlockSenderGetResponseEnvelopeSuccess) IsKnown ¶
func (r SettingBlockSenderGetResponseEnvelopeSuccess) IsKnown() bool
type SettingBlockSenderGetResponsePatternType ¶
type SettingBlockSenderGetResponsePatternType string
Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries.
const ( SettingBlockSenderGetResponsePatternTypeEmail SettingBlockSenderGetResponsePatternType = "EMAIL" SettingBlockSenderGetResponsePatternTypeDomain SettingBlockSenderGetResponsePatternType = "DOMAIN" SettingBlockSenderGetResponsePatternTypeIP SettingBlockSenderGetResponsePatternType = "IP" SettingBlockSenderGetResponsePatternTypeUnknown SettingBlockSenderGetResponsePatternType = "UNKNOWN" )
func (SettingBlockSenderGetResponsePatternType) IsKnown ¶
func (r SettingBlockSenderGetResponsePatternType) IsKnown() bool
type SettingBlockSenderListParams ¶
type SettingBlockSenderListParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The sorting direction.
Direction param.Field[SettingBlockSenderListParamsDirection] `query:"direction"`
// Field to sort by.
Order param.Field[SettingBlockSenderListParamsOrder] `query:"order"`
// Current page within paginated list of results.
Page param.Field[int64] `query:"page"`
// Filter by pattern value.
Pattern param.Field[string] `query:"pattern"`
// Filter by pattern type.
PatternType param.Field[SettingBlockSenderListParamsPatternType] `query:"pattern_type"`
// The number of results per page. Maximum value is 1000.
PerPage param.Field[int64] `query:"per_page"`
// Search term for filtering records. Behavior may change.
Search param.Field[string] `query:"search"`
}
func (SettingBlockSenderListParams) URLQuery ¶
func (r SettingBlockSenderListParams) URLQuery() (v url.Values)
URLQuery serializes SettingBlockSenderListParams's query parameters as `url.Values`.
type SettingBlockSenderListParamsDirection ¶
type SettingBlockSenderListParamsDirection string
The sorting direction.
const ( SettingBlockSenderListParamsDirectionAsc SettingBlockSenderListParamsDirection = "asc" SettingBlockSenderListParamsDirectionDesc SettingBlockSenderListParamsDirection = "desc" )
func (SettingBlockSenderListParamsDirection) IsKnown ¶
func (r SettingBlockSenderListParamsDirection) IsKnown() bool
type SettingBlockSenderListParamsOrder ¶
type SettingBlockSenderListParamsOrder string
Field to sort by.
const ( SettingBlockSenderListParamsOrderPattern SettingBlockSenderListParamsOrder = "pattern" SettingBlockSenderListParamsOrderCreatedAt SettingBlockSenderListParamsOrder = "created_at" )
func (SettingBlockSenderListParamsOrder) IsKnown ¶
func (r SettingBlockSenderListParamsOrder) IsKnown() bool
type SettingBlockSenderListParamsPatternType ¶
type SettingBlockSenderListParamsPatternType string
Filter by pattern type.
const ( SettingBlockSenderListParamsPatternTypeEmail SettingBlockSenderListParamsPatternType = "EMAIL" SettingBlockSenderListParamsPatternTypeDomain SettingBlockSenderListParamsPatternType = "DOMAIN" SettingBlockSenderListParamsPatternTypeIP SettingBlockSenderListParamsPatternType = "IP" SettingBlockSenderListParamsPatternTypeUnknown SettingBlockSenderListParamsPatternType = "UNKNOWN" )
func (SettingBlockSenderListParamsPatternType) IsKnown ¶
func (r SettingBlockSenderListParamsPatternType) IsKnown() bool
type SettingBlockSenderListResponse ¶
type SettingBlockSenderListResponse struct {
// Blocked sender pattern identifier
ID string `json:"id" format:"uuid"`
Comments string `json:"comments" api:"nullable"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
IsRegex bool `json:"is_regex"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Pattern string `json:"pattern"`
// Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when
// creating or updating policies, but may be returned for existing entries.
PatternType SettingBlockSenderListResponsePatternType `json:"pattern_type"`
JSON settingBlockSenderListResponseJSON `json:"-"`
}
A blocked sender pattern
func (*SettingBlockSenderListResponse) UnmarshalJSON ¶
func (r *SettingBlockSenderListResponse) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderListResponsePatternType ¶
type SettingBlockSenderListResponsePatternType string
Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries.
const ( SettingBlockSenderListResponsePatternTypeEmail SettingBlockSenderListResponsePatternType = "EMAIL" SettingBlockSenderListResponsePatternTypeDomain SettingBlockSenderListResponsePatternType = "DOMAIN" SettingBlockSenderListResponsePatternTypeIP SettingBlockSenderListResponsePatternType = "IP" SettingBlockSenderListResponsePatternTypeUnknown SettingBlockSenderListResponsePatternType = "UNKNOWN" )
func (SettingBlockSenderListResponsePatternType) IsKnown ¶
func (r SettingBlockSenderListResponsePatternType) IsKnown() bool
type SettingBlockSenderNewParams ¶
type SettingBlockSenderNewParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
IsRegex param.Field[bool] `json:"is_regex" api:"required"`
Pattern param.Field[string] `json:"pattern" api:"required"`
// Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when
// creating or updating policies, but may be returned for existing entries.
PatternType param.Field[SettingBlockSenderNewParamsPatternType] `json:"pattern_type" api:"required"`
Comments param.Field[string] `json:"comments"`
}
func (SettingBlockSenderNewParams) MarshalJSON ¶
func (r SettingBlockSenderNewParams) MarshalJSON() (data []byte, err error)
type SettingBlockSenderNewParamsPatternType ¶
type SettingBlockSenderNewParamsPatternType string
Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries.
const ( SettingBlockSenderNewParamsPatternTypeEmail SettingBlockSenderNewParamsPatternType = "EMAIL" SettingBlockSenderNewParamsPatternTypeDomain SettingBlockSenderNewParamsPatternType = "DOMAIN" SettingBlockSenderNewParamsPatternTypeIP SettingBlockSenderNewParamsPatternType = "IP" SettingBlockSenderNewParamsPatternTypeUnknown SettingBlockSenderNewParamsPatternType = "UNKNOWN" )
func (SettingBlockSenderNewParamsPatternType) IsKnown ¶
func (r SettingBlockSenderNewParamsPatternType) IsKnown() bool
type SettingBlockSenderNewResponse ¶
type SettingBlockSenderNewResponse struct {
// Blocked sender pattern identifier
ID string `json:"id" format:"uuid"`
Comments string `json:"comments" api:"nullable"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
IsRegex bool `json:"is_regex"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Pattern string `json:"pattern"`
// Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when
// creating or updating policies, but may be returned for existing entries.
PatternType SettingBlockSenderNewResponsePatternType `json:"pattern_type"`
JSON settingBlockSenderNewResponseJSON `json:"-"`
}
A blocked sender pattern
func (*SettingBlockSenderNewResponse) UnmarshalJSON ¶
func (r *SettingBlockSenderNewResponse) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderNewResponseEnvelope ¶
type SettingBlockSenderNewResponseEnvelope struct {
Errors []SettingBlockSenderNewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingBlockSenderNewResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingBlockSenderNewResponseEnvelopeSuccess `json:"success" api:"required"`
// A blocked sender pattern
Result SettingBlockSenderNewResponse `json:"result"`
JSON settingBlockSenderNewResponseEnvelopeJSON `json:"-"`
}
func (*SettingBlockSenderNewResponseEnvelope) UnmarshalJSON ¶
func (r *SettingBlockSenderNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderNewResponseEnvelopeErrors ¶
type SettingBlockSenderNewResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingBlockSenderNewResponseEnvelopeErrorsSource `json:"source"`
JSON settingBlockSenderNewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingBlockSenderNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingBlockSenderNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderNewResponseEnvelopeErrorsSource ¶
type SettingBlockSenderNewResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingBlockSenderNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingBlockSenderNewResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingBlockSenderNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderNewResponseEnvelopeMessages ¶
type SettingBlockSenderNewResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingBlockSenderNewResponseEnvelopeMessagesSource `json:"source"`
JSON settingBlockSenderNewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingBlockSenderNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingBlockSenderNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderNewResponseEnvelopeMessagesSource ¶
type SettingBlockSenderNewResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingBlockSenderNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingBlockSenderNewResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingBlockSenderNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingBlockSenderNewResponseEnvelopeSuccess ¶
type SettingBlockSenderNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingBlockSenderNewResponseEnvelopeSuccessTrue SettingBlockSenderNewResponseEnvelopeSuccess = true
)
func (SettingBlockSenderNewResponseEnvelopeSuccess) IsKnown ¶
func (r SettingBlockSenderNewResponseEnvelopeSuccess) IsKnown() bool
type SettingBlockSenderNewResponsePatternType ¶
type SettingBlockSenderNewResponsePatternType string
Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries.
const ( SettingBlockSenderNewResponsePatternTypeEmail SettingBlockSenderNewResponsePatternType = "EMAIL" SettingBlockSenderNewResponsePatternTypeDomain SettingBlockSenderNewResponsePatternType = "DOMAIN" SettingBlockSenderNewResponsePatternTypeIP SettingBlockSenderNewResponsePatternType = "IP" SettingBlockSenderNewResponsePatternTypeUnknown SettingBlockSenderNewResponsePatternType = "UNKNOWN" )
func (SettingBlockSenderNewResponsePatternType) IsKnown ¶
func (r SettingBlockSenderNewResponsePatternType) IsKnown() bool
type SettingBlockSenderService ¶
type SettingBlockSenderService struct {
Options []option.RequestOption
}
SettingBlockSenderService 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 NewSettingBlockSenderService method instead.
func NewSettingBlockSenderService ¶
func NewSettingBlockSenderService(opts ...option.RequestOption) (r *SettingBlockSenderService)
NewSettingBlockSenderService 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 (*SettingBlockSenderService) Delete ¶
func (r *SettingBlockSenderService) Delete(ctx context.Context, patternID string, body SettingBlockSenderDeleteParams, opts ...option.RequestOption) (res *SettingBlockSenderDeleteResponse, err error)
Removes a blocked sender pattern. After deletion, emails from this sender will no longer be automatically blocked based on this rule.
func (*SettingBlockSenderService) Edit ¶
func (r *SettingBlockSenderService) Edit(ctx context.Context, patternID string, params SettingBlockSenderEditParams, opts ...option.RequestOption) (res *SettingBlockSenderEditResponse, err error)
Updates an existing blocked sender pattern. Only provided fields will be modified. The pattern will continue blocking emails until deleted.
func (*SettingBlockSenderService) Get ¶
func (r *SettingBlockSenderService) Get(ctx context.Context, patternID string, query SettingBlockSenderGetParams, opts ...option.RequestOption) (res *SettingBlockSenderGetResponse, err error)
Retrieves details for a specific blocked sender pattern including its pattern type, value, and metadata.
func (*SettingBlockSenderService) List ¶
func (r *SettingBlockSenderService) List(ctx context.Context, params SettingBlockSenderListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[SettingBlockSenderListResponse], err error)
Returns a paginated list of blocked email sender patterns. These patterns prevent emails from matching senders from being delivered. Supports filtering by pattern type and searching across patterns.
func (*SettingBlockSenderService) ListAutoPaging ¶
func (r *SettingBlockSenderService) ListAutoPaging(ctx context.Context, params SettingBlockSenderListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[SettingBlockSenderListResponse]
Returns a paginated list of blocked email sender patterns. These patterns prevent emails from matching senders from being delivered. Supports filtering by pattern type and searching across patterns.
func (*SettingBlockSenderService) New ¶
func (r *SettingBlockSenderService) New(ctx context.Context, params SettingBlockSenderNewParams, opts ...option.RequestOption) (res *SettingBlockSenderNewResponse, err error)
Creates a new blocked sender pattern. Emails matching this pattern will be blocked from delivery. Patterns can be email addresses, domains, or IP addresses, and support regular expressions.
type SettingDomainDeleteResponse ¶
type SettingDomainDeleteResponse struct {
// Domain identifier
ID string `json:"id" api:"required" format:"uuid"`
JSON settingDomainDeleteResponseJSON `json:"-"`
}
func (*SettingDomainDeleteResponse) UnmarshalJSON ¶
func (r *SettingDomainDeleteResponse) UnmarshalJSON(data []byte) (err error)
type SettingDomainDeleteResponseEnvelope ¶
type SettingDomainDeleteResponseEnvelope struct {
Errors []SettingDomainDeleteResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingDomainDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingDomainDeleteResponseEnvelopeSuccess `json:"success" api:"required"`
Result SettingDomainDeleteResponse `json:"result"`
JSON settingDomainDeleteResponseEnvelopeJSON `json:"-"`
}
func (*SettingDomainDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *SettingDomainDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingDomainDeleteResponseEnvelopeErrors ¶
type SettingDomainDeleteResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingDomainDeleteResponseEnvelopeErrorsSource `json:"source"`
JSON settingDomainDeleteResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingDomainDeleteResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingDomainDeleteResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingDomainDeleteResponseEnvelopeErrorsSource ¶
type SettingDomainDeleteResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingDomainDeleteResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingDomainDeleteResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingDomainDeleteResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingDomainDeleteResponseEnvelopeMessages ¶
type SettingDomainDeleteResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingDomainDeleteResponseEnvelopeMessagesSource `json:"source"`
JSON settingDomainDeleteResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingDomainDeleteResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingDomainDeleteResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingDomainDeleteResponseEnvelopeMessagesSource ¶
type SettingDomainDeleteResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingDomainDeleteResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingDomainDeleteResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingDomainDeleteResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingDomainDeleteResponseEnvelopeSuccess ¶
type SettingDomainDeleteResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingDomainDeleteResponseEnvelopeSuccessTrue SettingDomainDeleteResponseEnvelopeSuccess = true
)
func (SettingDomainDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r SettingDomainDeleteResponseEnvelopeSuccess) IsKnown() bool
type SettingDomainEditParams ¶
type SettingDomainEditParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
AllowedDeliveryModes param.Field[[]SettingDomainEditParamsAllowedDeliveryMode] `json:"allowed_delivery_modes"`
Domain param.Field[string] `json:"domain"`
DropDispositions param.Field[[]SettingDomainEditParamsDropDisposition] `json:"drop_dispositions"`
Folder param.Field[SettingDomainEditParamsFolder] `json:"folder"`
IntegrationID param.Field[string] `json:"integration_id" format:"uuid"`
IPRestrictions param.Field[[]string] `json:"ip_restrictions"`
LookbackHops param.Field[int64] `json:"lookback_hops"`
Regions param.Field[[]SettingDomainEditParamsRegion] `json:"regions"`
RequireTLSInbound param.Field[bool] `json:"require_tls_inbound"`
RequireTLSOutbound param.Field[bool] `json:"require_tls_outbound"`
Transport param.Field[string] `json:"transport"`
}
func (SettingDomainEditParams) MarshalJSON ¶
func (r SettingDomainEditParams) MarshalJSON() (data []byte, err error)
type SettingDomainEditParamsAllowedDeliveryMode ¶
type SettingDomainEditParamsAllowedDeliveryMode string
const ( SettingDomainEditParamsAllowedDeliveryModeDirect SettingDomainEditParamsAllowedDeliveryMode = "DIRECT" SettingDomainEditParamsAllowedDeliveryModeBcc SettingDomainEditParamsAllowedDeliveryMode = "BCC" SettingDomainEditParamsAllowedDeliveryModeJournal SettingDomainEditParamsAllowedDeliveryMode = "JOURNAL" SettingDomainEditParamsAllowedDeliveryModeAPI SettingDomainEditParamsAllowedDeliveryMode = "API" SettingDomainEditParamsAllowedDeliveryModeRetroScan SettingDomainEditParamsAllowedDeliveryMode = "RETRO_SCAN" )
func (SettingDomainEditParamsAllowedDeliveryMode) IsKnown ¶
func (r SettingDomainEditParamsAllowedDeliveryMode) IsKnown() bool
type SettingDomainEditParamsDropDisposition ¶
type SettingDomainEditParamsDropDisposition string
const ( SettingDomainEditParamsDropDispositionMalicious SettingDomainEditParamsDropDisposition = "MALICIOUS" SettingDomainEditParamsDropDispositionMaliciousBec SettingDomainEditParamsDropDisposition = "MALICIOUS-BEC" SettingDomainEditParamsDropDispositionSuspicious SettingDomainEditParamsDropDisposition = "SUSPICIOUS" SettingDomainEditParamsDropDispositionSpoof SettingDomainEditParamsDropDisposition = "SPOOF" SettingDomainEditParamsDropDispositionSpam SettingDomainEditParamsDropDisposition = "SPAM" SettingDomainEditParamsDropDispositionBulk SettingDomainEditParamsDropDisposition = "BULK" SettingDomainEditParamsDropDispositionEncrypted SettingDomainEditParamsDropDisposition = "ENCRYPTED" SettingDomainEditParamsDropDispositionExternal SettingDomainEditParamsDropDisposition = "EXTERNAL" SettingDomainEditParamsDropDispositionUnknown SettingDomainEditParamsDropDisposition = "UNKNOWN" SettingDomainEditParamsDropDispositionNone SettingDomainEditParamsDropDisposition = "NONE" )
func (SettingDomainEditParamsDropDisposition) IsKnown ¶
func (r SettingDomainEditParamsDropDisposition) IsKnown() bool
type SettingDomainEditParamsFolder ¶
type SettingDomainEditParamsFolder string
const ( SettingDomainEditParamsFolderAllItems SettingDomainEditParamsFolder = "AllItems" SettingDomainEditParamsFolderInbox SettingDomainEditParamsFolder = "Inbox" )
func (SettingDomainEditParamsFolder) IsKnown ¶
func (r SettingDomainEditParamsFolder) IsKnown() bool
type SettingDomainEditParamsRegion ¶
type SettingDomainEditParamsRegion string
const ( SettingDomainEditParamsRegionGlobal SettingDomainEditParamsRegion = "GLOBAL" SettingDomainEditParamsRegionAu SettingDomainEditParamsRegion = "AU" SettingDomainEditParamsRegionDe SettingDomainEditParamsRegion = "DE" SettingDomainEditParamsRegionIn SettingDomainEditParamsRegion = "IN" SettingDomainEditParamsRegionUs SettingDomainEditParamsRegion = "US" )
func (SettingDomainEditParamsRegion) IsKnown ¶
func (r SettingDomainEditParamsRegion) IsKnown() bool
type SettingDomainEditResponse ¶
type SettingDomainEditResponse struct {
// Domain identifier
ID string `json:"id" format:"uuid"`
AllowedDeliveryModes []SettingDomainEditResponseAllowedDeliveryMode `json:"allowed_delivery_modes"`
Authorization SettingDomainEditResponseAuthorization `json:"authorization"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
DMARCStatus SettingDomainEditResponseDMARCStatus `json:"dmarc_status"`
Domain string `json:"domain"`
DropDispositions []SettingDomainEditResponseDropDisposition `json:"drop_dispositions"`
EmailsProcessed SettingDomainEditResponseEmailsProcessed `json:"emails_processed"`
Folder SettingDomainEditResponseFolder `json:"folder"`
InboxProvider SettingDomainEditResponseInboxProvider `json:"inbox_provider" api:"nullable"`
IntegrationID string `json:"integration_id" api:"nullable" format:"uuid"`
IPRestrictions []string `json:"ip_restrictions"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" format:"date-time"`
LookbackHops int64 `json:"lookback_hops"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
O365TenantID string `json:"o365_tenant_id" api:"nullable"`
Regions []SettingDomainEditResponseRegion `json:"regions"`
RequireTLSInbound bool `json:"require_tls_inbound" api:"nullable"`
RequireTLSOutbound bool `json:"require_tls_outbound" api:"nullable"`
SPFStatus SettingDomainEditResponseSPFStatus `json:"spf_status"`
Status SettingDomainEditResponseStatus `json:"status"`
Transport string `json:"transport"`
JSON settingDomainEditResponseJSON `json:"-"`
}
func (*SettingDomainEditResponse) UnmarshalJSON ¶
func (r *SettingDomainEditResponse) UnmarshalJSON(data []byte) (err error)
type SettingDomainEditResponseAllowedDeliveryMode ¶
type SettingDomainEditResponseAllowedDeliveryMode string
const ( SettingDomainEditResponseAllowedDeliveryModeDirect SettingDomainEditResponseAllowedDeliveryMode = "DIRECT" SettingDomainEditResponseAllowedDeliveryModeBcc SettingDomainEditResponseAllowedDeliveryMode = "BCC" SettingDomainEditResponseAllowedDeliveryModeJournal SettingDomainEditResponseAllowedDeliveryMode = "JOURNAL" SettingDomainEditResponseAllowedDeliveryModeAPI SettingDomainEditResponseAllowedDeliveryMode = "API" SettingDomainEditResponseAllowedDeliveryModeRetroScan SettingDomainEditResponseAllowedDeliveryMode = "RETRO_SCAN" )
func (SettingDomainEditResponseAllowedDeliveryMode) IsKnown ¶
func (r SettingDomainEditResponseAllowedDeliveryMode) IsKnown() bool
type SettingDomainEditResponseAuthorization ¶
type SettingDomainEditResponseAuthorization struct {
Authorized bool `json:"authorized" api:"required"`
Timestamp time.Time `json:"timestamp" api:"required" format:"date-time"`
StatusMessage string `json:"status_message" api:"nullable"`
JSON settingDomainEditResponseAuthorizationJSON `json:"-"`
}
func (*SettingDomainEditResponseAuthorization) UnmarshalJSON ¶
func (r *SettingDomainEditResponseAuthorization) UnmarshalJSON(data []byte) (err error)
type SettingDomainEditResponseDMARCStatus ¶
type SettingDomainEditResponseDMARCStatus string
const ( SettingDomainEditResponseDMARCStatusNone SettingDomainEditResponseDMARCStatus = "none" SettingDomainEditResponseDMARCStatusGood SettingDomainEditResponseDMARCStatus = "good" SettingDomainEditResponseDMARCStatusInvalid SettingDomainEditResponseDMARCStatus = "invalid" )
func (SettingDomainEditResponseDMARCStatus) IsKnown ¶
func (r SettingDomainEditResponseDMARCStatus) IsKnown() bool
type SettingDomainEditResponseDropDisposition ¶
type SettingDomainEditResponseDropDisposition string
const ( SettingDomainEditResponseDropDispositionMalicious SettingDomainEditResponseDropDisposition = "MALICIOUS" SettingDomainEditResponseDropDispositionMaliciousBec SettingDomainEditResponseDropDisposition = "MALICIOUS-BEC" SettingDomainEditResponseDropDispositionSuspicious SettingDomainEditResponseDropDisposition = "SUSPICIOUS" SettingDomainEditResponseDropDispositionSpoof SettingDomainEditResponseDropDisposition = "SPOOF" SettingDomainEditResponseDropDispositionSpam SettingDomainEditResponseDropDisposition = "SPAM" SettingDomainEditResponseDropDispositionBulk SettingDomainEditResponseDropDisposition = "BULK" SettingDomainEditResponseDropDispositionEncrypted SettingDomainEditResponseDropDisposition = "ENCRYPTED" SettingDomainEditResponseDropDispositionExternal SettingDomainEditResponseDropDisposition = "EXTERNAL" SettingDomainEditResponseDropDispositionUnknown SettingDomainEditResponseDropDisposition = "UNKNOWN" SettingDomainEditResponseDropDispositionNone SettingDomainEditResponseDropDisposition = "NONE" )
func (SettingDomainEditResponseDropDisposition) IsKnown ¶
func (r SettingDomainEditResponseDropDisposition) IsKnown() bool
type SettingDomainEditResponseEmailsProcessed ¶
type SettingDomainEditResponseEmailsProcessed struct {
Timestamp time.Time `json:"timestamp" api:"required" format:"date-time"`
TotalEmailsProcessed int64 `json:"total_emails_processed" api:"required"`
TotalEmailsProcessedPrevious int64 `json:"total_emails_processed_previous" api:"required"`
JSON settingDomainEditResponseEmailsProcessedJSON `json:"-"`
}
func (*SettingDomainEditResponseEmailsProcessed) UnmarshalJSON ¶
func (r *SettingDomainEditResponseEmailsProcessed) UnmarshalJSON(data []byte) (err error)
type SettingDomainEditResponseEnvelope ¶
type SettingDomainEditResponseEnvelope struct {
Errors []SettingDomainEditResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingDomainEditResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingDomainEditResponseEnvelopeSuccess `json:"success" api:"required"`
Result SettingDomainEditResponse `json:"result"`
JSON settingDomainEditResponseEnvelopeJSON `json:"-"`
}
func (*SettingDomainEditResponseEnvelope) UnmarshalJSON ¶
func (r *SettingDomainEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingDomainEditResponseEnvelopeErrors ¶
type SettingDomainEditResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingDomainEditResponseEnvelopeErrorsSource `json:"source"`
JSON settingDomainEditResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingDomainEditResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingDomainEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingDomainEditResponseEnvelopeErrorsSource ¶
type SettingDomainEditResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingDomainEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingDomainEditResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingDomainEditResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingDomainEditResponseEnvelopeMessages ¶
type SettingDomainEditResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingDomainEditResponseEnvelopeMessagesSource `json:"source"`
JSON settingDomainEditResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingDomainEditResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingDomainEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingDomainEditResponseEnvelopeMessagesSource ¶
type SettingDomainEditResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingDomainEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingDomainEditResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingDomainEditResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingDomainEditResponseEnvelopeSuccess ¶
type SettingDomainEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingDomainEditResponseEnvelopeSuccessTrue SettingDomainEditResponseEnvelopeSuccess = true
)
func (SettingDomainEditResponseEnvelopeSuccess) IsKnown ¶
func (r SettingDomainEditResponseEnvelopeSuccess) IsKnown() bool
type SettingDomainEditResponseFolder ¶
type SettingDomainEditResponseFolder string
const ( SettingDomainEditResponseFolderAllItems SettingDomainEditResponseFolder = "AllItems" SettingDomainEditResponseFolderInbox SettingDomainEditResponseFolder = "Inbox" )
func (SettingDomainEditResponseFolder) IsKnown ¶
func (r SettingDomainEditResponseFolder) IsKnown() bool
type SettingDomainEditResponseInboxProvider ¶
type SettingDomainEditResponseInboxProvider string
const ( SettingDomainEditResponseInboxProviderMicrosoft SettingDomainEditResponseInboxProvider = "Microsoft" SettingDomainEditResponseInboxProviderGoogle SettingDomainEditResponseInboxProvider = "Google" )
func (SettingDomainEditResponseInboxProvider) IsKnown ¶
func (r SettingDomainEditResponseInboxProvider) IsKnown() bool
type SettingDomainEditResponseRegion ¶
type SettingDomainEditResponseRegion string
const ( SettingDomainEditResponseRegionGlobal SettingDomainEditResponseRegion = "GLOBAL" SettingDomainEditResponseRegionAu SettingDomainEditResponseRegion = "AU" SettingDomainEditResponseRegionDe SettingDomainEditResponseRegion = "DE" SettingDomainEditResponseRegionIn SettingDomainEditResponseRegion = "IN" SettingDomainEditResponseRegionUs SettingDomainEditResponseRegion = "US" )
func (SettingDomainEditResponseRegion) IsKnown ¶
func (r SettingDomainEditResponseRegion) IsKnown() bool
type SettingDomainEditResponseSPFStatus ¶
type SettingDomainEditResponseSPFStatus string
const ( SettingDomainEditResponseSPFStatusNone SettingDomainEditResponseSPFStatus = "none" SettingDomainEditResponseSPFStatusGood SettingDomainEditResponseSPFStatus = "good" SettingDomainEditResponseSPFStatusNeutral SettingDomainEditResponseSPFStatus = "neutral" SettingDomainEditResponseSPFStatusOpen SettingDomainEditResponseSPFStatus = "open" SettingDomainEditResponseSPFStatusInvalid SettingDomainEditResponseSPFStatus = "invalid" )
func (SettingDomainEditResponseSPFStatus) IsKnown ¶
func (r SettingDomainEditResponseSPFStatus) IsKnown() bool
type SettingDomainEditResponseStatus ¶
type SettingDomainEditResponseStatus string
const ( SettingDomainEditResponseStatusPending SettingDomainEditResponseStatus = "pending" SettingDomainEditResponseStatusActive SettingDomainEditResponseStatus = "active" SettingDomainEditResponseStatusFailed SettingDomainEditResponseStatus = "failed" SettingDomainEditResponseStatusTimeout SettingDomainEditResponseStatus = "timeout" )
func (SettingDomainEditResponseStatus) IsKnown ¶
func (r SettingDomainEditResponseStatus) IsKnown() bool
type SettingDomainGetParams ¶
type SettingDomainGetResponse ¶
type SettingDomainGetResponse struct {
// Domain identifier
ID string `json:"id" format:"uuid"`
AllowedDeliveryModes []SettingDomainGetResponseAllowedDeliveryMode `json:"allowed_delivery_modes"`
Authorization SettingDomainGetResponseAuthorization `json:"authorization"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
DMARCStatus SettingDomainGetResponseDMARCStatus `json:"dmarc_status"`
Domain string `json:"domain"`
DropDispositions []SettingDomainGetResponseDropDisposition `json:"drop_dispositions"`
EmailsProcessed SettingDomainGetResponseEmailsProcessed `json:"emails_processed"`
Folder SettingDomainGetResponseFolder `json:"folder"`
InboxProvider SettingDomainGetResponseInboxProvider `json:"inbox_provider" api:"nullable"`
IntegrationID string `json:"integration_id" api:"nullable" format:"uuid"`
IPRestrictions []string `json:"ip_restrictions"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" format:"date-time"`
LookbackHops int64 `json:"lookback_hops"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
O365TenantID string `json:"o365_tenant_id" api:"nullable"`
Regions []SettingDomainGetResponseRegion `json:"regions"`
RequireTLSInbound bool `json:"require_tls_inbound" api:"nullable"`
RequireTLSOutbound bool `json:"require_tls_outbound" api:"nullable"`
SPFStatus SettingDomainGetResponseSPFStatus `json:"spf_status"`
Status SettingDomainGetResponseStatus `json:"status"`
Transport string `json:"transport"`
JSON settingDomainGetResponseJSON `json:"-"`
}
func (*SettingDomainGetResponse) UnmarshalJSON ¶
func (r *SettingDomainGetResponse) UnmarshalJSON(data []byte) (err error)
type SettingDomainGetResponseAllowedDeliveryMode ¶
type SettingDomainGetResponseAllowedDeliveryMode string
const ( SettingDomainGetResponseAllowedDeliveryModeDirect SettingDomainGetResponseAllowedDeliveryMode = "DIRECT" SettingDomainGetResponseAllowedDeliveryModeBcc SettingDomainGetResponseAllowedDeliveryMode = "BCC" SettingDomainGetResponseAllowedDeliveryModeJournal SettingDomainGetResponseAllowedDeliveryMode = "JOURNAL" SettingDomainGetResponseAllowedDeliveryModeAPI SettingDomainGetResponseAllowedDeliveryMode = "API" SettingDomainGetResponseAllowedDeliveryModeRetroScan SettingDomainGetResponseAllowedDeliveryMode = "RETRO_SCAN" )
func (SettingDomainGetResponseAllowedDeliveryMode) IsKnown ¶
func (r SettingDomainGetResponseAllowedDeliveryMode) IsKnown() bool
type SettingDomainGetResponseAuthorization ¶
type SettingDomainGetResponseAuthorization struct {
Authorized bool `json:"authorized" api:"required"`
Timestamp time.Time `json:"timestamp" api:"required" format:"date-time"`
StatusMessage string `json:"status_message" api:"nullable"`
JSON settingDomainGetResponseAuthorizationJSON `json:"-"`
}
func (*SettingDomainGetResponseAuthorization) UnmarshalJSON ¶
func (r *SettingDomainGetResponseAuthorization) UnmarshalJSON(data []byte) (err error)
type SettingDomainGetResponseDMARCStatus ¶
type SettingDomainGetResponseDMARCStatus string
const ( SettingDomainGetResponseDMARCStatusNone SettingDomainGetResponseDMARCStatus = "none" SettingDomainGetResponseDMARCStatusGood SettingDomainGetResponseDMARCStatus = "good" SettingDomainGetResponseDMARCStatusInvalid SettingDomainGetResponseDMARCStatus = "invalid" )
func (SettingDomainGetResponseDMARCStatus) IsKnown ¶
func (r SettingDomainGetResponseDMARCStatus) IsKnown() bool
type SettingDomainGetResponseDropDisposition ¶
type SettingDomainGetResponseDropDisposition string
const ( SettingDomainGetResponseDropDispositionMalicious SettingDomainGetResponseDropDisposition = "MALICIOUS" SettingDomainGetResponseDropDispositionMaliciousBec SettingDomainGetResponseDropDisposition = "MALICIOUS-BEC" SettingDomainGetResponseDropDispositionSuspicious SettingDomainGetResponseDropDisposition = "SUSPICIOUS" SettingDomainGetResponseDropDispositionSpoof SettingDomainGetResponseDropDisposition = "SPOOF" SettingDomainGetResponseDropDispositionSpam SettingDomainGetResponseDropDisposition = "SPAM" SettingDomainGetResponseDropDispositionBulk SettingDomainGetResponseDropDisposition = "BULK" SettingDomainGetResponseDropDispositionEncrypted SettingDomainGetResponseDropDisposition = "ENCRYPTED" SettingDomainGetResponseDropDispositionExternal SettingDomainGetResponseDropDisposition = "EXTERNAL" SettingDomainGetResponseDropDispositionUnknown SettingDomainGetResponseDropDisposition = "UNKNOWN" SettingDomainGetResponseDropDispositionNone SettingDomainGetResponseDropDisposition = "NONE" )
func (SettingDomainGetResponseDropDisposition) IsKnown ¶
func (r SettingDomainGetResponseDropDisposition) IsKnown() bool
type SettingDomainGetResponseEmailsProcessed ¶
type SettingDomainGetResponseEmailsProcessed struct {
Timestamp time.Time `json:"timestamp" api:"required" format:"date-time"`
TotalEmailsProcessed int64 `json:"total_emails_processed" api:"required"`
TotalEmailsProcessedPrevious int64 `json:"total_emails_processed_previous" api:"required"`
JSON settingDomainGetResponseEmailsProcessedJSON `json:"-"`
}
func (*SettingDomainGetResponseEmailsProcessed) UnmarshalJSON ¶
func (r *SettingDomainGetResponseEmailsProcessed) UnmarshalJSON(data []byte) (err error)
type SettingDomainGetResponseEnvelope ¶
type SettingDomainGetResponseEnvelope struct {
Errors []SettingDomainGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingDomainGetResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingDomainGetResponseEnvelopeSuccess `json:"success" api:"required"`
Result SettingDomainGetResponse `json:"result"`
JSON settingDomainGetResponseEnvelopeJSON `json:"-"`
}
func (*SettingDomainGetResponseEnvelope) UnmarshalJSON ¶
func (r *SettingDomainGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingDomainGetResponseEnvelopeErrors ¶
type SettingDomainGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingDomainGetResponseEnvelopeErrorsSource `json:"source"`
JSON settingDomainGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingDomainGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingDomainGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingDomainGetResponseEnvelopeErrorsSource ¶
type SettingDomainGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingDomainGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingDomainGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingDomainGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingDomainGetResponseEnvelopeMessages ¶
type SettingDomainGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingDomainGetResponseEnvelopeMessagesSource `json:"source"`
JSON settingDomainGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingDomainGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingDomainGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingDomainGetResponseEnvelopeMessagesSource ¶
type SettingDomainGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingDomainGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingDomainGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingDomainGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingDomainGetResponseEnvelopeSuccess ¶
type SettingDomainGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingDomainGetResponseEnvelopeSuccessTrue SettingDomainGetResponseEnvelopeSuccess = true
)
func (SettingDomainGetResponseEnvelopeSuccess) IsKnown ¶
func (r SettingDomainGetResponseEnvelopeSuccess) IsKnown() bool
type SettingDomainGetResponseFolder ¶
type SettingDomainGetResponseFolder string
const ( SettingDomainGetResponseFolderAllItems SettingDomainGetResponseFolder = "AllItems" SettingDomainGetResponseFolderInbox SettingDomainGetResponseFolder = "Inbox" )
func (SettingDomainGetResponseFolder) IsKnown ¶
func (r SettingDomainGetResponseFolder) IsKnown() bool
type SettingDomainGetResponseInboxProvider ¶
type SettingDomainGetResponseInboxProvider string
const ( SettingDomainGetResponseInboxProviderMicrosoft SettingDomainGetResponseInboxProvider = "Microsoft" SettingDomainGetResponseInboxProviderGoogle SettingDomainGetResponseInboxProvider = "Google" )
func (SettingDomainGetResponseInboxProvider) IsKnown ¶
func (r SettingDomainGetResponseInboxProvider) IsKnown() bool
type SettingDomainGetResponseRegion ¶
type SettingDomainGetResponseRegion string
const ( SettingDomainGetResponseRegionGlobal SettingDomainGetResponseRegion = "GLOBAL" SettingDomainGetResponseRegionAu SettingDomainGetResponseRegion = "AU" SettingDomainGetResponseRegionDe SettingDomainGetResponseRegion = "DE" SettingDomainGetResponseRegionIn SettingDomainGetResponseRegion = "IN" SettingDomainGetResponseRegionUs SettingDomainGetResponseRegion = "US" )
func (SettingDomainGetResponseRegion) IsKnown ¶
func (r SettingDomainGetResponseRegion) IsKnown() bool
type SettingDomainGetResponseSPFStatus ¶
type SettingDomainGetResponseSPFStatus string
const ( SettingDomainGetResponseSPFStatusNone SettingDomainGetResponseSPFStatus = "none" SettingDomainGetResponseSPFStatusGood SettingDomainGetResponseSPFStatus = "good" SettingDomainGetResponseSPFStatusNeutral SettingDomainGetResponseSPFStatus = "neutral" SettingDomainGetResponseSPFStatusOpen SettingDomainGetResponseSPFStatus = "open" SettingDomainGetResponseSPFStatusInvalid SettingDomainGetResponseSPFStatus = "invalid" )
func (SettingDomainGetResponseSPFStatus) IsKnown ¶
func (r SettingDomainGetResponseSPFStatus) IsKnown() bool
type SettingDomainGetResponseStatus ¶
type SettingDomainGetResponseStatus string
const ( SettingDomainGetResponseStatusPending SettingDomainGetResponseStatus = "pending" SettingDomainGetResponseStatusActive SettingDomainGetResponseStatus = "active" SettingDomainGetResponseStatusFailed SettingDomainGetResponseStatus = "failed" SettingDomainGetResponseStatusTimeout SettingDomainGetResponseStatus = "timeout" )
func (SettingDomainGetResponseStatus) IsKnown ¶
func (r SettingDomainGetResponseStatus) IsKnown() bool
type SettingDomainListParams ¶
type SettingDomainListParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// Currently active delivery mode to filter by.
ActiveDeliveryMode param.Field[SettingDomainListParamsActiveDeliveryMode] `query:"active_delivery_mode"`
// Delivery mode to filter by.
AllowedDeliveryMode param.Field[SettingDomainListParamsAllowedDeliveryMode] `query:"allowed_delivery_mode"`
// The sorting direction.
Direction param.Field[SettingDomainListParamsDirection] `query:"direction"`
// Domain names to filter by.
Domain param.Field[[]string] `query:"domain"`
// Integration ID to filter by.
IntegrationID param.Field[string] `query:"integration_id" format:"uuid"`
// Field to sort by.
Order param.Field[SettingDomainListParamsOrder] `query:"order"`
// Current page within paginated list of results.
Page param.Field[int64] `query:"page"`
// The number of results per page. Maximum value is 1000.
PerPage param.Field[int64] `query:"per_page"`
// Search term for filtering records. Behavior may change.
Search param.Field[string] `query:"search"`
// Filters response to domains with the provided status.
Status param.Field[SettingDomainListParamsStatus] `query:"status"`
}
func (SettingDomainListParams) URLQuery ¶
func (r SettingDomainListParams) URLQuery() (v url.Values)
URLQuery serializes SettingDomainListParams's query parameters as `url.Values`.
type SettingDomainListParamsActiveDeliveryMode ¶
type SettingDomainListParamsActiveDeliveryMode string
Currently active delivery mode to filter by.
const ( SettingDomainListParamsActiveDeliveryModeDirect SettingDomainListParamsActiveDeliveryMode = "DIRECT" SettingDomainListParamsActiveDeliveryModeBcc SettingDomainListParamsActiveDeliveryMode = "BCC" SettingDomainListParamsActiveDeliveryModeJournal SettingDomainListParamsActiveDeliveryMode = "JOURNAL" SettingDomainListParamsActiveDeliveryModeAPI SettingDomainListParamsActiveDeliveryMode = "API" SettingDomainListParamsActiveDeliveryModeRetroScan SettingDomainListParamsActiveDeliveryMode = "RETRO_SCAN" )
func (SettingDomainListParamsActiveDeliveryMode) IsKnown ¶
func (r SettingDomainListParamsActiveDeliveryMode) IsKnown() bool
type SettingDomainListParamsAllowedDeliveryMode ¶
type SettingDomainListParamsAllowedDeliveryMode string
Delivery mode to filter by.
const ( SettingDomainListParamsAllowedDeliveryModeDirect SettingDomainListParamsAllowedDeliveryMode = "DIRECT" SettingDomainListParamsAllowedDeliveryModeBcc SettingDomainListParamsAllowedDeliveryMode = "BCC" SettingDomainListParamsAllowedDeliveryModeJournal SettingDomainListParamsAllowedDeliveryMode = "JOURNAL" SettingDomainListParamsAllowedDeliveryModeAPI SettingDomainListParamsAllowedDeliveryMode = "API" SettingDomainListParamsAllowedDeliveryModeRetroScan SettingDomainListParamsAllowedDeliveryMode = "RETRO_SCAN" )
func (SettingDomainListParamsAllowedDeliveryMode) IsKnown ¶
func (r SettingDomainListParamsAllowedDeliveryMode) IsKnown() bool
type SettingDomainListParamsDirection ¶
type SettingDomainListParamsDirection string
The sorting direction.
const ( SettingDomainListParamsDirectionAsc SettingDomainListParamsDirection = "asc" SettingDomainListParamsDirectionDesc SettingDomainListParamsDirection = "desc" )
func (SettingDomainListParamsDirection) IsKnown ¶
func (r SettingDomainListParamsDirection) IsKnown() bool
type SettingDomainListParamsOrder ¶
type SettingDomainListParamsOrder string
Field to sort by.
const ( SettingDomainListParamsOrderDomain SettingDomainListParamsOrder = "domain" SettingDomainListParamsOrderCreatedAt SettingDomainListParamsOrder = "created_at" )
func (SettingDomainListParamsOrder) IsKnown ¶
func (r SettingDomainListParamsOrder) IsKnown() bool
type SettingDomainListParamsStatus ¶
type SettingDomainListParamsStatus string
Filters response to domains with the provided status.
const ( SettingDomainListParamsStatusPending SettingDomainListParamsStatus = "pending" SettingDomainListParamsStatusActive SettingDomainListParamsStatus = "active" SettingDomainListParamsStatusFailed SettingDomainListParamsStatus = "failed" SettingDomainListParamsStatusTimeout SettingDomainListParamsStatus = "timeout" )
func (SettingDomainListParamsStatus) IsKnown ¶
func (r SettingDomainListParamsStatus) IsKnown() bool
type SettingDomainListResponse ¶
type SettingDomainListResponse struct {
// Domain identifier
ID string `json:"id" format:"uuid"`
AllowedDeliveryModes []SettingDomainListResponseAllowedDeliveryMode `json:"allowed_delivery_modes"`
Authorization SettingDomainListResponseAuthorization `json:"authorization"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
DMARCStatus SettingDomainListResponseDMARCStatus `json:"dmarc_status"`
Domain string `json:"domain"`
DropDispositions []SettingDomainListResponseDropDisposition `json:"drop_dispositions"`
EmailsProcessed SettingDomainListResponseEmailsProcessed `json:"emails_processed"`
Folder SettingDomainListResponseFolder `json:"folder"`
InboxProvider SettingDomainListResponseInboxProvider `json:"inbox_provider" api:"nullable"`
IntegrationID string `json:"integration_id" api:"nullable" format:"uuid"`
IPRestrictions []string `json:"ip_restrictions"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" format:"date-time"`
LookbackHops int64 `json:"lookback_hops"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
O365TenantID string `json:"o365_tenant_id" api:"nullable"`
Regions []SettingDomainListResponseRegion `json:"regions"`
RequireTLSInbound bool `json:"require_tls_inbound" api:"nullable"`
RequireTLSOutbound bool `json:"require_tls_outbound" api:"nullable"`
SPFStatus SettingDomainListResponseSPFStatus `json:"spf_status"`
Status SettingDomainListResponseStatus `json:"status"`
Transport string `json:"transport"`
JSON settingDomainListResponseJSON `json:"-"`
}
func (*SettingDomainListResponse) UnmarshalJSON ¶
func (r *SettingDomainListResponse) UnmarshalJSON(data []byte) (err error)
type SettingDomainListResponseAllowedDeliveryMode ¶
type SettingDomainListResponseAllowedDeliveryMode string
const ( SettingDomainListResponseAllowedDeliveryModeDirect SettingDomainListResponseAllowedDeliveryMode = "DIRECT" SettingDomainListResponseAllowedDeliveryModeBcc SettingDomainListResponseAllowedDeliveryMode = "BCC" SettingDomainListResponseAllowedDeliveryModeJournal SettingDomainListResponseAllowedDeliveryMode = "JOURNAL" SettingDomainListResponseAllowedDeliveryModeAPI SettingDomainListResponseAllowedDeliveryMode = "API" SettingDomainListResponseAllowedDeliveryModeRetroScan SettingDomainListResponseAllowedDeliveryMode = "RETRO_SCAN" )
func (SettingDomainListResponseAllowedDeliveryMode) IsKnown ¶
func (r SettingDomainListResponseAllowedDeliveryMode) IsKnown() bool
type SettingDomainListResponseAuthorization ¶
type SettingDomainListResponseAuthorization struct {
Authorized bool `json:"authorized" api:"required"`
Timestamp time.Time `json:"timestamp" api:"required" format:"date-time"`
StatusMessage string `json:"status_message" api:"nullable"`
JSON settingDomainListResponseAuthorizationJSON `json:"-"`
}
func (*SettingDomainListResponseAuthorization) UnmarshalJSON ¶
func (r *SettingDomainListResponseAuthorization) UnmarshalJSON(data []byte) (err error)
type SettingDomainListResponseDMARCStatus ¶
type SettingDomainListResponseDMARCStatus string
const ( SettingDomainListResponseDMARCStatusNone SettingDomainListResponseDMARCStatus = "none" SettingDomainListResponseDMARCStatusGood SettingDomainListResponseDMARCStatus = "good" SettingDomainListResponseDMARCStatusInvalid SettingDomainListResponseDMARCStatus = "invalid" )
func (SettingDomainListResponseDMARCStatus) IsKnown ¶
func (r SettingDomainListResponseDMARCStatus) IsKnown() bool
type SettingDomainListResponseDropDisposition ¶
type SettingDomainListResponseDropDisposition string
const ( SettingDomainListResponseDropDispositionMalicious SettingDomainListResponseDropDisposition = "MALICIOUS" SettingDomainListResponseDropDispositionMaliciousBec SettingDomainListResponseDropDisposition = "MALICIOUS-BEC" SettingDomainListResponseDropDispositionSuspicious SettingDomainListResponseDropDisposition = "SUSPICIOUS" SettingDomainListResponseDropDispositionSpoof SettingDomainListResponseDropDisposition = "SPOOF" SettingDomainListResponseDropDispositionSpam SettingDomainListResponseDropDisposition = "SPAM" SettingDomainListResponseDropDispositionBulk SettingDomainListResponseDropDisposition = "BULK" SettingDomainListResponseDropDispositionEncrypted SettingDomainListResponseDropDisposition = "ENCRYPTED" SettingDomainListResponseDropDispositionExternal SettingDomainListResponseDropDisposition = "EXTERNAL" SettingDomainListResponseDropDispositionUnknown SettingDomainListResponseDropDisposition = "UNKNOWN" SettingDomainListResponseDropDispositionNone SettingDomainListResponseDropDisposition = "NONE" )
func (SettingDomainListResponseDropDisposition) IsKnown ¶
func (r SettingDomainListResponseDropDisposition) IsKnown() bool
type SettingDomainListResponseEmailsProcessed ¶
type SettingDomainListResponseEmailsProcessed struct {
Timestamp time.Time `json:"timestamp" api:"required" format:"date-time"`
TotalEmailsProcessed int64 `json:"total_emails_processed" api:"required"`
TotalEmailsProcessedPrevious int64 `json:"total_emails_processed_previous" api:"required"`
JSON settingDomainListResponseEmailsProcessedJSON `json:"-"`
}
func (*SettingDomainListResponseEmailsProcessed) UnmarshalJSON ¶
func (r *SettingDomainListResponseEmailsProcessed) UnmarshalJSON(data []byte) (err error)
type SettingDomainListResponseFolder ¶
type SettingDomainListResponseFolder string
const ( SettingDomainListResponseFolderAllItems SettingDomainListResponseFolder = "AllItems" SettingDomainListResponseFolderInbox SettingDomainListResponseFolder = "Inbox" )
func (SettingDomainListResponseFolder) IsKnown ¶
func (r SettingDomainListResponseFolder) IsKnown() bool
type SettingDomainListResponseInboxProvider ¶
type SettingDomainListResponseInboxProvider string
const ( SettingDomainListResponseInboxProviderMicrosoft SettingDomainListResponseInboxProvider = "Microsoft" SettingDomainListResponseInboxProviderGoogle SettingDomainListResponseInboxProvider = "Google" )
func (SettingDomainListResponseInboxProvider) IsKnown ¶
func (r SettingDomainListResponseInboxProvider) IsKnown() bool
type SettingDomainListResponseRegion ¶
type SettingDomainListResponseRegion string
const ( SettingDomainListResponseRegionGlobal SettingDomainListResponseRegion = "GLOBAL" SettingDomainListResponseRegionAu SettingDomainListResponseRegion = "AU" SettingDomainListResponseRegionDe SettingDomainListResponseRegion = "DE" SettingDomainListResponseRegionIn SettingDomainListResponseRegion = "IN" SettingDomainListResponseRegionUs SettingDomainListResponseRegion = "US" )
func (SettingDomainListResponseRegion) IsKnown ¶
func (r SettingDomainListResponseRegion) IsKnown() bool
type SettingDomainListResponseSPFStatus ¶
type SettingDomainListResponseSPFStatus string
const ( SettingDomainListResponseSPFStatusNone SettingDomainListResponseSPFStatus = "none" SettingDomainListResponseSPFStatusGood SettingDomainListResponseSPFStatus = "good" SettingDomainListResponseSPFStatusNeutral SettingDomainListResponseSPFStatus = "neutral" SettingDomainListResponseSPFStatusOpen SettingDomainListResponseSPFStatus = "open" SettingDomainListResponseSPFStatusInvalid SettingDomainListResponseSPFStatus = "invalid" )
func (SettingDomainListResponseSPFStatus) IsKnown ¶
func (r SettingDomainListResponseSPFStatus) IsKnown() bool
type SettingDomainListResponseStatus ¶
type SettingDomainListResponseStatus string
const ( SettingDomainListResponseStatusPending SettingDomainListResponseStatus = "pending" SettingDomainListResponseStatusActive SettingDomainListResponseStatus = "active" SettingDomainListResponseStatusFailed SettingDomainListResponseStatus = "failed" SettingDomainListResponseStatusTimeout SettingDomainListResponseStatus = "timeout" )
func (SettingDomainListResponseStatus) IsKnown ¶
func (r SettingDomainListResponseStatus) IsKnown() bool
type SettingDomainService ¶
type SettingDomainService struct {
Options []option.RequestOption
}
SettingDomainService 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 NewSettingDomainService method instead.
func NewSettingDomainService ¶
func NewSettingDomainService(opts ...option.RequestOption) (r *SettingDomainService)
NewSettingDomainService 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 (*SettingDomainService) Delete ¶
func (r *SettingDomainService) Delete(ctx context.Context, domainID string, body SettingDomainDeleteParams, opts ...option.RequestOption) (res *SettingDomainDeleteResponse, err error)
Removes email security protection from a domain. After deletion, emails for this domain will no longer be processed by Email Security. This action cannot be undone.
func (*SettingDomainService) Edit ¶
func (r *SettingDomainService) Edit(ctx context.Context, domainID string, params SettingDomainEditParams, opts ...option.RequestOption) (res *SettingDomainEditResponse, err error)
Updates configuration for a protected email domain. Only provided fields will be modified. Changes affect delivery mode, security settings, and regional processing.
func (*SettingDomainService) Get ¶
func (r *SettingDomainService) Get(ctx context.Context, domainID string, query SettingDomainGetParams, opts ...option.RequestOption) (res *SettingDomainGetResponse, err error)
Retrieves detailed information for a specific protected email domain including its delivery configuration, SPF/DMARC status, and authorization state.
func (*SettingDomainService) List ¶
func (r *SettingDomainService) List(ctx context.Context, params SettingDomainListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[SettingDomainListResponse], err error)
Returns a paginated list of email domains protected by Email Security. Includes domain configuration, delivery modes, and authorization status. Supports filtering by delivery mode and integration ID.
func (*SettingDomainService) ListAutoPaging ¶
func (r *SettingDomainService) ListAutoPaging(ctx context.Context, params SettingDomainListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[SettingDomainListResponse]
Returns a paginated list of email domains protected by Email Security. Includes domain configuration, delivery modes, and authorization status. Supports filtering by delivery mode and integration ID.
type SettingImpersonationRegistryDeleteResponse ¶
type SettingImpersonationRegistryDeleteResponse struct {
// Impersonation registry entry identifier
ID string `json:"id" api:"required" format:"uuid"`
JSON settingImpersonationRegistryDeleteResponseJSON `json:"-"`
}
func (*SettingImpersonationRegistryDeleteResponse) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryDeleteResponse) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryDeleteResponseEnvelope ¶
type SettingImpersonationRegistryDeleteResponseEnvelope struct {
Errors []SettingImpersonationRegistryDeleteResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingImpersonationRegistryDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingImpersonationRegistryDeleteResponseEnvelopeSuccess `json:"success" api:"required"`
Result SettingImpersonationRegistryDeleteResponse `json:"result"`
JSON settingImpersonationRegistryDeleteResponseEnvelopeJSON `json:"-"`
}
func (*SettingImpersonationRegistryDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryDeleteResponseEnvelopeErrors ¶
type SettingImpersonationRegistryDeleteResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingImpersonationRegistryDeleteResponseEnvelopeErrorsSource `json:"source"`
JSON settingImpersonationRegistryDeleteResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingImpersonationRegistryDeleteResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryDeleteResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryDeleteResponseEnvelopeErrorsSource ¶
type SettingImpersonationRegistryDeleteResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingImpersonationRegistryDeleteResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingImpersonationRegistryDeleteResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryDeleteResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryDeleteResponseEnvelopeMessages ¶
type SettingImpersonationRegistryDeleteResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingImpersonationRegistryDeleteResponseEnvelopeMessagesSource `json:"source"`
JSON settingImpersonationRegistryDeleteResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingImpersonationRegistryDeleteResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryDeleteResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryDeleteResponseEnvelopeMessagesSource ¶
type SettingImpersonationRegistryDeleteResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingImpersonationRegistryDeleteResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingImpersonationRegistryDeleteResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryDeleteResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryDeleteResponseEnvelopeSuccess ¶
type SettingImpersonationRegistryDeleteResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingImpersonationRegistryDeleteResponseEnvelopeSuccessTrue SettingImpersonationRegistryDeleteResponseEnvelopeSuccess = true
)
func (SettingImpersonationRegistryDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r SettingImpersonationRegistryDeleteResponseEnvelopeSuccess) IsKnown() bool
type SettingImpersonationRegistryEditParams ¶
type SettingImpersonationRegistryEditParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
Comments param.Field[string] `json:"comments"`
DirectoryID param.Field[int64] `json:"directory_id"`
DirectoryNodeID param.Field[int64] `json:"directory_node_id"`
Email param.Field[string] `json:"email"`
ExternalDirectoryNodeID param.Field[string] `json:"external_directory_node_id"`
IsEmailRegex param.Field[bool] `json:"is_email_regex"`
Name param.Field[string] `json:"name"`
Provenance param.Field[SettingImpersonationRegistryEditParamsProvenance] `json:"provenance"`
}
func (SettingImpersonationRegistryEditParams) MarshalJSON ¶
func (r SettingImpersonationRegistryEditParams) MarshalJSON() (data []byte, err error)
type SettingImpersonationRegistryEditParamsProvenance ¶
type SettingImpersonationRegistryEditParamsProvenance string
const ( SettingImpersonationRegistryEditParamsProvenanceA1SInternal SettingImpersonationRegistryEditParamsProvenance = "A1S_INTERNAL" SettingImpersonationRegistryEditParamsProvenanceSnoopyCasbOffice365 SettingImpersonationRegistryEditParamsProvenance = "SNOOPY-CASB_OFFICE_365" SettingImpersonationRegistryEditParamsProvenanceSnoopyOffice365 SettingImpersonationRegistryEditParamsProvenance = "SNOOPY-OFFICE_365" SettingImpersonationRegistryEditParamsProvenanceSnoopyGoogleDirectory SettingImpersonationRegistryEditParamsProvenance = "SNOOPY-GOOGLE_DIRECTORY" )
func (SettingImpersonationRegistryEditParamsProvenance) IsKnown ¶
func (r SettingImpersonationRegistryEditParamsProvenance) IsKnown() bool
type SettingImpersonationRegistryEditResponse ¶
type SettingImpersonationRegistryEditResponse struct {
// Impersonation registry entry identifier
ID string `json:"id" format:"uuid"`
Comments string `json:"comments" api:"nullable"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
DirectoryID int64 `json:"directory_id" api:"nullable"`
DirectoryNodeID int64 `json:"directory_node_id" api:"nullable"`
Email string `json:"email"`
// Deprecated: deprecated
ExternalDirectoryNodeID string `json:"external_directory_node_id" api:"nullable"`
IsEmailRegex bool `json:"is_email_regex"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Name string `json:"name"`
Provenance SettingImpersonationRegistryEditResponseProvenance `json:"provenance"`
JSON settingImpersonationRegistryEditResponseJSON `json:"-"`
}
An impersonation registry entry
func (*SettingImpersonationRegistryEditResponse) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryEditResponse) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryEditResponseEnvelope ¶
type SettingImpersonationRegistryEditResponseEnvelope struct {
Errors []SettingImpersonationRegistryEditResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingImpersonationRegistryEditResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingImpersonationRegistryEditResponseEnvelopeSuccess `json:"success" api:"required"`
// An impersonation registry entry
Result SettingImpersonationRegistryEditResponse `json:"result"`
JSON settingImpersonationRegistryEditResponseEnvelopeJSON `json:"-"`
}
func (*SettingImpersonationRegistryEditResponseEnvelope) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryEditResponseEnvelopeErrors ¶
type SettingImpersonationRegistryEditResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingImpersonationRegistryEditResponseEnvelopeErrorsSource `json:"source"`
JSON settingImpersonationRegistryEditResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingImpersonationRegistryEditResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryEditResponseEnvelopeErrorsSource ¶
type SettingImpersonationRegistryEditResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingImpersonationRegistryEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingImpersonationRegistryEditResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryEditResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryEditResponseEnvelopeMessages ¶
type SettingImpersonationRegistryEditResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingImpersonationRegistryEditResponseEnvelopeMessagesSource `json:"source"`
JSON settingImpersonationRegistryEditResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingImpersonationRegistryEditResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryEditResponseEnvelopeMessagesSource ¶
type SettingImpersonationRegistryEditResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingImpersonationRegistryEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingImpersonationRegistryEditResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryEditResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryEditResponseEnvelopeSuccess ¶
type SettingImpersonationRegistryEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingImpersonationRegistryEditResponseEnvelopeSuccessTrue SettingImpersonationRegistryEditResponseEnvelopeSuccess = true
)
func (SettingImpersonationRegistryEditResponseEnvelopeSuccess) IsKnown ¶
func (r SettingImpersonationRegistryEditResponseEnvelopeSuccess) IsKnown() bool
type SettingImpersonationRegistryEditResponseProvenance ¶
type SettingImpersonationRegistryEditResponseProvenance string
const ( SettingImpersonationRegistryEditResponseProvenanceA1SInternal SettingImpersonationRegistryEditResponseProvenance = "A1S_INTERNAL" SettingImpersonationRegistryEditResponseProvenanceSnoopyCasbOffice365 SettingImpersonationRegistryEditResponseProvenance = "SNOOPY-CASB_OFFICE_365" SettingImpersonationRegistryEditResponseProvenanceSnoopyOffice365 SettingImpersonationRegistryEditResponseProvenance = "SNOOPY-OFFICE_365" SettingImpersonationRegistryEditResponseProvenanceSnoopyGoogleDirectory SettingImpersonationRegistryEditResponseProvenance = "SNOOPY-GOOGLE_DIRECTORY" )
func (SettingImpersonationRegistryEditResponseProvenance) IsKnown ¶
func (r SettingImpersonationRegistryEditResponseProvenance) IsKnown() bool
type SettingImpersonationRegistryGetResponse ¶
type SettingImpersonationRegistryGetResponse struct {
// Impersonation registry entry identifier
ID string `json:"id" format:"uuid"`
Comments string `json:"comments" api:"nullable"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
DirectoryID int64 `json:"directory_id" api:"nullable"`
DirectoryNodeID int64 `json:"directory_node_id" api:"nullable"`
Email string `json:"email"`
// Deprecated: deprecated
ExternalDirectoryNodeID string `json:"external_directory_node_id" api:"nullable"`
IsEmailRegex bool `json:"is_email_regex"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Name string `json:"name"`
Provenance SettingImpersonationRegistryGetResponseProvenance `json:"provenance"`
JSON settingImpersonationRegistryGetResponseJSON `json:"-"`
}
An impersonation registry entry
func (*SettingImpersonationRegistryGetResponse) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryGetResponse) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryGetResponseEnvelope ¶
type SettingImpersonationRegistryGetResponseEnvelope struct {
Errors []SettingImpersonationRegistryGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingImpersonationRegistryGetResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingImpersonationRegistryGetResponseEnvelopeSuccess `json:"success" api:"required"`
// An impersonation registry entry
Result SettingImpersonationRegistryGetResponse `json:"result"`
JSON settingImpersonationRegistryGetResponseEnvelopeJSON `json:"-"`
}
func (*SettingImpersonationRegistryGetResponseEnvelope) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryGetResponseEnvelopeErrors ¶
type SettingImpersonationRegistryGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingImpersonationRegistryGetResponseEnvelopeErrorsSource `json:"source"`
JSON settingImpersonationRegistryGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingImpersonationRegistryGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryGetResponseEnvelopeErrorsSource ¶
type SettingImpersonationRegistryGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingImpersonationRegistryGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingImpersonationRegistryGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryGetResponseEnvelopeMessages ¶
type SettingImpersonationRegistryGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingImpersonationRegistryGetResponseEnvelopeMessagesSource `json:"source"`
JSON settingImpersonationRegistryGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingImpersonationRegistryGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryGetResponseEnvelopeMessagesSource ¶
type SettingImpersonationRegistryGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingImpersonationRegistryGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingImpersonationRegistryGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryGetResponseEnvelopeSuccess ¶
type SettingImpersonationRegistryGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingImpersonationRegistryGetResponseEnvelopeSuccessTrue SettingImpersonationRegistryGetResponseEnvelopeSuccess = true
)
func (SettingImpersonationRegistryGetResponseEnvelopeSuccess) IsKnown ¶
func (r SettingImpersonationRegistryGetResponseEnvelopeSuccess) IsKnown() bool
type SettingImpersonationRegistryGetResponseProvenance ¶
type SettingImpersonationRegistryGetResponseProvenance string
const ( SettingImpersonationRegistryGetResponseProvenanceA1SInternal SettingImpersonationRegistryGetResponseProvenance = "A1S_INTERNAL" SettingImpersonationRegistryGetResponseProvenanceSnoopyCasbOffice365 SettingImpersonationRegistryGetResponseProvenance = "SNOOPY-CASB_OFFICE_365" SettingImpersonationRegistryGetResponseProvenanceSnoopyOffice365 SettingImpersonationRegistryGetResponseProvenance = "SNOOPY-OFFICE_365" SettingImpersonationRegistryGetResponseProvenanceSnoopyGoogleDirectory SettingImpersonationRegistryGetResponseProvenance = "SNOOPY-GOOGLE_DIRECTORY" )
func (SettingImpersonationRegistryGetResponseProvenance) IsKnown ¶
func (r SettingImpersonationRegistryGetResponseProvenance) IsKnown() bool
type SettingImpersonationRegistryListParams ¶
type SettingImpersonationRegistryListParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The sorting direction.
Direction param.Field[SettingImpersonationRegistryListParamsDirection] `query:"direction"`
// Field to sort by.
Order param.Field[SettingImpersonationRegistryListParamsOrder] `query:"order"`
// Current page within paginated list of results.
Page param.Field[int64] `query:"page"`
// The number of results per page. Maximum value is 1000.
PerPage param.Field[int64] `query:"per_page"`
Provenance param.Field[SettingImpersonationRegistryListParamsProvenance] `query:"provenance"`
// Search term for filtering records. Behavior may change.
Search param.Field[string] `query:"search"`
}
func (SettingImpersonationRegistryListParams) URLQuery ¶
func (r SettingImpersonationRegistryListParams) URLQuery() (v url.Values)
URLQuery serializes SettingImpersonationRegistryListParams's query parameters as `url.Values`.
type SettingImpersonationRegistryListParamsDirection ¶
type SettingImpersonationRegistryListParamsDirection string
The sorting direction.
const ( SettingImpersonationRegistryListParamsDirectionAsc SettingImpersonationRegistryListParamsDirection = "asc" SettingImpersonationRegistryListParamsDirectionDesc SettingImpersonationRegistryListParamsDirection = "desc" )
func (SettingImpersonationRegistryListParamsDirection) IsKnown ¶
func (r SettingImpersonationRegistryListParamsDirection) IsKnown() bool
type SettingImpersonationRegistryListParamsOrder ¶
type SettingImpersonationRegistryListParamsOrder string
Field to sort by.
const ( SettingImpersonationRegistryListParamsOrderName SettingImpersonationRegistryListParamsOrder = "name" SettingImpersonationRegistryListParamsOrderEmail SettingImpersonationRegistryListParamsOrder = "email" SettingImpersonationRegistryListParamsOrderCreatedAt SettingImpersonationRegistryListParamsOrder = "created_at" )
func (SettingImpersonationRegistryListParamsOrder) IsKnown ¶
func (r SettingImpersonationRegistryListParamsOrder) IsKnown() bool
type SettingImpersonationRegistryListParamsProvenance ¶
type SettingImpersonationRegistryListParamsProvenance string
const ( SettingImpersonationRegistryListParamsProvenanceA1SInternal SettingImpersonationRegistryListParamsProvenance = "A1S_INTERNAL" SettingImpersonationRegistryListParamsProvenanceSnoopyCasbOffice365 SettingImpersonationRegistryListParamsProvenance = "SNOOPY-CASB_OFFICE_365" SettingImpersonationRegistryListParamsProvenanceSnoopyOffice365 SettingImpersonationRegistryListParamsProvenance = "SNOOPY-OFFICE_365" SettingImpersonationRegistryListParamsProvenanceSnoopyGoogleDirectory SettingImpersonationRegistryListParamsProvenance = "SNOOPY-GOOGLE_DIRECTORY" )
func (SettingImpersonationRegistryListParamsProvenance) IsKnown ¶
func (r SettingImpersonationRegistryListParamsProvenance) IsKnown() bool
type SettingImpersonationRegistryListResponse ¶
type SettingImpersonationRegistryListResponse struct {
// Impersonation registry entry identifier
ID string `json:"id" format:"uuid"`
Comments string `json:"comments" api:"nullable"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
DirectoryID int64 `json:"directory_id" api:"nullable"`
DirectoryNodeID int64 `json:"directory_node_id" api:"nullable"`
Email string `json:"email"`
// Deprecated: deprecated
ExternalDirectoryNodeID string `json:"external_directory_node_id" api:"nullable"`
IsEmailRegex bool `json:"is_email_regex"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Name string `json:"name"`
Provenance SettingImpersonationRegistryListResponseProvenance `json:"provenance"`
JSON settingImpersonationRegistryListResponseJSON `json:"-"`
}
An impersonation registry entry
func (*SettingImpersonationRegistryListResponse) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryListResponse) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryListResponseProvenance ¶
type SettingImpersonationRegistryListResponseProvenance string
const ( SettingImpersonationRegistryListResponseProvenanceA1SInternal SettingImpersonationRegistryListResponseProvenance = "A1S_INTERNAL" SettingImpersonationRegistryListResponseProvenanceSnoopyCasbOffice365 SettingImpersonationRegistryListResponseProvenance = "SNOOPY-CASB_OFFICE_365" SettingImpersonationRegistryListResponseProvenanceSnoopyOffice365 SettingImpersonationRegistryListResponseProvenance = "SNOOPY-OFFICE_365" SettingImpersonationRegistryListResponseProvenanceSnoopyGoogleDirectory SettingImpersonationRegistryListResponseProvenance = "SNOOPY-GOOGLE_DIRECTORY" )
func (SettingImpersonationRegistryListResponseProvenance) IsKnown ¶
func (r SettingImpersonationRegistryListResponseProvenance) IsKnown() bool
type SettingImpersonationRegistryNewParams ¶
type SettingImpersonationRegistryNewParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
Email param.Field[string] `json:"email" api:"required"`
IsEmailRegex param.Field[bool] `json:"is_email_regex" api:"required"`
Name param.Field[string] `json:"name" api:"required"`
Comments param.Field[string] `json:"comments"`
DirectoryID param.Field[int64] `json:"directory_id"`
DirectoryNodeID param.Field[int64] `json:"directory_node_id"`
ExternalDirectoryNodeID param.Field[string] `json:"external_directory_node_id"`
Provenance param.Field[SettingImpersonationRegistryNewParamsProvenance] `json:"provenance"`
}
func (SettingImpersonationRegistryNewParams) MarshalJSON ¶
func (r SettingImpersonationRegistryNewParams) MarshalJSON() (data []byte, err error)
type SettingImpersonationRegistryNewParamsProvenance ¶
type SettingImpersonationRegistryNewParamsProvenance string
const ( SettingImpersonationRegistryNewParamsProvenanceA1SInternal SettingImpersonationRegistryNewParamsProvenance = "A1S_INTERNAL" SettingImpersonationRegistryNewParamsProvenanceSnoopyCasbOffice365 SettingImpersonationRegistryNewParamsProvenance = "SNOOPY-CASB_OFFICE_365" SettingImpersonationRegistryNewParamsProvenanceSnoopyOffice365 SettingImpersonationRegistryNewParamsProvenance = "SNOOPY-OFFICE_365" SettingImpersonationRegistryNewParamsProvenanceSnoopyGoogleDirectory SettingImpersonationRegistryNewParamsProvenance = "SNOOPY-GOOGLE_DIRECTORY" )
func (SettingImpersonationRegistryNewParamsProvenance) IsKnown ¶
func (r SettingImpersonationRegistryNewParamsProvenance) IsKnown() bool
type SettingImpersonationRegistryNewResponse ¶
type SettingImpersonationRegistryNewResponse struct {
// Impersonation registry entry identifier
ID string `json:"id" format:"uuid"`
Comments string `json:"comments" api:"nullable"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
DirectoryID int64 `json:"directory_id" api:"nullable"`
DirectoryNodeID int64 `json:"directory_node_id" api:"nullable"`
Email string `json:"email"`
// Deprecated: deprecated
ExternalDirectoryNodeID string `json:"external_directory_node_id" api:"nullable"`
IsEmailRegex bool `json:"is_email_regex"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Name string `json:"name"`
Provenance SettingImpersonationRegistryNewResponseProvenance `json:"provenance"`
JSON settingImpersonationRegistryNewResponseJSON `json:"-"`
}
An impersonation registry entry
func (*SettingImpersonationRegistryNewResponse) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryNewResponse) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryNewResponseEnvelope ¶
type SettingImpersonationRegistryNewResponseEnvelope struct {
Errors []SettingImpersonationRegistryNewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingImpersonationRegistryNewResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingImpersonationRegistryNewResponseEnvelopeSuccess `json:"success" api:"required"`
// An impersonation registry entry
Result SettingImpersonationRegistryNewResponse `json:"result"`
JSON settingImpersonationRegistryNewResponseEnvelopeJSON `json:"-"`
}
func (*SettingImpersonationRegistryNewResponseEnvelope) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryNewResponseEnvelopeErrors ¶
type SettingImpersonationRegistryNewResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingImpersonationRegistryNewResponseEnvelopeErrorsSource `json:"source"`
JSON settingImpersonationRegistryNewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingImpersonationRegistryNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryNewResponseEnvelopeErrorsSource ¶
type SettingImpersonationRegistryNewResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingImpersonationRegistryNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingImpersonationRegistryNewResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryNewResponseEnvelopeMessages ¶
type SettingImpersonationRegistryNewResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingImpersonationRegistryNewResponseEnvelopeMessagesSource `json:"source"`
JSON settingImpersonationRegistryNewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingImpersonationRegistryNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryNewResponseEnvelopeMessagesSource ¶
type SettingImpersonationRegistryNewResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingImpersonationRegistryNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingImpersonationRegistryNewResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingImpersonationRegistryNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingImpersonationRegistryNewResponseEnvelopeSuccess ¶
type SettingImpersonationRegistryNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingImpersonationRegistryNewResponseEnvelopeSuccessTrue SettingImpersonationRegistryNewResponseEnvelopeSuccess = true
)
func (SettingImpersonationRegistryNewResponseEnvelopeSuccess) IsKnown ¶
func (r SettingImpersonationRegistryNewResponseEnvelopeSuccess) IsKnown() bool
type SettingImpersonationRegistryNewResponseProvenance ¶
type SettingImpersonationRegistryNewResponseProvenance string
const ( SettingImpersonationRegistryNewResponseProvenanceA1SInternal SettingImpersonationRegistryNewResponseProvenance = "A1S_INTERNAL" SettingImpersonationRegistryNewResponseProvenanceSnoopyCasbOffice365 SettingImpersonationRegistryNewResponseProvenance = "SNOOPY-CASB_OFFICE_365" SettingImpersonationRegistryNewResponseProvenanceSnoopyOffice365 SettingImpersonationRegistryNewResponseProvenance = "SNOOPY-OFFICE_365" SettingImpersonationRegistryNewResponseProvenanceSnoopyGoogleDirectory SettingImpersonationRegistryNewResponseProvenance = "SNOOPY-GOOGLE_DIRECTORY" )
func (SettingImpersonationRegistryNewResponseProvenance) IsKnown ¶
func (r SettingImpersonationRegistryNewResponseProvenance) IsKnown() bool
type SettingImpersonationRegistryService ¶
type SettingImpersonationRegistryService struct {
Options []option.RequestOption
}
SettingImpersonationRegistryService 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 NewSettingImpersonationRegistryService method instead.
func NewSettingImpersonationRegistryService ¶
func NewSettingImpersonationRegistryService(opts ...option.RequestOption) (r *SettingImpersonationRegistryService)
NewSettingImpersonationRegistryService 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 (*SettingImpersonationRegistryService) Delete ¶
func (r *SettingImpersonationRegistryService) Delete(ctx context.Context, impersonationRegistryID string, body SettingImpersonationRegistryDeleteParams, opts ...option.RequestOption) (res *SettingImpersonationRegistryDeleteResponse, err error)
Removes an entry from the impersonation registry. After deletion, this identity will no longer be protected from impersonation.
func (*SettingImpersonationRegistryService) Edit ¶
func (r *SettingImpersonationRegistryService) Edit(ctx context.Context, impersonationRegistryID string, params SettingImpersonationRegistryEditParams, opts ...option.RequestOption) (res *SettingImpersonationRegistryEditResponse, err error)
Updates an existing impersonation registry entry. Only provided fields will be modified. Directory-synced entries can't be updated.
func (*SettingImpersonationRegistryService) Get ¶
func (r *SettingImpersonationRegistryService) Get(ctx context.Context, impersonationRegistryID string, query SettingImpersonationRegistryGetParams, opts ...option.RequestOption) (res *SettingImpersonationRegistryGetResponse, err error)
Retrieves details for a specific impersonation registry entry including the protected identity, email pattern, and synchronization source if directory-synced.
func (*SettingImpersonationRegistryService) List ¶
func (r *SettingImpersonationRegistryService) List(ctx context.Context, params SettingImpersonationRegistryListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[SettingImpersonationRegistryListResponse], err error)
Returns a paginated list of protected identities in the impersonation registry. These entries define identities and email addresses to protect from impersonation attacks. Can be manually added or automatically synced from directory integrations.
func (*SettingImpersonationRegistryService) ListAutoPaging ¶
func (r *SettingImpersonationRegistryService) ListAutoPaging(ctx context.Context, params SettingImpersonationRegistryListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[SettingImpersonationRegistryListResponse]
Returns a paginated list of protected identities in the impersonation registry. These entries define identities and email addresses to protect from impersonation attacks. Can be manually added or automatically synced from directory integrations.
func (*SettingImpersonationRegistryService) New ¶
func (r *SettingImpersonationRegistryService) New(ctx context.Context, params SettingImpersonationRegistryNewParams, opts ...option.RequestOption) (res *SettingImpersonationRegistryNewResponse, err error)
Creates a new entry in the impersonation registry to protect against impersonation. Emails attempting to impersonate this identity will be flagged. Supports regex patterns for flexible email matching.
type SettingService ¶
type SettingService struct {
Options []option.RequestOption
AllowPolicies *SettingAllowPolicyService
BlockSenders *SettingBlockSenderService
Domains *SettingDomainService
ImpersonationRegistry *SettingImpersonationRegistryService
TrustedDomains *SettingTrustedDomainService
}
SettingService 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 NewSettingService method instead.
func NewSettingService ¶
func NewSettingService(opts ...option.RequestOption) (r *SettingService)
NewSettingService 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 SettingTrustedDomainDeleteResponse ¶
type SettingTrustedDomainDeleteResponse struct {
// Trusted domain identifier
ID string `json:"id" api:"required" format:"uuid"`
JSON settingTrustedDomainDeleteResponseJSON `json:"-"`
}
func (*SettingTrustedDomainDeleteResponse) UnmarshalJSON ¶
func (r *SettingTrustedDomainDeleteResponse) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainDeleteResponseEnvelope ¶
type SettingTrustedDomainDeleteResponseEnvelope struct {
Errors []SettingTrustedDomainDeleteResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingTrustedDomainDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingTrustedDomainDeleteResponseEnvelopeSuccess `json:"success" api:"required"`
Result SettingTrustedDomainDeleteResponse `json:"result"`
JSON settingTrustedDomainDeleteResponseEnvelopeJSON `json:"-"`
}
func (*SettingTrustedDomainDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *SettingTrustedDomainDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainDeleteResponseEnvelopeErrors ¶
type SettingTrustedDomainDeleteResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingTrustedDomainDeleteResponseEnvelopeErrorsSource `json:"source"`
JSON settingTrustedDomainDeleteResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingTrustedDomainDeleteResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingTrustedDomainDeleteResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainDeleteResponseEnvelopeErrorsSource ¶
type SettingTrustedDomainDeleteResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingTrustedDomainDeleteResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingTrustedDomainDeleteResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingTrustedDomainDeleteResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainDeleteResponseEnvelopeMessages ¶
type SettingTrustedDomainDeleteResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingTrustedDomainDeleteResponseEnvelopeMessagesSource `json:"source"`
JSON settingTrustedDomainDeleteResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingTrustedDomainDeleteResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingTrustedDomainDeleteResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainDeleteResponseEnvelopeMessagesSource ¶
type SettingTrustedDomainDeleteResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingTrustedDomainDeleteResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingTrustedDomainDeleteResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingTrustedDomainDeleteResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainDeleteResponseEnvelopeSuccess ¶
type SettingTrustedDomainDeleteResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingTrustedDomainDeleteResponseEnvelopeSuccessTrue SettingTrustedDomainDeleteResponseEnvelopeSuccess = true
)
func (SettingTrustedDomainDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r SettingTrustedDomainDeleteResponseEnvelopeSuccess) IsKnown() bool
type SettingTrustedDomainEditParams ¶
type SettingTrustedDomainEditParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
Comments param.Field[string] `json:"comments"`
// Select to prevent recently registered domains from triggering a Suspicious or
// Malicious disposition.
IsRecent param.Field[bool] `json:"is_recent"`
IsRegex param.Field[bool] `json:"is_regex"`
// Select for partner or other approved domains that have similar spelling to your
// connected domains. Prevents listed domains from triggering a Spoof disposition.
IsSimilarity param.Field[bool] `json:"is_similarity"`
Pattern param.Field[string] `json:"pattern"`
}
func (SettingTrustedDomainEditParams) MarshalJSON ¶
func (r SettingTrustedDomainEditParams) MarshalJSON() (data []byte, err error)
type SettingTrustedDomainEditResponse ¶
type SettingTrustedDomainEditResponse struct {
// Trusted domain identifier
ID string `json:"id" format:"uuid"`
Comments string `json:"comments" api:"nullable"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
// Select to prevent recently registered domains from triggering a Suspicious or
// Malicious disposition.
IsRecent bool `json:"is_recent"`
IsRegex bool `json:"is_regex"`
// Select for partner or other approved domains that have similar spelling to your
// connected domains. Prevents listed domains from triggering a Spoof disposition.
IsSimilarity bool `json:"is_similarity"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Pattern string `json:"pattern"`
JSON settingTrustedDomainEditResponseJSON `json:"-"`
}
A trusted email domain
func (*SettingTrustedDomainEditResponse) UnmarshalJSON ¶
func (r *SettingTrustedDomainEditResponse) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainEditResponseEnvelope ¶
type SettingTrustedDomainEditResponseEnvelope struct {
Errors []SettingTrustedDomainEditResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingTrustedDomainEditResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingTrustedDomainEditResponseEnvelopeSuccess `json:"success" api:"required"`
// A trusted email domain
Result SettingTrustedDomainEditResponse `json:"result"`
JSON settingTrustedDomainEditResponseEnvelopeJSON `json:"-"`
}
func (*SettingTrustedDomainEditResponseEnvelope) UnmarshalJSON ¶
func (r *SettingTrustedDomainEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainEditResponseEnvelopeErrors ¶
type SettingTrustedDomainEditResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingTrustedDomainEditResponseEnvelopeErrorsSource `json:"source"`
JSON settingTrustedDomainEditResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingTrustedDomainEditResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingTrustedDomainEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainEditResponseEnvelopeErrorsSource ¶
type SettingTrustedDomainEditResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingTrustedDomainEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingTrustedDomainEditResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingTrustedDomainEditResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainEditResponseEnvelopeMessages ¶
type SettingTrustedDomainEditResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingTrustedDomainEditResponseEnvelopeMessagesSource `json:"source"`
JSON settingTrustedDomainEditResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingTrustedDomainEditResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingTrustedDomainEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainEditResponseEnvelopeMessagesSource ¶
type SettingTrustedDomainEditResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingTrustedDomainEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingTrustedDomainEditResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingTrustedDomainEditResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainEditResponseEnvelopeSuccess ¶
type SettingTrustedDomainEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingTrustedDomainEditResponseEnvelopeSuccessTrue SettingTrustedDomainEditResponseEnvelopeSuccess = true
)
func (SettingTrustedDomainEditResponseEnvelopeSuccess) IsKnown ¶
func (r SettingTrustedDomainEditResponseEnvelopeSuccess) IsKnown() bool
type SettingTrustedDomainGetResponse ¶
type SettingTrustedDomainGetResponse struct {
// Trusted domain identifier
ID string `json:"id" format:"uuid"`
Comments string `json:"comments" api:"nullable"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
// Select to prevent recently registered domains from triggering a Suspicious or
// Malicious disposition.
IsRecent bool `json:"is_recent"`
IsRegex bool `json:"is_regex"`
// Select for partner or other approved domains that have similar spelling to your
// connected domains. Prevents listed domains from triggering a Spoof disposition.
IsSimilarity bool `json:"is_similarity"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Pattern string `json:"pattern"`
JSON settingTrustedDomainGetResponseJSON `json:"-"`
}
A trusted email domain
func (*SettingTrustedDomainGetResponse) UnmarshalJSON ¶
func (r *SettingTrustedDomainGetResponse) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainGetResponseEnvelope ¶
type SettingTrustedDomainGetResponseEnvelope struct {
Errors []SettingTrustedDomainGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingTrustedDomainGetResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingTrustedDomainGetResponseEnvelopeSuccess `json:"success" api:"required"`
// A trusted email domain
Result SettingTrustedDomainGetResponse `json:"result"`
JSON settingTrustedDomainGetResponseEnvelopeJSON `json:"-"`
}
func (*SettingTrustedDomainGetResponseEnvelope) UnmarshalJSON ¶
func (r *SettingTrustedDomainGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainGetResponseEnvelopeErrors ¶
type SettingTrustedDomainGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingTrustedDomainGetResponseEnvelopeErrorsSource `json:"source"`
JSON settingTrustedDomainGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingTrustedDomainGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingTrustedDomainGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainGetResponseEnvelopeErrorsSource ¶
type SettingTrustedDomainGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingTrustedDomainGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingTrustedDomainGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingTrustedDomainGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainGetResponseEnvelopeMessages ¶
type SettingTrustedDomainGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingTrustedDomainGetResponseEnvelopeMessagesSource `json:"source"`
JSON settingTrustedDomainGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingTrustedDomainGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingTrustedDomainGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainGetResponseEnvelopeMessagesSource ¶
type SettingTrustedDomainGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingTrustedDomainGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingTrustedDomainGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingTrustedDomainGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainGetResponseEnvelopeSuccess ¶
type SettingTrustedDomainGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingTrustedDomainGetResponseEnvelopeSuccessTrue SettingTrustedDomainGetResponseEnvelopeSuccess = true
)
func (SettingTrustedDomainGetResponseEnvelopeSuccess) IsKnown ¶
func (r SettingTrustedDomainGetResponseEnvelopeSuccess) IsKnown() bool
type SettingTrustedDomainListParams ¶
type SettingTrustedDomainListParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The sorting direction.
Direction param.Field[SettingTrustedDomainListParamsDirection] `query:"direction"`
// Filter to show only recently registered domains that are trusted to prevent
// triggering Suspicious or Malicious dispositions.
IsRecent param.Field[bool] `query:"is_recent"`
// Filter to show only proximity domains (partner or approved domains with similar
// spelling to connected domains) that prevent Spoof dispositions.
IsSimilarity param.Field[bool] `query:"is_similarity"`
// Field to sort by.
Order param.Field[SettingTrustedDomainListParamsOrder] `query:"order"`
// Current page within paginated list of results.
Page param.Field[int64] `query:"page"`
Pattern param.Field[string] `query:"pattern"`
// The number of results per page. Maximum value is 1000.
PerPage param.Field[int64] `query:"per_page"`
// Search term for filtering records. Behavior may change.
Search param.Field[string] `query:"search"`
}
func (SettingTrustedDomainListParams) URLQuery ¶
func (r SettingTrustedDomainListParams) URLQuery() (v url.Values)
URLQuery serializes SettingTrustedDomainListParams's query parameters as `url.Values`.
type SettingTrustedDomainListParamsDirection ¶
type SettingTrustedDomainListParamsDirection string
The sorting direction.
const ( SettingTrustedDomainListParamsDirectionAsc SettingTrustedDomainListParamsDirection = "asc" SettingTrustedDomainListParamsDirectionDesc SettingTrustedDomainListParamsDirection = "desc" )
func (SettingTrustedDomainListParamsDirection) IsKnown ¶
func (r SettingTrustedDomainListParamsDirection) IsKnown() bool
type SettingTrustedDomainListParamsOrder ¶
type SettingTrustedDomainListParamsOrder string
Field to sort by.
const ( SettingTrustedDomainListParamsOrderPattern SettingTrustedDomainListParamsOrder = "pattern" SettingTrustedDomainListParamsOrderCreatedAt SettingTrustedDomainListParamsOrder = "created_at" )
func (SettingTrustedDomainListParamsOrder) IsKnown ¶
func (r SettingTrustedDomainListParamsOrder) IsKnown() bool
type SettingTrustedDomainListResponse ¶
type SettingTrustedDomainListResponse struct {
// Trusted domain identifier
ID string `json:"id" format:"uuid"`
Comments string `json:"comments" api:"nullable"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
// Select to prevent recently registered domains from triggering a Suspicious or
// Malicious disposition.
IsRecent bool `json:"is_recent"`
IsRegex bool `json:"is_regex"`
// Select for partner or other approved domains that have similar spelling to your
// connected domains. Prevents listed domains from triggering a Spoof disposition.
IsSimilarity bool `json:"is_similarity"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Pattern string `json:"pattern"`
JSON settingTrustedDomainListResponseJSON `json:"-"`
}
A trusted email domain
func (*SettingTrustedDomainListResponse) UnmarshalJSON ¶
func (r *SettingTrustedDomainListResponse) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainNewParams ¶
type SettingTrustedDomainNewParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// Select to prevent recently registered domains from triggering a Suspicious or
// Malicious disposition.
IsRecent param.Field[bool] `json:"is_recent" api:"required"`
IsRegex param.Field[bool] `json:"is_regex" api:"required"`
// Select for partner or other approved domains that have similar spelling to your
// connected domains. Prevents listed domains from triggering a Spoof disposition.
IsSimilarity param.Field[bool] `json:"is_similarity" api:"required"`
Pattern param.Field[string] `json:"pattern" api:"required"`
Comments param.Field[string] `json:"comments"`
}
func (SettingTrustedDomainNewParams) MarshalJSON ¶
func (r SettingTrustedDomainNewParams) MarshalJSON() (data []byte, err error)
type SettingTrustedDomainNewResponse ¶
type SettingTrustedDomainNewResponse struct {
// Trusted domain identifier
ID string `json:"id" format:"uuid"`
Comments string `json:"comments" api:"nullable"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
// Select to prevent recently registered domains from triggering a Suspicious or
// Malicious disposition.
IsRecent bool `json:"is_recent"`
IsRegex bool `json:"is_regex"`
// Select for partner or other approved domains that have similar spelling to your
// connected domains. Prevents listed domains from triggering a Spoof disposition.
IsSimilarity bool `json:"is_similarity"`
// Deprecated, use `modified_at` instead. End of life: November 1, 2026.
//
// Deprecated: deprecated
LastModified time.Time `json:"last_modified" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" format:"date-time"`
Pattern string `json:"pattern"`
JSON settingTrustedDomainNewResponseJSON `json:"-"`
}
A trusted email domain
func (*SettingTrustedDomainNewResponse) UnmarshalJSON ¶
func (r *SettingTrustedDomainNewResponse) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainNewResponseEnvelope ¶
type SettingTrustedDomainNewResponseEnvelope struct {
Errors []SettingTrustedDomainNewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []SettingTrustedDomainNewResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success SettingTrustedDomainNewResponseEnvelopeSuccess `json:"success" api:"required"`
// A trusted email domain
Result SettingTrustedDomainNewResponse `json:"result"`
JSON settingTrustedDomainNewResponseEnvelopeJSON `json:"-"`
}
func (*SettingTrustedDomainNewResponseEnvelope) UnmarshalJSON ¶
func (r *SettingTrustedDomainNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainNewResponseEnvelopeErrors ¶
type SettingTrustedDomainNewResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingTrustedDomainNewResponseEnvelopeErrorsSource `json:"source"`
JSON settingTrustedDomainNewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*SettingTrustedDomainNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SettingTrustedDomainNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainNewResponseEnvelopeErrorsSource ¶
type SettingTrustedDomainNewResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON settingTrustedDomainNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*SettingTrustedDomainNewResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *SettingTrustedDomainNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainNewResponseEnvelopeMessages ¶
type SettingTrustedDomainNewResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source SettingTrustedDomainNewResponseEnvelopeMessagesSource `json:"source"`
JSON settingTrustedDomainNewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*SettingTrustedDomainNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SettingTrustedDomainNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainNewResponseEnvelopeMessagesSource ¶
type SettingTrustedDomainNewResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON settingTrustedDomainNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*SettingTrustedDomainNewResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *SettingTrustedDomainNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type SettingTrustedDomainNewResponseEnvelopeSuccess ¶
type SettingTrustedDomainNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
SettingTrustedDomainNewResponseEnvelopeSuccessTrue SettingTrustedDomainNewResponseEnvelopeSuccess = true
)
func (SettingTrustedDomainNewResponseEnvelopeSuccess) IsKnown ¶
func (r SettingTrustedDomainNewResponseEnvelopeSuccess) IsKnown() bool
type SettingTrustedDomainService ¶
type SettingTrustedDomainService struct {
Options []option.RequestOption
}
SettingTrustedDomainService 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 NewSettingTrustedDomainService method instead.
func NewSettingTrustedDomainService ¶
func NewSettingTrustedDomainService(opts ...option.RequestOption) (r *SettingTrustedDomainService)
NewSettingTrustedDomainService 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 (*SettingTrustedDomainService) Delete ¶
func (r *SettingTrustedDomainService) Delete(ctx context.Context, trustedDomainID string, body SettingTrustedDomainDeleteParams, opts ...option.RequestOption) (res *SettingTrustedDomainDeleteResponse, err error)
Removes a trusted domain pattern. After deletion, emails from this domain will be subject to normal recent domain and similarity checks.
func (*SettingTrustedDomainService) Edit ¶
func (r *SettingTrustedDomainService) Edit(ctx context.Context, trustedDomainID string, params SettingTrustedDomainEditParams, opts ...option.RequestOption) (res *SettingTrustedDomainEditResponse, err error)
Updates an existing trusted domain pattern. Only provided fields will be modified. Changes take effect for new emails matching the pattern.
func (*SettingTrustedDomainService) Get ¶
func (r *SettingTrustedDomainService) Get(ctx context.Context, trustedDomainID string, query SettingTrustedDomainGetParams, opts ...option.RequestOption) (res *SettingTrustedDomainGetResponse, err error)
Retrieves details for a specific trusted domain pattern including its pattern value, whether it uses regex matching, and which detection types it affects.
func (*SettingTrustedDomainService) List ¶
func (r *SettingTrustedDomainService) List(ctx context.Context, params SettingTrustedDomainListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[SettingTrustedDomainListResponse], err error)
Returns a paginated list of trusted domain patterns. Trusted domains prevent false positives for recently registered domains and lookalike domain detections. Patterns can use regular expressions for flexible matching.
func (*SettingTrustedDomainService) ListAutoPaging ¶
func (r *SettingTrustedDomainService) ListAutoPaging(ctx context.Context, params SettingTrustedDomainListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[SettingTrustedDomainListResponse]
Returns a paginated list of trusted domain patterns. Trusted domains prevent false positives for recently registered domains and lookalike domain detections. Patterns can use regular expressions for flexible matching.
func (*SettingTrustedDomainService) New ¶
func (r *SettingTrustedDomainService) New(ctx context.Context, params SettingTrustedDomainNewParams, opts ...option.RequestOption) (res *SettingTrustedDomainNewResponse, err error)
Creates a new trusted domain pattern. Use for partner domains or approved senders that should bypass recent domain registration and similarity checks. Configure whether it prevents recent domain or spoof dispositions.
type SortDirection ¶
type SortDirection = shared.SortDirection
Direction to order DNS records in.
This is an alias to an internal type.
type SubmissionListParams ¶
type SubmissionListParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The end of the search date range. Defaults to `now`.
End param.Field[time.Time] `query:"end" format:"date-time"`
// When true, return only submissions that were escalated by an end user (vs. by
// the security team). When false, return only submissions that were not escalated
// by an end user. When omitted, no filter is applied.
EscalatedFromUser param.Field[bool] `query:"escalated_from_user"`
OriginalDisposition param.Field[SubmissionListParamsOriginalDisposition] `query:"original_disposition"`
OutcomeDisposition param.Field[SubmissionListParamsOutcomeDisposition] `query:"outcome_disposition"`
// Current page within paginated list of results.
Page param.Field[int64] `query:"page"`
// The number of results per page. Maximum value is 1000.
PerPage param.Field[int64] `query:"per_page"`
Query param.Field[string] `query:"query"`
RequestedDisposition param.Field[SubmissionListParamsRequestedDisposition] `query:"requested_disposition"`
// The beginning of the search date range. Defaults to `now - 30 days`.
Start param.Field[time.Time] `query:"start" format:"date-time"`
Status param.Field[string] `query:"status"`
SubmissionID param.Field[string] `query:"submission_id"`
Type param.Field[SubmissionListParamsType] `query:"type"`
}
func (SubmissionListParams) URLQuery ¶
func (r SubmissionListParams) URLQuery() (v url.Values)
URLQuery serializes SubmissionListParams's query parameters as `url.Values`.
type SubmissionListParamsOriginalDisposition ¶
type SubmissionListParamsOriginalDisposition string
const ( SubmissionListParamsOriginalDispositionMalicious SubmissionListParamsOriginalDisposition = "MALICIOUS" SubmissionListParamsOriginalDispositionSuspicious SubmissionListParamsOriginalDisposition = "SUSPICIOUS" SubmissionListParamsOriginalDispositionSpoof SubmissionListParamsOriginalDisposition = "SPOOF" SubmissionListParamsOriginalDispositionSpam SubmissionListParamsOriginalDisposition = "SPAM" SubmissionListParamsOriginalDispositionBulk SubmissionListParamsOriginalDisposition = "BULK" SubmissionListParamsOriginalDispositionNone SubmissionListParamsOriginalDisposition = "NONE" )
func (SubmissionListParamsOriginalDisposition) IsKnown ¶
func (r SubmissionListParamsOriginalDisposition) IsKnown() bool
type SubmissionListParamsOutcomeDisposition ¶
type SubmissionListParamsOutcomeDisposition string
const ( SubmissionListParamsOutcomeDispositionMalicious SubmissionListParamsOutcomeDisposition = "MALICIOUS" SubmissionListParamsOutcomeDispositionSuspicious SubmissionListParamsOutcomeDisposition = "SUSPICIOUS" SubmissionListParamsOutcomeDispositionSpoof SubmissionListParamsOutcomeDisposition = "SPOOF" SubmissionListParamsOutcomeDispositionSpam SubmissionListParamsOutcomeDisposition = "SPAM" SubmissionListParamsOutcomeDispositionBulk SubmissionListParamsOutcomeDisposition = "BULK" SubmissionListParamsOutcomeDispositionNone SubmissionListParamsOutcomeDisposition = "NONE" )
func (SubmissionListParamsOutcomeDisposition) IsKnown ¶
func (r SubmissionListParamsOutcomeDisposition) IsKnown() bool
type SubmissionListParamsRequestedDisposition ¶
type SubmissionListParamsRequestedDisposition string
const ( SubmissionListParamsRequestedDispositionMalicious SubmissionListParamsRequestedDisposition = "MALICIOUS" SubmissionListParamsRequestedDispositionSuspicious SubmissionListParamsRequestedDisposition = "SUSPICIOUS" SubmissionListParamsRequestedDispositionSpoof SubmissionListParamsRequestedDisposition = "SPOOF" SubmissionListParamsRequestedDispositionSpam SubmissionListParamsRequestedDisposition = "SPAM" SubmissionListParamsRequestedDispositionBulk SubmissionListParamsRequestedDisposition = "BULK" SubmissionListParamsRequestedDispositionNone SubmissionListParamsRequestedDisposition = "NONE" )
func (SubmissionListParamsRequestedDisposition) IsKnown ¶
func (r SubmissionListParamsRequestedDisposition) IsKnown() bool
type SubmissionListParamsType ¶
type SubmissionListParamsType string
const ( SubmissionListParamsTypeTeam SubmissionListParamsType = "TEAM" SubmissionListParamsTypeUser SubmissionListParamsType = "USER" )
func (SubmissionListParamsType) IsKnown ¶
func (r SubmissionListParamsType) IsKnown() bool
type SubmissionListResponse ¶
type SubmissionListResponse struct {
// When the submission was requested (UTC).
RequestedAt time.Time `json:"requested_at" api:"required" format:"date-time"`
SubmissionID string `json:"submission_id" api:"required"`
CustomerStatus SubmissionListResponseCustomerStatus `json:"customer_status" api:"nullable"`
EscalatedAs SubmissionListResponseEscalatedAs `json:"escalated_as" api:"nullable"`
EscalatedAt time.Time `json:"escalated_at" api:"nullable" format:"date-time"`
EscalatedBy string `json:"escalated_by" api:"nullable"`
EscalatedSubmissionID string `json:"escalated_submission_id" api:"nullable"`
OriginalDisposition SubmissionListResponseOriginalDisposition `json:"original_disposition" api:"nullable"`
OriginalEdfHash string `json:"original_edf_hash" api:"nullable"`
// The postfix ID of the original message that was submitted
OriginalPostfixID string `json:"original_postfix_id" api:"nullable"`
Outcome string `json:"outcome" api:"nullable"`
OutcomeDisposition SubmissionListResponseOutcomeDisposition `json:"outcome_disposition" api:"nullable"`
RequestedBy string `json:"requested_by" api:"nullable"`
RequestedDisposition SubmissionListResponseRequestedDisposition `json:"requested_disposition" api:"nullable"`
// Deprecated, use `requested_at` instead
//
// Deprecated: deprecated
RequestedTs string `json:"requested_ts"`
Status string `json:"status" api:"nullable"`
Subject string `json:"subject" api:"nullable"`
// Whether the submission was created by a team member or an end user.
Type SubmissionListResponseType `json:"type" api:"nullable"`
JSON submissionListResponseJSON `json:"-"`
}
func (*SubmissionListResponse) UnmarshalJSON ¶
func (r *SubmissionListResponse) UnmarshalJSON(data []byte) (err error)
type SubmissionListResponseCustomerStatus ¶
type SubmissionListResponseCustomerStatus string
const ( SubmissionListResponseCustomerStatusEscalated SubmissionListResponseCustomerStatus = "escalated" SubmissionListResponseCustomerStatusReviewed SubmissionListResponseCustomerStatus = "reviewed" SubmissionListResponseCustomerStatusUnreviewed SubmissionListResponseCustomerStatus = "unreviewed" )
func (SubmissionListResponseCustomerStatus) IsKnown ¶
func (r SubmissionListResponseCustomerStatus) IsKnown() bool
type SubmissionListResponseEscalatedAs ¶
type SubmissionListResponseEscalatedAs string
const ( SubmissionListResponseEscalatedAsMalicious SubmissionListResponseEscalatedAs = "MALICIOUS" SubmissionListResponseEscalatedAsSuspicious SubmissionListResponseEscalatedAs = "SUSPICIOUS" SubmissionListResponseEscalatedAsSpoof SubmissionListResponseEscalatedAs = "SPOOF" SubmissionListResponseEscalatedAsSpam SubmissionListResponseEscalatedAs = "SPAM" SubmissionListResponseEscalatedAsBulk SubmissionListResponseEscalatedAs = "BULK" SubmissionListResponseEscalatedAsNone SubmissionListResponseEscalatedAs = "NONE" )
func (SubmissionListResponseEscalatedAs) IsKnown ¶
func (r SubmissionListResponseEscalatedAs) IsKnown() bool
type SubmissionListResponseOriginalDisposition ¶
type SubmissionListResponseOriginalDisposition string
const ( SubmissionListResponseOriginalDispositionMalicious SubmissionListResponseOriginalDisposition = "MALICIOUS" SubmissionListResponseOriginalDispositionSuspicious SubmissionListResponseOriginalDisposition = "SUSPICIOUS" SubmissionListResponseOriginalDispositionSpoof SubmissionListResponseOriginalDisposition = "SPOOF" SubmissionListResponseOriginalDispositionSpam SubmissionListResponseOriginalDisposition = "SPAM" SubmissionListResponseOriginalDispositionBulk SubmissionListResponseOriginalDisposition = "BULK" SubmissionListResponseOriginalDispositionNone SubmissionListResponseOriginalDisposition = "NONE" )
func (SubmissionListResponseOriginalDisposition) IsKnown ¶
func (r SubmissionListResponseOriginalDisposition) IsKnown() bool
type SubmissionListResponseOutcomeDisposition ¶
type SubmissionListResponseOutcomeDisposition string
const ( SubmissionListResponseOutcomeDispositionMalicious SubmissionListResponseOutcomeDisposition = "MALICIOUS" SubmissionListResponseOutcomeDispositionSuspicious SubmissionListResponseOutcomeDisposition = "SUSPICIOUS" SubmissionListResponseOutcomeDispositionSpoof SubmissionListResponseOutcomeDisposition = "SPOOF" SubmissionListResponseOutcomeDispositionSpam SubmissionListResponseOutcomeDisposition = "SPAM" SubmissionListResponseOutcomeDispositionBulk SubmissionListResponseOutcomeDisposition = "BULK" SubmissionListResponseOutcomeDispositionNone SubmissionListResponseOutcomeDisposition = "NONE" )
func (SubmissionListResponseOutcomeDisposition) IsKnown ¶
func (r SubmissionListResponseOutcomeDisposition) IsKnown() bool
type SubmissionListResponseRequestedDisposition ¶
type SubmissionListResponseRequestedDisposition string
const ( SubmissionListResponseRequestedDispositionMalicious SubmissionListResponseRequestedDisposition = "MALICIOUS" SubmissionListResponseRequestedDispositionSuspicious SubmissionListResponseRequestedDisposition = "SUSPICIOUS" SubmissionListResponseRequestedDispositionSpoof SubmissionListResponseRequestedDisposition = "SPOOF" SubmissionListResponseRequestedDispositionSpam SubmissionListResponseRequestedDisposition = "SPAM" SubmissionListResponseRequestedDispositionBulk SubmissionListResponseRequestedDisposition = "BULK" SubmissionListResponseRequestedDispositionNone SubmissionListResponseRequestedDisposition = "NONE" )
func (SubmissionListResponseRequestedDisposition) IsKnown ¶
func (r SubmissionListResponseRequestedDisposition) IsKnown() bool
type SubmissionListResponseType ¶
type SubmissionListResponseType string
Whether the submission was created by a team member or an end user.
const ( SubmissionListResponseTypeTeam SubmissionListResponseType = "Team" SubmissionListResponseTypeUser SubmissionListResponseType = "User" )
func (SubmissionListResponseType) IsKnown ¶
func (r SubmissionListResponseType) IsKnown() bool
type SubmissionService ¶
type SubmissionService struct {
Options []option.RequestOption
}
SubmissionService 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 NewSubmissionService method instead.
func NewSubmissionService ¶
func NewSubmissionService(opts ...option.RequestOption) (r *SubmissionService)
NewSubmissionService 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 (*SubmissionService) List ¶
func (r *SubmissionService) List(ctx context.Context, params SubmissionListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[SubmissionListResponse], err error)
Returns information for submissions made to reclassify emails. Shows the status, outcome, and disposition changes for reclassification requests made by users or the security team. Useful for tracking false positive/negative reports.
func (*SubmissionService) ListAutoPaging ¶
func (r *SubmissionService) ListAutoPaging(ctx context.Context, params SubmissionListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[SubmissionListResponse]
Returns information for submissions made to reclassify emails. Shows the status, outcome, and disposition changes for reclassification requests made by users or the security team. Useful for tracking false positive/negative reports.
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.
Source Files
¶
- aliases.go
- emailsecurity.go
- investigate.go
- investigatedetection.go
- investigatemove.go
- investigatepreview.go
- investigateraw.go
- investigatereclassify.go
- investigaterelease.go
- investigatetrace.go
- phishguard.go
- phishguardreport.go
- setting.go
- settingallowpolicy.go
- settingblocksender.go
- settingdomain.go
- settingimpersonationregistry.go
- settingtrusteddomain.go
- submission.go