Documentation
¶
Index ¶
- Constants
- type ASN
- type ASNParam
- type AdvancedTCPProtectionAllowlistBulkDeleteParams
- type AdvancedTCPProtectionAllowlistBulkDeleteResponse
- type AdvancedTCPProtectionAllowlistBulkDeleteResponseError
- type AdvancedTCPProtectionAllowlistBulkDeleteResponseErrorsSource
- type AdvancedTCPProtectionAllowlistBulkDeleteResponseMessage
- type AdvancedTCPProtectionAllowlistBulkDeleteResponseMessagesSource
- type AdvancedTCPProtectionAllowlistBulkDeleteResponseSuccess
- type AdvancedTCPProtectionAllowlistItemDeleteParams
- type AdvancedTCPProtectionAllowlistItemDeleteResponse
- type AdvancedTCPProtectionAllowlistItemDeleteResponseError
- type AdvancedTCPProtectionAllowlistItemDeleteResponseErrorsSource
- type AdvancedTCPProtectionAllowlistItemDeleteResponseMessage
- type AdvancedTCPProtectionAllowlistItemDeleteResponseMessagesSource
- type AdvancedTCPProtectionAllowlistItemDeleteResponseSuccess
- type AdvancedTCPProtectionAllowlistItemEditParams
- type AdvancedTCPProtectionAllowlistItemEditResponse
- type AdvancedTCPProtectionAllowlistItemEditResponseEnvelope
- type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrors
- type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessages
- type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeSuccess
- type AdvancedTCPProtectionAllowlistItemGetParams
- type AdvancedTCPProtectionAllowlistItemGetResponse
- type AdvancedTCPProtectionAllowlistItemGetResponseEnvelope
- type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrors
- type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessages
- type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeSuccess
- type AdvancedTCPProtectionAllowlistItemService
- func (r *AdvancedTCPProtectionAllowlistItemService) Delete(ctx context.Context, prefixID string, ...) (res *AdvancedTCPProtectionAllowlistItemDeleteResponse, err error)
- func (r *AdvancedTCPProtectionAllowlistItemService) Edit(ctx context.Context, prefixID string, ...) (res *AdvancedTCPProtectionAllowlistItemEditResponse, err error)
- func (r *AdvancedTCPProtectionAllowlistItemService) Get(ctx context.Context, prefixID string, ...) (res *AdvancedTCPProtectionAllowlistItemGetResponse, err error)
- type AdvancedTCPProtectionAllowlistListParams
- type AdvancedTCPProtectionAllowlistListResponse
- type AdvancedTCPProtectionAllowlistNewParams
- type AdvancedTCPProtectionAllowlistNewResponse
- type AdvancedTCPProtectionAllowlistNewResponseEnvelope
- type AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrors
- type AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessages
- type AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionAllowlistNewResponseEnvelopeSuccess
- type AdvancedTCPProtectionAllowlistService
- func (r *AdvancedTCPProtectionAllowlistService) BulkDelete(ctx context.Context, body AdvancedTCPProtectionAllowlistBulkDeleteParams, ...) (res *AdvancedTCPProtectionAllowlistBulkDeleteResponse, err error)
- func (r *AdvancedTCPProtectionAllowlistService) List(ctx context.Context, params AdvancedTCPProtectionAllowlistListParams, ...) (...)
- func (r *AdvancedTCPProtectionAllowlistService) ListAutoPaging(ctx context.Context, params AdvancedTCPProtectionAllowlistListParams, ...) ...
- func (r *AdvancedTCPProtectionAllowlistService) New(ctx context.Context, params AdvancedTCPProtectionAllowlistNewParams, ...) (res *AdvancedTCPProtectionAllowlistNewResponse, err error)
- type AdvancedTCPProtectionPrefixBulkDeleteParams
- type AdvancedTCPProtectionPrefixBulkDeleteResponse
- type AdvancedTCPProtectionPrefixBulkDeleteResponseError
- type AdvancedTCPProtectionPrefixBulkDeleteResponseErrorsSource
- type AdvancedTCPProtectionPrefixBulkDeleteResponseMessage
- type AdvancedTCPProtectionPrefixBulkDeleteResponseMessagesSource
- type AdvancedTCPProtectionPrefixBulkDeleteResponseSuccess
- type AdvancedTCPProtectionPrefixBulkNewParams
- type AdvancedTCPProtectionPrefixBulkNewParamsBody
- type AdvancedTCPProtectionPrefixBulkNewResponse
- type AdvancedTCPProtectionPrefixItemDeleteParams
- type AdvancedTCPProtectionPrefixItemDeleteResponse
- type AdvancedTCPProtectionPrefixItemDeleteResponseError
- type AdvancedTCPProtectionPrefixItemDeleteResponseErrorsSource
- type AdvancedTCPProtectionPrefixItemDeleteResponseMessage
- type AdvancedTCPProtectionPrefixItemDeleteResponseMessagesSource
- type AdvancedTCPProtectionPrefixItemDeleteResponseSuccess
- type AdvancedTCPProtectionPrefixItemEditParams
- type AdvancedTCPProtectionPrefixItemEditResponse
- type AdvancedTCPProtectionPrefixItemEditResponseEnvelope
- type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrors
- type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessages
- type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeSuccess
- type AdvancedTCPProtectionPrefixItemGetParams
- type AdvancedTCPProtectionPrefixItemGetResponse
- type AdvancedTCPProtectionPrefixItemGetResponseEnvelope
- type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrors
- type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessages
- type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeSuccess
- type AdvancedTCPProtectionPrefixItemService
- func (r *AdvancedTCPProtectionPrefixItemService) Delete(ctx context.Context, prefixID string, ...) (res *AdvancedTCPProtectionPrefixItemDeleteResponse, err error)
- func (r *AdvancedTCPProtectionPrefixItemService) Edit(ctx context.Context, prefixID string, ...) (res *AdvancedTCPProtectionPrefixItemEditResponse, err error)
- func (r *AdvancedTCPProtectionPrefixItemService) Get(ctx context.Context, prefixID string, ...) (res *AdvancedTCPProtectionPrefixItemGetResponse, err error)
- type AdvancedTCPProtectionPrefixListParams
- type AdvancedTCPProtectionPrefixListResponse
- type AdvancedTCPProtectionPrefixNewParams
- type AdvancedTCPProtectionPrefixNewResponse
- type AdvancedTCPProtectionPrefixNewResponseEnvelope
- type AdvancedTCPProtectionPrefixNewResponseEnvelopeErrors
- type AdvancedTCPProtectionPrefixNewResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionPrefixNewResponseEnvelopeMessages
- type AdvancedTCPProtectionPrefixNewResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionPrefixNewResponseEnvelopeSuccess
- type AdvancedTCPProtectionPrefixService
- func (r *AdvancedTCPProtectionPrefixService) BulkDelete(ctx context.Context, body AdvancedTCPProtectionPrefixBulkDeleteParams, ...) (res *AdvancedTCPProtectionPrefixBulkDeleteResponse, err error)
- func (r *AdvancedTCPProtectionPrefixService) BulkNew(ctx context.Context, params AdvancedTCPProtectionPrefixBulkNewParams, ...) (res *pagination.SinglePage[AdvancedTCPProtectionPrefixBulkNewResponse], ...)
- func (r *AdvancedTCPProtectionPrefixService) BulkNewAutoPaging(ctx context.Context, params AdvancedTCPProtectionPrefixBulkNewParams, ...) *pagination.SinglePageAutoPager[AdvancedTCPProtectionPrefixBulkNewResponse]
- func (r *AdvancedTCPProtectionPrefixService) List(ctx context.Context, params AdvancedTCPProtectionPrefixListParams, ...) (res *pagination.V4PagePaginationArray[AdvancedTCPProtectionPrefixListResponse], ...)
- func (r *AdvancedTCPProtectionPrefixService) ListAutoPaging(ctx context.Context, params AdvancedTCPProtectionPrefixListParams, ...) ...
- func (r *AdvancedTCPProtectionPrefixService) New(ctx context.Context, params AdvancedTCPProtectionPrefixNewParams, ...) (res *AdvancedTCPProtectionPrefixNewResponse, err error)
- type AdvancedTCPProtectionService
- type AdvancedTCPProtectionStatusEditParams
- type AdvancedTCPProtectionStatusEditResponse
- type AdvancedTCPProtectionStatusEditResponseEnvelope
- type AdvancedTCPProtectionStatusEditResponseEnvelopeErrors
- type AdvancedTCPProtectionStatusEditResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionStatusEditResponseEnvelopeMessages
- type AdvancedTCPProtectionStatusEditResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionStatusEditResponseEnvelopeSuccess
- type AdvancedTCPProtectionStatusGetParams
- type AdvancedTCPProtectionStatusGetResponse
- type AdvancedTCPProtectionStatusGetResponseEnvelope
- type AdvancedTCPProtectionStatusGetResponseEnvelopeErrors
- type AdvancedTCPProtectionStatusGetResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionStatusGetResponseEnvelopeMessages
- type AdvancedTCPProtectionStatusGetResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionStatusGetResponseEnvelopeSuccess
- type AdvancedTCPProtectionStatusService
- func (r *AdvancedTCPProtectionStatusService) Edit(ctx context.Context, params AdvancedTCPProtectionStatusEditParams, ...) (res *AdvancedTCPProtectionStatusEditResponse, err error)
- func (r *AdvancedTCPProtectionStatusService) Get(ctx context.Context, query AdvancedTCPProtectionStatusGetParams, ...) (res *AdvancedTCPProtectionStatusGetResponse, err error)
- type AdvancedTCPProtectionSynProtectionFilterBulkDeleteParams
- type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponse
- type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseError
- type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseErrorsSource
- type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessage
- type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessagesSource
- type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseSuccess
- type AdvancedTCPProtectionSynProtectionFilterItemDeleteParams
- type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponse
- type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseError
- type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseErrorsSource
- type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessage
- type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessagesSource
- type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseSuccess
- type AdvancedTCPProtectionSynProtectionFilterItemEditParams
- type AdvancedTCPProtectionSynProtectionFilterItemEditResponse
- type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelope
- type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrors
- type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessages
- type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeSuccess
- type AdvancedTCPProtectionSynProtectionFilterItemGetParams
- type AdvancedTCPProtectionSynProtectionFilterItemGetResponse
- type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelope
- type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrors
- type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessages
- type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeSuccess
- type AdvancedTCPProtectionSynProtectionFilterItemService
- func (r *AdvancedTCPProtectionSynProtectionFilterItemService) Delete(ctx context.Context, filterID string, ...) (res *AdvancedTCPProtectionSynProtectionFilterItemDeleteResponse, err error)
- func (r *AdvancedTCPProtectionSynProtectionFilterItemService) Edit(ctx context.Context, filterID string, ...) (res *AdvancedTCPProtectionSynProtectionFilterItemEditResponse, err error)
- func (r *AdvancedTCPProtectionSynProtectionFilterItemService) Get(ctx context.Context, filterID string, ...) (res *AdvancedTCPProtectionSynProtectionFilterItemGetResponse, err error)
- type AdvancedTCPProtectionSynProtectionFilterListParams
- type AdvancedTCPProtectionSynProtectionFilterListResponse
- type AdvancedTCPProtectionSynProtectionFilterNewParams
- type AdvancedTCPProtectionSynProtectionFilterNewResponse
- type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelope
- type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrors
- type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessages
- type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeSuccess
- type AdvancedTCPProtectionSynProtectionFilterService
- func (r *AdvancedTCPProtectionSynProtectionFilterService) BulkDelete(ctx context.Context, ...) (res *AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponse, err error)
- func (r *AdvancedTCPProtectionSynProtectionFilterService) List(ctx context.Context, params AdvancedTCPProtectionSynProtectionFilterListParams, ...) (...)
- func (r *AdvancedTCPProtectionSynProtectionFilterService) ListAutoPaging(ctx context.Context, params AdvancedTCPProtectionSynProtectionFilterListParams, ...) ...
- func (r *AdvancedTCPProtectionSynProtectionFilterService) New(ctx context.Context, params AdvancedTCPProtectionSynProtectionFilterNewParams, ...) (res *AdvancedTCPProtectionSynProtectionFilterNewResponse, err error)
- type AdvancedTCPProtectionSynProtectionRuleBulkDeleteParams
- type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponse
- type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseError
- type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseErrorsSource
- type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessage
- type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessagesSource
- type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseSuccess
- type AdvancedTCPProtectionSynProtectionRuleItemDeleteParams
- type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponse
- type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseError
- type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseErrorsSource
- type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessage
- type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessagesSource
- type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseSuccess
- type AdvancedTCPProtectionSynProtectionRuleItemEditParams
- type AdvancedTCPProtectionSynProtectionRuleItemEditResponse
- type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelope
- type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrors
- type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessages
- type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeSuccess
- type AdvancedTCPProtectionSynProtectionRuleItemGetParams
- type AdvancedTCPProtectionSynProtectionRuleItemGetResponse
- type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelope
- type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrors
- type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessages
- type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeSuccess
- type AdvancedTCPProtectionSynProtectionRuleItemService
- func (r *AdvancedTCPProtectionSynProtectionRuleItemService) Delete(ctx context.Context, ruleID string, ...) (res *AdvancedTCPProtectionSynProtectionRuleItemDeleteResponse, err error)
- func (r *AdvancedTCPProtectionSynProtectionRuleItemService) Edit(ctx context.Context, ruleID string, ...) (res *AdvancedTCPProtectionSynProtectionRuleItemEditResponse, err error)
- func (r *AdvancedTCPProtectionSynProtectionRuleItemService) Get(ctx context.Context, ruleID string, ...) (res *AdvancedTCPProtectionSynProtectionRuleItemGetResponse, err error)
- type AdvancedTCPProtectionSynProtectionRuleListParams
- type AdvancedTCPProtectionSynProtectionRuleListResponse
- type AdvancedTCPProtectionSynProtectionRuleNewParams
- type AdvancedTCPProtectionSynProtectionRuleNewResponse
- type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelope
- type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrors
- type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessages
- type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeSuccess
- type AdvancedTCPProtectionSynProtectionRuleService
- func (r *AdvancedTCPProtectionSynProtectionRuleService) BulkDelete(ctx context.Context, ...) (res *AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponse, err error)
- func (r *AdvancedTCPProtectionSynProtectionRuleService) List(ctx context.Context, params AdvancedTCPProtectionSynProtectionRuleListParams, ...) (...)
- func (r *AdvancedTCPProtectionSynProtectionRuleService) ListAutoPaging(ctx context.Context, params AdvancedTCPProtectionSynProtectionRuleListParams, ...) ...
- func (r *AdvancedTCPProtectionSynProtectionRuleService) New(ctx context.Context, params AdvancedTCPProtectionSynProtectionRuleNewParams, ...) (res *AdvancedTCPProtectionSynProtectionRuleNewResponse, err error)
- type AdvancedTCPProtectionSynProtectionService
- type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteParams
- type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponse
- type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseError
- type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseErrorsSource
- type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessage
- type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessagesSource
- type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseSuccess
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteParams
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponse
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseError
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseErrorsSource
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessage
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessagesSource
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseSuccess
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditParams
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelope
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrors
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessages
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeSuccess
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetParams
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelope
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrors
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessages
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeSuccess
- type AdvancedTCPProtectionTCPFlowProtectionFilterItemService
- func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemService) Delete(ctx context.Context, filterID string, ...) (res *AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponse, err error)
- func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemService) Edit(ctx context.Context, filterID string, ...) (res *AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse, err error)
- func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemService) Get(ctx context.Context, filterID string, ...) (res *AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse, err error)
- type AdvancedTCPProtectionTCPFlowProtectionFilterListParams
- type AdvancedTCPProtectionTCPFlowProtectionFilterListResponse
- type AdvancedTCPProtectionTCPFlowProtectionFilterNewParams
- type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse
- type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelope
- type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrors
- type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessages
- type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeSuccess
- type AdvancedTCPProtectionTCPFlowProtectionFilterService
- func (r *AdvancedTCPProtectionTCPFlowProtectionFilterService) BulkDelete(ctx context.Context, ...) (res *AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponse, err error)
- func (r *AdvancedTCPProtectionTCPFlowProtectionFilterService) List(ctx context.Context, ...) (...)
- func (r *AdvancedTCPProtectionTCPFlowProtectionFilterService) ListAutoPaging(ctx context.Context, ...) ...
- func (r *AdvancedTCPProtectionTCPFlowProtectionFilterService) New(ctx context.Context, ...) (res *AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse, err error)
- type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteParams
- type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponse
- type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseError
- type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseErrorsSource
- type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessage
- type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessagesSource
- type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseSuccess
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteParams
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponse
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseError
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseErrorsSource
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessage
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessagesSource
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseSuccess
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditParams
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelope
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrors
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessages
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeSuccess
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetParams
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelope
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrors
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessages
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeSuccess
- type AdvancedTCPProtectionTCPFlowProtectionRuleItemService
- func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemService) Delete(ctx context.Context, ruleID string, ...) (res *AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponse, err error)
- func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemService) Edit(ctx context.Context, ruleID string, ...) (res *AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse, err error)
- func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemService) Get(ctx context.Context, ruleID string, ...) (res *AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse, err error)
- type AdvancedTCPProtectionTCPFlowProtectionRuleListParams
- type AdvancedTCPProtectionTCPFlowProtectionRuleListResponse
- type AdvancedTCPProtectionTCPFlowProtectionRuleNewParams
- type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse
- type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelope
- type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrors
- type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrorsSource
- type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessages
- type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessagesSource
- type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeSuccess
- type AdvancedTCPProtectionTCPFlowProtectionRuleService
- func (r *AdvancedTCPProtectionTCPFlowProtectionRuleService) BulkDelete(ctx context.Context, ...) (res *AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponse, err error)
- func (r *AdvancedTCPProtectionTCPFlowProtectionRuleService) List(ctx context.Context, ...) (...)
- func (r *AdvancedTCPProtectionTCPFlowProtectionRuleService) ListAutoPaging(ctx context.Context, ...) ...
- func (r *AdvancedTCPProtectionTCPFlowProtectionRuleService) New(ctx context.Context, ...) (res *AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse, err error)
- type AdvancedTCPProtectionTCPFlowProtectionService
- 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 DDoSProtectionService
- type Error
- type ErrorData
- type ErrorDataSource
- 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 RatePlan
- type RatePlanID
- type RatePlanParam
- type ResponseInfo
- type ResponseInfoSource
- type Role
- type RoleParam
- type RolePermissions
- type RolePermissionsParam
- type SortDirection
- type Subscription
- type SubscriptionFrequency
- type SubscriptionParam
- type SubscriptionState
- type Token
- type TokenCondition
- type TokenConditionCIDRList
- type TokenConditionCIDRListParam
- type TokenConditionParam
- type TokenConditionRequestIP
- type TokenConditionRequestIPParam
- type TokenParam
- type TokenPolicy
- type TokenPolicyEffect
- type TokenPolicyParam
- type TokenPolicyPermissionGroup
- type TokenPolicyPermissionGroupParam
- type TokenPolicyPermissionGroupsMeta
- type TokenPolicyPermissionGroupsMetaParam
- type TokenPolicyResourcesIAMResourcesTypeObjectNested
- type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam
- type TokenPolicyResourcesIAMResourcesTypeObjectString
- type TokenPolicyResourcesIAMResourcesTypeObjectStringParam
- type TokenPolicyResourcesUnion
- type TokenPolicyResourcesUnionParam
- type TokenStatus
- type TokenValue
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 AdvancedTCPProtectionAllowlistBulkDeleteResponse ¶
type AdvancedTCPProtectionAllowlistBulkDeleteResponse struct {
Errors []AdvancedTCPProtectionAllowlistBulkDeleteResponseError `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionAllowlistBulkDeleteResponseMessage `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionAllowlistBulkDeleteResponseSuccess `json:"success" api:"required"`
JSON advancedTCPProtectionAllowlistBulkDeleteResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistBulkDeleteResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistBulkDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistBulkDeleteResponseError ¶
type AdvancedTCPProtectionAllowlistBulkDeleteResponseError struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionAllowlistBulkDeleteResponseErrorsSource `json:"source"`
JSON advancedTCPProtectionAllowlistBulkDeleteResponseErrorJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistBulkDeleteResponseError) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistBulkDeleteResponseError) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistBulkDeleteResponseErrorsSource ¶
type AdvancedTCPProtectionAllowlistBulkDeleteResponseErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionAllowlistBulkDeleteResponseErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistBulkDeleteResponseErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistBulkDeleteResponseErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistBulkDeleteResponseMessage ¶
type AdvancedTCPProtectionAllowlistBulkDeleteResponseMessage struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionAllowlistBulkDeleteResponseMessagesSource `json:"source"`
JSON advancedTCPProtectionAllowlistBulkDeleteResponseMessageJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistBulkDeleteResponseMessage) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistBulkDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistBulkDeleteResponseMessagesSource ¶
type AdvancedTCPProtectionAllowlistBulkDeleteResponseMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionAllowlistBulkDeleteResponseMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistBulkDeleteResponseMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistBulkDeleteResponseMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistBulkDeleteResponseSuccess ¶
type AdvancedTCPProtectionAllowlistBulkDeleteResponseSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionAllowlistBulkDeleteResponseSuccessTrue AdvancedTCPProtectionAllowlistBulkDeleteResponseSuccess = true
)
func (AdvancedTCPProtectionAllowlistBulkDeleteResponseSuccess) IsKnown ¶
func (r AdvancedTCPProtectionAllowlistBulkDeleteResponseSuccess) IsKnown() bool
type AdvancedTCPProtectionAllowlistItemDeleteResponse ¶
type AdvancedTCPProtectionAllowlistItemDeleteResponse struct {
Errors []AdvancedTCPProtectionAllowlistItemDeleteResponseError `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionAllowlistItemDeleteResponseMessage `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionAllowlistItemDeleteResponseSuccess `json:"success" api:"required"`
JSON advancedTCPProtectionAllowlistItemDeleteResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemDeleteResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemDeleteResponseError ¶
type AdvancedTCPProtectionAllowlistItemDeleteResponseError struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionAllowlistItemDeleteResponseErrorsSource `json:"source"`
JSON advancedTCPProtectionAllowlistItemDeleteResponseErrorJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemDeleteResponseError) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemDeleteResponseError) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemDeleteResponseErrorsSource ¶
type AdvancedTCPProtectionAllowlistItemDeleteResponseErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionAllowlistItemDeleteResponseErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemDeleteResponseErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemDeleteResponseErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemDeleteResponseMessage ¶
type AdvancedTCPProtectionAllowlistItemDeleteResponseMessage struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionAllowlistItemDeleteResponseMessagesSource `json:"source"`
JSON advancedTCPProtectionAllowlistItemDeleteResponseMessageJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemDeleteResponseMessage) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemDeleteResponseMessagesSource ¶
type AdvancedTCPProtectionAllowlistItemDeleteResponseMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionAllowlistItemDeleteResponseMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemDeleteResponseMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemDeleteResponseMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemDeleteResponseSuccess ¶
type AdvancedTCPProtectionAllowlistItemDeleteResponseSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionAllowlistItemDeleteResponseSuccessTrue AdvancedTCPProtectionAllowlistItemDeleteResponseSuccess = true
)
func (AdvancedTCPProtectionAllowlistItemDeleteResponseSuccess) IsKnown ¶
func (r AdvancedTCPProtectionAllowlistItemDeleteResponseSuccess) IsKnown() bool
type AdvancedTCPProtectionAllowlistItemEditParams ¶
type AdvancedTCPProtectionAllowlistItemEditParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// A comment describing the allowlist prefix. Optional.
Comment param.Field[string] `json:"comment"`
// Whether to enable the allowlist prefix into effect. Optional.
Enabled param.Field[bool] `json:"enabled"`
}
func (AdvancedTCPProtectionAllowlistItemEditParams) MarshalJSON ¶
func (r AdvancedTCPProtectionAllowlistItemEditParams) MarshalJSON() (data []byte, err error)
type AdvancedTCPProtectionAllowlistItemEditResponse ¶
type AdvancedTCPProtectionAllowlistItemEditResponse struct {
// The unique ID of the allowlist prefix.
ID string `json:"id" api:"required"`
// An optional comment describing the allowlist prefix.
Comment string `json:"comment" api:"required"`
// The creation timestamp of the allowlist prefix.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// Whether to enable the allowlist prefix into effect. Defaults to false.
Enabled bool `json:"enabled" api:"required"`
// The last modification timestamp of the allowlist prefix.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The allowlist prefix in CIDR format.
Prefix string `json:"prefix" api:"required"`
JSON advancedTCPProtectionAllowlistItemEditResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemEditResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemEditResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemEditResponseEnvelope ¶
type AdvancedTCPProtectionAllowlistItemEditResponseEnvelope struct {
Errors []AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionAllowlistItemEditResponse `json:"result"`
JSON advancedTCPProtectionAllowlistItemEditResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemEditResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrors ¶
type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionAllowlistItemEditResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionAllowlistItemEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessages ¶
type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionAllowlistItemEditResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionAllowlistItemEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeSuccessTrue AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionAllowlistItemGetResponse ¶
type AdvancedTCPProtectionAllowlistItemGetResponse struct {
// The unique ID of the allowlist prefix.
ID string `json:"id" api:"required"`
// An optional comment describing the allowlist prefix.
Comment string `json:"comment" api:"required"`
// The creation timestamp of the allowlist prefix.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// Whether to enable the allowlist prefix into effect. Defaults to false.
Enabled bool `json:"enabled" api:"required"`
// The last modification timestamp of the allowlist prefix.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The allowlist prefix in CIDR format.
Prefix string `json:"prefix" api:"required"`
JSON advancedTCPProtectionAllowlistItemGetResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemGetResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemGetResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemGetResponseEnvelope ¶
type AdvancedTCPProtectionAllowlistItemGetResponseEnvelope struct {
Errors []AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionAllowlistItemGetResponse `json:"result"`
JSON advancedTCPProtectionAllowlistItemGetResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemGetResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrors ¶
type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionAllowlistItemGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionAllowlistItemGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessages ¶
type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionAllowlistItemGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionAllowlistItemGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeSuccessTrue AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionAllowlistItemService ¶
type AdvancedTCPProtectionAllowlistItemService struct {
Options []option.RequestOption
}
AdvancedTCPProtectionAllowlistItemService 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 NewAdvancedTCPProtectionAllowlistItemService method instead.
func NewAdvancedTCPProtectionAllowlistItemService ¶
func NewAdvancedTCPProtectionAllowlistItemService(opts ...option.RequestOption) (r *AdvancedTCPProtectionAllowlistItemService)
NewAdvancedTCPProtectionAllowlistItemService 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 (*AdvancedTCPProtectionAllowlistItemService) Delete ¶
func (r *AdvancedTCPProtectionAllowlistItemService) Delete(ctx context.Context, prefixID string, body AdvancedTCPProtectionAllowlistItemDeleteParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionAllowlistItemDeleteResponse, err error)
Delete the allowlist prefix for an account given a UUID.
func (*AdvancedTCPProtectionAllowlistItemService) Edit ¶
func (r *AdvancedTCPProtectionAllowlistItemService) Edit(ctx context.Context, prefixID string, params AdvancedTCPProtectionAllowlistItemEditParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionAllowlistItemEditResponse, err error)
Update an allowlist prefix specified by the given UUID.
func (*AdvancedTCPProtectionAllowlistItemService) Get ¶
func (r *AdvancedTCPProtectionAllowlistItemService) Get(ctx context.Context, prefixID string, query AdvancedTCPProtectionAllowlistItemGetParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionAllowlistItemGetResponse, err error)
Get an allowlist prefix specified by the given UUID.
type AdvancedTCPProtectionAllowlistListParams ¶
type AdvancedTCPProtectionAllowlistListParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The direction of ordering (ASC or DESC). Defaults to 'ASC'.
Direction param.Field[string] `query:"direction"`
// The field to order by. Defaults to 'prefix'.
Order param.Field[string] `query:"order"`
// The page number for pagination. Defaults to 1.
Page param.Field[int64] `query:"page"`
// The number of items per page. Must be between 10 and 1000. Defaults to 25.
PerPage param.Field[int64] `query:"per_page"`
}
func (AdvancedTCPProtectionAllowlistListParams) URLQuery ¶
func (r AdvancedTCPProtectionAllowlistListParams) URLQuery() (v url.Values)
URLQuery serializes AdvancedTCPProtectionAllowlistListParams's query parameters as `url.Values`.
type AdvancedTCPProtectionAllowlistListResponse ¶
type AdvancedTCPProtectionAllowlistListResponse struct {
// The unique ID of the allowlist prefix.
ID string `json:"id" api:"required"`
// An optional comment describing the allowlist prefix.
Comment string `json:"comment" api:"required"`
// The creation timestamp of the allowlist prefix.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// Whether to enable the allowlist prefix into effect. Defaults to false.
Enabled bool `json:"enabled" api:"required"`
// The last modification timestamp of the allowlist prefix.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The allowlist prefix in CIDR format.
Prefix string `json:"prefix" api:"required"`
JSON advancedTCPProtectionAllowlistListResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistListResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistListResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistNewParams ¶
type AdvancedTCPProtectionAllowlistNewParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// An comment describing the allowlist prefix.
Comment param.Field[string] `json:"comment" api:"required"`
// Whether to enable the allowlist prefix into effect.
Enabled param.Field[bool] `json:"enabled" api:"required"`
// The allowlist prefix to add in CIDR format.
Prefix param.Field[string] `json:"prefix" api:"required"`
}
func (AdvancedTCPProtectionAllowlistNewParams) MarshalJSON ¶
func (r AdvancedTCPProtectionAllowlistNewParams) MarshalJSON() (data []byte, err error)
type AdvancedTCPProtectionAllowlistNewResponse ¶
type AdvancedTCPProtectionAllowlistNewResponse struct {
// The unique ID of the allowlist prefix.
ID string `json:"id" api:"required"`
// An optional comment describing the allowlist prefix.
Comment string `json:"comment" api:"required"`
// The creation timestamp of the allowlist prefix.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// Whether to enable the allowlist prefix into effect. Defaults to false.
Enabled bool `json:"enabled" api:"required"`
// The last modification timestamp of the allowlist prefix.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The allowlist prefix in CIDR format.
Prefix string `json:"prefix" api:"required"`
JSON advancedTCPProtectionAllowlistNewResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistNewResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistNewResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistNewResponseEnvelope ¶
type AdvancedTCPProtectionAllowlistNewResponseEnvelope struct {
Errors []AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionAllowlistNewResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionAllowlistNewResponse `json:"result"`
JSON advancedTCPProtectionAllowlistNewResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistNewResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrors ¶
type AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionAllowlistNewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionAllowlistNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessages ¶
type AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionAllowlistNewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionAllowlistNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionAllowlistNewResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionAllowlistNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionAllowlistNewResponseEnvelopeSuccessTrue AdvancedTCPProtectionAllowlistNewResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionAllowlistNewResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionAllowlistNewResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionAllowlistService ¶
type AdvancedTCPProtectionAllowlistService struct {
Options []option.RequestOption
Items *AdvancedTCPProtectionAllowlistItemService
}
AdvancedTCPProtectionAllowlistService 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 NewAdvancedTCPProtectionAllowlistService method instead.
func NewAdvancedTCPProtectionAllowlistService ¶
func NewAdvancedTCPProtectionAllowlistService(opts ...option.RequestOption) (r *AdvancedTCPProtectionAllowlistService)
NewAdvancedTCPProtectionAllowlistService 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 (*AdvancedTCPProtectionAllowlistService) BulkDelete ¶
func (r *AdvancedTCPProtectionAllowlistService) BulkDelete(ctx context.Context, body AdvancedTCPProtectionAllowlistBulkDeleteParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionAllowlistBulkDeleteResponse, err error)
Delete all allowlist prefixes for an account.
func (*AdvancedTCPProtectionAllowlistService) List ¶
func (r *AdvancedTCPProtectionAllowlistService) List(ctx context.Context, params AdvancedTCPProtectionAllowlistListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[AdvancedTCPProtectionAllowlistListResponse], err error)
List all allowlist prefixes for an account.
func (*AdvancedTCPProtectionAllowlistService) ListAutoPaging ¶
func (r *AdvancedTCPProtectionAllowlistService) ListAutoPaging(ctx context.Context, params AdvancedTCPProtectionAllowlistListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[AdvancedTCPProtectionAllowlistListResponse]
List all allowlist prefixes for an account.
func (*AdvancedTCPProtectionAllowlistService) New ¶
func (r *AdvancedTCPProtectionAllowlistService) New(ctx context.Context, params AdvancedTCPProtectionAllowlistNewParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionAllowlistNewResponse, err error)
Create an allowlist prefix for an account.
type AdvancedTCPProtectionPrefixBulkDeleteResponse ¶
type AdvancedTCPProtectionPrefixBulkDeleteResponse struct {
Errors []AdvancedTCPProtectionPrefixBulkDeleteResponseError `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionPrefixBulkDeleteResponseMessage `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionPrefixBulkDeleteResponseSuccess `json:"success" api:"required"`
JSON advancedTCPProtectionPrefixBulkDeleteResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixBulkDeleteResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixBulkDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixBulkDeleteResponseError ¶
type AdvancedTCPProtectionPrefixBulkDeleteResponseError struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionPrefixBulkDeleteResponseErrorsSource `json:"source"`
JSON advancedTCPProtectionPrefixBulkDeleteResponseErrorJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixBulkDeleteResponseError) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixBulkDeleteResponseError) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixBulkDeleteResponseErrorsSource ¶
type AdvancedTCPProtectionPrefixBulkDeleteResponseErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionPrefixBulkDeleteResponseErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixBulkDeleteResponseErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixBulkDeleteResponseErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixBulkDeleteResponseMessage ¶
type AdvancedTCPProtectionPrefixBulkDeleteResponseMessage struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionPrefixBulkDeleteResponseMessagesSource `json:"source"`
JSON advancedTCPProtectionPrefixBulkDeleteResponseMessageJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixBulkDeleteResponseMessage) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixBulkDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixBulkDeleteResponseMessagesSource ¶
type AdvancedTCPProtectionPrefixBulkDeleteResponseMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionPrefixBulkDeleteResponseMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixBulkDeleteResponseMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixBulkDeleteResponseMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixBulkDeleteResponseSuccess ¶
type AdvancedTCPProtectionPrefixBulkDeleteResponseSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionPrefixBulkDeleteResponseSuccessTrue AdvancedTCPProtectionPrefixBulkDeleteResponseSuccess = true
)
func (AdvancedTCPProtectionPrefixBulkDeleteResponseSuccess) IsKnown ¶
func (r AdvancedTCPProtectionPrefixBulkDeleteResponseSuccess) IsKnown() bool
type AdvancedTCPProtectionPrefixBulkNewParams ¶
type AdvancedTCPProtectionPrefixBulkNewParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
Body []AdvancedTCPProtectionPrefixBulkNewParamsBody `json:"body" api:"required"`
}
func (AdvancedTCPProtectionPrefixBulkNewParams) MarshalJSON ¶
func (r AdvancedTCPProtectionPrefixBulkNewParams) MarshalJSON() (data []byte, err error)
type AdvancedTCPProtectionPrefixBulkNewParamsBody ¶
type AdvancedTCPProtectionPrefixBulkNewParamsBody struct {
// A comment describing the prefix.
Comment param.Field[string] `json:"comment" api:"required"`
// Whether to exclude the prefix from protection.
Excluded param.Field[bool] `json:"excluded" api:"required"`
// The prefix to add in CIDR format.
Prefix param.Field[string] `json:"prefix" api:"required"`
}
func (AdvancedTCPProtectionPrefixBulkNewParamsBody) MarshalJSON ¶
func (r AdvancedTCPProtectionPrefixBulkNewParamsBody) MarshalJSON() (data []byte, err error)
type AdvancedTCPProtectionPrefixBulkNewResponse ¶
type AdvancedTCPProtectionPrefixBulkNewResponse struct {
// The unique ID of the prefix.
ID string `json:"id" api:"required"`
// A comment describing the prefix.
Comment string `json:"comment" api:"required"`
// The creation timestamp of the prefix.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// Whether to exclude the prefix from protection.
Excluded bool `json:"excluded" api:"required"`
// The last modification timestamp of the prefix.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The prefix in CIDR format.
Prefix string `json:"prefix" api:"required"`
JSON advancedTCPProtectionPrefixBulkNewResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixBulkNewResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixBulkNewResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemDeleteResponse ¶
type AdvancedTCPProtectionPrefixItemDeleteResponse struct {
Errors []AdvancedTCPProtectionPrefixItemDeleteResponseError `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionPrefixItemDeleteResponseMessage `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionPrefixItemDeleteResponseSuccess `json:"success" api:"required"`
JSON advancedTCPProtectionPrefixItemDeleteResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemDeleteResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemDeleteResponseError ¶
type AdvancedTCPProtectionPrefixItemDeleteResponseError struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionPrefixItemDeleteResponseErrorsSource `json:"source"`
JSON advancedTCPProtectionPrefixItemDeleteResponseErrorJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemDeleteResponseError) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemDeleteResponseError) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemDeleteResponseErrorsSource ¶
type AdvancedTCPProtectionPrefixItemDeleteResponseErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionPrefixItemDeleteResponseErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemDeleteResponseErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemDeleteResponseErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemDeleteResponseMessage ¶
type AdvancedTCPProtectionPrefixItemDeleteResponseMessage struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionPrefixItemDeleteResponseMessagesSource `json:"source"`
JSON advancedTCPProtectionPrefixItemDeleteResponseMessageJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemDeleteResponseMessage) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemDeleteResponseMessagesSource ¶
type AdvancedTCPProtectionPrefixItemDeleteResponseMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionPrefixItemDeleteResponseMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemDeleteResponseMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemDeleteResponseMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemDeleteResponseSuccess ¶
type AdvancedTCPProtectionPrefixItemDeleteResponseSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionPrefixItemDeleteResponseSuccessTrue AdvancedTCPProtectionPrefixItemDeleteResponseSuccess = true
)
func (AdvancedTCPProtectionPrefixItemDeleteResponseSuccess) IsKnown ¶
func (r AdvancedTCPProtectionPrefixItemDeleteResponseSuccess) IsKnown() bool
type AdvancedTCPProtectionPrefixItemEditParams ¶
type AdvancedTCPProtectionPrefixItemEditParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// A new comment for the prefix. Optional.
Comment param.Field[string] `json:"comment"`
// Whether to exclude the prefix from protection. Optional.
Excluded param.Field[bool] `json:"excluded"`
}
func (AdvancedTCPProtectionPrefixItemEditParams) MarshalJSON ¶
func (r AdvancedTCPProtectionPrefixItemEditParams) MarshalJSON() (data []byte, err error)
type AdvancedTCPProtectionPrefixItemEditResponse ¶
type AdvancedTCPProtectionPrefixItemEditResponse struct {
// The unique ID of the prefix.
ID string `json:"id" api:"required"`
// A comment describing the prefix.
Comment string `json:"comment" api:"required"`
// The creation timestamp of the prefix.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// Whether to exclude the prefix from protection.
Excluded bool `json:"excluded" api:"required"`
// The last modification timestamp of the prefix.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The prefix in CIDR format.
Prefix string `json:"prefix" api:"required"`
JSON advancedTCPProtectionPrefixItemEditResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemEditResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemEditResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemEditResponseEnvelope ¶
type AdvancedTCPProtectionPrefixItemEditResponseEnvelope struct {
Errors []AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionPrefixItemEditResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionPrefixItemEditResponse `json:"result"`
JSON advancedTCPProtectionPrefixItemEditResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemEditResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrors ¶
type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionPrefixItemEditResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionPrefixItemEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessages ¶
type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionPrefixItemEditResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionPrefixItemEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionPrefixItemEditResponseEnvelopeSuccessTrue AdvancedTCPProtectionPrefixItemEditResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionPrefixItemEditResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionPrefixItemEditResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionPrefixItemGetResponse ¶
type AdvancedTCPProtectionPrefixItemGetResponse struct {
// The unique ID of the prefix.
ID string `json:"id" api:"required"`
// A comment describing the prefix.
Comment string `json:"comment" api:"required"`
// The creation timestamp of the prefix.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// Whether to exclude the prefix from protection.
Excluded bool `json:"excluded" api:"required"`
// The last modification timestamp of the prefix.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The prefix in CIDR format.
Prefix string `json:"prefix" api:"required"`
JSON advancedTCPProtectionPrefixItemGetResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemGetResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemGetResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemGetResponseEnvelope ¶
type AdvancedTCPProtectionPrefixItemGetResponseEnvelope struct {
Errors []AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionPrefixItemGetResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionPrefixItemGetResponse `json:"result"`
JSON advancedTCPProtectionPrefixItemGetResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemGetResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrors ¶
type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionPrefixItemGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionPrefixItemGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessages ¶
type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionPrefixItemGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionPrefixItemGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionPrefixItemGetResponseEnvelopeSuccessTrue AdvancedTCPProtectionPrefixItemGetResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionPrefixItemGetResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionPrefixItemGetResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionPrefixItemService ¶
type AdvancedTCPProtectionPrefixItemService struct {
Options []option.RequestOption
}
AdvancedTCPProtectionPrefixItemService 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 NewAdvancedTCPProtectionPrefixItemService method instead.
func NewAdvancedTCPProtectionPrefixItemService ¶
func NewAdvancedTCPProtectionPrefixItemService(opts ...option.RequestOption) (r *AdvancedTCPProtectionPrefixItemService)
NewAdvancedTCPProtectionPrefixItemService 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 (*AdvancedTCPProtectionPrefixItemService) Delete ¶
func (r *AdvancedTCPProtectionPrefixItemService) Delete(ctx context.Context, prefixID string, body AdvancedTCPProtectionPrefixItemDeleteParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionPrefixItemDeleteResponse, err error)
Delete the prefix for an account given a UUID.
func (*AdvancedTCPProtectionPrefixItemService) Edit ¶
func (r *AdvancedTCPProtectionPrefixItemService) Edit(ctx context.Context, prefixID string, params AdvancedTCPProtectionPrefixItemEditParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionPrefixItemEditResponse, err error)
Update a prefix specified by the given UUID.
func (*AdvancedTCPProtectionPrefixItemService) Get ¶
func (r *AdvancedTCPProtectionPrefixItemService) Get(ctx context.Context, prefixID string, query AdvancedTCPProtectionPrefixItemGetParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionPrefixItemGetResponse, err error)
Get a prefix specified by the given UUID.
type AdvancedTCPProtectionPrefixListParams ¶
type AdvancedTCPProtectionPrefixListParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The direction of ordering (ASC or DESC). Defaults to 'ASC'.
Direction param.Field[string] `query:"direction"`
// The field to order by. Defaults to 'prefix'.
Order param.Field[string] `query:"order"`
// The page number for pagination. Defaults to 1.
Page param.Field[int64] `query:"page"`
// The number of items per page. Must be between 10 and 1000. Defaults to 25.
PerPage param.Field[int64] `query:"per_page"`
}
func (AdvancedTCPProtectionPrefixListParams) URLQuery ¶
func (r AdvancedTCPProtectionPrefixListParams) URLQuery() (v url.Values)
URLQuery serializes AdvancedTCPProtectionPrefixListParams's query parameters as `url.Values`.
type AdvancedTCPProtectionPrefixListResponse ¶
type AdvancedTCPProtectionPrefixListResponse struct {
// The unique ID of the prefix.
ID string `json:"id" api:"required"`
// A comment describing the prefix.
Comment string `json:"comment" api:"required"`
// The creation timestamp of the prefix.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// Whether to exclude the prefix from protection.
Excluded bool `json:"excluded" api:"required"`
// The last modification timestamp of the prefix.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The prefix in CIDR format.
Prefix string `json:"prefix" api:"required"`
JSON advancedTCPProtectionPrefixListResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixListResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixListResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixNewParams ¶
type AdvancedTCPProtectionPrefixNewParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// A comment describing the prefix.
Comment param.Field[string] `json:"comment" api:"required"`
// Whether to exclude the prefix from protection.
Excluded param.Field[bool] `json:"excluded" api:"required"`
// The prefix to add in CIDR format.
Prefix param.Field[string] `json:"prefix" api:"required"`
}
func (AdvancedTCPProtectionPrefixNewParams) MarshalJSON ¶
func (r AdvancedTCPProtectionPrefixNewParams) MarshalJSON() (data []byte, err error)
type AdvancedTCPProtectionPrefixNewResponse ¶
type AdvancedTCPProtectionPrefixNewResponse struct {
// The unique ID of the prefix.
ID string `json:"id" api:"required"`
// A comment describing the prefix.
Comment string `json:"comment" api:"required"`
// The creation timestamp of the prefix.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// Whether to exclude the prefix from protection.
Excluded bool `json:"excluded" api:"required"`
// The last modification timestamp of the prefix.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The prefix in CIDR format.
Prefix string `json:"prefix" api:"required"`
JSON advancedTCPProtectionPrefixNewResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixNewResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixNewResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixNewResponseEnvelope ¶
type AdvancedTCPProtectionPrefixNewResponseEnvelope struct {
Errors []AdvancedTCPProtectionPrefixNewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionPrefixNewResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionPrefixNewResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionPrefixNewResponse `json:"result"`
JSON advancedTCPProtectionPrefixNewResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixNewResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixNewResponseEnvelopeErrors ¶
type AdvancedTCPProtectionPrefixNewResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionPrefixNewResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionPrefixNewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixNewResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionPrefixNewResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionPrefixNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixNewResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixNewResponseEnvelopeMessages ¶
type AdvancedTCPProtectionPrefixNewResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionPrefixNewResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionPrefixNewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixNewResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionPrefixNewResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionPrefixNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionPrefixNewResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionPrefixNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionPrefixNewResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionPrefixNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionPrefixNewResponseEnvelopeSuccessTrue AdvancedTCPProtectionPrefixNewResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionPrefixNewResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionPrefixNewResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionPrefixService ¶
type AdvancedTCPProtectionPrefixService struct {
Options []option.RequestOption
Items *AdvancedTCPProtectionPrefixItemService
}
AdvancedTCPProtectionPrefixService 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 NewAdvancedTCPProtectionPrefixService method instead.
func NewAdvancedTCPProtectionPrefixService ¶
func NewAdvancedTCPProtectionPrefixService(opts ...option.RequestOption) (r *AdvancedTCPProtectionPrefixService)
NewAdvancedTCPProtectionPrefixService 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 (*AdvancedTCPProtectionPrefixService) BulkDelete ¶
func (r *AdvancedTCPProtectionPrefixService) BulkDelete(ctx context.Context, body AdvancedTCPProtectionPrefixBulkDeleteParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionPrefixBulkDeleteResponse, err error)
Delete all prefixes for an account.
func (*AdvancedTCPProtectionPrefixService) BulkNew ¶
func (r *AdvancedTCPProtectionPrefixService) BulkNew(ctx context.Context, params AdvancedTCPProtectionPrefixBulkNewParams, opts ...option.RequestOption) (res *pagination.SinglePage[AdvancedTCPProtectionPrefixBulkNewResponse], err error)
Create multiple prefixes for an account.
func (*AdvancedTCPProtectionPrefixService) BulkNewAutoPaging ¶
func (r *AdvancedTCPProtectionPrefixService) BulkNewAutoPaging(ctx context.Context, params AdvancedTCPProtectionPrefixBulkNewParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[AdvancedTCPProtectionPrefixBulkNewResponse]
Create multiple prefixes for an account.
func (*AdvancedTCPProtectionPrefixService) List ¶
func (r *AdvancedTCPProtectionPrefixService) List(ctx context.Context, params AdvancedTCPProtectionPrefixListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[AdvancedTCPProtectionPrefixListResponse], err error)
List all prefixes for an account.
func (*AdvancedTCPProtectionPrefixService) ListAutoPaging ¶
func (r *AdvancedTCPProtectionPrefixService) ListAutoPaging(ctx context.Context, params AdvancedTCPProtectionPrefixListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[AdvancedTCPProtectionPrefixListResponse]
List all prefixes for an account.
func (*AdvancedTCPProtectionPrefixService) New ¶
func (r *AdvancedTCPProtectionPrefixService) New(ctx context.Context, params AdvancedTCPProtectionPrefixNewParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionPrefixNewResponse, err error)
Create a prefix for an account.
type AdvancedTCPProtectionService ¶
type AdvancedTCPProtectionService struct {
Options []option.RequestOption
Allowlist *AdvancedTCPProtectionAllowlistService
Prefixes *AdvancedTCPProtectionPrefixService
SynProtection *AdvancedTCPProtectionSynProtectionService
TCPFlowProtection *AdvancedTCPProtectionTCPFlowProtectionService
Status *AdvancedTCPProtectionStatusService
}
AdvancedTCPProtectionService 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 NewAdvancedTCPProtectionService method instead.
func NewAdvancedTCPProtectionService ¶
func NewAdvancedTCPProtectionService(opts ...option.RequestOption) (r *AdvancedTCPProtectionService)
NewAdvancedTCPProtectionService 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 AdvancedTCPProtectionStatusEditParams ¶
type AdvancedTCPProtectionStatusEditParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// Enables or disables protection.
Enabled param.Field[bool] `json:"enabled" api:"required"`
}
func (AdvancedTCPProtectionStatusEditParams) MarshalJSON ¶
func (r AdvancedTCPProtectionStatusEditParams) MarshalJSON() (data []byte, err error)
type AdvancedTCPProtectionStatusEditResponse ¶
type AdvancedTCPProtectionStatusEditResponse struct {
Enabled bool `json:"enabled" api:"required"`
JSON advancedTCPProtectionStatusEditResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionStatusEditResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionStatusEditResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionStatusEditResponseEnvelope ¶
type AdvancedTCPProtectionStatusEditResponseEnvelope struct {
Errors []AdvancedTCPProtectionStatusEditResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionStatusEditResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionStatusEditResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionStatusEditResponse `json:"result"`
JSON advancedTCPProtectionStatusEditResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionStatusEditResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionStatusEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionStatusEditResponseEnvelopeErrors ¶
type AdvancedTCPProtectionStatusEditResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionStatusEditResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionStatusEditResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionStatusEditResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionStatusEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionStatusEditResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionStatusEditResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionStatusEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionStatusEditResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionStatusEditResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionStatusEditResponseEnvelopeMessages ¶
type AdvancedTCPProtectionStatusEditResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionStatusEditResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionStatusEditResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionStatusEditResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionStatusEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionStatusEditResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionStatusEditResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionStatusEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionStatusEditResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionStatusEditResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionStatusEditResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionStatusEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionStatusEditResponseEnvelopeSuccessTrue AdvancedTCPProtectionStatusEditResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionStatusEditResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionStatusEditResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionStatusGetResponse ¶
type AdvancedTCPProtectionStatusGetResponse struct {
Enabled bool `json:"enabled" api:"required"`
JSON advancedTCPProtectionStatusGetResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionStatusGetResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionStatusGetResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionStatusGetResponseEnvelope ¶
type AdvancedTCPProtectionStatusGetResponseEnvelope struct {
Errors []AdvancedTCPProtectionStatusGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionStatusGetResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionStatusGetResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionStatusGetResponse `json:"result"`
JSON advancedTCPProtectionStatusGetResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionStatusGetResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionStatusGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionStatusGetResponseEnvelopeErrors ¶
type AdvancedTCPProtectionStatusGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionStatusGetResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionStatusGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionStatusGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionStatusGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionStatusGetResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionStatusGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionStatusGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionStatusGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionStatusGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionStatusGetResponseEnvelopeMessages ¶
type AdvancedTCPProtectionStatusGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionStatusGetResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionStatusGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionStatusGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionStatusGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionStatusGetResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionStatusGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionStatusGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionStatusGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionStatusGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionStatusGetResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionStatusGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionStatusGetResponseEnvelopeSuccessTrue AdvancedTCPProtectionStatusGetResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionStatusGetResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionStatusGetResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionStatusService ¶
type AdvancedTCPProtectionStatusService struct {
Options []option.RequestOption
}
AdvancedTCPProtectionStatusService 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 NewAdvancedTCPProtectionStatusService method instead.
func NewAdvancedTCPProtectionStatusService ¶
func NewAdvancedTCPProtectionStatusService(opts ...option.RequestOption) (r *AdvancedTCPProtectionStatusService)
NewAdvancedTCPProtectionStatusService 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 (*AdvancedTCPProtectionStatusService) Edit ¶
func (r *AdvancedTCPProtectionStatusService) Edit(ctx context.Context, params AdvancedTCPProtectionStatusEditParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionStatusEditResponse, err error)
Update the protection status of the account.
func (*AdvancedTCPProtectionStatusService) Get ¶
func (r *AdvancedTCPProtectionStatusService) Get(ctx context.Context, query AdvancedTCPProtectionStatusGetParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionStatusGetResponse, err error)
Get the protection status of the account.
type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponse ¶
type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponse struct {
Errors []AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseError `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessage `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseSuccess `json:"success" api:"required"`
JSON advancedTCPProtectionSynProtectionFilterBulkDeleteResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseError ¶
type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseError struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseErrorsSource `json:"source"`
JSON advancedTCPProtectionSynProtectionFilterBulkDeleteResponseErrorJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseError) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseError) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseErrorsSource ¶
type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionFilterBulkDeleteResponseErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessage ¶
type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessage struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessagesSource `json:"source"`
JSON advancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessageJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessage) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessagesSource ¶
type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseSuccess ¶
type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseSuccessTrue AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseSuccess = true
)
func (AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseSuccess) IsKnown ¶
func (r AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseSuccess) IsKnown() bool
type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponse ¶
type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponse struct {
Errors []AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseError `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessage `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseSuccess `json:"success" api:"required"`
JSON advancedTCPProtectionSynProtectionFilterItemDeleteResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemDeleteResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseError ¶
type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseError struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseErrorsSource `json:"source"`
JSON advancedTCPProtectionSynProtectionFilterItemDeleteResponseErrorJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseError) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseError) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseErrorsSource ¶
type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionFilterItemDeleteResponseErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessage ¶
type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessage struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessagesSource `json:"source"`
JSON advancedTCPProtectionSynProtectionFilterItemDeleteResponseMessageJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessage) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessagesSource ¶
type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionFilterItemDeleteResponseMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseSuccess ¶
type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseSuccessTrue AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseSuccess = true
)
func (AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseSuccess) IsKnown ¶
func (r AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseSuccess) IsKnown() bool
type AdvancedTCPProtectionSynProtectionFilterItemEditParams ¶
type AdvancedTCPProtectionSynProtectionFilterItemEditParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The new filter expression. Optional.
Expression param.Field[string] `json:"expression"`
// The new mode for the filter. Optional. Must be one of 'enabled', 'disabled',
// 'monitoring'.
Mode param.Field[string] `json:"mode"`
}
func (AdvancedTCPProtectionSynProtectionFilterItemEditParams) MarshalJSON ¶
func (r AdvancedTCPProtectionSynProtectionFilterItemEditParams) MarshalJSON() (data []byte, err error)
type AdvancedTCPProtectionSynProtectionFilterItemEditResponse ¶
type AdvancedTCPProtectionSynProtectionFilterItemEditResponse struct {
// The unique ID of the expression filter.
ID string `json:"id" api:"required"`
// The creation timestamp of the expression filter.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The filter expression.
Expression string `json:"expression" api:"required"`
// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the expression filter.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
JSON advancedTCPProtectionSynProtectionFilterItemEditResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemEditResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemEditResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelope ¶
type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelope struct {
Errors []AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionSynProtectionFilterItemEditResponse `json:"result"`
JSON advancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrors ¶
type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessages ¶
type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeSuccessTrue AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionSynProtectionFilterItemGetResponse ¶
type AdvancedTCPProtectionSynProtectionFilterItemGetResponse struct {
// The unique ID of the expression filter.
ID string `json:"id" api:"required"`
// The creation timestamp of the expression filter.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The filter expression.
Expression string `json:"expression" api:"required"`
// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the expression filter.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
JSON advancedTCPProtectionSynProtectionFilterItemGetResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemGetResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemGetResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelope ¶
type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelope struct {
Errors []AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionSynProtectionFilterItemGetResponse `json:"result"`
JSON advancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrors ¶
type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessages ¶
type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeSuccessTrue AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionSynProtectionFilterItemService ¶
type AdvancedTCPProtectionSynProtectionFilterItemService struct {
Options []option.RequestOption
}
AdvancedTCPProtectionSynProtectionFilterItemService 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 NewAdvancedTCPProtectionSynProtectionFilterItemService method instead.
func NewAdvancedTCPProtectionSynProtectionFilterItemService ¶
func NewAdvancedTCPProtectionSynProtectionFilterItemService(opts ...option.RequestOption) (r *AdvancedTCPProtectionSynProtectionFilterItemService)
NewAdvancedTCPProtectionSynProtectionFilterItemService 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 (*AdvancedTCPProtectionSynProtectionFilterItemService) Delete ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemService) Delete(ctx context.Context, filterID string, body AdvancedTCPProtectionSynProtectionFilterItemDeleteParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionSynProtectionFilterItemDeleteResponse, err error)
Delete a SYN Protection filter specified by the given UUID.
func (*AdvancedTCPProtectionSynProtectionFilterItemService) Edit ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemService) Edit(ctx context.Context, filterID string, params AdvancedTCPProtectionSynProtectionFilterItemEditParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionSynProtectionFilterItemEditResponse, err error)
Update a SYN Protection filter specified by the given UUID.
func (*AdvancedTCPProtectionSynProtectionFilterItemService) Get ¶
func (r *AdvancedTCPProtectionSynProtectionFilterItemService) Get(ctx context.Context, filterID string, query AdvancedTCPProtectionSynProtectionFilterItemGetParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionSynProtectionFilterItemGetResponse, err error)
Get a SYN Protection filter specified by the given UUID.
type AdvancedTCPProtectionSynProtectionFilterListParams ¶
type AdvancedTCPProtectionSynProtectionFilterListParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The direction of ordering (ASC or DESC). Defaults to 'ASC'.
Direction param.Field[string] `query:"direction"`
// The mode of the filters to get. Optional. Valid values: 'enabled', 'disabled',
// 'monitoring'.
Mode param.Field[string] `query:"mode"`
// The field to order by. Defaults to 'prefix'.
Order param.Field[string] `query:"order"`
// The page number for pagination. Defaults to 1.
Page param.Field[int64] `query:"page"`
// The number of items per page. Must be between 10 and 1000. Defaults to 25.
PerPage param.Field[int64] `query:"per_page"`
}
func (AdvancedTCPProtectionSynProtectionFilterListParams) URLQuery ¶
func (r AdvancedTCPProtectionSynProtectionFilterListParams) URLQuery() (v url.Values)
URLQuery serializes AdvancedTCPProtectionSynProtectionFilterListParams's query parameters as `url.Values`.
type AdvancedTCPProtectionSynProtectionFilterListResponse ¶
type AdvancedTCPProtectionSynProtectionFilterListResponse struct {
// The unique ID of the expression filter.
ID string `json:"id" api:"required"`
// The creation timestamp of the expression filter.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The filter expression.
Expression string `json:"expression" api:"required"`
// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the expression filter.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
JSON advancedTCPProtectionSynProtectionFilterListResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterListResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterListResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterNewParams ¶
type AdvancedTCPProtectionSynProtectionFilterNewParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The filter expression.
Expression param.Field[string] `json:"expression" api:"required"`
// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
Mode param.Field[string] `json:"mode" api:"required"`
}
func (AdvancedTCPProtectionSynProtectionFilterNewParams) MarshalJSON ¶
func (r AdvancedTCPProtectionSynProtectionFilterNewParams) MarshalJSON() (data []byte, err error)
type AdvancedTCPProtectionSynProtectionFilterNewResponse ¶
type AdvancedTCPProtectionSynProtectionFilterNewResponse struct {
// The unique ID of the expression filter.
ID string `json:"id" api:"required"`
// The creation timestamp of the expression filter.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The filter expression.
Expression string `json:"expression" api:"required"`
// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the expression filter.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
JSON advancedTCPProtectionSynProtectionFilterNewResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterNewResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterNewResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelope ¶
type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelope struct {
Errors []AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionSynProtectionFilterNewResponse `json:"result"`
JSON advancedTCPProtectionSynProtectionFilterNewResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrors ¶
type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessages ¶
type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeSuccessTrue AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionSynProtectionFilterService ¶
type AdvancedTCPProtectionSynProtectionFilterService struct {
Options []option.RequestOption
Items *AdvancedTCPProtectionSynProtectionFilterItemService
}
AdvancedTCPProtectionSynProtectionFilterService 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 NewAdvancedTCPProtectionSynProtectionFilterService method instead.
func NewAdvancedTCPProtectionSynProtectionFilterService ¶
func NewAdvancedTCPProtectionSynProtectionFilterService(opts ...option.RequestOption) (r *AdvancedTCPProtectionSynProtectionFilterService)
NewAdvancedTCPProtectionSynProtectionFilterService 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 (*AdvancedTCPProtectionSynProtectionFilterService) BulkDelete ¶
func (r *AdvancedTCPProtectionSynProtectionFilterService) BulkDelete(ctx context.Context, body AdvancedTCPProtectionSynProtectionFilterBulkDeleteParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponse, err error)
Delete all SYN Protection filters for an account.
func (*AdvancedTCPProtectionSynProtectionFilterService) List ¶
func (r *AdvancedTCPProtectionSynProtectionFilterService) List(ctx context.Context, params AdvancedTCPProtectionSynProtectionFilterListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[AdvancedTCPProtectionSynProtectionFilterListResponse], err error)
List all SYN Protection filters for an account.
func (*AdvancedTCPProtectionSynProtectionFilterService) ListAutoPaging ¶
func (r *AdvancedTCPProtectionSynProtectionFilterService) ListAutoPaging(ctx context.Context, params AdvancedTCPProtectionSynProtectionFilterListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[AdvancedTCPProtectionSynProtectionFilterListResponse]
List all SYN Protection filters for an account.
func (*AdvancedTCPProtectionSynProtectionFilterService) New ¶
func (r *AdvancedTCPProtectionSynProtectionFilterService) New(ctx context.Context, params AdvancedTCPProtectionSynProtectionFilterNewParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionSynProtectionFilterNewResponse, err error)
Create a SYN Protection filter for an account.
type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponse ¶
type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponse struct {
Errors []AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseError `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessage `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseSuccess `json:"success" api:"required"`
JSON advancedTCPProtectionSynProtectionRuleBulkDeleteResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseError ¶
type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseError struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseErrorsSource `json:"source"`
JSON advancedTCPProtectionSynProtectionRuleBulkDeleteResponseErrorJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseError) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseError) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseErrorsSource ¶
type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionRuleBulkDeleteResponseErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessage ¶
type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessage struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessagesSource `json:"source"`
JSON advancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessageJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessage) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessagesSource ¶
type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseSuccess ¶
type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseSuccessTrue AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseSuccess = true
)
func (AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseSuccess) IsKnown ¶
func (r AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseSuccess) IsKnown() bool
type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponse ¶
type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponse struct {
Errors []AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseError `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessage `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseSuccess `json:"success" api:"required"`
JSON advancedTCPProtectionSynProtectionRuleItemDeleteResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemDeleteResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseError ¶
type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseError struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseErrorsSource `json:"source"`
JSON advancedTCPProtectionSynProtectionRuleItemDeleteResponseErrorJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseError) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseError) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseErrorsSource ¶
type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionRuleItemDeleteResponseErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessage ¶
type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessage struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessagesSource `json:"source"`
JSON advancedTCPProtectionSynProtectionRuleItemDeleteResponseMessageJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessage) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessagesSource ¶
type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionRuleItemDeleteResponseMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseSuccess ¶
type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseSuccessTrue AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseSuccess = true
)
func (AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseSuccess) IsKnown ¶
func (r AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseSuccess) IsKnown() bool
type AdvancedTCPProtectionSynProtectionRuleItemEditParams ¶
type AdvancedTCPProtectionSynProtectionRuleItemEditParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The new burst sensitivity. Optional. Must be one of 'low', 'medium', 'high'.
BurstSensitivity param.Field[string] `json:"burst_sensitivity"`
// The new mitigation type. Optional. Must be one of 'challenge' or 'retransmit'.
MitigationType param.Field[string] `json:"mitigation_type"`
// The new mode for SYN Protection. Optional. Must be one of 'enabled', 'disabled',
// 'monitoring'.
Mode param.Field[string] `json:"mode"`
// The new rate sensitivity. Optional. Must be one of 'low', 'medium', 'high'.
RateSensitivity param.Field[string] `json:"rate_sensitivity"`
}
func (AdvancedTCPProtectionSynProtectionRuleItemEditParams) MarshalJSON ¶
func (r AdvancedTCPProtectionSynProtectionRuleItemEditParams) MarshalJSON() (data []byte, err error)
type AdvancedTCPProtectionSynProtectionRuleItemEditResponse ¶
type AdvancedTCPProtectionSynProtectionRuleItemEditResponse struct {
// The unique ID of the SYN Protection rule.
ID string `json:"id" api:"required"`
// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
BurstSensitivity string `json:"burst_sensitivity" api:"required"`
// The creation timestamp of the SYN Protection rule.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The type of mitigation for SYN Protection. Must be one of 'challenge' or
// 'retransmit'.
MitigationType string `json:"mitigation_type" api:"required"`
// The mode for SYN Protection. Must be one of 'enabled', 'disabled', 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the SYN Protection rule.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The name of the SYN Protection rule. Value is relative to the 'scope' setting.
// For 'global' scope, name should be 'global'. For either the 'region' or
// 'datacenter' scope, name should be the actual name of the region or datacenter,
// e.g., 'wnam' or 'lax'.
Name string `json:"name" api:"required"`
// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
RateSensitivity string `json:"rate_sensitivity" api:"required"`
// The scope for the SYN Protection rule. Must be one of 'global', 'region', or
// 'datacenter'.
Scope string `json:"scope" api:"required"`
JSON advancedTCPProtectionSynProtectionRuleItemEditResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemEditResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemEditResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelope ¶
type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelope struct {
Errors []AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionSynProtectionRuleItemEditResponse `json:"result"`
JSON advancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrors ¶
type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessages ¶
type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeSuccessTrue AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionSynProtectionRuleItemGetResponse ¶
type AdvancedTCPProtectionSynProtectionRuleItemGetResponse struct {
// The unique ID of the SYN Protection rule.
ID string `json:"id" api:"required"`
// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
BurstSensitivity string `json:"burst_sensitivity" api:"required"`
// The creation timestamp of the SYN Protection rule.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The type of mitigation for SYN Protection. Must be one of 'challenge' or
// 'retransmit'.
MitigationType string `json:"mitigation_type" api:"required"`
// The mode for SYN Protection. Must be one of 'enabled', 'disabled', 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the SYN Protection rule.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The name of the SYN Protection rule. Value is relative to the 'scope' setting.
// For 'global' scope, name should be 'global'. For either the 'region' or
// 'datacenter' scope, name should be the actual name of the region or datacenter,
// e.g., 'wnam' or 'lax'.
Name string `json:"name" api:"required"`
// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
RateSensitivity string `json:"rate_sensitivity" api:"required"`
// The scope for the SYN Protection rule. Must be one of 'global', 'region', or
// 'datacenter'.
Scope string `json:"scope" api:"required"`
JSON advancedTCPProtectionSynProtectionRuleItemGetResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemGetResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemGetResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelope ¶
type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelope struct {
Errors []AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionSynProtectionRuleItemGetResponse `json:"result"`
JSON advancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrors ¶
type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessages ¶
type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeSuccessTrue AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionSynProtectionRuleItemService ¶
type AdvancedTCPProtectionSynProtectionRuleItemService struct {
Options []option.RequestOption
}
AdvancedTCPProtectionSynProtectionRuleItemService 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 NewAdvancedTCPProtectionSynProtectionRuleItemService method instead.
func NewAdvancedTCPProtectionSynProtectionRuleItemService ¶
func NewAdvancedTCPProtectionSynProtectionRuleItemService(opts ...option.RequestOption) (r *AdvancedTCPProtectionSynProtectionRuleItemService)
NewAdvancedTCPProtectionSynProtectionRuleItemService 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 (*AdvancedTCPProtectionSynProtectionRuleItemService) Delete ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemService) Delete(ctx context.Context, ruleID string, body AdvancedTCPProtectionSynProtectionRuleItemDeleteParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionSynProtectionRuleItemDeleteResponse, err error)
Delete a SYN Protection rule specified by the given UUID.
func (*AdvancedTCPProtectionSynProtectionRuleItemService) Edit ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemService) Edit(ctx context.Context, ruleID string, params AdvancedTCPProtectionSynProtectionRuleItemEditParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionSynProtectionRuleItemEditResponse, err error)
Update a SYN Protection rule specified by the given UUID.
func (*AdvancedTCPProtectionSynProtectionRuleItemService) Get ¶
func (r *AdvancedTCPProtectionSynProtectionRuleItemService) Get(ctx context.Context, ruleID string, query AdvancedTCPProtectionSynProtectionRuleItemGetParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionSynProtectionRuleItemGetResponse, err error)
Get a SYN Protection rule specified by the given UUID.
type AdvancedTCPProtectionSynProtectionRuleListParams ¶
type AdvancedTCPProtectionSynProtectionRuleListParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The direction of ordering (ASC or DESC). Defaults to 'ASC'.
Direction param.Field[string] `query:"direction"`
// The field to order by. Defaults to 'prefix'.
Order param.Field[string] `query:"order"`
// The page number for pagination. Defaults to 1.
Page param.Field[int64] `query:"page"`
// The number of items per page. Must be between 10 and 1000. Defaults to 25.
PerPage param.Field[int64] `query:"per_page"`
}
func (AdvancedTCPProtectionSynProtectionRuleListParams) URLQuery ¶
func (r AdvancedTCPProtectionSynProtectionRuleListParams) URLQuery() (v url.Values)
URLQuery serializes AdvancedTCPProtectionSynProtectionRuleListParams's query parameters as `url.Values`.
type AdvancedTCPProtectionSynProtectionRuleListResponse ¶
type AdvancedTCPProtectionSynProtectionRuleListResponse struct {
// The unique ID of the SYN Protection rule.
ID string `json:"id" api:"required"`
// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
BurstSensitivity string `json:"burst_sensitivity" api:"required"`
// The creation timestamp of the SYN Protection rule.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The type of mitigation for SYN Protection. Must be one of 'challenge' or
// 'retransmit'.
MitigationType string `json:"mitigation_type" api:"required"`
// The mode for SYN Protection. Must be one of 'enabled', 'disabled', 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the SYN Protection rule.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The name of the SYN Protection rule. Value is relative to the 'scope' setting.
// For 'global' scope, name should be 'global'. For either the 'region' or
// 'datacenter' scope, name should be the actual name of the region or datacenter,
// e.g., 'wnam' or 'lax'.
Name string `json:"name" api:"required"`
// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
RateSensitivity string `json:"rate_sensitivity" api:"required"`
// The scope for the SYN Protection rule. Must be one of 'global', 'region', or
// 'datacenter'.
Scope string `json:"scope" api:"required"`
JSON advancedTCPProtectionSynProtectionRuleListResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleListResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleListResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleNewParams ¶
type AdvancedTCPProtectionSynProtectionRuleNewParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
BurstSensitivity param.Field[string] `json:"burst_sensitivity" api:"required"`
// The mode for SYN Protection. Must be one of 'enabled', 'disabled', 'monitoring'.
Mode param.Field[string] `json:"mode" api:"required"`
// The name of the SYN Protection rule. Value is relative to the 'scope' setting.
// For 'global' scope, name should be 'global'. For either the 'region' or
// 'datacenter' scope, name should be the actual name of the region or datacenter,
// e.g., 'wnam' or 'lax'.
Name param.Field[string] `json:"name" api:"required"`
// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
RateSensitivity param.Field[string] `json:"rate_sensitivity" api:"required"`
// The scope for the SYN Protection rule. Must be one of 'global', 'region', or
// 'datacenter'.
Scope param.Field[string] `json:"scope" api:"required"`
// The type of mitigation. Must be one of 'challenge' or 'retransmit'. Optional.
// Defaults to 'challenge'.
MitigationType param.Field[string] `json:"mitigation_type"`
}
func (AdvancedTCPProtectionSynProtectionRuleNewParams) MarshalJSON ¶
func (r AdvancedTCPProtectionSynProtectionRuleNewParams) MarshalJSON() (data []byte, err error)
type AdvancedTCPProtectionSynProtectionRuleNewResponse ¶
type AdvancedTCPProtectionSynProtectionRuleNewResponse struct {
// The unique ID of the SYN Protection rule.
ID string `json:"id" api:"required"`
// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
BurstSensitivity string `json:"burst_sensitivity" api:"required"`
// The creation timestamp of the SYN Protection rule.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The type of mitigation for SYN Protection. Must be one of 'challenge' or
// 'retransmit'.
MitigationType string `json:"mitigation_type" api:"required"`
// The mode for SYN Protection. Must be one of 'enabled', 'disabled', 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the SYN Protection rule.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The name of the SYN Protection rule. Value is relative to the 'scope' setting.
// For 'global' scope, name should be 'global'. For either the 'region' or
// 'datacenter' scope, name should be the actual name of the region or datacenter,
// e.g., 'wnam' or 'lax'.
Name string `json:"name" api:"required"`
// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
RateSensitivity string `json:"rate_sensitivity" api:"required"`
// The scope for the SYN Protection rule. Must be one of 'global', 'region', or
// 'datacenter'.
Scope string `json:"scope" api:"required"`
JSON advancedTCPProtectionSynProtectionRuleNewResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleNewResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleNewResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelope ¶
type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelope struct {
Errors []AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionSynProtectionRuleNewResponse `json:"result"`
JSON advancedTCPProtectionSynProtectionRuleNewResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrors ¶
type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessages ¶
type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeSuccessTrue AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionSynProtectionRuleService ¶
type AdvancedTCPProtectionSynProtectionRuleService struct {
Options []option.RequestOption
Items *AdvancedTCPProtectionSynProtectionRuleItemService
}
AdvancedTCPProtectionSynProtectionRuleService 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 NewAdvancedTCPProtectionSynProtectionRuleService method instead.
func NewAdvancedTCPProtectionSynProtectionRuleService ¶
func NewAdvancedTCPProtectionSynProtectionRuleService(opts ...option.RequestOption) (r *AdvancedTCPProtectionSynProtectionRuleService)
NewAdvancedTCPProtectionSynProtectionRuleService 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 (*AdvancedTCPProtectionSynProtectionRuleService) BulkDelete ¶
func (r *AdvancedTCPProtectionSynProtectionRuleService) BulkDelete(ctx context.Context, body AdvancedTCPProtectionSynProtectionRuleBulkDeleteParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponse, err error)
Delete all SYN Protection rules for an account.
func (*AdvancedTCPProtectionSynProtectionRuleService) List ¶
func (r *AdvancedTCPProtectionSynProtectionRuleService) List(ctx context.Context, params AdvancedTCPProtectionSynProtectionRuleListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[AdvancedTCPProtectionSynProtectionRuleListResponse], err error)
List all SYN Protection rules for an account.
func (*AdvancedTCPProtectionSynProtectionRuleService) ListAutoPaging ¶
func (r *AdvancedTCPProtectionSynProtectionRuleService) ListAutoPaging(ctx context.Context, params AdvancedTCPProtectionSynProtectionRuleListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[AdvancedTCPProtectionSynProtectionRuleListResponse]
List all SYN Protection rules for an account.
func (*AdvancedTCPProtectionSynProtectionRuleService) New ¶
func (r *AdvancedTCPProtectionSynProtectionRuleService) New(ctx context.Context, params AdvancedTCPProtectionSynProtectionRuleNewParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionSynProtectionRuleNewResponse, err error)
Create a SYN Protection rule for an account.
type AdvancedTCPProtectionSynProtectionService ¶
type AdvancedTCPProtectionSynProtectionService struct {
Options []option.RequestOption
Filters *AdvancedTCPProtectionSynProtectionFilterService
Rules *AdvancedTCPProtectionSynProtectionRuleService
}
AdvancedTCPProtectionSynProtectionService 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 NewAdvancedTCPProtectionSynProtectionService method instead.
func NewAdvancedTCPProtectionSynProtectionService ¶
func NewAdvancedTCPProtectionSynProtectionService(opts ...option.RequestOption) (r *AdvancedTCPProtectionSynProtectionService)
NewAdvancedTCPProtectionSynProtectionService 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 AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponse ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponse struct {
Errors []AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseError `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessage `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseSuccess `json:"success" api:"required"`
JSON advancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseError ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseError struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseErrorsSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseErrorJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseError) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseError) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseErrorsSource ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessage ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessage struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessagesSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessageJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessage) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessagesSource ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseSuccess ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseSuccessTrue AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseSuccess = true
)
func (AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseSuccess) IsKnown ¶
func (r AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseSuccess) IsKnown() bool
type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponse ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponse struct {
Errors []AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseError `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessage `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseSuccess `json:"success" api:"required"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseError ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseError struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseErrorsSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseErrorJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseError) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseError) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseErrorsSource ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessage ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessage struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessagesSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessageJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessage) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessagesSource ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseSuccess ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseSuccessTrue AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseSuccess = true
)
func (AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseSuccess) IsKnown ¶
func (r AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseSuccess) IsKnown() bool
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditParams ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The new filter expression. Optional.
Expression param.Field[string] `json:"expression"`
// The new mode for the filter. Optional. Must be one of 'enabled', 'disabled',
// 'monitoring'.
Mode param.Field[string] `json:"mode"`
}
func (AdvancedTCPProtectionTCPFlowProtectionFilterItemEditParams) MarshalJSON ¶
func (r AdvancedTCPProtectionTCPFlowProtectionFilterItemEditParams) MarshalJSON() (data []byte, err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse struct {
// The unique ID of the expression filter.
ID string `json:"id" api:"required"`
// The creation timestamp of the expression filter.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The filter expression.
Expression string `json:"expression" api:"required"`
// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the expression filter.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemEditResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelope ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelope struct {
Errors []AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse `json:"result"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrors ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessages ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeSuccessTrue AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse struct {
// The unique ID of the expression filter.
ID string `json:"id" api:"required"`
// The creation timestamp of the expression filter.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The filter expression.
Expression string `json:"expression" api:"required"`
// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the expression filter.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemGetResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelope ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelope struct {
Errors []AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse `json:"result"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrors ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessages ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeSuccessTrue AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionTCPFlowProtectionFilterItemService ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterItemService struct {
Options []option.RequestOption
}
AdvancedTCPProtectionTCPFlowProtectionFilterItemService 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 NewAdvancedTCPProtectionTCPFlowProtectionFilterItemService method instead.
func NewAdvancedTCPProtectionTCPFlowProtectionFilterItemService ¶
func NewAdvancedTCPProtectionTCPFlowProtectionFilterItemService(opts ...option.RequestOption) (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemService)
NewAdvancedTCPProtectionTCPFlowProtectionFilterItemService 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 (*AdvancedTCPProtectionTCPFlowProtectionFilterItemService) Delete ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemService) Delete(ctx context.Context, filterID string, body AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponse, err error)
Delete a TCP Flow Protection filter specified by the given UUID.
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemService) Edit ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemService) Edit(ctx context.Context, filterID string, params AdvancedTCPProtectionTCPFlowProtectionFilterItemEditParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse, err error)
Update a TCP Flow Protection filter specified by the given UUID.
func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemService) Get ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemService) Get(ctx context.Context, filterID string, query AdvancedTCPProtectionTCPFlowProtectionFilterItemGetParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse, err error)
Get a TCP Flow Protection filter specified by the given UUID.
type AdvancedTCPProtectionTCPFlowProtectionFilterListParams ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterListParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The direction of ordering (ASC or DESC). Defaults to 'ASC'.
Direction param.Field[string] `query:"direction"`
// The mode of the filters to get. Optional. Valid values: 'enabled', 'disabled',
// 'monitoring'.
Mode param.Field[string] `query:"mode"`
// The field to order by. Defaults to 'prefix'.
Order param.Field[string] `query:"order"`
// The page number for pagination. Defaults to 1.
Page param.Field[int64] `query:"page"`
// The number of items per page. Must be between 10 and 1000. Defaults to 25.
PerPage param.Field[int64] `query:"per_page"`
}
func (AdvancedTCPProtectionTCPFlowProtectionFilterListParams) URLQuery ¶
func (r AdvancedTCPProtectionTCPFlowProtectionFilterListParams) URLQuery() (v url.Values)
URLQuery serializes AdvancedTCPProtectionTCPFlowProtectionFilterListParams's query parameters as `url.Values`.
type AdvancedTCPProtectionTCPFlowProtectionFilterListResponse ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterListResponse struct {
// The unique ID of the expression filter.
ID string `json:"id" api:"required"`
// The creation timestamp of the expression filter.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The filter expression.
Expression string `json:"expression" api:"required"`
// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the expression filter.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
JSON advancedTCPProtectionTCPFlowProtectionFilterListResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterListResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterListResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterNewParams ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterNewParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The filter expression.
Expression param.Field[string] `json:"expression" api:"required"`
// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
Mode param.Field[string] `json:"mode" api:"required"`
}
func (AdvancedTCPProtectionTCPFlowProtectionFilterNewParams) MarshalJSON ¶
func (r AdvancedTCPProtectionTCPFlowProtectionFilterNewParams) MarshalJSON() (data []byte, err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse struct {
// The unique ID of the expression filter.
ID string `json:"id" api:"required"`
// The creation timestamp of the expression filter.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The filter expression.
Expression string `json:"expression" api:"required"`
// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the expression filter.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
JSON advancedTCPProtectionTCPFlowProtectionFilterNewResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelope ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelope struct {
Errors []AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse `json:"result"`
JSON advancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrors ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessages ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeSuccessTrue AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionTCPFlowProtectionFilterService ¶
type AdvancedTCPProtectionTCPFlowProtectionFilterService struct {
Options []option.RequestOption
Items *AdvancedTCPProtectionTCPFlowProtectionFilterItemService
}
AdvancedTCPProtectionTCPFlowProtectionFilterService 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 NewAdvancedTCPProtectionTCPFlowProtectionFilterService method instead.
func NewAdvancedTCPProtectionTCPFlowProtectionFilterService ¶
func NewAdvancedTCPProtectionTCPFlowProtectionFilterService(opts ...option.RequestOption) (r *AdvancedTCPProtectionTCPFlowProtectionFilterService)
NewAdvancedTCPProtectionTCPFlowProtectionFilterService 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 (*AdvancedTCPProtectionTCPFlowProtectionFilterService) BulkDelete ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterService) BulkDelete(ctx context.Context, body AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponse, err error)
Delete all TCP Flow Protection filters for an account.
func (*AdvancedTCPProtectionTCPFlowProtectionFilterService) List ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterService) List(ctx context.Context, params AdvancedTCPProtectionTCPFlowProtectionFilterListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[AdvancedTCPProtectionTCPFlowProtectionFilterListResponse], err error)
List all TCP Flow Protection filters for an account.
func (*AdvancedTCPProtectionTCPFlowProtectionFilterService) ListAutoPaging ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterService) ListAutoPaging(ctx context.Context, params AdvancedTCPProtectionTCPFlowProtectionFilterListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[AdvancedTCPProtectionTCPFlowProtectionFilterListResponse]
List all TCP Flow Protection filters for an account.
func (*AdvancedTCPProtectionTCPFlowProtectionFilterService) New ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionFilterService) New(ctx context.Context, params AdvancedTCPProtectionTCPFlowProtectionFilterNewParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse, err error)
Create a TCP Flow Protection filter for an account.
type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponse ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponse struct {
Errors []AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseError `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessage `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseSuccess `json:"success" api:"required"`
JSON advancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseError ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseError struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseErrorsSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseErrorJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseError) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseError) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseErrorsSource ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessage ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessage struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessagesSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessageJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessage) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessagesSource ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseSuccess ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseSuccessTrue AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseSuccess = true
)
func (AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseSuccess) IsKnown ¶
func (r AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseSuccess) IsKnown() bool
type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponse ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponse struct {
Errors []AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseError `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessage `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseSuccess `json:"success" api:"required"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseError ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseError struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseErrorsSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseErrorJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseError) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseError) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseErrorsSource ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessage ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessage struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessagesSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessageJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessage) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessagesSource ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseSuccess ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseSuccessTrue AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseSuccess = true
)
func (AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseSuccess) IsKnown ¶
func (r AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseSuccess) IsKnown() bool
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditParams ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The new burst sensitivity. Optional. Must be one of 'low', 'medium', 'high'.
BurstSensitivity param.Field[string] `json:"burst_sensitivity"`
// The new mode for TCP Flow Protection. Optional. Must be one of 'enabled',
// 'disabled', 'monitoring'.
Mode param.Field[string] `json:"mode"`
// The new rate sensitivity. Optional. Must be one of 'low', 'medium', 'high'.
RateSensitivity param.Field[string] `json:"rate_sensitivity"`
}
func (AdvancedTCPProtectionTCPFlowProtectionRuleItemEditParams) MarshalJSON ¶
func (r AdvancedTCPProtectionTCPFlowProtectionRuleItemEditParams) MarshalJSON() (data []byte, err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse struct {
// The unique ID of the TCP Flow Protection rule.
ID string `json:"id" api:"required"`
// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
BurstSensitivity string `json:"burst_sensitivity" api:"required"`
// The creation timestamp of the TCP Flow Protection rule.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The mode for TCP Flow Protection. Must be one of 'enabled', 'disabled',
// 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the TCP Flow Protection rule.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The name of the TCP Flow Protection rule. Value is relative to the 'scope'
// setting. For 'global' scope, name should be 'global'. For either the 'region' or
// 'datacenter' scope, name should be the actual name of the region or datacenter,
// e.g., 'wnam' or 'lax'.
Name string `json:"name" api:"required"`
// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
RateSensitivity string `json:"rate_sensitivity" api:"required"`
// The scope for the TCP Flow Protection rule. Must be one of 'global', 'region',
// or 'datacenter'.
Scope string `json:"scope" api:"required"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemEditResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelope ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelope struct {
Errors []AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse `json:"result"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrors ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessages ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeSuccessTrue AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse struct {
// The unique ID of the TCP Flow Protection rule.
ID string `json:"id" api:"required"`
// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
BurstSensitivity string `json:"burst_sensitivity" api:"required"`
// The creation timestamp of the TCP Flow Protection rule.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The mode for TCP Flow Protection. Must be one of 'enabled', 'disabled',
// 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the TCP Flow Protection rule.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The name of the TCP Flow Protection rule. Value is relative to the 'scope'
// setting. For 'global' scope, name should be 'global'. For either the 'region' or
// 'datacenter' scope, name should be the actual name of the region or datacenter,
// e.g., 'wnam' or 'lax'.
Name string `json:"name" api:"required"`
// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
RateSensitivity string `json:"rate_sensitivity" api:"required"`
// The scope for the TCP Flow Protection rule. Must be one of 'global', 'region',
// or 'datacenter'.
Scope string `json:"scope" api:"required"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemGetResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelope ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelope struct {
Errors []AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse `json:"result"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrors ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessages ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeSuccessTrue AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionTCPFlowProtectionRuleItemService ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleItemService struct {
Options []option.RequestOption
}
AdvancedTCPProtectionTCPFlowProtectionRuleItemService 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 NewAdvancedTCPProtectionTCPFlowProtectionRuleItemService method instead.
func NewAdvancedTCPProtectionTCPFlowProtectionRuleItemService ¶
func NewAdvancedTCPProtectionTCPFlowProtectionRuleItemService(opts ...option.RequestOption) (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemService)
NewAdvancedTCPProtectionTCPFlowProtectionRuleItemService 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 (*AdvancedTCPProtectionTCPFlowProtectionRuleItemService) Delete ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemService) Delete(ctx context.Context, ruleID string, body AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponse, err error)
Delete a TCP Flow Protection rule specified by the given UUID.
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemService) Edit ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemService) Edit(ctx context.Context, ruleID string, params AdvancedTCPProtectionTCPFlowProtectionRuleItemEditParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse, err error)
Update a TCP Flow Protection rule specified by the given UUID.
func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemService) Get ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemService) Get(ctx context.Context, ruleID string, query AdvancedTCPProtectionTCPFlowProtectionRuleItemGetParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse, err error)
Get a TCP Flow Protection rule specified by the given UUID.
type AdvancedTCPProtectionTCPFlowProtectionRuleListParams ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleListParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The direction of ordering (ASC or DESC). Defaults to 'ASC'.
Direction param.Field[string] `query:"direction"`
// The field to order by. Defaults to 'prefix'.
Order param.Field[string] `query:"order"`
// The page number for pagination. Defaults to 1.
Page param.Field[int64] `query:"page"`
// The number of items per page. Must be between 10 and 1000. Defaults to 25.
PerPage param.Field[int64] `query:"per_page"`
}
func (AdvancedTCPProtectionTCPFlowProtectionRuleListParams) URLQuery ¶
func (r AdvancedTCPProtectionTCPFlowProtectionRuleListParams) URLQuery() (v url.Values)
URLQuery serializes AdvancedTCPProtectionTCPFlowProtectionRuleListParams's query parameters as `url.Values`.
type AdvancedTCPProtectionTCPFlowProtectionRuleListResponse ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleListResponse struct {
// The unique ID of the TCP Flow Protection rule.
ID string `json:"id" api:"required"`
// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
BurstSensitivity string `json:"burst_sensitivity" api:"required"`
// The creation timestamp of the TCP Flow Protection rule.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The mode for TCP Flow Protection. Must be one of 'enabled', 'disabled',
// 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the TCP Flow Protection rule.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The name of the TCP Flow Protection rule. Value is relative to the 'scope'
// setting. For 'global' scope, name should be 'global'. For either the 'region' or
// 'datacenter' scope, name should be the actual name of the region or datacenter,
// e.g., 'wnam' or 'lax'.
Name string `json:"name" api:"required"`
// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
RateSensitivity string `json:"rate_sensitivity" api:"required"`
// The scope for the TCP Flow Protection rule. Must be one of 'global', 'region',
// or 'datacenter'.
Scope string `json:"scope" api:"required"`
JSON advancedTCPProtectionTCPFlowProtectionRuleListResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleListResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleListResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleNewParams ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleNewParams struct {
// Identifier.
AccountID param.Field[string] `path:"account_id" api:"required"`
// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
BurstSensitivity param.Field[string] `json:"burst_sensitivity" api:"required"`
// The mode for the TCP Flow Protection. Must be one of 'enabled', 'disabled',
// 'monitoring'.
Mode param.Field[string] `json:"mode" api:"required"`
// The name of the TCP Flow Protection rule. Value is relative to the 'scope'
// setting. For 'global' scope, name should be 'global'. For either the 'region' or
// 'datacenter' scope, name should be the actual name of the region or datacenter,
// e.g., 'wnam' or 'lax'.
Name param.Field[string] `json:"name" api:"required"`
// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
RateSensitivity param.Field[string] `json:"rate_sensitivity" api:"required"`
// The scope for the TCP Flow Protection rule.
Scope param.Field[string] `json:"scope" api:"required"`
}
func (AdvancedTCPProtectionTCPFlowProtectionRuleNewParams) MarshalJSON ¶
func (r AdvancedTCPProtectionTCPFlowProtectionRuleNewParams) MarshalJSON() (data []byte, err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse struct {
// The unique ID of the TCP Flow Protection rule.
ID string `json:"id" api:"required"`
// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
BurstSensitivity string `json:"burst_sensitivity" api:"required"`
// The creation timestamp of the TCP Flow Protection rule.
CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
// The mode for TCP Flow Protection. Must be one of 'enabled', 'disabled',
// 'monitoring'.
Mode string `json:"mode" api:"required"`
// The last modification timestamp of the TCP Flow Protection rule.
ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
// The name of the TCP Flow Protection rule. Value is relative to the 'scope'
// setting. For 'global' scope, name should be 'global'. For either the 'region' or
// 'datacenter' scope, name should be the actual name of the region or datacenter,
// e.g., 'wnam' or 'lax'.
Name string `json:"name" api:"required"`
// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
RateSensitivity string `json:"rate_sensitivity" api:"required"`
// The scope for the TCP Flow Protection rule. Must be one of 'global', 'region',
// or 'datacenter'.
Scope string `json:"scope" api:"required"`
JSON advancedTCPProtectionTCPFlowProtectionRuleNewResponseJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelope ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelope struct {
Errors []AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessages `json:"messages" api:"required"`
// Whether the API call was successful.
Success AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeSuccess `json:"success" api:"required"`
Result AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse `json:"result"`
JSON advancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelope) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrors ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrors struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrorsSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrorsSource ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrorsSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrorsSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessages ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessages struct {
Code int64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
DocumentationURL string `json:"documentation_url"`
Source AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessagesSource `json:"source"`
JSON advancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessagesSource ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessagesSource struct {
Pointer string `json:"pointer"`
JSON advancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}
func (*AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessagesSource) UnmarshalJSON ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)
type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeSuccess ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeSuccessTrue AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeSuccess = true
)
func (AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeSuccess) IsKnown ¶
func (r AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeSuccess) IsKnown() bool
type AdvancedTCPProtectionTCPFlowProtectionRuleService ¶
type AdvancedTCPProtectionTCPFlowProtectionRuleService struct {
Options []option.RequestOption
Items *AdvancedTCPProtectionTCPFlowProtectionRuleItemService
}
AdvancedTCPProtectionTCPFlowProtectionRuleService 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 NewAdvancedTCPProtectionTCPFlowProtectionRuleService method instead.
func NewAdvancedTCPProtectionTCPFlowProtectionRuleService ¶
func NewAdvancedTCPProtectionTCPFlowProtectionRuleService(opts ...option.RequestOption) (r *AdvancedTCPProtectionTCPFlowProtectionRuleService)
NewAdvancedTCPProtectionTCPFlowProtectionRuleService 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 (*AdvancedTCPProtectionTCPFlowProtectionRuleService) BulkDelete ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleService) BulkDelete(ctx context.Context, body AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponse, err error)
Delete all TCP Flow Protection rules for an account.
func (*AdvancedTCPProtectionTCPFlowProtectionRuleService) List ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleService) List(ctx context.Context, params AdvancedTCPProtectionTCPFlowProtectionRuleListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[AdvancedTCPProtectionTCPFlowProtectionRuleListResponse], err error)
List all TCP Flow Protection rules for an account.
func (*AdvancedTCPProtectionTCPFlowProtectionRuleService) ListAutoPaging ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleService) ListAutoPaging(ctx context.Context, params AdvancedTCPProtectionTCPFlowProtectionRuleListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[AdvancedTCPProtectionTCPFlowProtectionRuleListResponse]
List all TCP Flow Protection rules for an account.
func (*AdvancedTCPProtectionTCPFlowProtectionRuleService) New ¶
func (r *AdvancedTCPProtectionTCPFlowProtectionRuleService) New(ctx context.Context, params AdvancedTCPProtectionTCPFlowProtectionRuleNewParams, opts ...option.RequestOption) (res *AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse, err error)
Create a TCP Flow Protection rule for an account.
type AdvancedTCPProtectionTCPFlowProtectionService ¶
type AdvancedTCPProtectionTCPFlowProtectionService struct {
Options []option.RequestOption
Filters *AdvancedTCPProtectionTCPFlowProtectionFilterService
Rules *AdvancedTCPProtectionTCPFlowProtectionRuleService
}
AdvancedTCPProtectionTCPFlowProtectionService 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 NewAdvancedTCPProtectionTCPFlowProtectionService method instead.
func NewAdvancedTCPProtectionTCPFlowProtectionService ¶
func NewAdvancedTCPProtectionTCPFlowProtectionService(opts ...option.RequestOption) (r *AdvancedTCPProtectionTCPFlowProtectionService)
NewAdvancedTCPProtectionTCPFlowProtectionService 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 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 DDoSProtectionService ¶
type DDoSProtectionService struct {
Options []option.RequestOption
AdvancedTCPProtection *AdvancedTCPProtectionService
}
DDoSProtectionService 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 NewDDoSProtectionService method instead.
func NewDDoSProtectionService ¶
func NewDDoSProtectionService(opts ...option.RequestOption) (r *DDoSProtectionService)
NewDDoSProtectionService 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 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 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 SortDirection ¶
type SortDirection = shared.SortDirection
Direction to order DNS records in.
This is an alias to an internal type.
type SubscriptionFrequency ¶
type SubscriptionFrequency = shared.SubscriptionFrequency
How often the subscription is renewed automatically.
This is an alias to an internal type.
type SubscriptionParam ¶
type SubscriptionParam = shared.SubscriptionParam
This is an alias to an internal type.
type SubscriptionState ¶
type SubscriptionState = shared.SubscriptionState
The state that the subscription is in.
This is an alias to an internal type.
type TokenCondition ¶
type TokenCondition = shared.TokenCondition
This is an alias to an internal type.
type TokenConditionCIDRList ¶
type TokenConditionCIDRList = shared.TokenConditionCIDRList
IPv4/IPv6 CIDR.
This is an alias to an internal type.
type TokenConditionCIDRListParam ¶
type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
IPv4/IPv6 CIDR.
This is an alias to an internal type.
type TokenConditionParam ¶
type TokenConditionParam = shared.TokenConditionParam
This is an alias to an internal type.
type TokenConditionRequestIP ¶
type TokenConditionRequestIP = shared.TokenConditionRequestIP
Client IP restrictions.
This is an alias to an internal type.
type TokenConditionRequestIPParam ¶
type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
Client IP restrictions.
This is an alias to an internal type.
type TokenPolicyEffect ¶
type TokenPolicyEffect = shared.TokenPolicyEffect
Allow or deny operations against the resources.
This is an alias to an internal type.
type TokenPolicyParam ¶
type TokenPolicyParam = shared.TokenPolicyParam
This is an alias to an internal type.
type TokenPolicyPermissionGroup ¶
type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
A named group of permissions that map to a group of operations against resources.
This is an alias to an internal type.
type TokenPolicyPermissionGroupParam ¶
type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
A named group of permissions that map to a group of operations against resources.
This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta ¶
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
Attributes associated to the permission group.
This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam ¶
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
Attributes associated to the permission group.
This is an alias to an internal type.
type TokenPolicyResourcesIAMResourcesTypeObjectNested ¶
type TokenPolicyResourcesIAMResourcesTypeObjectNested = shared.TokenPolicyResourcesIAMResourcesTypeObjectNested
Map of nested resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam ¶
type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectNestedParam
Map of nested resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesIAMResourcesTypeObjectString ¶
type TokenPolicyResourcesIAMResourcesTypeObjectString = shared.TokenPolicyResourcesIAMResourcesTypeObjectString
Map of simple string resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesIAMResourcesTypeObjectStringParam ¶
type TokenPolicyResourcesIAMResourcesTypeObjectStringParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectStringParam
Map of simple string resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesUnion ¶
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
A list of resource names that the policy applies to.
This is an alias to an internal type.
type TokenPolicyResourcesUnionParam ¶
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
A list of resource names that the policy applies to.
This is an alias to an internal type.
type TokenStatus ¶
type TokenStatus = shared.TokenStatus
Status of the token.
This is an alias to an internal type.
type TokenValue ¶
type TokenValue = shared.TokenValue
The token value.
This is an alias to an internal type.
Source Files
¶
- advancedtcpprotection.go
- advancedtcpprotectionallowlist.go
- advancedtcpprotectionallowlistitem.go
- advancedtcpprotectionprefix.go
- advancedtcpprotectionprefixitem.go
- advancedtcpprotectionstatus.go
- advancedtcpprotectionsynprotection.go
- advancedtcpprotectionsynprotectionfilter.go
- advancedtcpprotectionsynprotectionfilteritem.go
- advancedtcpprotectionsynprotectionrule.go
- advancedtcpprotectionsynprotectionruleitem.go
- advancedtcpprotectiontcpflowprotection.go
- advancedtcpprotectiontcpflowprotectionfilter.go
- advancedtcpprotectiontcpflowprotectionfilteritem.go
- advancedtcpprotectiontcpflowprotectionrule.go
- advancedtcpprotectiontcpflowprotectionruleitem.go
- aliases.go
- ddosprotection.go