Documentation
¶
Index ¶
- Constants
- type AIGatewayDeleteParams
- type AIGatewayDeleteResponse
- type AIGatewayDeleteResponseDLP
- type AIGatewayDeleteResponseDLPAction
- type AIGatewayDeleteResponseDLPObject
- type AIGatewayDeleteResponseDLPObjectAction
- type AIGatewayDeleteResponseDLPUnion
- type AIGatewayDeleteResponseEnvelope
- type AIGatewayDeleteResponseGuardrails
- type AIGatewayDeleteResponseGuardrailsPrompt
- type AIGatewayDeleteResponseGuardrailsPromptP1
- type AIGatewayDeleteResponseGuardrailsPromptS1
- type AIGatewayDeleteResponseGuardrailsPromptS2
- type AIGatewayDeleteResponseGuardrailsPromptS3
- type AIGatewayDeleteResponseGuardrailsPromptS4
- type AIGatewayDeleteResponseGuardrailsPromptS5
- type AIGatewayDeleteResponseGuardrailsPromptS6
- type AIGatewayDeleteResponseGuardrailsPromptS7
- type AIGatewayDeleteResponseGuardrailsPromptS8
- type AIGatewayDeleteResponseGuardrailsPromptS9
- type AIGatewayDeleteResponseGuardrailsPromptS10
- type AIGatewayDeleteResponseGuardrailsPromptS11
- type AIGatewayDeleteResponseGuardrailsPromptS12
- type AIGatewayDeleteResponseGuardrailsPromptS13
- type AIGatewayDeleteResponseGuardrailsResponse
- type AIGatewayDeleteResponseGuardrailsResponseP1
- type AIGatewayDeleteResponseGuardrailsResponseS1
- type AIGatewayDeleteResponseGuardrailsResponseS2
- type AIGatewayDeleteResponseGuardrailsResponseS3
- type AIGatewayDeleteResponseGuardrailsResponseS4
- type AIGatewayDeleteResponseGuardrailsResponseS5
- type AIGatewayDeleteResponseGuardrailsResponseS6
- type AIGatewayDeleteResponseGuardrailsResponseS7
- type AIGatewayDeleteResponseGuardrailsResponseS8
- type AIGatewayDeleteResponseGuardrailsResponseS9
- type AIGatewayDeleteResponseGuardrailsResponseS10
- type AIGatewayDeleteResponseGuardrailsResponseS11
- type AIGatewayDeleteResponseGuardrailsResponseS12
- type AIGatewayDeleteResponseGuardrailsResponseS13
- type AIGatewayDeleteResponseLogManagementStrategy
- type AIGatewayDeleteResponseOtel
- type AIGatewayDeleteResponseOtelContentType
- type AIGatewayDeleteResponseRateLimitingTechnique
- type AIGatewayDeleteResponseRetryBackoff
- type AIGatewayDeleteResponseStripe
- type AIGatewayDeleteResponseStripeUsageEvent
- type AIGatewayDeleteResponseWorkersAIBillingMode
- type AIGatewayGetParams
- type AIGatewayGetResponse
- type AIGatewayGetResponseDLP
- type AIGatewayGetResponseDLPAction
- type AIGatewayGetResponseDLPObject
- type AIGatewayGetResponseDLPObjectAction
- type AIGatewayGetResponseDLPUnion
- type AIGatewayGetResponseEnvelope
- type AIGatewayGetResponseGuardrails
- type AIGatewayGetResponseGuardrailsPrompt
- type AIGatewayGetResponseGuardrailsPromptP1
- type AIGatewayGetResponseGuardrailsPromptS1
- type AIGatewayGetResponseGuardrailsPromptS2
- type AIGatewayGetResponseGuardrailsPromptS3
- type AIGatewayGetResponseGuardrailsPromptS4
- type AIGatewayGetResponseGuardrailsPromptS5
- type AIGatewayGetResponseGuardrailsPromptS6
- type AIGatewayGetResponseGuardrailsPromptS7
- type AIGatewayGetResponseGuardrailsPromptS8
- type AIGatewayGetResponseGuardrailsPromptS9
- type AIGatewayGetResponseGuardrailsPromptS10
- type AIGatewayGetResponseGuardrailsPromptS11
- type AIGatewayGetResponseGuardrailsPromptS12
- type AIGatewayGetResponseGuardrailsPromptS13
- type AIGatewayGetResponseGuardrailsResponse
- type AIGatewayGetResponseGuardrailsResponseP1
- type AIGatewayGetResponseGuardrailsResponseS1
- type AIGatewayGetResponseGuardrailsResponseS2
- type AIGatewayGetResponseGuardrailsResponseS3
- type AIGatewayGetResponseGuardrailsResponseS4
- type AIGatewayGetResponseGuardrailsResponseS5
- type AIGatewayGetResponseGuardrailsResponseS6
- type AIGatewayGetResponseGuardrailsResponseS7
- type AIGatewayGetResponseGuardrailsResponseS8
- type AIGatewayGetResponseGuardrailsResponseS9
- type AIGatewayGetResponseGuardrailsResponseS10
- type AIGatewayGetResponseGuardrailsResponseS11
- type AIGatewayGetResponseGuardrailsResponseS12
- type AIGatewayGetResponseGuardrailsResponseS13
- type AIGatewayGetResponseLogManagementStrategy
- type AIGatewayGetResponseOtel
- type AIGatewayGetResponseOtelContentType
- type AIGatewayGetResponseRateLimitingTechnique
- type AIGatewayGetResponseRetryBackoff
- type AIGatewayGetResponseStripe
- type AIGatewayGetResponseStripeUsageEvent
- type AIGatewayGetResponseWorkersAIBillingMode
- type AIGatewayListParams
- type AIGatewayListResponse
- type AIGatewayListResponseDLP
- type AIGatewayListResponseDLPAction
- type AIGatewayListResponseDLPObject
- type AIGatewayListResponseDLPObjectAction
- type AIGatewayListResponseDLPUnion
- type AIGatewayListResponseGuardrails
- type AIGatewayListResponseGuardrailsPrompt
- type AIGatewayListResponseGuardrailsPromptP1
- type AIGatewayListResponseGuardrailsPromptS1
- type AIGatewayListResponseGuardrailsPromptS2
- type AIGatewayListResponseGuardrailsPromptS3
- type AIGatewayListResponseGuardrailsPromptS4
- type AIGatewayListResponseGuardrailsPromptS5
- type AIGatewayListResponseGuardrailsPromptS6
- type AIGatewayListResponseGuardrailsPromptS7
- type AIGatewayListResponseGuardrailsPromptS8
- type AIGatewayListResponseGuardrailsPromptS9
- type AIGatewayListResponseGuardrailsPromptS10
- type AIGatewayListResponseGuardrailsPromptS11
- type AIGatewayListResponseGuardrailsPromptS12
- type AIGatewayListResponseGuardrailsPromptS13
- type AIGatewayListResponseGuardrailsResponse
- type AIGatewayListResponseGuardrailsResponseP1
- type AIGatewayListResponseGuardrailsResponseS1
- type AIGatewayListResponseGuardrailsResponseS2
- type AIGatewayListResponseGuardrailsResponseS3
- type AIGatewayListResponseGuardrailsResponseS4
- type AIGatewayListResponseGuardrailsResponseS5
- type AIGatewayListResponseGuardrailsResponseS6
- type AIGatewayListResponseGuardrailsResponseS7
- type AIGatewayListResponseGuardrailsResponseS8
- type AIGatewayListResponseGuardrailsResponseS9
- type AIGatewayListResponseGuardrailsResponseS10
- type AIGatewayListResponseGuardrailsResponseS11
- type AIGatewayListResponseGuardrailsResponseS12
- type AIGatewayListResponseGuardrailsResponseS13
- type AIGatewayListResponseLogManagementStrategy
- type AIGatewayListResponseOtel
- type AIGatewayListResponseOtelContentType
- type AIGatewayListResponseRateLimitingTechnique
- type AIGatewayListResponseRetryBackoff
- type AIGatewayListResponseStripe
- type AIGatewayListResponseStripeUsageEvent
- type AIGatewayListResponseWorkersAIBillingMode
- type AIGatewayNewParams
- type AIGatewayNewParamsLogManagementStrategy
- type AIGatewayNewParamsRateLimitingTechnique
- type AIGatewayNewParamsRetryBackoff
- type AIGatewayNewParamsWorkersAIBillingMode
- type AIGatewayNewResponse
- type AIGatewayNewResponseDLP
- type AIGatewayNewResponseDLPAction
- type AIGatewayNewResponseDLPObject
- type AIGatewayNewResponseDLPObjectAction
- type AIGatewayNewResponseDLPUnion
- type AIGatewayNewResponseEnvelope
- type AIGatewayNewResponseGuardrails
- type AIGatewayNewResponseGuardrailsPrompt
- type AIGatewayNewResponseGuardrailsPromptP1
- type AIGatewayNewResponseGuardrailsPromptS1
- type AIGatewayNewResponseGuardrailsPromptS2
- type AIGatewayNewResponseGuardrailsPromptS3
- type AIGatewayNewResponseGuardrailsPromptS4
- type AIGatewayNewResponseGuardrailsPromptS5
- type AIGatewayNewResponseGuardrailsPromptS6
- type AIGatewayNewResponseGuardrailsPromptS7
- type AIGatewayNewResponseGuardrailsPromptS8
- type AIGatewayNewResponseGuardrailsPromptS9
- type AIGatewayNewResponseGuardrailsPromptS10
- type AIGatewayNewResponseGuardrailsPromptS11
- type AIGatewayNewResponseGuardrailsPromptS12
- type AIGatewayNewResponseGuardrailsPromptS13
- type AIGatewayNewResponseGuardrailsResponse
- type AIGatewayNewResponseGuardrailsResponseP1
- type AIGatewayNewResponseGuardrailsResponseS1
- type AIGatewayNewResponseGuardrailsResponseS2
- type AIGatewayNewResponseGuardrailsResponseS3
- type AIGatewayNewResponseGuardrailsResponseS4
- type AIGatewayNewResponseGuardrailsResponseS5
- type AIGatewayNewResponseGuardrailsResponseS6
- type AIGatewayNewResponseGuardrailsResponseS7
- type AIGatewayNewResponseGuardrailsResponseS8
- type AIGatewayNewResponseGuardrailsResponseS9
- type AIGatewayNewResponseGuardrailsResponseS10
- type AIGatewayNewResponseGuardrailsResponseS11
- type AIGatewayNewResponseGuardrailsResponseS12
- type AIGatewayNewResponseGuardrailsResponseS13
- type AIGatewayNewResponseLogManagementStrategy
- type AIGatewayNewResponseOtel
- type AIGatewayNewResponseOtelContentType
- type AIGatewayNewResponseRateLimitingTechnique
- type AIGatewayNewResponseRetryBackoff
- type AIGatewayNewResponseStripe
- type AIGatewayNewResponseStripeUsageEvent
- type AIGatewayNewResponseWorkersAIBillingMode
- type AIGatewayService
- func (r *AIGatewayService) Delete(ctx context.Context, id string, body AIGatewayDeleteParams, ...) (res *AIGatewayDeleteResponse, err error)
- func (r *AIGatewayService) Get(ctx context.Context, id string, query AIGatewayGetParams, ...) (res *AIGatewayGetResponse, err error)
- func (r *AIGatewayService) List(ctx context.Context, params AIGatewayListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[AIGatewayListResponse], err error)
- func (r *AIGatewayService) ListAutoPaging(ctx context.Context, params AIGatewayListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[AIGatewayListResponse]
- func (r *AIGatewayService) New(ctx context.Context, params AIGatewayNewParams, opts ...option.RequestOption) (res *AIGatewayNewResponse, err error)
- func (r *AIGatewayService) Update(ctx context.Context, id string, params AIGatewayUpdateParams, ...) (res *AIGatewayUpdateResponse, err error)
- type AIGatewayUpdateParams
- type AIGatewayUpdateParamsDLP
- type AIGatewayUpdateParamsDLPAction
- type AIGatewayUpdateParamsDLPObject
- type AIGatewayUpdateParamsDLPObjectAction
- type AIGatewayUpdateParamsDLPUnion
- type AIGatewayUpdateParamsGuardrails
- type AIGatewayUpdateParamsGuardrailsPrompt
- type AIGatewayUpdateParamsGuardrailsPromptP1
- type AIGatewayUpdateParamsGuardrailsPromptS1
- type AIGatewayUpdateParamsGuardrailsPromptS2
- type AIGatewayUpdateParamsGuardrailsPromptS3
- type AIGatewayUpdateParamsGuardrailsPromptS4
- type AIGatewayUpdateParamsGuardrailsPromptS5
- type AIGatewayUpdateParamsGuardrailsPromptS6
- type AIGatewayUpdateParamsGuardrailsPromptS7
- type AIGatewayUpdateParamsGuardrailsPromptS8
- type AIGatewayUpdateParamsGuardrailsPromptS9
- type AIGatewayUpdateParamsGuardrailsPromptS10
- type AIGatewayUpdateParamsGuardrailsPromptS11
- type AIGatewayUpdateParamsGuardrailsPromptS12
- type AIGatewayUpdateParamsGuardrailsPromptS13
- type AIGatewayUpdateParamsGuardrailsResponse
- type AIGatewayUpdateParamsGuardrailsResponseP1
- type AIGatewayUpdateParamsGuardrailsResponseS1
- type AIGatewayUpdateParamsGuardrailsResponseS2
- type AIGatewayUpdateParamsGuardrailsResponseS3
- type AIGatewayUpdateParamsGuardrailsResponseS4
- type AIGatewayUpdateParamsGuardrailsResponseS5
- type AIGatewayUpdateParamsGuardrailsResponseS6
- type AIGatewayUpdateParamsGuardrailsResponseS7
- type AIGatewayUpdateParamsGuardrailsResponseS8
- type AIGatewayUpdateParamsGuardrailsResponseS9
- type AIGatewayUpdateParamsGuardrailsResponseS10
- type AIGatewayUpdateParamsGuardrailsResponseS11
- type AIGatewayUpdateParamsGuardrailsResponseS12
- type AIGatewayUpdateParamsGuardrailsResponseS13
- type AIGatewayUpdateParamsLogManagementStrategy
- type AIGatewayUpdateParamsOtel
- type AIGatewayUpdateParamsOtelContentType
- type AIGatewayUpdateParamsRateLimitingTechnique
- type AIGatewayUpdateParamsRetryBackoff
- type AIGatewayUpdateParamsStripe
- type AIGatewayUpdateParamsStripeUsageEvent
- type AIGatewayUpdateParamsWorkersAIBillingMode
- type AIGatewayUpdateResponse
- type AIGatewayUpdateResponseDLP
- type AIGatewayUpdateResponseDLPAction
- type AIGatewayUpdateResponseDLPObject
- type AIGatewayUpdateResponseDLPObjectAction
- type AIGatewayUpdateResponseDLPUnion
- type AIGatewayUpdateResponseEnvelope
- type AIGatewayUpdateResponseGuardrails
- type AIGatewayUpdateResponseGuardrailsPrompt
- type AIGatewayUpdateResponseGuardrailsPromptP1
- type AIGatewayUpdateResponseGuardrailsPromptS1
- type AIGatewayUpdateResponseGuardrailsPromptS2
- type AIGatewayUpdateResponseGuardrailsPromptS3
- type AIGatewayUpdateResponseGuardrailsPromptS4
- type AIGatewayUpdateResponseGuardrailsPromptS5
- type AIGatewayUpdateResponseGuardrailsPromptS6
- type AIGatewayUpdateResponseGuardrailsPromptS7
- type AIGatewayUpdateResponseGuardrailsPromptS8
- type AIGatewayUpdateResponseGuardrailsPromptS9
- type AIGatewayUpdateResponseGuardrailsPromptS10
- type AIGatewayUpdateResponseGuardrailsPromptS11
- type AIGatewayUpdateResponseGuardrailsPromptS12
- type AIGatewayUpdateResponseGuardrailsPromptS13
- type AIGatewayUpdateResponseGuardrailsResponse
- type AIGatewayUpdateResponseGuardrailsResponseP1
- type AIGatewayUpdateResponseGuardrailsResponseS1
- type AIGatewayUpdateResponseGuardrailsResponseS2
- type AIGatewayUpdateResponseGuardrailsResponseS3
- type AIGatewayUpdateResponseGuardrailsResponseS4
- type AIGatewayUpdateResponseGuardrailsResponseS5
- type AIGatewayUpdateResponseGuardrailsResponseS6
- type AIGatewayUpdateResponseGuardrailsResponseS7
- type AIGatewayUpdateResponseGuardrailsResponseS8
- type AIGatewayUpdateResponseGuardrailsResponseS9
- type AIGatewayUpdateResponseGuardrailsResponseS10
- type AIGatewayUpdateResponseGuardrailsResponseS11
- type AIGatewayUpdateResponseGuardrailsResponseS12
- type AIGatewayUpdateResponseGuardrailsResponseS13
- type AIGatewayUpdateResponseLogManagementStrategy
- type AIGatewayUpdateResponseOtel
- type AIGatewayUpdateResponseOtelContentType
- type AIGatewayUpdateResponseRateLimitingTechnique
- type AIGatewayUpdateResponseRetryBackoff
- type AIGatewayUpdateResponseStripe
- type AIGatewayUpdateResponseStripeUsageEvent
- type AIGatewayUpdateResponseWorkersAIBillingMode
- type ASN
- type ASNParam
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type BillingCreditBalanceParams
- type BillingCreditBalanceResponse
- type BillingCreditBalanceResponseEnvelope
- type BillingCreditBalanceResponseEnvelopeErrors
- type BillingCreditBalanceResponseEnvelopeMessages
- type BillingCreditBalanceResponseEnvelopeResultInfo
- type BillingCreditBalanceResponseEnvelopeSuccess
- type BillingCreditBalanceResponsePaymentMethod
- type BillingCreditBalanceResponseTopupConfig
- type BillingInvoiceHistoryParams
- type BillingInvoiceHistoryParamsType
- type BillingInvoiceHistoryResponse
- type BillingInvoiceHistoryResponseEnvelope
- type BillingInvoiceHistoryResponseEnvelopeErrors
- type BillingInvoiceHistoryResponseEnvelopeMessages
- type BillingInvoiceHistoryResponseEnvelopeResultInfo
- type BillingInvoiceHistoryResponseEnvelopeSuccess
- type BillingInvoiceHistoryResponseInvoice
- type BillingInvoiceHistoryResponsePagination
- type BillingInvoicePreviewParams
- type BillingInvoicePreviewResponse
- type BillingInvoicePreviewResponseEnvelope
- type BillingInvoicePreviewResponseEnvelopeErrors
- type BillingInvoicePreviewResponseEnvelopeMessages
- type BillingInvoicePreviewResponseEnvelopeResultInfo
- type BillingInvoicePreviewResponseEnvelopeSuccess
- type BillingInvoicePreviewResponseInvoiceLine
- type BillingInvoicePreviewResponseInvoiceLinesPeriod
- type BillingInvoicePreviewResponseInvoiceLinesPretaxCreditAmount
- type BillingInvoicePreviewResponseInvoiceLinesPricing
- type BillingInvoicePreviewResponseStatus
- type BillingService
- func (r *BillingService) CreditBalance(ctx context.Context, query BillingCreditBalanceParams, ...) (res *BillingCreditBalanceResponse, err error)
- func (r *BillingService) InvoiceHistory(ctx context.Context, params BillingInvoiceHistoryParams, ...) (res *BillingInvoiceHistoryResponse, err error)
- func (r *BillingService) InvoicePreview(ctx context.Context, query BillingInvoicePreviewParams, ...) (res *BillingInvoicePreviewResponse, err error)
- func (r *BillingService) UsageHistory(ctx context.Context, params BillingUsageHistoryParams, ...) (res *BillingUsageHistoryResponse, err error)
- type BillingSpendingLimitDeleteParams
- type BillingSpendingLimitDeleteResponse
- type BillingSpendingLimitDeleteResponseEnvelope
- type BillingSpendingLimitDeleteResponseEnvelopeErrors
- type BillingSpendingLimitDeleteResponseEnvelopeMessages
- type BillingSpendingLimitDeleteResponseEnvelopeResultInfo
- type BillingSpendingLimitDeleteResponseEnvelopeSuccess
- type BillingSpendingLimitGetParams
- type BillingSpendingLimitGetResponse
- type BillingSpendingLimitGetResponseConfig
- type BillingSpendingLimitGetResponseEnvelope
- type BillingSpendingLimitGetResponseEnvelopeErrors
- type BillingSpendingLimitGetResponseEnvelopeMessages
- type BillingSpendingLimitGetResponseEnvelopeResultInfo
- type BillingSpendingLimitGetResponseEnvelopeSuccess
- type BillingSpendingLimitNewParams
- type BillingSpendingLimitNewParamsDuration
- type BillingSpendingLimitNewParamsStrategy
- type BillingSpendingLimitNewResponse
- type BillingSpendingLimitNewResponseEnvelope
- type BillingSpendingLimitNewResponseEnvelopeErrors
- type BillingSpendingLimitNewResponseEnvelopeMessages
- type BillingSpendingLimitNewResponseEnvelopeResultInfo
- type BillingSpendingLimitNewResponseEnvelopeSuccess
- type BillingSpendingLimitService
- func (r *BillingSpendingLimitService) Delete(ctx context.Context, body BillingSpendingLimitDeleteParams, ...) (res *BillingSpendingLimitDeleteResponse, err error)
- func (r *BillingSpendingLimitService) Get(ctx context.Context, query BillingSpendingLimitGetParams, ...) (res *BillingSpendingLimitGetResponse, err error)
- func (r *BillingSpendingLimitService) New(ctx context.Context, params BillingSpendingLimitNewParams, ...) (res *BillingSpendingLimitNewResponse, err error)
- type BillingTopupConfigDeleteParams
- type BillingTopupConfigDeleteResponse
- type BillingTopupConfigDeleteResponseEnvelope
- type BillingTopupConfigDeleteResponseEnvelopeErrors
- type BillingTopupConfigDeleteResponseEnvelopeMessages
- type BillingTopupConfigDeleteResponseEnvelopeResultInfo
- type BillingTopupConfigDeleteResponseEnvelopeSuccess
- type BillingTopupConfigGetParams
- type BillingTopupConfigGetResponse
- type BillingTopupConfigGetResponseEnvelope
- type BillingTopupConfigGetResponseEnvelopeErrors
- type BillingTopupConfigGetResponseEnvelopeMessages
- type BillingTopupConfigGetResponseEnvelopeResultInfo
- type BillingTopupConfigGetResponseEnvelopeSuccess
- type BillingTopupConfigNewParams
- type BillingTopupConfigNewResponse
- type BillingTopupConfigNewResponseEnvelope
- type BillingTopupConfigNewResponseEnvelopeErrors
- type BillingTopupConfigNewResponseEnvelopeMessages
- type BillingTopupConfigNewResponseEnvelopeResultInfo
- type BillingTopupConfigNewResponseEnvelopeSuccess
- type BillingTopupConfigService
- func (r *BillingTopupConfigService) Delete(ctx context.Context, body BillingTopupConfigDeleteParams, ...) (res *BillingTopupConfigDeleteResponse, err error)
- func (r *BillingTopupConfigService) Get(ctx context.Context, query BillingTopupConfigGetParams, ...) (res *BillingTopupConfigGetResponse, err error)
- func (r *BillingTopupConfigService) New(ctx context.Context, params BillingTopupConfigNewParams, ...) (res *BillingTopupConfigNewResponse, err error)
- type BillingTopupNewParams
- type BillingTopupNewResponse
- type BillingTopupNewResponseEnvelope
- type BillingTopupNewResponseEnvelopeErrors
- type BillingTopupNewResponseEnvelopeMessages
- type BillingTopupNewResponseEnvelopeResultInfo
- type BillingTopupNewResponseEnvelopeSuccess
- type BillingTopupService
- type BillingTopupStatusParams
- type BillingTopupStatusResponse
- type BillingTopupStatusResponseEnvelope
- type BillingTopupStatusResponseEnvelopeErrors
- type BillingTopupStatusResponseEnvelopeMessages
- type BillingTopupStatusResponseEnvelopeResultInfo
- type BillingTopupStatusResponseEnvelopeSuccess
- type BillingTopupStatusResponseStatus
- type BillingUsageHistoryParams
- type BillingUsageHistoryParamsValueGroupingWindow
- type BillingUsageHistoryResponse
- type BillingUsageHistoryResponseEnvelope
- type BillingUsageHistoryResponseEnvelopeErrors
- type BillingUsageHistoryResponseEnvelopeMessages
- type BillingUsageHistoryResponseEnvelopeResultInfo
- type BillingUsageHistoryResponseEnvelopeSuccess
- type BillingUsageHistoryResponseHistory
- type CertificateCA
- type CertificateRequestType
- type CloudflareTunnel
- type CloudflareTunnelConfigSrc
- type CloudflareTunnelConnection
- type CloudflareTunnelStatus
- type CloudflareTunnelTunType
- type DatasetDeleteParams
- type DatasetDeleteResponse
- type DatasetDeleteResponseEnvelope
- type DatasetDeleteResponseFilter
- type DatasetDeleteResponseFiltersKey
- type DatasetDeleteResponseFiltersOperator
- type DatasetDeleteResponseFiltersValueUnion
- type DatasetGetParams
- type DatasetGetResponse
- type DatasetGetResponseEnvelope
- type DatasetGetResponseFilter
- type DatasetGetResponseFiltersKey
- type DatasetGetResponseFiltersOperator
- type DatasetGetResponseFiltersValueUnion
- type DatasetListParams
- type DatasetListResponse
- type DatasetListResponseFilter
- type DatasetListResponseFiltersKey
- type DatasetListResponseFiltersOperator
- type DatasetListResponseFiltersValueUnion
- type DatasetNewParams
- type DatasetNewParamsFilter
- type DatasetNewParamsFiltersKey
- type DatasetNewParamsFiltersOperator
- type DatasetNewParamsFiltersValueUnion
- type DatasetNewResponse
- type DatasetNewResponseEnvelope
- type DatasetNewResponseFilter
- type DatasetNewResponseFiltersKey
- type DatasetNewResponseFiltersOperator
- type DatasetNewResponseFiltersValueUnion
- type DatasetService
- func (r *DatasetService) Delete(ctx context.Context, gatewayID string, id string, body DatasetDeleteParams, ...) (res *DatasetDeleteResponse, err error)
- func (r *DatasetService) Get(ctx context.Context, gatewayID string, id string, query DatasetGetParams, ...) (res *DatasetGetResponse, err error)
- func (r *DatasetService) List(ctx context.Context, gatewayID string, params DatasetListParams, ...) (res *pagination.V4PagePaginationArray[DatasetListResponse], err error)
- func (r *DatasetService) ListAutoPaging(ctx context.Context, gatewayID string, params DatasetListParams, ...) *pagination.V4PagePaginationArrayAutoPager[DatasetListResponse]
- func (r *DatasetService) New(ctx context.Context, gatewayID string, params DatasetNewParams, ...) (res *DatasetNewResponse, err error)
- func (r *DatasetService) Update(ctx context.Context, gatewayID string, id string, params DatasetUpdateParams, ...) (res *DatasetUpdateResponse, err error)
- type DatasetUpdateParams
- type DatasetUpdateParamsFilter
- type DatasetUpdateParamsFiltersKey
- type DatasetUpdateParamsFiltersOperator
- type DatasetUpdateParamsFiltersValueUnion
- type DatasetUpdateResponse
- type DatasetUpdateResponseEnvelope
- type DatasetUpdateResponseFilter
- type DatasetUpdateResponseFiltersKey
- type DatasetUpdateResponseFiltersOperator
- type DatasetUpdateResponseFiltersValueUnion
- type DynamicRoutingDeleteParams
- type DynamicRoutingDeleteResponse
- type DynamicRoutingDeleteResponseElement
- type DynamicRoutingDeleteResponseElementsObject
- type DynamicRoutingDeleteResponseElementsObjectOutputs
- type DynamicRoutingDeleteResponseElementsObjectOutputsNext
- type DynamicRoutingDeleteResponseElementsObjectType
- type DynamicRoutingDeleteResponseElementsType
- type DynamicRoutingDeleteResponseElementsUnion
- type DynamicRoutingDeleteResponseEnvelope
- type DynamicRoutingGetParams
- type DynamicRoutingGetResponse
- type DynamicRoutingGetResponseDeployment
- type DynamicRoutingGetResponseElement
- type DynamicRoutingGetResponseElementsObject
- type DynamicRoutingGetResponseElementsObjectOutputs
- type DynamicRoutingGetResponseElementsObjectOutputsNext
- type DynamicRoutingGetResponseElementsObjectType
- type DynamicRoutingGetResponseElementsType
- type DynamicRoutingGetResponseElementsUnion
- type DynamicRoutingGetResponseEnvelope
- type DynamicRoutingGetResponseVersion
- type DynamicRoutingGetResponseVersionActive
- type DynamicRoutingGetVersionParams
- type DynamicRoutingGetVersionResponse
- type DynamicRoutingGetVersionResponseActive
- type DynamicRoutingGetVersionResponseElement
- type DynamicRoutingGetVersionResponseElementsObject
- type DynamicRoutingGetVersionResponseElementsObjectOutputs
- type DynamicRoutingGetVersionResponseElementsObjectOutputsNext
- type DynamicRoutingGetVersionResponseElementsObjectType
- type DynamicRoutingGetVersionResponseElementsType
- type DynamicRoutingGetVersionResponseElementsUnion
- type DynamicRoutingGetVersionResponseEnvelope
- type DynamicRoutingListDeploymentsParams
- type DynamicRoutingListDeploymentsResponse
- type DynamicRoutingListDeploymentsResponseData
- type DynamicRoutingListDeploymentsResponseDataDeployment
- type DynamicRoutingListParams
- type DynamicRoutingListResponse
- type DynamicRoutingListResponseData
- type DynamicRoutingListResponseDataRoute
- type DynamicRoutingListResponseDataRoutesDeployment
- type DynamicRoutingListResponseDataRoutesElement
- type DynamicRoutingListResponseDataRoutesElementsObject
- type DynamicRoutingListResponseDataRoutesElementsObjectOutputs
- type DynamicRoutingListResponseDataRoutesElementsObjectOutputsNext
- type DynamicRoutingListResponseDataRoutesElementsObjectType
- type DynamicRoutingListResponseDataRoutesElementsType
- type DynamicRoutingListResponseDataRoutesElementsUnion
- type DynamicRoutingListResponseDataRoutesVersion
- type DynamicRoutingListResponseDataRoutesVersionActive
- type DynamicRoutingListVersionsParams
- type DynamicRoutingListVersionsResponse
- type DynamicRoutingListVersionsResponseData
- type DynamicRoutingListVersionsResponseDataVersion
- type DynamicRoutingListVersionsResponseDataVersionsActive
- type DynamicRoutingNewDeploymentParams
- type DynamicRoutingNewDeploymentResponse
- type DynamicRoutingNewDeploymentResponseElement
- type DynamicRoutingNewDeploymentResponseElementsObject
- type DynamicRoutingNewDeploymentResponseElementsObjectOutputs
- type DynamicRoutingNewDeploymentResponseElementsObjectOutputsNext
- type DynamicRoutingNewDeploymentResponseElementsObjectType
- type DynamicRoutingNewDeploymentResponseElementsType
- type DynamicRoutingNewDeploymentResponseElementsUnion
- type DynamicRoutingNewDeploymentResponseEnvelope
- type DynamicRoutingNewParams
- type DynamicRoutingNewParamsElement
- type DynamicRoutingNewParamsElementUnion
- type DynamicRoutingNewParamsElementsObject
- type DynamicRoutingNewParamsElementsObjectOutputs
- type DynamicRoutingNewParamsElementsObjectOutputsNext
- type DynamicRoutingNewParamsElementsObjectType
- type DynamicRoutingNewParamsElementsType
- type DynamicRoutingNewResponse
- type DynamicRoutingNewResponseDeployment
- type DynamicRoutingNewResponseElement
- type DynamicRoutingNewResponseElementsObject
- type DynamicRoutingNewResponseElementsObjectOutputs
- type DynamicRoutingNewResponseElementsObjectOutputsNext
- type DynamicRoutingNewResponseElementsObjectType
- type DynamicRoutingNewResponseElementsType
- type DynamicRoutingNewResponseElementsUnion
- type DynamicRoutingNewResponseEnvelope
- type DynamicRoutingNewResponseVersion
- type DynamicRoutingNewResponseVersionActive
- type DynamicRoutingNewVersionParams
- type DynamicRoutingNewVersionParamsElement
- type DynamicRoutingNewVersionParamsElementUnion
- type DynamicRoutingNewVersionParamsElementsObject
- type DynamicRoutingNewVersionParamsElementsObjectOutputs
- type DynamicRoutingNewVersionParamsElementsObjectOutputsNext
- type DynamicRoutingNewVersionParamsElementsObjectType
- type DynamicRoutingNewVersionParamsElementsType
- type DynamicRoutingNewVersionResponse
- type DynamicRoutingNewVersionResponseElement
- type DynamicRoutingNewVersionResponseElementsObject
- type DynamicRoutingNewVersionResponseElementsObjectOutputs
- type DynamicRoutingNewVersionResponseElementsObjectOutputsNext
- type DynamicRoutingNewVersionResponseElementsObjectType
- type DynamicRoutingNewVersionResponseElementsType
- type DynamicRoutingNewVersionResponseElementsUnion
- type DynamicRoutingNewVersionResponseEnvelope
- type DynamicRoutingService
- func (r *DynamicRoutingService) Delete(ctx context.Context, gatewayID string, id string, ...) (res *DynamicRoutingDeleteResponse, err error)
- func (r *DynamicRoutingService) Get(ctx context.Context, gatewayID string, id string, ...) (res *DynamicRoutingGetResponse, err error)
- func (r *DynamicRoutingService) GetVersion(ctx context.Context, gatewayID string, id string, versionID string, ...) (res *DynamicRoutingGetVersionResponse, err error)
- func (r *DynamicRoutingService) List(ctx context.Context, gatewayID string, params DynamicRoutingListParams, ...) (res *DynamicRoutingListResponse, err error)
- func (r *DynamicRoutingService) ListDeployments(ctx context.Context, gatewayID string, id string, ...) (res *DynamicRoutingListDeploymentsResponse, err error)
- func (r *DynamicRoutingService) ListVersions(ctx context.Context, gatewayID string, id string, ...) (res *DynamicRoutingListVersionsResponse, err error)
- func (r *DynamicRoutingService) New(ctx context.Context, gatewayID string, params DynamicRoutingNewParams, ...) (res *DynamicRoutingNewResponse, err error)
- func (r *DynamicRoutingService) NewDeployment(ctx context.Context, gatewayID string, id string, ...) (res *DynamicRoutingNewDeploymentResponse, err error)
- func (r *DynamicRoutingService) NewVersion(ctx context.Context, gatewayID string, id string, ...) (res *DynamicRoutingNewVersionResponse, err error)
- func (r *DynamicRoutingService) Update(ctx context.Context, gatewayID string, id string, ...) (res *DynamicRoutingUpdateResponse, err error)
- type DynamicRoutingUpdateParams
- type DynamicRoutingUpdateResponse
- type DynamicRoutingUpdateResponseRoute
- type DynamicRoutingUpdateResponseRouteDeployment
- type DynamicRoutingUpdateResponseRouteElement
- type DynamicRoutingUpdateResponseRouteElementsObject
- type DynamicRoutingUpdateResponseRouteElementsObjectOutputs
- type DynamicRoutingUpdateResponseRouteElementsObjectOutputsNext
- type DynamicRoutingUpdateResponseRouteElementsObjectType
- type DynamicRoutingUpdateResponseRouteElementsType
- type DynamicRoutingUpdateResponseRouteElementsUnion
- type DynamicRoutingUpdateResponseRouteVersion
- type DynamicRoutingUpdateResponseRouteVersionActive
- type Error
- type ErrorData
- type ErrorDataSource
- type EvaluationDeleteParams
- type EvaluationDeleteResponse
- type EvaluationDeleteResponseDataset
- type EvaluationDeleteResponseDatasetsFilter
- type EvaluationDeleteResponseDatasetsFiltersKey
- type EvaluationDeleteResponseDatasetsFiltersOperator
- type EvaluationDeleteResponseDatasetsFiltersValueUnion
- type EvaluationDeleteResponseEnvelope
- type EvaluationDeleteResponseResult
- type EvaluationGetParams
- type EvaluationGetResponse
- type EvaluationGetResponseDataset
- type EvaluationGetResponseDatasetsFilter
- type EvaluationGetResponseDatasetsFiltersKey
- type EvaluationGetResponseDatasetsFiltersOperator
- type EvaluationGetResponseDatasetsFiltersValueUnion
- type EvaluationGetResponseEnvelope
- type EvaluationGetResponseResult
- type EvaluationListParams
- type EvaluationListResponse
- type EvaluationListResponseDataset
- type EvaluationListResponseDatasetsFilter
- type EvaluationListResponseDatasetsFiltersKey
- type EvaluationListResponseDatasetsFiltersOperator
- type EvaluationListResponseDatasetsFiltersValueUnion
- type EvaluationListResponseResult
- type EvaluationNewParams
- type EvaluationNewResponse
- type EvaluationNewResponseDataset
- type EvaluationNewResponseDatasetsFilter
- type EvaluationNewResponseDatasetsFiltersKey
- type EvaluationNewResponseDatasetsFiltersOperator
- type EvaluationNewResponseDatasetsFiltersValueUnion
- type EvaluationNewResponseEnvelope
- type EvaluationNewResponseResult
- type EvaluationService
- func (r *EvaluationService) Delete(ctx context.Context, gatewayID string, id string, body EvaluationDeleteParams, ...) (res *EvaluationDeleteResponse, err error)
- func (r *EvaluationService) Get(ctx context.Context, gatewayID string, id string, query EvaluationGetParams, ...) (res *EvaluationGetResponse, err error)
- func (r *EvaluationService) List(ctx context.Context, gatewayID string, params EvaluationListParams, ...) (res *pagination.V4PagePaginationArray[EvaluationListResponse], err error)
- func (r *EvaluationService) ListAutoPaging(ctx context.Context, gatewayID string, params EvaluationListParams, ...) *pagination.V4PagePaginationArrayAutoPager[EvaluationListResponse]
- func (r *EvaluationService) New(ctx context.Context, gatewayID string, params EvaluationNewParams, ...) (res *EvaluationNewResponse, err error)
- type EvaluationTypeListParams
- type EvaluationTypeListParamsOrderByDirection
- type EvaluationTypeListResponse
- type EvaluationTypeService
- func (r *EvaluationTypeService) List(ctx context.Context, params EvaluationTypeListParams, ...) (res *pagination.V4PagePaginationArray[EvaluationTypeListResponse], err error)
- func (r *EvaluationTypeService) ListAutoPaging(ctx context.Context, params EvaluationTypeListParams, ...) *pagination.V4PagePaginationArrayAutoPager[EvaluationTypeListResponse]
- type LogDeleteParams
- type LogDeleteParamsFilter
- type LogDeleteParamsFiltersKey
- type LogDeleteParamsFiltersOperator
- type LogDeleteParamsFiltersValueUnion
- type LogDeleteParamsOrderBy
- type LogDeleteParamsOrderByDirection
- type LogDeleteResponse
- type LogEditParams
- type LogEditParamsMetadataUnion
- type LogEditResponse
- type LogEditResponseEnvelope
- type LogGetParams
- type LogGetResponse
- type LogGetResponseEnvelope
- type LogListParams
- type LogListParamsDirection
- type LogListParamsFeedback
- type LogListParamsFilter
- type LogListParamsFiltersKey
- type LogListParamsFiltersOperator
- type LogListParamsFiltersValueUnion
- type LogListParamsOrderBy
- type LogListParamsOrderByDirection
- type LogListResponse
- type LogRequestParams
- type LogRequestResponse
- type LogResponseParams
- type LogResponseResponse
- type LogService
- func (r *LogService) Delete(ctx context.Context, gatewayID string, params LogDeleteParams, ...) (res *LogDeleteResponse, err error)
- func (r *LogService) Edit(ctx context.Context, gatewayID string, id string, params LogEditParams, ...) (res *LogEditResponse, err error)
- func (r *LogService) Get(ctx context.Context, gatewayID string, id string, query LogGetParams, ...) (res *LogGetResponse, err error)
- func (r *LogService) List(ctx context.Context, gatewayID string, params LogListParams, ...) (res *pagination.V4PagePaginationArray[LogListResponse], err error)
- func (r *LogService) ListAutoPaging(ctx context.Context, gatewayID string, params LogListParams, ...) *pagination.V4PagePaginationArrayAutoPager[LogListResponse]
- func (r *LogService) Request(ctx context.Context, gatewayID string, id string, query LogRequestParams, ...) (res *LogRequestResponse, err error)
- func (r *LogService) Response(ctx context.Context, gatewayID string, id string, query LogResponseParams, ...) (res *LogResponseResponse, err error)
- 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 ProviderConfigListParams
- type ProviderConfigListResponse
- type ProviderConfigNewParams
- type ProviderConfigNewResponse
- type ProviderConfigNewResponseEnvelope
- type ProviderConfigService
- func (r *ProviderConfigService) List(ctx context.Context, gatewayID string, params ProviderConfigListParams, ...) (res *pagination.V4PagePaginationArray[ProviderConfigListResponse], err error)
- func (r *ProviderConfigService) ListAutoPaging(ctx context.Context, gatewayID string, params ProviderConfigListParams, ...) *pagination.V4PagePaginationArrayAutoPager[ProviderConfigListResponse]
- func (r *ProviderConfigService) New(ctx context.Context, gatewayID string, params ProviderConfigNewParams, ...) (res *ProviderConfigNewResponse, err error)
- 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
- type URLGetParams
- type URLGetResponseEnvelope
- type URLService
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 AIGatewayDeleteParams ¶
type AIGatewayDeleteResponse ¶
type AIGatewayDeleteResponse struct {
// gateway id
ID string `json:"id" api:"required"`
CacheInvalidateOnUpdate bool `json:"cache_invalidate_on_update" api:"required"`
CacheTTL int64 `json:"cache_ttl" api:"required,nullable"`
CollectLogs bool `json:"collect_logs" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
RateLimitingInterval int64 `json:"rate_limiting_interval" api:"required,nullable"`
RateLimitingLimit int64 `json:"rate_limiting_limit" api:"required,nullable"`
Authentication bool `json:"authentication"`
DLP AIGatewayDeleteResponseDLP `json:"dlp"`
Guardrails AIGatewayDeleteResponseGuardrails `json:"guardrails" api:"nullable"`
IsDefault bool `json:"is_default"`
LogManagement int64 `json:"log_management" api:"nullable"`
LogManagementStrategy AIGatewayDeleteResponseLogManagementStrategy `json:"log_management_strategy" api:"nullable"`
Logpush bool `json:"logpush"`
LogpushPublicKey string `json:"logpush_public_key" api:"nullable"`
Otel []AIGatewayDeleteResponseOtel `json:"otel" api:"nullable"`
RateLimitingTechnique AIGatewayDeleteResponseRateLimitingTechnique `json:"rate_limiting_technique" api:"nullable"`
// Backoff strategy for retry delays
RetryBackoff AIGatewayDeleteResponseRetryBackoff `json:"retry_backoff" api:"nullable"`
// Delay between retry attempts in milliseconds (0-5000)
RetryDelay int64 `json:"retry_delay" api:"nullable"`
// Maximum number of retry attempts for failed requests (1-5)
RetryMaxAttempts int64 `json:"retry_max_attempts" api:"nullable"`
StoreID string `json:"store_id" api:"nullable"`
Stripe AIGatewayDeleteResponseStripe `json:"stripe" api:"nullable"`
// Controls how Workers AI inference calls routed through this gateway are billed.
// Only 'postpaid' is currently supported.
WorkersAIBillingMode AIGatewayDeleteResponseWorkersAIBillingMode `json:"workers_ai_billing_mode"`
Zdr bool `json:"zdr"`
JSON aiGatewayDeleteResponseJSON `json:"-"`
}
func (*AIGatewayDeleteResponse) UnmarshalJSON ¶
func (r *AIGatewayDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AIGatewayDeleteResponseDLP ¶
type AIGatewayDeleteResponseDLP struct {
Enabled bool `json:"enabled" api:"required"`
Action AIGatewayDeleteResponseDLPAction `json:"action"`
// This field can have the runtime type of
// [[]AIGatewayDeleteResponseDLPObjectPolicy].
Policies interface{} `json:"policies"`
// This field can have the runtime type of [[]string].
Profiles interface{} `json:"profiles"`
JSON aiGatewayDeleteResponseDLPJSON `json:"-"`
// contains filtered or unexported fields
}
func (AIGatewayDeleteResponseDLP) AsUnion ¶
func (r AIGatewayDeleteResponseDLP) AsUnion() AIGatewayDeleteResponseDLPUnion
AsUnion returns a AIGatewayDeleteResponseDLPUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are AIGatewayDeleteResponseDLPObject, AIGatewayDeleteResponseDLPObject.
func (*AIGatewayDeleteResponseDLP) UnmarshalJSON ¶
func (r *AIGatewayDeleteResponseDLP) UnmarshalJSON(data []byte) (err error)
type AIGatewayDeleteResponseDLPAction ¶
type AIGatewayDeleteResponseDLPAction string
const ( AIGatewayDeleteResponseDLPActionBlock AIGatewayDeleteResponseDLPAction = "BLOCK" AIGatewayDeleteResponseDLPActionFlag AIGatewayDeleteResponseDLPAction = "FLAG" )
func (AIGatewayDeleteResponseDLPAction) IsKnown ¶
func (r AIGatewayDeleteResponseDLPAction) IsKnown() bool
type AIGatewayDeleteResponseDLPObject ¶
type AIGatewayDeleteResponseDLPObject struct {
Action AIGatewayDeleteResponseDLPObjectAction `json:"action" api:"required"`
Enabled bool `json:"enabled" api:"required"`
Profiles []string `json:"profiles" api:"required"`
JSON aiGatewayDeleteResponseDLPObjectJSON `json:"-"`
}
func (*AIGatewayDeleteResponseDLPObject) UnmarshalJSON ¶
func (r *AIGatewayDeleteResponseDLPObject) UnmarshalJSON(data []byte) (err error)
type AIGatewayDeleteResponseDLPObjectAction ¶
type AIGatewayDeleteResponseDLPObjectAction string
const ( AIGatewayDeleteResponseDLPObjectActionBlock AIGatewayDeleteResponseDLPObjectAction = "BLOCK" AIGatewayDeleteResponseDLPObjectActionFlag AIGatewayDeleteResponseDLPObjectAction = "FLAG" )
func (AIGatewayDeleteResponseDLPObjectAction) IsKnown ¶
func (r AIGatewayDeleteResponseDLPObjectAction) IsKnown() bool
type AIGatewayDeleteResponseDLPUnion ¶
type AIGatewayDeleteResponseDLPUnion interface {
// contains filtered or unexported methods
}
Union satisfied by AIGatewayDeleteResponseDLPObject or AIGatewayDeleteResponseDLPObject.
type AIGatewayDeleteResponseEnvelope ¶
type AIGatewayDeleteResponseEnvelope struct {
Result AIGatewayDeleteResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON aiGatewayDeleteResponseEnvelopeJSON `json:"-"`
}
func (*AIGatewayDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *AIGatewayDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AIGatewayDeleteResponseGuardrails ¶
type AIGatewayDeleteResponseGuardrails struct {
Prompt AIGatewayDeleteResponseGuardrailsPrompt `json:"prompt" api:"required"`
Response AIGatewayDeleteResponseGuardrailsResponse `json:"response" api:"required"`
JSON aiGatewayDeleteResponseGuardrailsJSON `json:"-"`
}
func (*AIGatewayDeleteResponseGuardrails) UnmarshalJSON ¶
func (r *AIGatewayDeleteResponseGuardrails) UnmarshalJSON(data []byte) (err error)
type AIGatewayDeleteResponseGuardrailsPrompt ¶
type AIGatewayDeleteResponseGuardrailsPrompt struct {
P1 AIGatewayDeleteResponseGuardrailsPromptP1 `json:"P1"`
S1 AIGatewayDeleteResponseGuardrailsPromptS1 `json:"S1"`
S10 AIGatewayDeleteResponseGuardrailsPromptS10 `json:"S10"`
S11 AIGatewayDeleteResponseGuardrailsPromptS11 `json:"S11"`
S12 AIGatewayDeleteResponseGuardrailsPromptS12 `json:"S12"`
S13 AIGatewayDeleteResponseGuardrailsPromptS13 `json:"S13"`
S2 AIGatewayDeleteResponseGuardrailsPromptS2 `json:"S2"`
S3 AIGatewayDeleteResponseGuardrailsPromptS3 `json:"S3"`
S4 AIGatewayDeleteResponseGuardrailsPromptS4 `json:"S4"`
S5 AIGatewayDeleteResponseGuardrailsPromptS5 `json:"S5"`
S6 AIGatewayDeleteResponseGuardrailsPromptS6 `json:"S6"`
S7 AIGatewayDeleteResponseGuardrailsPromptS7 `json:"S7"`
S8 AIGatewayDeleteResponseGuardrailsPromptS8 `json:"S8"`
S9 AIGatewayDeleteResponseGuardrailsPromptS9 `json:"S9"`
JSON aiGatewayDeleteResponseGuardrailsPromptJSON `json:"-"`
}
func (*AIGatewayDeleteResponseGuardrailsPrompt) UnmarshalJSON ¶
func (r *AIGatewayDeleteResponseGuardrailsPrompt) UnmarshalJSON(data []byte) (err error)
type AIGatewayDeleteResponseGuardrailsPromptP1 ¶
type AIGatewayDeleteResponseGuardrailsPromptP1 string
const ( AIGatewayDeleteResponseGuardrailsPromptP1Flag AIGatewayDeleteResponseGuardrailsPromptP1 = "FLAG" AIGatewayDeleteResponseGuardrailsPromptP1Block AIGatewayDeleteResponseGuardrailsPromptP1 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsPromptP1) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsPromptP1) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsPromptS1 ¶
type AIGatewayDeleteResponseGuardrailsPromptS1 string
const ( AIGatewayDeleteResponseGuardrailsPromptS1Flag AIGatewayDeleteResponseGuardrailsPromptS1 = "FLAG" AIGatewayDeleteResponseGuardrailsPromptS1Block AIGatewayDeleteResponseGuardrailsPromptS1 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsPromptS1) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsPromptS1) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsPromptS2 ¶
type AIGatewayDeleteResponseGuardrailsPromptS2 string
const ( AIGatewayDeleteResponseGuardrailsPromptS2Flag AIGatewayDeleteResponseGuardrailsPromptS2 = "FLAG" AIGatewayDeleteResponseGuardrailsPromptS2Block AIGatewayDeleteResponseGuardrailsPromptS2 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsPromptS2) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsPromptS2) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsPromptS3 ¶
type AIGatewayDeleteResponseGuardrailsPromptS3 string
const ( AIGatewayDeleteResponseGuardrailsPromptS3Flag AIGatewayDeleteResponseGuardrailsPromptS3 = "FLAG" AIGatewayDeleteResponseGuardrailsPromptS3Block AIGatewayDeleteResponseGuardrailsPromptS3 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsPromptS3) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsPromptS3) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsPromptS4 ¶
type AIGatewayDeleteResponseGuardrailsPromptS4 string
const ( AIGatewayDeleteResponseGuardrailsPromptS4Flag AIGatewayDeleteResponseGuardrailsPromptS4 = "FLAG" AIGatewayDeleteResponseGuardrailsPromptS4Block AIGatewayDeleteResponseGuardrailsPromptS4 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsPromptS4) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsPromptS4) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsPromptS5 ¶
type AIGatewayDeleteResponseGuardrailsPromptS5 string
const ( AIGatewayDeleteResponseGuardrailsPromptS5Flag AIGatewayDeleteResponseGuardrailsPromptS5 = "FLAG" AIGatewayDeleteResponseGuardrailsPromptS5Block AIGatewayDeleteResponseGuardrailsPromptS5 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsPromptS5) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsPromptS5) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsPromptS6 ¶
type AIGatewayDeleteResponseGuardrailsPromptS6 string
const ( AIGatewayDeleteResponseGuardrailsPromptS6Flag AIGatewayDeleteResponseGuardrailsPromptS6 = "FLAG" AIGatewayDeleteResponseGuardrailsPromptS6Block AIGatewayDeleteResponseGuardrailsPromptS6 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsPromptS6) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsPromptS6) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsPromptS7 ¶
type AIGatewayDeleteResponseGuardrailsPromptS7 string
const ( AIGatewayDeleteResponseGuardrailsPromptS7Flag AIGatewayDeleteResponseGuardrailsPromptS7 = "FLAG" AIGatewayDeleteResponseGuardrailsPromptS7Block AIGatewayDeleteResponseGuardrailsPromptS7 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsPromptS7) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsPromptS7) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsPromptS8 ¶
type AIGatewayDeleteResponseGuardrailsPromptS8 string
const ( AIGatewayDeleteResponseGuardrailsPromptS8Flag AIGatewayDeleteResponseGuardrailsPromptS8 = "FLAG" AIGatewayDeleteResponseGuardrailsPromptS8Block AIGatewayDeleteResponseGuardrailsPromptS8 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsPromptS8) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsPromptS8) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsPromptS9 ¶
type AIGatewayDeleteResponseGuardrailsPromptS9 string
const ( AIGatewayDeleteResponseGuardrailsPromptS9Flag AIGatewayDeleteResponseGuardrailsPromptS9 = "FLAG" AIGatewayDeleteResponseGuardrailsPromptS9Block AIGatewayDeleteResponseGuardrailsPromptS9 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsPromptS9) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsPromptS9) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsPromptS10 ¶
type AIGatewayDeleteResponseGuardrailsPromptS10 string
const ( AIGatewayDeleteResponseGuardrailsPromptS10Flag AIGatewayDeleteResponseGuardrailsPromptS10 = "FLAG" AIGatewayDeleteResponseGuardrailsPromptS10Block AIGatewayDeleteResponseGuardrailsPromptS10 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsPromptS10) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsPromptS10) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsPromptS11 ¶
type AIGatewayDeleteResponseGuardrailsPromptS11 string
const ( AIGatewayDeleteResponseGuardrailsPromptS11Flag AIGatewayDeleteResponseGuardrailsPromptS11 = "FLAG" AIGatewayDeleteResponseGuardrailsPromptS11Block AIGatewayDeleteResponseGuardrailsPromptS11 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsPromptS11) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsPromptS11) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsPromptS12 ¶
type AIGatewayDeleteResponseGuardrailsPromptS12 string
const ( AIGatewayDeleteResponseGuardrailsPromptS12Flag AIGatewayDeleteResponseGuardrailsPromptS12 = "FLAG" AIGatewayDeleteResponseGuardrailsPromptS12Block AIGatewayDeleteResponseGuardrailsPromptS12 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsPromptS12) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsPromptS12) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsPromptS13 ¶
type AIGatewayDeleteResponseGuardrailsPromptS13 string
const ( AIGatewayDeleteResponseGuardrailsPromptS13Flag AIGatewayDeleteResponseGuardrailsPromptS13 = "FLAG" AIGatewayDeleteResponseGuardrailsPromptS13Block AIGatewayDeleteResponseGuardrailsPromptS13 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsPromptS13) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsPromptS13) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsResponse ¶
type AIGatewayDeleteResponseGuardrailsResponse struct {
P1 AIGatewayDeleteResponseGuardrailsResponseP1 `json:"P1"`
S1 AIGatewayDeleteResponseGuardrailsResponseS1 `json:"S1"`
S10 AIGatewayDeleteResponseGuardrailsResponseS10 `json:"S10"`
S11 AIGatewayDeleteResponseGuardrailsResponseS11 `json:"S11"`
S12 AIGatewayDeleteResponseGuardrailsResponseS12 `json:"S12"`
S13 AIGatewayDeleteResponseGuardrailsResponseS13 `json:"S13"`
S2 AIGatewayDeleteResponseGuardrailsResponseS2 `json:"S2"`
S3 AIGatewayDeleteResponseGuardrailsResponseS3 `json:"S3"`
S4 AIGatewayDeleteResponseGuardrailsResponseS4 `json:"S4"`
S5 AIGatewayDeleteResponseGuardrailsResponseS5 `json:"S5"`
S6 AIGatewayDeleteResponseGuardrailsResponseS6 `json:"S6"`
S7 AIGatewayDeleteResponseGuardrailsResponseS7 `json:"S7"`
S8 AIGatewayDeleteResponseGuardrailsResponseS8 `json:"S8"`
S9 AIGatewayDeleteResponseGuardrailsResponseS9 `json:"S9"`
JSON aiGatewayDeleteResponseGuardrailsResponseJSON `json:"-"`
}
func (*AIGatewayDeleteResponseGuardrailsResponse) UnmarshalJSON ¶
func (r *AIGatewayDeleteResponseGuardrailsResponse) UnmarshalJSON(data []byte) (err error)
type AIGatewayDeleteResponseGuardrailsResponseP1 ¶
type AIGatewayDeleteResponseGuardrailsResponseP1 string
const ( AIGatewayDeleteResponseGuardrailsResponseP1Flag AIGatewayDeleteResponseGuardrailsResponseP1 = "FLAG" AIGatewayDeleteResponseGuardrailsResponseP1Block AIGatewayDeleteResponseGuardrailsResponseP1 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsResponseP1) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsResponseP1) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsResponseS1 ¶
type AIGatewayDeleteResponseGuardrailsResponseS1 string
const ( AIGatewayDeleteResponseGuardrailsResponseS1Flag AIGatewayDeleteResponseGuardrailsResponseS1 = "FLAG" AIGatewayDeleteResponseGuardrailsResponseS1Block AIGatewayDeleteResponseGuardrailsResponseS1 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsResponseS1) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsResponseS1) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsResponseS2 ¶
type AIGatewayDeleteResponseGuardrailsResponseS2 string
const ( AIGatewayDeleteResponseGuardrailsResponseS2Flag AIGatewayDeleteResponseGuardrailsResponseS2 = "FLAG" AIGatewayDeleteResponseGuardrailsResponseS2Block AIGatewayDeleteResponseGuardrailsResponseS2 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsResponseS2) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsResponseS2) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsResponseS3 ¶
type AIGatewayDeleteResponseGuardrailsResponseS3 string
const ( AIGatewayDeleteResponseGuardrailsResponseS3Flag AIGatewayDeleteResponseGuardrailsResponseS3 = "FLAG" AIGatewayDeleteResponseGuardrailsResponseS3Block AIGatewayDeleteResponseGuardrailsResponseS3 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsResponseS3) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsResponseS3) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsResponseS4 ¶
type AIGatewayDeleteResponseGuardrailsResponseS4 string
const ( AIGatewayDeleteResponseGuardrailsResponseS4Flag AIGatewayDeleteResponseGuardrailsResponseS4 = "FLAG" AIGatewayDeleteResponseGuardrailsResponseS4Block AIGatewayDeleteResponseGuardrailsResponseS4 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsResponseS4) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsResponseS4) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsResponseS5 ¶
type AIGatewayDeleteResponseGuardrailsResponseS5 string
const ( AIGatewayDeleteResponseGuardrailsResponseS5Flag AIGatewayDeleteResponseGuardrailsResponseS5 = "FLAG" AIGatewayDeleteResponseGuardrailsResponseS5Block AIGatewayDeleteResponseGuardrailsResponseS5 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsResponseS5) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsResponseS5) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsResponseS6 ¶
type AIGatewayDeleteResponseGuardrailsResponseS6 string
const ( AIGatewayDeleteResponseGuardrailsResponseS6Flag AIGatewayDeleteResponseGuardrailsResponseS6 = "FLAG" AIGatewayDeleteResponseGuardrailsResponseS6Block AIGatewayDeleteResponseGuardrailsResponseS6 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsResponseS6) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsResponseS6) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsResponseS7 ¶
type AIGatewayDeleteResponseGuardrailsResponseS7 string
const ( AIGatewayDeleteResponseGuardrailsResponseS7Flag AIGatewayDeleteResponseGuardrailsResponseS7 = "FLAG" AIGatewayDeleteResponseGuardrailsResponseS7Block AIGatewayDeleteResponseGuardrailsResponseS7 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsResponseS7) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsResponseS7) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsResponseS8 ¶
type AIGatewayDeleteResponseGuardrailsResponseS8 string
const ( AIGatewayDeleteResponseGuardrailsResponseS8Flag AIGatewayDeleteResponseGuardrailsResponseS8 = "FLAG" AIGatewayDeleteResponseGuardrailsResponseS8Block AIGatewayDeleteResponseGuardrailsResponseS8 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsResponseS8) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsResponseS8) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsResponseS9 ¶
type AIGatewayDeleteResponseGuardrailsResponseS9 string
const ( AIGatewayDeleteResponseGuardrailsResponseS9Flag AIGatewayDeleteResponseGuardrailsResponseS9 = "FLAG" AIGatewayDeleteResponseGuardrailsResponseS9Block AIGatewayDeleteResponseGuardrailsResponseS9 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsResponseS9) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsResponseS9) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsResponseS10 ¶
type AIGatewayDeleteResponseGuardrailsResponseS10 string
const ( AIGatewayDeleteResponseGuardrailsResponseS10Flag AIGatewayDeleteResponseGuardrailsResponseS10 = "FLAG" AIGatewayDeleteResponseGuardrailsResponseS10Block AIGatewayDeleteResponseGuardrailsResponseS10 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsResponseS10) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsResponseS10) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsResponseS11 ¶
type AIGatewayDeleteResponseGuardrailsResponseS11 string
const ( AIGatewayDeleteResponseGuardrailsResponseS11Flag AIGatewayDeleteResponseGuardrailsResponseS11 = "FLAG" AIGatewayDeleteResponseGuardrailsResponseS11Block AIGatewayDeleteResponseGuardrailsResponseS11 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsResponseS11) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsResponseS11) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsResponseS12 ¶
type AIGatewayDeleteResponseGuardrailsResponseS12 string
const ( AIGatewayDeleteResponseGuardrailsResponseS12Flag AIGatewayDeleteResponseGuardrailsResponseS12 = "FLAG" AIGatewayDeleteResponseGuardrailsResponseS12Block AIGatewayDeleteResponseGuardrailsResponseS12 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsResponseS12) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsResponseS12) IsKnown() bool
type AIGatewayDeleteResponseGuardrailsResponseS13 ¶
type AIGatewayDeleteResponseGuardrailsResponseS13 string
const ( AIGatewayDeleteResponseGuardrailsResponseS13Flag AIGatewayDeleteResponseGuardrailsResponseS13 = "FLAG" AIGatewayDeleteResponseGuardrailsResponseS13Block AIGatewayDeleteResponseGuardrailsResponseS13 = "BLOCK" )
func (AIGatewayDeleteResponseGuardrailsResponseS13) IsKnown ¶
func (r AIGatewayDeleteResponseGuardrailsResponseS13) IsKnown() bool
type AIGatewayDeleteResponseLogManagementStrategy ¶
type AIGatewayDeleteResponseLogManagementStrategy string
const ( AIGatewayDeleteResponseLogManagementStrategyStopInserting AIGatewayDeleteResponseLogManagementStrategy = "STOP_INSERTING" AIGatewayDeleteResponseLogManagementStrategyDeleteOldest AIGatewayDeleteResponseLogManagementStrategy = "DELETE_OLDEST" )
func (AIGatewayDeleteResponseLogManagementStrategy) IsKnown ¶
func (r AIGatewayDeleteResponseLogManagementStrategy) IsKnown() bool
type AIGatewayDeleteResponseOtel ¶
type AIGatewayDeleteResponseOtel struct {
Authorization string `json:"authorization" api:"required"`
Headers map[string]string `json:"headers" api:"required"`
URL string `json:"url" api:"required" format:"uri"`
ContentType AIGatewayDeleteResponseOtelContentType `json:"content_type"`
JSON aiGatewayDeleteResponseOtelJSON `json:"-"`
}
func (*AIGatewayDeleteResponseOtel) UnmarshalJSON ¶
func (r *AIGatewayDeleteResponseOtel) UnmarshalJSON(data []byte) (err error)
type AIGatewayDeleteResponseOtelContentType ¶
type AIGatewayDeleteResponseOtelContentType string
const ( AIGatewayDeleteResponseOtelContentTypeJson AIGatewayDeleteResponseOtelContentType = "json" AIGatewayDeleteResponseOtelContentTypeProtobuf AIGatewayDeleteResponseOtelContentType = "protobuf" )
func (AIGatewayDeleteResponseOtelContentType) IsKnown ¶
func (r AIGatewayDeleteResponseOtelContentType) IsKnown() bool
type AIGatewayDeleteResponseRateLimitingTechnique ¶
type AIGatewayDeleteResponseRateLimitingTechnique string
const ( AIGatewayDeleteResponseRateLimitingTechniqueFixed AIGatewayDeleteResponseRateLimitingTechnique = "fixed" AIGatewayDeleteResponseRateLimitingTechniqueSliding AIGatewayDeleteResponseRateLimitingTechnique = "sliding" )
func (AIGatewayDeleteResponseRateLimitingTechnique) IsKnown ¶
func (r AIGatewayDeleteResponseRateLimitingTechnique) IsKnown() bool
type AIGatewayDeleteResponseRetryBackoff ¶
type AIGatewayDeleteResponseRetryBackoff string
Backoff strategy for retry delays
const ( AIGatewayDeleteResponseRetryBackoffConstant AIGatewayDeleteResponseRetryBackoff = "constant" AIGatewayDeleteResponseRetryBackoffLinear AIGatewayDeleteResponseRetryBackoff = "linear" AIGatewayDeleteResponseRetryBackoffExponential AIGatewayDeleteResponseRetryBackoff = "exponential" )
func (AIGatewayDeleteResponseRetryBackoff) IsKnown ¶
func (r AIGatewayDeleteResponseRetryBackoff) IsKnown() bool
type AIGatewayDeleteResponseStripe ¶
type AIGatewayDeleteResponseStripe struct {
Authorization string `json:"authorization" api:"required"`
UsageEvents []AIGatewayDeleteResponseStripeUsageEvent `json:"usage_events" api:"required"`
JSON aiGatewayDeleteResponseStripeJSON `json:"-"`
}
func (*AIGatewayDeleteResponseStripe) UnmarshalJSON ¶
func (r *AIGatewayDeleteResponseStripe) UnmarshalJSON(data []byte) (err error)
type AIGatewayDeleteResponseStripeUsageEvent ¶
type AIGatewayDeleteResponseStripeUsageEvent struct {
Payload string `json:"payload" api:"required"`
JSON aiGatewayDeleteResponseStripeUsageEventJSON `json:"-"`
}
func (*AIGatewayDeleteResponseStripeUsageEvent) UnmarshalJSON ¶
func (r *AIGatewayDeleteResponseStripeUsageEvent) UnmarshalJSON(data []byte) (err error)
type AIGatewayDeleteResponseWorkersAIBillingMode ¶
type AIGatewayDeleteResponseWorkersAIBillingMode string
Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported.
const (
AIGatewayDeleteResponseWorkersAIBillingModePostpaid AIGatewayDeleteResponseWorkersAIBillingMode = "postpaid"
)
func (AIGatewayDeleteResponseWorkersAIBillingMode) IsKnown ¶
func (r AIGatewayDeleteResponseWorkersAIBillingMode) IsKnown() bool
type AIGatewayGetParams ¶
type AIGatewayGetResponse ¶
type AIGatewayGetResponse struct {
// gateway id
ID string `json:"id" api:"required"`
CacheInvalidateOnUpdate bool `json:"cache_invalidate_on_update" api:"required"`
CacheTTL int64 `json:"cache_ttl" api:"required,nullable"`
CollectLogs bool `json:"collect_logs" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
RateLimitingInterval int64 `json:"rate_limiting_interval" api:"required,nullable"`
RateLimitingLimit int64 `json:"rate_limiting_limit" api:"required,nullable"`
Authentication bool `json:"authentication"`
DLP AIGatewayGetResponseDLP `json:"dlp"`
Guardrails AIGatewayGetResponseGuardrails `json:"guardrails" api:"nullable"`
IsDefault bool `json:"is_default"`
LogManagement int64 `json:"log_management" api:"nullable"`
LogManagementStrategy AIGatewayGetResponseLogManagementStrategy `json:"log_management_strategy" api:"nullable"`
Logpush bool `json:"logpush"`
LogpushPublicKey string `json:"logpush_public_key" api:"nullable"`
Otel []AIGatewayGetResponseOtel `json:"otel" api:"nullable"`
RateLimitingTechnique AIGatewayGetResponseRateLimitingTechnique `json:"rate_limiting_technique" api:"nullable"`
// Backoff strategy for retry delays
RetryBackoff AIGatewayGetResponseRetryBackoff `json:"retry_backoff" api:"nullable"`
// Delay between retry attempts in milliseconds (0-5000)
RetryDelay int64 `json:"retry_delay" api:"nullable"`
// Maximum number of retry attempts for failed requests (1-5)
RetryMaxAttempts int64 `json:"retry_max_attempts" api:"nullable"`
StoreID string `json:"store_id" api:"nullable"`
Stripe AIGatewayGetResponseStripe `json:"stripe" api:"nullable"`
// Controls how Workers AI inference calls routed through this gateway are billed.
// Only 'postpaid' is currently supported.
WorkersAIBillingMode AIGatewayGetResponseWorkersAIBillingMode `json:"workers_ai_billing_mode"`
Zdr bool `json:"zdr"`
JSON aiGatewayGetResponseJSON `json:"-"`
}
func (*AIGatewayGetResponse) UnmarshalJSON ¶
func (r *AIGatewayGetResponse) UnmarshalJSON(data []byte) (err error)
type AIGatewayGetResponseDLP ¶
type AIGatewayGetResponseDLP struct {
Enabled bool `json:"enabled" api:"required"`
Action AIGatewayGetResponseDLPAction `json:"action"`
// This field can have the runtime type of [[]AIGatewayGetResponseDLPObjectPolicy].
Policies interface{} `json:"policies"`
// This field can have the runtime type of [[]string].
Profiles interface{} `json:"profiles"`
JSON aiGatewayGetResponseDLPJSON `json:"-"`
// contains filtered or unexported fields
}
func (AIGatewayGetResponseDLP) AsUnion ¶
func (r AIGatewayGetResponseDLP) AsUnion() AIGatewayGetResponseDLPUnion
AsUnion returns a AIGatewayGetResponseDLPUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are AIGatewayGetResponseDLPObject, AIGatewayGetResponseDLPObject.
func (*AIGatewayGetResponseDLP) UnmarshalJSON ¶
func (r *AIGatewayGetResponseDLP) UnmarshalJSON(data []byte) (err error)
type AIGatewayGetResponseDLPAction ¶
type AIGatewayGetResponseDLPAction string
const ( AIGatewayGetResponseDLPActionBlock AIGatewayGetResponseDLPAction = "BLOCK" AIGatewayGetResponseDLPActionFlag AIGatewayGetResponseDLPAction = "FLAG" )
func (AIGatewayGetResponseDLPAction) IsKnown ¶
func (r AIGatewayGetResponseDLPAction) IsKnown() bool
type AIGatewayGetResponseDLPObject ¶
type AIGatewayGetResponseDLPObject struct {
Action AIGatewayGetResponseDLPObjectAction `json:"action" api:"required"`
Enabled bool `json:"enabled" api:"required"`
Profiles []string `json:"profiles" api:"required"`
JSON aiGatewayGetResponseDLPObjectJSON `json:"-"`
}
func (*AIGatewayGetResponseDLPObject) UnmarshalJSON ¶
func (r *AIGatewayGetResponseDLPObject) UnmarshalJSON(data []byte) (err error)
type AIGatewayGetResponseDLPObjectAction ¶
type AIGatewayGetResponseDLPObjectAction string
const ( AIGatewayGetResponseDLPObjectActionBlock AIGatewayGetResponseDLPObjectAction = "BLOCK" AIGatewayGetResponseDLPObjectActionFlag AIGatewayGetResponseDLPObjectAction = "FLAG" )
func (AIGatewayGetResponseDLPObjectAction) IsKnown ¶
func (r AIGatewayGetResponseDLPObjectAction) IsKnown() bool
type AIGatewayGetResponseDLPUnion ¶
type AIGatewayGetResponseDLPUnion interface {
// contains filtered or unexported methods
}
Union satisfied by AIGatewayGetResponseDLPObject or AIGatewayGetResponseDLPObject.
type AIGatewayGetResponseEnvelope ¶
type AIGatewayGetResponseEnvelope struct {
Result AIGatewayGetResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON aiGatewayGetResponseEnvelopeJSON `json:"-"`
}
func (*AIGatewayGetResponseEnvelope) UnmarshalJSON ¶
func (r *AIGatewayGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AIGatewayGetResponseGuardrails ¶
type AIGatewayGetResponseGuardrails struct {
Prompt AIGatewayGetResponseGuardrailsPrompt `json:"prompt" api:"required"`
Response AIGatewayGetResponseGuardrailsResponse `json:"response" api:"required"`
JSON aiGatewayGetResponseGuardrailsJSON `json:"-"`
}
func (*AIGatewayGetResponseGuardrails) UnmarshalJSON ¶
func (r *AIGatewayGetResponseGuardrails) UnmarshalJSON(data []byte) (err error)
type AIGatewayGetResponseGuardrailsPrompt ¶
type AIGatewayGetResponseGuardrailsPrompt struct {
P1 AIGatewayGetResponseGuardrailsPromptP1 `json:"P1"`
S1 AIGatewayGetResponseGuardrailsPromptS1 `json:"S1"`
S10 AIGatewayGetResponseGuardrailsPromptS10 `json:"S10"`
S11 AIGatewayGetResponseGuardrailsPromptS11 `json:"S11"`
S12 AIGatewayGetResponseGuardrailsPromptS12 `json:"S12"`
S13 AIGatewayGetResponseGuardrailsPromptS13 `json:"S13"`
S2 AIGatewayGetResponseGuardrailsPromptS2 `json:"S2"`
S3 AIGatewayGetResponseGuardrailsPromptS3 `json:"S3"`
S4 AIGatewayGetResponseGuardrailsPromptS4 `json:"S4"`
S5 AIGatewayGetResponseGuardrailsPromptS5 `json:"S5"`
S6 AIGatewayGetResponseGuardrailsPromptS6 `json:"S6"`
S7 AIGatewayGetResponseGuardrailsPromptS7 `json:"S7"`
S8 AIGatewayGetResponseGuardrailsPromptS8 `json:"S8"`
S9 AIGatewayGetResponseGuardrailsPromptS9 `json:"S9"`
JSON aiGatewayGetResponseGuardrailsPromptJSON `json:"-"`
}
func (*AIGatewayGetResponseGuardrailsPrompt) UnmarshalJSON ¶
func (r *AIGatewayGetResponseGuardrailsPrompt) UnmarshalJSON(data []byte) (err error)
type AIGatewayGetResponseGuardrailsPromptP1 ¶
type AIGatewayGetResponseGuardrailsPromptP1 string
const ( AIGatewayGetResponseGuardrailsPromptP1Flag AIGatewayGetResponseGuardrailsPromptP1 = "FLAG" AIGatewayGetResponseGuardrailsPromptP1Block AIGatewayGetResponseGuardrailsPromptP1 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsPromptP1) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsPromptP1) IsKnown() bool
type AIGatewayGetResponseGuardrailsPromptS1 ¶
type AIGatewayGetResponseGuardrailsPromptS1 string
const ( AIGatewayGetResponseGuardrailsPromptS1Flag AIGatewayGetResponseGuardrailsPromptS1 = "FLAG" AIGatewayGetResponseGuardrailsPromptS1Block AIGatewayGetResponseGuardrailsPromptS1 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsPromptS1) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsPromptS1) IsKnown() bool
type AIGatewayGetResponseGuardrailsPromptS2 ¶
type AIGatewayGetResponseGuardrailsPromptS2 string
const ( AIGatewayGetResponseGuardrailsPromptS2Flag AIGatewayGetResponseGuardrailsPromptS2 = "FLAG" AIGatewayGetResponseGuardrailsPromptS2Block AIGatewayGetResponseGuardrailsPromptS2 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsPromptS2) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsPromptS2) IsKnown() bool
type AIGatewayGetResponseGuardrailsPromptS3 ¶
type AIGatewayGetResponseGuardrailsPromptS3 string
const ( AIGatewayGetResponseGuardrailsPromptS3Flag AIGatewayGetResponseGuardrailsPromptS3 = "FLAG" AIGatewayGetResponseGuardrailsPromptS3Block AIGatewayGetResponseGuardrailsPromptS3 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsPromptS3) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsPromptS3) IsKnown() bool
type AIGatewayGetResponseGuardrailsPromptS4 ¶
type AIGatewayGetResponseGuardrailsPromptS4 string
const ( AIGatewayGetResponseGuardrailsPromptS4Flag AIGatewayGetResponseGuardrailsPromptS4 = "FLAG" AIGatewayGetResponseGuardrailsPromptS4Block AIGatewayGetResponseGuardrailsPromptS4 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsPromptS4) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsPromptS4) IsKnown() bool
type AIGatewayGetResponseGuardrailsPromptS5 ¶
type AIGatewayGetResponseGuardrailsPromptS5 string
const ( AIGatewayGetResponseGuardrailsPromptS5Flag AIGatewayGetResponseGuardrailsPromptS5 = "FLAG" AIGatewayGetResponseGuardrailsPromptS5Block AIGatewayGetResponseGuardrailsPromptS5 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsPromptS5) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsPromptS5) IsKnown() bool
type AIGatewayGetResponseGuardrailsPromptS6 ¶
type AIGatewayGetResponseGuardrailsPromptS6 string
const ( AIGatewayGetResponseGuardrailsPromptS6Flag AIGatewayGetResponseGuardrailsPromptS6 = "FLAG" AIGatewayGetResponseGuardrailsPromptS6Block AIGatewayGetResponseGuardrailsPromptS6 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsPromptS6) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsPromptS6) IsKnown() bool
type AIGatewayGetResponseGuardrailsPromptS7 ¶
type AIGatewayGetResponseGuardrailsPromptS7 string
const ( AIGatewayGetResponseGuardrailsPromptS7Flag AIGatewayGetResponseGuardrailsPromptS7 = "FLAG" AIGatewayGetResponseGuardrailsPromptS7Block AIGatewayGetResponseGuardrailsPromptS7 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsPromptS7) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsPromptS7) IsKnown() bool
type AIGatewayGetResponseGuardrailsPromptS8 ¶
type AIGatewayGetResponseGuardrailsPromptS8 string
const ( AIGatewayGetResponseGuardrailsPromptS8Flag AIGatewayGetResponseGuardrailsPromptS8 = "FLAG" AIGatewayGetResponseGuardrailsPromptS8Block AIGatewayGetResponseGuardrailsPromptS8 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsPromptS8) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsPromptS8) IsKnown() bool
type AIGatewayGetResponseGuardrailsPromptS9 ¶
type AIGatewayGetResponseGuardrailsPromptS9 string
const ( AIGatewayGetResponseGuardrailsPromptS9Flag AIGatewayGetResponseGuardrailsPromptS9 = "FLAG" AIGatewayGetResponseGuardrailsPromptS9Block AIGatewayGetResponseGuardrailsPromptS9 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsPromptS9) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsPromptS9) IsKnown() bool
type AIGatewayGetResponseGuardrailsPromptS10 ¶
type AIGatewayGetResponseGuardrailsPromptS10 string
const ( AIGatewayGetResponseGuardrailsPromptS10Flag AIGatewayGetResponseGuardrailsPromptS10 = "FLAG" AIGatewayGetResponseGuardrailsPromptS10Block AIGatewayGetResponseGuardrailsPromptS10 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsPromptS10) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsPromptS10) IsKnown() bool
type AIGatewayGetResponseGuardrailsPromptS11 ¶
type AIGatewayGetResponseGuardrailsPromptS11 string
const ( AIGatewayGetResponseGuardrailsPromptS11Flag AIGatewayGetResponseGuardrailsPromptS11 = "FLAG" AIGatewayGetResponseGuardrailsPromptS11Block AIGatewayGetResponseGuardrailsPromptS11 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsPromptS11) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsPromptS11) IsKnown() bool
type AIGatewayGetResponseGuardrailsPromptS12 ¶
type AIGatewayGetResponseGuardrailsPromptS12 string
const ( AIGatewayGetResponseGuardrailsPromptS12Flag AIGatewayGetResponseGuardrailsPromptS12 = "FLAG" AIGatewayGetResponseGuardrailsPromptS12Block AIGatewayGetResponseGuardrailsPromptS12 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsPromptS12) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsPromptS12) IsKnown() bool
type AIGatewayGetResponseGuardrailsPromptS13 ¶
type AIGatewayGetResponseGuardrailsPromptS13 string
const ( AIGatewayGetResponseGuardrailsPromptS13Flag AIGatewayGetResponseGuardrailsPromptS13 = "FLAG" AIGatewayGetResponseGuardrailsPromptS13Block AIGatewayGetResponseGuardrailsPromptS13 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsPromptS13) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsPromptS13) IsKnown() bool
type AIGatewayGetResponseGuardrailsResponse ¶
type AIGatewayGetResponseGuardrailsResponse struct {
P1 AIGatewayGetResponseGuardrailsResponseP1 `json:"P1"`
S1 AIGatewayGetResponseGuardrailsResponseS1 `json:"S1"`
S10 AIGatewayGetResponseGuardrailsResponseS10 `json:"S10"`
S11 AIGatewayGetResponseGuardrailsResponseS11 `json:"S11"`
S12 AIGatewayGetResponseGuardrailsResponseS12 `json:"S12"`
S13 AIGatewayGetResponseGuardrailsResponseS13 `json:"S13"`
S2 AIGatewayGetResponseGuardrailsResponseS2 `json:"S2"`
S3 AIGatewayGetResponseGuardrailsResponseS3 `json:"S3"`
S4 AIGatewayGetResponseGuardrailsResponseS4 `json:"S4"`
S5 AIGatewayGetResponseGuardrailsResponseS5 `json:"S5"`
S6 AIGatewayGetResponseGuardrailsResponseS6 `json:"S6"`
S7 AIGatewayGetResponseGuardrailsResponseS7 `json:"S7"`
S8 AIGatewayGetResponseGuardrailsResponseS8 `json:"S8"`
S9 AIGatewayGetResponseGuardrailsResponseS9 `json:"S9"`
JSON aiGatewayGetResponseGuardrailsResponseJSON `json:"-"`
}
func (*AIGatewayGetResponseGuardrailsResponse) UnmarshalJSON ¶
func (r *AIGatewayGetResponseGuardrailsResponse) UnmarshalJSON(data []byte) (err error)
type AIGatewayGetResponseGuardrailsResponseP1 ¶
type AIGatewayGetResponseGuardrailsResponseP1 string
const ( AIGatewayGetResponseGuardrailsResponseP1Flag AIGatewayGetResponseGuardrailsResponseP1 = "FLAG" AIGatewayGetResponseGuardrailsResponseP1Block AIGatewayGetResponseGuardrailsResponseP1 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsResponseP1) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsResponseP1) IsKnown() bool
type AIGatewayGetResponseGuardrailsResponseS1 ¶
type AIGatewayGetResponseGuardrailsResponseS1 string
const ( AIGatewayGetResponseGuardrailsResponseS1Flag AIGatewayGetResponseGuardrailsResponseS1 = "FLAG" AIGatewayGetResponseGuardrailsResponseS1Block AIGatewayGetResponseGuardrailsResponseS1 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsResponseS1) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsResponseS1) IsKnown() bool
type AIGatewayGetResponseGuardrailsResponseS2 ¶
type AIGatewayGetResponseGuardrailsResponseS2 string
const ( AIGatewayGetResponseGuardrailsResponseS2Flag AIGatewayGetResponseGuardrailsResponseS2 = "FLAG" AIGatewayGetResponseGuardrailsResponseS2Block AIGatewayGetResponseGuardrailsResponseS2 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsResponseS2) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsResponseS2) IsKnown() bool
type AIGatewayGetResponseGuardrailsResponseS3 ¶
type AIGatewayGetResponseGuardrailsResponseS3 string
const ( AIGatewayGetResponseGuardrailsResponseS3Flag AIGatewayGetResponseGuardrailsResponseS3 = "FLAG" AIGatewayGetResponseGuardrailsResponseS3Block AIGatewayGetResponseGuardrailsResponseS3 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsResponseS3) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsResponseS3) IsKnown() bool
type AIGatewayGetResponseGuardrailsResponseS4 ¶
type AIGatewayGetResponseGuardrailsResponseS4 string
const ( AIGatewayGetResponseGuardrailsResponseS4Flag AIGatewayGetResponseGuardrailsResponseS4 = "FLAG" AIGatewayGetResponseGuardrailsResponseS4Block AIGatewayGetResponseGuardrailsResponseS4 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsResponseS4) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsResponseS4) IsKnown() bool
type AIGatewayGetResponseGuardrailsResponseS5 ¶
type AIGatewayGetResponseGuardrailsResponseS5 string
const ( AIGatewayGetResponseGuardrailsResponseS5Flag AIGatewayGetResponseGuardrailsResponseS5 = "FLAG" AIGatewayGetResponseGuardrailsResponseS5Block AIGatewayGetResponseGuardrailsResponseS5 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsResponseS5) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsResponseS5) IsKnown() bool
type AIGatewayGetResponseGuardrailsResponseS6 ¶
type AIGatewayGetResponseGuardrailsResponseS6 string
const ( AIGatewayGetResponseGuardrailsResponseS6Flag AIGatewayGetResponseGuardrailsResponseS6 = "FLAG" AIGatewayGetResponseGuardrailsResponseS6Block AIGatewayGetResponseGuardrailsResponseS6 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsResponseS6) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsResponseS6) IsKnown() bool
type AIGatewayGetResponseGuardrailsResponseS7 ¶
type AIGatewayGetResponseGuardrailsResponseS7 string
const ( AIGatewayGetResponseGuardrailsResponseS7Flag AIGatewayGetResponseGuardrailsResponseS7 = "FLAG" AIGatewayGetResponseGuardrailsResponseS7Block AIGatewayGetResponseGuardrailsResponseS7 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsResponseS7) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsResponseS7) IsKnown() bool
type AIGatewayGetResponseGuardrailsResponseS8 ¶
type AIGatewayGetResponseGuardrailsResponseS8 string
const ( AIGatewayGetResponseGuardrailsResponseS8Flag AIGatewayGetResponseGuardrailsResponseS8 = "FLAG" AIGatewayGetResponseGuardrailsResponseS8Block AIGatewayGetResponseGuardrailsResponseS8 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsResponseS8) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsResponseS8) IsKnown() bool
type AIGatewayGetResponseGuardrailsResponseS9 ¶
type AIGatewayGetResponseGuardrailsResponseS9 string
const ( AIGatewayGetResponseGuardrailsResponseS9Flag AIGatewayGetResponseGuardrailsResponseS9 = "FLAG" AIGatewayGetResponseGuardrailsResponseS9Block AIGatewayGetResponseGuardrailsResponseS9 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsResponseS9) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsResponseS9) IsKnown() bool
type AIGatewayGetResponseGuardrailsResponseS10 ¶
type AIGatewayGetResponseGuardrailsResponseS10 string
const ( AIGatewayGetResponseGuardrailsResponseS10Flag AIGatewayGetResponseGuardrailsResponseS10 = "FLAG" AIGatewayGetResponseGuardrailsResponseS10Block AIGatewayGetResponseGuardrailsResponseS10 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsResponseS10) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsResponseS10) IsKnown() bool
type AIGatewayGetResponseGuardrailsResponseS11 ¶
type AIGatewayGetResponseGuardrailsResponseS11 string
const ( AIGatewayGetResponseGuardrailsResponseS11Flag AIGatewayGetResponseGuardrailsResponseS11 = "FLAG" AIGatewayGetResponseGuardrailsResponseS11Block AIGatewayGetResponseGuardrailsResponseS11 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsResponseS11) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsResponseS11) IsKnown() bool
type AIGatewayGetResponseGuardrailsResponseS12 ¶
type AIGatewayGetResponseGuardrailsResponseS12 string
const ( AIGatewayGetResponseGuardrailsResponseS12Flag AIGatewayGetResponseGuardrailsResponseS12 = "FLAG" AIGatewayGetResponseGuardrailsResponseS12Block AIGatewayGetResponseGuardrailsResponseS12 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsResponseS12) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsResponseS12) IsKnown() bool
type AIGatewayGetResponseGuardrailsResponseS13 ¶
type AIGatewayGetResponseGuardrailsResponseS13 string
const ( AIGatewayGetResponseGuardrailsResponseS13Flag AIGatewayGetResponseGuardrailsResponseS13 = "FLAG" AIGatewayGetResponseGuardrailsResponseS13Block AIGatewayGetResponseGuardrailsResponseS13 = "BLOCK" )
func (AIGatewayGetResponseGuardrailsResponseS13) IsKnown ¶
func (r AIGatewayGetResponseGuardrailsResponseS13) IsKnown() bool
type AIGatewayGetResponseLogManagementStrategy ¶
type AIGatewayGetResponseLogManagementStrategy string
const ( AIGatewayGetResponseLogManagementStrategyStopInserting AIGatewayGetResponseLogManagementStrategy = "STOP_INSERTING" AIGatewayGetResponseLogManagementStrategyDeleteOldest AIGatewayGetResponseLogManagementStrategy = "DELETE_OLDEST" )
func (AIGatewayGetResponseLogManagementStrategy) IsKnown ¶
func (r AIGatewayGetResponseLogManagementStrategy) IsKnown() bool
type AIGatewayGetResponseOtel ¶
type AIGatewayGetResponseOtel struct {
Authorization string `json:"authorization" api:"required"`
Headers map[string]string `json:"headers" api:"required"`
URL string `json:"url" api:"required" format:"uri"`
ContentType AIGatewayGetResponseOtelContentType `json:"content_type"`
JSON aiGatewayGetResponseOtelJSON `json:"-"`
}
func (*AIGatewayGetResponseOtel) UnmarshalJSON ¶
func (r *AIGatewayGetResponseOtel) UnmarshalJSON(data []byte) (err error)
type AIGatewayGetResponseOtelContentType ¶
type AIGatewayGetResponseOtelContentType string
const ( AIGatewayGetResponseOtelContentTypeJson AIGatewayGetResponseOtelContentType = "json" AIGatewayGetResponseOtelContentTypeProtobuf AIGatewayGetResponseOtelContentType = "protobuf" )
func (AIGatewayGetResponseOtelContentType) IsKnown ¶
func (r AIGatewayGetResponseOtelContentType) IsKnown() bool
type AIGatewayGetResponseRateLimitingTechnique ¶
type AIGatewayGetResponseRateLimitingTechnique string
const ( AIGatewayGetResponseRateLimitingTechniqueFixed AIGatewayGetResponseRateLimitingTechnique = "fixed" AIGatewayGetResponseRateLimitingTechniqueSliding AIGatewayGetResponseRateLimitingTechnique = "sliding" )
func (AIGatewayGetResponseRateLimitingTechnique) IsKnown ¶
func (r AIGatewayGetResponseRateLimitingTechnique) IsKnown() bool
type AIGatewayGetResponseRetryBackoff ¶
type AIGatewayGetResponseRetryBackoff string
Backoff strategy for retry delays
const ( AIGatewayGetResponseRetryBackoffConstant AIGatewayGetResponseRetryBackoff = "constant" AIGatewayGetResponseRetryBackoffLinear AIGatewayGetResponseRetryBackoff = "linear" AIGatewayGetResponseRetryBackoffExponential AIGatewayGetResponseRetryBackoff = "exponential" )
func (AIGatewayGetResponseRetryBackoff) IsKnown ¶
func (r AIGatewayGetResponseRetryBackoff) IsKnown() bool
type AIGatewayGetResponseStripe ¶
type AIGatewayGetResponseStripe struct {
Authorization string `json:"authorization" api:"required"`
UsageEvents []AIGatewayGetResponseStripeUsageEvent `json:"usage_events" api:"required"`
JSON aiGatewayGetResponseStripeJSON `json:"-"`
}
func (*AIGatewayGetResponseStripe) UnmarshalJSON ¶
func (r *AIGatewayGetResponseStripe) UnmarshalJSON(data []byte) (err error)
type AIGatewayGetResponseStripeUsageEvent ¶
type AIGatewayGetResponseStripeUsageEvent struct {
Payload string `json:"payload" api:"required"`
JSON aiGatewayGetResponseStripeUsageEventJSON `json:"-"`
}
func (*AIGatewayGetResponseStripeUsageEvent) UnmarshalJSON ¶
func (r *AIGatewayGetResponseStripeUsageEvent) UnmarshalJSON(data []byte) (err error)
type AIGatewayGetResponseWorkersAIBillingMode ¶
type AIGatewayGetResponseWorkersAIBillingMode string
Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported.
const (
AIGatewayGetResponseWorkersAIBillingModePostpaid AIGatewayGetResponseWorkersAIBillingMode = "postpaid"
)
func (AIGatewayGetResponseWorkersAIBillingMode) IsKnown ¶
func (r AIGatewayGetResponseWorkersAIBillingMode) IsKnown() bool
type AIGatewayListParams ¶
type AIGatewayListParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
Page param.Field[int64] `query:"page"`
PerPage param.Field[int64] `query:"per_page"`
// Search by id
Search param.Field[string] `query:"search"`
}
func (AIGatewayListParams) URLQuery ¶
func (r AIGatewayListParams) URLQuery() (v url.Values)
URLQuery serializes AIGatewayListParams's query parameters as `url.Values`.
type AIGatewayListResponse ¶
type AIGatewayListResponse struct {
// gateway id
ID string `json:"id" api:"required"`
CacheInvalidateOnUpdate bool `json:"cache_invalidate_on_update" api:"required"`
CacheTTL int64 `json:"cache_ttl" api:"required,nullable"`
CollectLogs bool `json:"collect_logs" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
RateLimitingInterval int64 `json:"rate_limiting_interval" api:"required,nullable"`
RateLimitingLimit int64 `json:"rate_limiting_limit" api:"required,nullable"`
Authentication bool `json:"authentication"`
DLP AIGatewayListResponseDLP `json:"dlp"`
Guardrails AIGatewayListResponseGuardrails `json:"guardrails" api:"nullable"`
IsDefault bool `json:"is_default"`
LogManagement int64 `json:"log_management" api:"nullable"`
LogManagementStrategy AIGatewayListResponseLogManagementStrategy `json:"log_management_strategy" api:"nullable"`
Logpush bool `json:"logpush"`
LogpushPublicKey string `json:"logpush_public_key" api:"nullable"`
Otel []AIGatewayListResponseOtel `json:"otel" api:"nullable"`
RateLimitingTechnique AIGatewayListResponseRateLimitingTechnique `json:"rate_limiting_technique" api:"nullable"`
// Backoff strategy for retry delays
RetryBackoff AIGatewayListResponseRetryBackoff `json:"retry_backoff" api:"nullable"`
// Delay between retry attempts in milliseconds (0-5000)
RetryDelay int64 `json:"retry_delay" api:"nullable"`
// Maximum number of retry attempts for failed requests (1-5)
RetryMaxAttempts int64 `json:"retry_max_attempts" api:"nullable"`
StoreID string `json:"store_id" api:"nullable"`
Stripe AIGatewayListResponseStripe `json:"stripe" api:"nullable"`
// Controls how Workers AI inference calls routed through this gateway are billed.
// Only 'postpaid' is currently supported.
WorkersAIBillingMode AIGatewayListResponseWorkersAIBillingMode `json:"workers_ai_billing_mode"`
Zdr bool `json:"zdr"`
JSON aiGatewayListResponseJSON `json:"-"`
}
func (*AIGatewayListResponse) UnmarshalJSON ¶
func (r *AIGatewayListResponse) UnmarshalJSON(data []byte) (err error)
type AIGatewayListResponseDLP ¶
type AIGatewayListResponseDLP struct {
Enabled bool `json:"enabled" api:"required"`
Action AIGatewayListResponseDLPAction `json:"action"`
// This field can have the runtime type of
// [[]AIGatewayListResponseDLPObjectPolicy].
Policies interface{} `json:"policies"`
// This field can have the runtime type of [[]string].
Profiles interface{} `json:"profiles"`
JSON aiGatewayListResponseDLPJSON `json:"-"`
// contains filtered or unexported fields
}
func (AIGatewayListResponseDLP) AsUnion ¶
func (r AIGatewayListResponseDLP) AsUnion() AIGatewayListResponseDLPUnion
AsUnion returns a AIGatewayListResponseDLPUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are AIGatewayListResponseDLPObject, AIGatewayListResponseDLPObject.
func (*AIGatewayListResponseDLP) UnmarshalJSON ¶
func (r *AIGatewayListResponseDLP) UnmarshalJSON(data []byte) (err error)
type AIGatewayListResponseDLPAction ¶
type AIGatewayListResponseDLPAction string
const ( AIGatewayListResponseDLPActionBlock AIGatewayListResponseDLPAction = "BLOCK" AIGatewayListResponseDLPActionFlag AIGatewayListResponseDLPAction = "FLAG" )
func (AIGatewayListResponseDLPAction) IsKnown ¶
func (r AIGatewayListResponseDLPAction) IsKnown() bool
type AIGatewayListResponseDLPObject ¶
type AIGatewayListResponseDLPObject struct {
Action AIGatewayListResponseDLPObjectAction `json:"action" api:"required"`
Enabled bool `json:"enabled" api:"required"`
Profiles []string `json:"profiles" api:"required"`
JSON aiGatewayListResponseDLPObjectJSON `json:"-"`
}
func (*AIGatewayListResponseDLPObject) UnmarshalJSON ¶
func (r *AIGatewayListResponseDLPObject) UnmarshalJSON(data []byte) (err error)
type AIGatewayListResponseDLPObjectAction ¶
type AIGatewayListResponseDLPObjectAction string
const ( AIGatewayListResponseDLPObjectActionBlock AIGatewayListResponseDLPObjectAction = "BLOCK" AIGatewayListResponseDLPObjectActionFlag AIGatewayListResponseDLPObjectAction = "FLAG" )
func (AIGatewayListResponseDLPObjectAction) IsKnown ¶
func (r AIGatewayListResponseDLPObjectAction) IsKnown() bool
type AIGatewayListResponseDLPUnion ¶
type AIGatewayListResponseDLPUnion interface {
// contains filtered or unexported methods
}
Union satisfied by AIGatewayListResponseDLPObject or AIGatewayListResponseDLPObject.
type AIGatewayListResponseGuardrails ¶
type AIGatewayListResponseGuardrails struct {
Prompt AIGatewayListResponseGuardrailsPrompt `json:"prompt" api:"required"`
Response AIGatewayListResponseGuardrailsResponse `json:"response" api:"required"`
JSON aiGatewayListResponseGuardrailsJSON `json:"-"`
}
func (*AIGatewayListResponseGuardrails) UnmarshalJSON ¶
func (r *AIGatewayListResponseGuardrails) UnmarshalJSON(data []byte) (err error)
type AIGatewayListResponseGuardrailsPrompt ¶
type AIGatewayListResponseGuardrailsPrompt struct {
P1 AIGatewayListResponseGuardrailsPromptP1 `json:"P1"`
S1 AIGatewayListResponseGuardrailsPromptS1 `json:"S1"`
S10 AIGatewayListResponseGuardrailsPromptS10 `json:"S10"`
S11 AIGatewayListResponseGuardrailsPromptS11 `json:"S11"`
S12 AIGatewayListResponseGuardrailsPromptS12 `json:"S12"`
S13 AIGatewayListResponseGuardrailsPromptS13 `json:"S13"`
S2 AIGatewayListResponseGuardrailsPromptS2 `json:"S2"`
S3 AIGatewayListResponseGuardrailsPromptS3 `json:"S3"`
S4 AIGatewayListResponseGuardrailsPromptS4 `json:"S4"`
S5 AIGatewayListResponseGuardrailsPromptS5 `json:"S5"`
S6 AIGatewayListResponseGuardrailsPromptS6 `json:"S6"`
S7 AIGatewayListResponseGuardrailsPromptS7 `json:"S7"`
S8 AIGatewayListResponseGuardrailsPromptS8 `json:"S8"`
S9 AIGatewayListResponseGuardrailsPromptS9 `json:"S9"`
JSON aiGatewayListResponseGuardrailsPromptJSON `json:"-"`
}
func (*AIGatewayListResponseGuardrailsPrompt) UnmarshalJSON ¶
func (r *AIGatewayListResponseGuardrailsPrompt) UnmarshalJSON(data []byte) (err error)
type AIGatewayListResponseGuardrailsPromptP1 ¶
type AIGatewayListResponseGuardrailsPromptP1 string
const ( AIGatewayListResponseGuardrailsPromptP1Flag AIGatewayListResponseGuardrailsPromptP1 = "FLAG" AIGatewayListResponseGuardrailsPromptP1Block AIGatewayListResponseGuardrailsPromptP1 = "BLOCK" )
func (AIGatewayListResponseGuardrailsPromptP1) IsKnown ¶
func (r AIGatewayListResponseGuardrailsPromptP1) IsKnown() bool
type AIGatewayListResponseGuardrailsPromptS1 ¶
type AIGatewayListResponseGuardrailsPromptS1 string
const ( AIGatewayListResponseGuardrailsPromptS1Flag AIGatewayListResponseGuardrailsPromptS1 = "FLAG" AIGatewayListResponseGuardrailsPromptS1Block AIGatewayListResponseGuardrailsPromptS1 = "BLOCK" )
func (AIGatewayListResponseGuardrailsPromptS1) IsKnown ¶
func (r AIGatewayListResponseGuardrailsPromptS1) IsKnown() bool
type AIGatewayListResponseGuardrailsPromptS2 ¶
type AIGatewayListResponseGuardrailsPromptS2 string
const ( AIGatewayListResponseGuardrailsPromptS2Flag AIGatewayListResponseGuardrailsPromptS2 = "FLAG" AIGatewayListResponseGuardrailsPromptS2Block AIGatewayListResponseGuardrailsPromptS2 = "BLOCK" )
func (AIGatewayListResponseGuardrailsPromptS2) IsKnown ¶
func (r AIGatewayListResponseGuardrailsPromptS2) IsKnown() bool
type AIGatewayListResponseGuardrailsPromptS3 ¶
type AIGatewayListResponseGuardrailsPromptS3 string
const ( AIGatewayListResponseGuardrailsPromptS3Flag AIGatewayListResponseGuardrailsPromptS3 = "FLAG" AIGatewayListResponseGuardrailsPromptS3Block AIGatewayListResponseGuardrailsPromptS3 = "BLOCK" )
func (AIGatewayListResponseGuardrailsPromptS3) IsKnown ¶
func (r AIGatewayListResponseGuardrailsPromptS3) IsKnown() bool
type AIGatewayListResponseGuardrailsPromptS4 ¶
type AIGatewayListResponseGuardrailsPromptS4 string
const ( AIGatewayListResponseGuardrailsPromptS4Flag AIGatewayListResponseGuardrailsPromptS4 = "FLAG" AIGatewayListResponseGuardrailsPromptS4Block AIGatewayListResponseGuardrailsPromptS4 = "BLOCK" )
func (AIGatewayListResponseGuardrailsPromptS4) IsKnown ¶
func (r AIGatewayListResponseGuardrailsPromptS4) IsKnown() bool
type AIGatewayListResponseGuardrailsPromptS5 ¶
type AIGatewayListResponseGuardrailsPromptS5 string
const ( AIGatewayListResponseGuardrailsPromptS5Flag AIGatewayListResponseGuardrailsPromptS5 = "FLAG" AIGatewayListResponseGuardrailsPromptS5Block AIGatewayListResponseGuardrailsPromptS5 = "BLOCK" )
func (AIGatewayListResponseGuardrailsPromptS5) IsKnown ¶
func (r AIGatewayListResponseGuardrailsPromptS5) IsKnown() bool
type AIGatewayListResponseGuardrailsPromptS6 ¶
type AIGatewayListResponseGuardrailsPromptS6 string
const ( AIGatewayListResponseGuardrailsPromptS6Flag AIGatewayListResponseGuardrailsPromptS6 = "FLAG" AIGatewayListResponseGuardrailsPromptS6Block AIGatewayListResponseGuardrailsPromptS6 = "BLOCK" )
func (AIGatewayListResponseGuardrailsPromptS6) IsKnown ¶
func (r AIGatewayListResponseGuardrailsPromptS6) IsKnown() bool
type AIGatewayListResponseGuardrailsPromptS7 ¶
type AIGatewayListResponseGuardrailsPromptS7 string
const ( AIGatewayListResponseGuardrailsPromptS7Flag AIGatewayListResponseGuardrailsPromptS7 = "FLAG" AIGatewayListResponseGuardrailsPromptS7Block AIGatewayListResponseGuardrailsPromptS7 = "BLOCK" )
func (AIGatewayListResponseGuardrailsPromptS7) IsKnown ¶
func (r AIGatewayListResponseGuardrailsPromptS7) IsKnown() bool
type AIGatewayListResponseGuardrailsPromptS8 ¶
type AIGatewayListResponseGuardrailsPromptS8 string
const ( AIGatewayListResponseGuardrailsPromptS8Flag AIGatewayListResponseGuardrailsPromptS8 = "FLAG" AIGatewayListResponseGuardrailsPromptS8Block AIGatewayListResponseGuardrailsPromptS8 = "BLOCK" )
func (AIGatewayListResponseGuardrailsPromptS8) IsKnown ¶
func (r AIGatewayListResponseGuardrailsPromptS8) IsKnown() bool
type AIGatewayListResponseGuardrailsPromptS9 ¶
type AIGatewayListResponseGuardrailsPromptS9 string
const ( AIGatewayListResponseGuardrailsPromptS9Flag AIGatewayListResponseGuardrailsPromptS9 = "FLAG" AIGatewayListResponseGuardrailsPromptS9Block AIGatewayListResponseGuardrailsPromptS9 = "BLOCK" )
func (AIGatewayListResponseGuardrailsPromptS9) IsKnown ¶
func (r AIGatewayListResponseGuardrailsPromptS9) IsKnown() bool
type AIGatewayListResponseGuardrailsPromptS10 ¶
type AIGatewayListResponseGuardrailsPromptS10 string
const ( AIGatewayListResponseGuardrailsPromptS10Flag AIGatewayListResponseGuardrailsPromptS10 = "FLAG" AIGatewayListResponseGuardrailsPromptS10Block AIGatewayListResponseGuardrailsPromptS10 = "BLOCK" )
func (AIGatewayListResponseGuardrailsPromptS10) IsKnown ¶
func (r AIGatewayListResponseGuardrailsPromptS10) IsKnown() bool
type AIGatewayListResponseGuardrailsPromptS11 ¶
type AIGatewayListResponseGuardrailsPromptS11 string
const ( AIGatewayListResponseGuardrailsPromptS11Flag AIGatewayListResponseGuardrailsPromptS11 = "FLAG" AIGatewayListResponseGuardrailsPromptS11Block AIGatewayListResponseGuardrailsPromptS11 = "BLOCK" )
func (AIGatewayListResponseGuardrailsPromptS11) IsKnown ¶
func (r AIGatewayListResponseGuardrailsPromptS11) IsKnown() bool
type AIGatewayListResponseGuardrailsPromptS12 ¶
type AIGatewayListResponseGuardrailsPromptS12 string
const ( AIGatewayListResponseGuardrailsPromptS12Flag AIGatewayListResponseGuardrailsPromptS12 = "FLAG" AIGatewayListResponseGuardrailsPromptS12Block AIGatewayListResponseGuardrailsPromptS12 = "BLOCK" )
func (AIGatewayListResponseGuardrailsPromptS12) IsKnown ¶
func (r AIGatewayListResponseGuardrailsPromptS12) IsKnown() bool
type AIGatewayListResponseGuardrailsPromptS13 ¶
type AIGatewayListResponseGuardrailsPromptS13 string
const ( AIGatewayListResponseGuardrailsPromptS13Flag AIGatewayListResponseGuardrailsPromptS13 = "FLAG" AIGatewayListResponseGuardrailsPromptS13Block AIGatewayListResponseGuardrailsPromptS13 = "BLOCK" )
func (AIGatewayListResponseGuardrailsPromptS13) IsKnown ¶
func (r AIGatewayListResponseGuardrailsPromptS13) IsKnown() bool
type AIGatewayListResponseGuardrailsResponse ¶
type AIGatewayListResponseGuardrailsResponse struct {
P1 AIGatewayListResponseGuardrailsResponseP1 `json:"P1"`
S1 AIGatewayListResponseGuardrailsResponseS1 `json:"S1"`
S10 AIGatewayListResponseGuardrailsResponseS10 `json:"S10"`
S11 AIGatewayListResponseGuardrailsResponseS11 `json:"S11"`
S12 AIGatewayListResponseGuardrailsResponseS12 `json:"S12"`
S13 AIGatewayListResponseGuardrailsResponseS13 `json:"S13"`
S2 AIGatewayListResponseGuardrailsResponseS2 `json:"S2"`
S3 AIGatewayListResponseGuardrailsResponseS3 `json:"S3"`
S4 AIGatewayListResponseGuardrailsResponseS4 `json:"S4"`
S5 AIGatewayListResponseGuardrailsResponseS5 `json:"S5"`
S6 AIGatewayListResponseGuardrailsResponseS6 `json:"S6"`
S7 AIGatewayListResponseGuardrailsResponseS7 `json:"S7"`
S8 AIGatewayListResponseGuardrailsResponseS8 `json:"S8"`
S9 AIGatewayListResponseGuardrailsResponseS9 `json:"S9"`
JSON aiGatewayListResponseGuardrailsResponseJSON `json:"-"`
}
func (*AIGatewayListResponseGuardrailsResponse) UnmarshalJSON ¶
func (r *AIGatewayListResponseGuardrailsResponse) UnmarshalJSON(data []byte) (err error)
type AIGatewayListResponseGuardrailsResponseP1 ¶
type AIGatewayListResponseGuardrailsResponseP1 string
const ( AIGatewayListResponseGuardrailsResponseP1Flag AIGatewayListResponseGuardrailsResponseP1 = "FLAG" AIGatewayListResponseGuardrailsResponseP1Block AIGatewayListResponseGuardrailsResponseP1 = "BLOCK" )
func (AIGatewayListResponseGuardrailsResponseP1) IsKnown ¶
func (r AIGatewayListResponseGuardrailsResponseP1) IsKnown() bool
type AIGatewayListResponseGuardrailsResponseS1 ¶
type AIGatewayListResponseGuardrailsResponseS1 string
const ( AIGatewayListResponseGuardrailsResponseS1Flag AIGatewayListResponseGuardrailsResponseS1 = "FLAG" AIGatewayListResponseGuardrailsResponseS1Block AIGatewayListResponseGuardrailsResponseS1 = "BLOCK" )
func (AIGatewayListResponseGuardrailsResponseS1) IsKnown ¶
func (r AIGatewayListResponseGuardrailsResponseS1) IsKnown() bool
type AIGatewayListResponseGuardrailsResponseS2 ¶
type AIGatewayListResponseGuardrailsResponseS2 string
const ( AIGatewayListResponseGuardrailsResponseS2Flag AIGatewayListResponseGuardrailsResponseS2 = "FLAG" AIGatewayListResponseGuardrailsResponseS2Block AIGatewayListResponseGuardrailsResponseS2 = "BLOCK" )
func (AIGatewayListResponseGuardrailsResponseS2) IsKnown ¶
func (r AIGatewayListResponseGuardrailsResponseS2) IsKnown() bool
type AIGatewayListResponseGuardrailsResponseS3 ¶
type AIGatewayListResponseGuardrailsResponseS3 string
const ( AIGatewayListResponseGuardrailsResponseS3Flag AIGatewayListResponseGuardrailsResponseS3 = "FLAG" AIGatewayListResponseGuardrailsResponseS3Block AIGatewayListResponseGuardrailsResponseS3 = "BLOCK" )
func (AIGatewayListResponseGuardrailsResponseS3) IsKnown ¶
func (r AIGatewayListResponseGuardrailsResponseS3) IsKnown() bool
type AIGatewayListResponseGuardrailsResponseS4 ¶
type AIGatewayListResponseGuardrailsResponseS4 string
const ( AIGatewayListResponseGuardrailsResponseS4Flag AIGatewayListResponseGuardrailsResponseS4 = "FLAG" AIGatewayListResponseGuardrailsResponseS4Block AIGatewayListResponseGuardrailsResponseS4 = "BLOCK" )
func (AIGatewayListResponseGuardrailsResponseS4) IsKnown ¶
func (r AIGatewayListResponseGuardrailsResponseS4) IsKnown() bool
type AIGatewayListResponseGuardrailsResponseS5 ¶
type AIGatewayListResponseGuardrailsResponseS5 string
const ( AIGatewayListResponseGuardrailsResponseS5Flag AIGatewayListResponseGuardrailsResponseS5 = "FLAG" AIGatewayListResponseGuardrailsResponseS5Block AIGatewayListResponseGuardrailsResponseS5 = "BLOCK" )
func (AIGatewayListResponseGuardrailsResponseS5) IsKnown ¶
func (r AIGatewayListResponseGuardrailsResponseS5) IsKnown() bool
type AIGatewayListResponseGuardrailsResponseS6 ¶
type AIGatewayListResponseGuardrailsResponseS6 string
const ( AIGatewayListResponseGuardrailsResponseS6Flag AIGatewayListResponseGuardrailsResponseS6 = "FLAG" AIGatewayListResponseGuardrailsResponseS6Block AIGatewayListResponseGuardrailsResponseS6 = "BLOCK" )
func (AIGatewayListResponseGuardrailsResponseS6) IsKnown ¶
func (r AIGatewayListResponseGuardrailsResponseS6) IsKnown() bool
type AIGatewayListResponseGuardrailsResponseS7 ¶
type AIGatewayListResponseGuardrailsResponseS7 string
const ( AIGatewayListResponseGuardrailsResponseS7Flag AIGatewayListResponseGuardrailsResponseS7 = "FLAG" AIGatewayListResponseGuardrailsResponseS7Block AIGatewayListResponseGuardrailsResponseS7 = "BLOCK" )
func (AIGatewayListResponseGuardrailsResponseS7) IsKnown ¶
func (r AIGatewayListResponseGuardrailsResponseS7) IsKnown() bool
type AIGatewayListResponseGuardrailsResponseS8 ¶
type AIGatewayListResponseGuardrailsResponseS8 string
const ( AIGatewayListResponseGuardrailsResponseS8Flag AIGatewayListResponseGuardrailsResponseS8 = "FLAG" AIGatewayListResponseGuardrailsResponseS8Block AIGatewayListResponseGuardrailsResponseS8 = "BLOCK" )
func (AIGatewayListResponseGuardrailsResponseS8) IsKnown ¶
func (r AIGatewayListResponseGuardrailsResponseS8) IsKnown() bool
type AIGatewayListResponseGuardrailsResponseS9 ¶
type AIGatewayListResponseGuardrailsResponseS9 string
const ( AIGatewayListResponseGuardrailsResponseS9Flag AIGatewayListResponseGuardrailsResponseS9 = "FLAG" AIGatewayListResponseGuardrailsResponseS9Block AIGatewayListResponseGuardrailsResponseS9 = "BLOCK" )
func (AIGatewayListResponseGuardrailsResponseS9) IsKnown ¶
func (r AIGatewayListResponseGuardrailsResponseS9) IsKnown() bool
type AIGatewayListResponseGuardrailsResponseS10 ¶
type AIGatewayListResponseGuardrailsResponseS10 string
const ( AIGatewayListResponseGuardrailsResponseS10Flag AIGatewayListResponseGuardrailsResponseS10 = "FLAG" AIGatewayListResponseGuardrailsResponseS10Block AIGatewayListResponseGuardrailsResponseS10 = "BLOCK" )
func (AIGatewayListResponseGuardrailsResponseS10) IsKnown ¶
func (r AIGatewayListResponseGuardrailsResponseS10) IsKnown() bool
type AIGatewayListResponseGuardrailsResponseS11 ¶
type AIGatewayListResponseGuardrailsResponseS11 string
const ( AIGatewayListResponseGuardrailsResponseS11Flag AIGatewayListResponseGuardrailsResponseS11 = "FLAG" AIGatewayListResponseGuardrailsResponseS11Block AIGatewayListResponseGuardrailsResponseS11 = "BLOCK" )
func (AIGatewayListResponseGuardrailsResponseS11) IsKnown ¶
func (r AIGatewayListResponseGuardrailsResponseS11) IsKnown() bool
type AIGatewayListResponseGuardrailsResponseS12 ¶
type AIGatewayListResponseGuardrailsResponseS12 string
const ( AIGatewayListResponseGuardrailsResponseS12Flag AIGatewayListResponseGuardrailsResponseS12 = "FLAG" AIGatewayListResponseGuardrailsResponseS12Block AIGatewayListResponseGuardrailsResponseS12 = "BLOCK" )
func (AIGatewayListResponseGuardrailsResponseS12) IsKnown ¶
func (r AIGatewayListResponseGuardrailsResponseS12) IsKnown() bool
type AIGatewayListResponseGuardrailsResponseS13 ¶
type AIGatewayListResponseGuardrailsResponseS13 string
const ( AIGatewayListResponseGuardrailsResponseS13Flag AIGatewayListResponseGuardrailsResponseS13 = "FLAG" AIGatewayListResponseGuardrailsResponseS13Block AIGatewayListResponseGuardrailsResponseS13 = "BLOCK" )
func (AIGatewayListResponseGuardrailsResponseS13) IsKnown ¶
func (r AIGatewayListResponseGuardrailsResponseS13) IsKnown() bool
type AIGatewayListResponseLogManagementStrategy ¶
type AIGatewayListResponseLogManagementStrategy string
const ( AIGatewayListResponseLogManagementStrategyStopInserting AIGatewayListResponseLogManagementStrategy = "STOP_INSERTING" AIGatewayListResponseLogManagementStrategyDeleteOldest AIGatewayListResponseLogManagementStrategy = "DELETE_OLDEST" )
func (AIGatewayListResponseLogManagementStrategy) IsKnown ¶
func (r AIGatewayListResponseLogManagementStrategy) IsKnown() bool
type AIGatewayListResponseOtel ¶
type AIGatewayListResponseOtel struct {
Authorization string `json:"authorization" api:"required"`
Headers map[string]string `json:"headers" api:"required"`
URL string `json:"url" api:"required" format:"uri"`
ContentType AIGatewayListResponseOtelContentType `json:"content_type"`
JSON aiGatewayListResponseOtelJSON `json:"-"`
}
func (*AIGatewayListResponseOtel) UnmarshalJSON ¶
func (r *AIGatewayListResponseOtel) UnmarshalJSON(data []byte) (err error)
type AIGatewayListResponseOtelContentType ¶
type AIGatewayListResponseOtelContentType string
const ( AIGatewayListResponseOtelContentTypeJson AIGatewayListResponseOtelContentType = "json" AIGatewayListResponseOtelContentTypeProtobuf AIGatewayListResponseOtelContentType = "protobuf" )
func (AIGatewayListResponseOtelContentType) IsKnown ¶
func (r AIGatewayListResponseOtelContentType) IsKnown() bool
type AIGatewayListResponseRateLimitingTechnique ¶
type AIGatewayListResponseRateLimitingTechnique string
const ( AIGatewayListResponseRateLimitingTechniqueFixed AIGatewayListResponseRateLimitingTechnique = "fixed" AIGatewayListResponseRateLimitingTechniqueSliding AIGatewayListResponseRateLimitingTechnique = "sliding" )
func (AIGatewayListResponseRateLimitingTechnique) IsKnown ¶
func (r AIGatewayListResponseRateLimitingTechnique) IsKnown() bool
type AIGatewayListResponseRetryBackoff ¶
type AIGatewayListResponseRetryBackoff string
Backoff strategy for retry delays
const ( AIGatewayListResponseRetryBackoffConstant AIGatewayListResponseRetryBackoff = "constant" AIGatewayListResponseRetryBackoffLinear AIGatewayListResponseRetryBackoff = "linear" AIGatewayListResponseRetryBackoffExponential AIGatewayListResponseRetryBackoff = "exponential" )
func (AIGatewayListResponseRetryBackoff) IsKnown ¶
func (r AIGatewayListResponseRetryBackoff) IsKnown() bool
type AIGatewayListResponseStripe ¶
type AIGatewayListResponseStripe struct {
Authorization string `json:"authorization" api:"required"`
UsageEvents []AIGatewayListResponseStripeUsageEvent `json:"usage_events" api:"required"`
JSON aiGatewayListResponseStripeJSON `json:"-"`
}
func (*AIGatewayListResponseStripe) UnmarshalJSON ¶
func (r *AIGatewayListResponseStripe) UnmarshalJSON(data []byte) (err error)
type AIGatewayListResponseStripeUsageEvent ¶
type AIGatewayListResponseStripeUsageEvent struct {
Payload string `json:"payload" api:"required"`
JSON aiGatewayListResponseStripeUsageEventJSON `json:"-"`
}
func (*AIGatewayListResponseStripeUsageEvent) UnmarshalJSON ¶
func (r *AIGatewayListResponseStripeUsageEvent) UnmarshalJSON(data []byte) (err error)
type AIGatewayListResponseWorkersAIBillingMode ¶
type AIGatewayListResponseWorkersAIBillingMode string
Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported.
const (
AIGatewayListResponseWorkersAIBillingModePostpaid AIGatewayListResponseWorkersAIBillingMode = "postpaid"
)
func (AIGatewayListResponseWorkersAIBillingMode) IsKnown ¶
func (r AIGatewayListResponseWorkersAIBillingMode) IsKnown() bool
type AIGatewayNewParams ¶
type AIGatewayNewParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
// gateway id
ID param.Field[string] `json:"id" api:"required"`
CacheInvalidateOnUpdate param.Field[bool] `json:"cache_invalidate_on_update" api:"required"`
CacheTTL param.Field[int64] `json:"cache_ttl" api:"required"`
CollectLogs param.Field[bool] `json:"collect_logs" api:"required"`
RateLimitingInterval param.Field[int64] `json:"rate_limiting_interval" api:"required"`
RateLimitingLimit param.Field[int64] `json:"rate_limiting_limit" api:"required"`
Authentication param.Field[bool] `json:"authentication"`
LogManagement param.Field[int64] `json:"log_management"`
LogManagementStrategy param.Field[AIGatewayNewParamsLogManagementStrategy] `json:"log_management_strategy"`
Logpush param.Field[bool] `json:"logpush"`
LogpushPublicKey param.Field[string] `json:"logpush_public_key"`
RateLimitingTechnique param.Field[AIGatewayNewParamsRateLimitingTechnique] `json:"rate_limiting_technique"`
// Backoff strategy for retry delays
RetryBackoff param.Field[AIGatewayNewParamsRetryBackoff] `json:"retry_backoff"`
// Delay between retry attempts in milliseconds (0-5000)
RetryDelay param.Field[int64] `json:"retry_delay"`
// Maximum number of retry attempts for failed requests (1-5)
RetryMaxAttempts param.Field[int64] `json:"retry_max_attempts"`
// Controls how Workers AI inference calls routed through this gateway are billed.
// Only 'postpaid' is currently supported.
WorkersAIBillingMode param.Field[AIGatewayNewParamsWorkersAIBillingMode] `json:"workers_ai_billing_mode"`
Zdr param.Field[bool] `json:"zdr"`
}
func (AIGatewayNewParams) MarshalJSON ¶
func (r AIGatewayNewParams) MarshalJSON() (data []byte, err error)
type AIGatewayNewParamsLogManagementStrategy ¶
type AIGatewayNewParamsLogManagementStrategy string
const ( AIGatewayNewParamsLogManagementStrategyStopInserting AIGatewayNewParamsLogManagementStrategy = "STOP_INSERTING" AIGatewayNewParamsLogManagementStrategyDeleteOldest AIGatewayNewParamsLogManagementStrategy = "DELETE_OLDEST" )
func (AIGatewayNewParamsLogManagementStrategy) IsKnown ¶
func (r AIGatewayNewParamsLogManagementStrategy) IsKnown() bool
type AIGatewayNewParamsRateLimitingTechnique ¶
type AIGatewayNewParamsRateLimitingTechnique string
const ( AIGatewayNewParamsRateLimitingTechniqueFixed AIGatewayNewParamsRateLimitingTechnique = "fixed" AIGatewayNewParamsRateLimitingTechniqueSliding AIGatewayNewParamsRateLimitingTechnique = "sliding" )
func (AIGatewayNewParamsRateLimitingTechnique) IsKnown ¶
func (r AIGatewayNewParamsRateLimitingTechnique) IsKnown() bool
type AIGatewayNewParamsRetryBackoff ¶
type AIGatewayNewParamsRetryBackoff string
Backoff strategy for retry delays
const ( AIGatewayNewParamsRetryBackoffConstant AIGatewayNewParamsRetryBackoff = "constant" AIGatewayNewParamsRetryBackoffLinear AIGatewayNewParamsRetryBackoff = "linear" AIGatewayNewParamsRetryBackoffExponential AIGatewayNewParamsRetryBackoff = "exponential" )
func (AIGatewayNewParamsRetryBackoff) IsKnown ¶
func (r AIGatewayNewParamsRetryBackoff) IsKnown() bool
type AIGatewayNewParamsWorkersAIBillingMode ¶
type AIGatewayNewParamsWorkersAIBillingMode string
Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported.
const (
AIGatewayNewParamsWorkersAIBillingModePostpaid AIGatewayNewParamsWorkersAIBillingMode = "postpaid"
)
func (AIGatewayNewParamsWorkersAIBillingMode) IsKnown ¶
func (r AIGatewayNewParamsWorkersAIBillingMode) IsKnown() bool
type AIGatewayNewResponse ¶
type AIGatewayNewResponse struct {
// gateway id
ID string `json:"id" api:"required"`
CacheInvalidateOnUpdate bool `json:"cache_invalidate_on_update" api:"required"`
CacheTTL int64 `json:"cache_ttl" api:"required,nullable"`
CollectLogs bool `json:"collect_logs" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
RateLimitingInterval int64 `json:"rate_limiting_interval" api:"required,nullable"`
RateLimitingLimit int64 `json:"rate_limiting_limit" api:"required,nullable"`
Authentication bool `json:"authentication"`
DLP AIGatewayNewResponseDLP `json:"dlp"`
Guardrails AIGatewayNewResponseGuardrails `json:"guardrails" api:"nullable"`
IsDefault bool `json:"is_default"`
LogManagement int64 `json:"log_management" api:"nullable"`
LogManagementStrategy AIGatewayNewResponseLogManagementStrategy `json:"log_management_strategy" api:"nullable"`
Logpush bool `json:"logpush"`
LogpushPublicKey string `json:"logpush_public_key" api:"nullable"`
Otel []AIGatewayNewResponseOtel `json:"otel" api:"nullable"`
RateLimitingTechnique AIGatewayNewResponseRateLimitingTechnique `json:"rate_limiting_technique" api:"nullable"`
// Backoff strategy for retry delays
RetryBackoff AIGatewayNewResponseRetryBackoff `json:"retry_backoff" api:"nullable"`
// Delay between retry attempts in milliseconds (0-5000)
RetryDelay int64 `json:"retry_delay" api:"nullable"`
// Maximum number of retry attempts for failed requests (1-5)
RetryMaxAttempts int64 `json:"retry_max_attempts" api:"nullable"`
StoreID string `json:"store_id" api:"nullable"`
Stripe AIGatewayNewResponseStripe `json:"stripe" api:"nullable"`
// Controls how Workers AI inference calls routed through this gateway are billed.
// Only 'postpaid' is currently supported.
WorkersAIBillingMode AIGatewayNewResponseWorkersAIBillingMode `json:"workers_ai_billing_mode"`
Zdr bool `json:"zdr"`
JSON aiGatewayNewResponseJSON `json:"-"`
}
func (*AIGatewayNewResponse) UnmarshalJSON ¶
func (r *AIGatewayNewResponse) UnmarshalJSON(data []byte) (err error)
type AIGatewayNewResponseDLP ¶
type AIGatewayNewResponseDLP struct {
Enabled bool `json:"enabled" api:"required"`
Action AIGatewayNewResponseDLPAction `json:"action"`
// This field can have the runtime type of [[]AIGatewayNewResponseDLPObjectPolicy].
Policies interface{} `json:"policies"`
// This field can have the runtime type of [[]string].
Profiles interface{} `json:"profiles"`
JSON aiGatewayNewResponseDLPJSON `json:"-"`
// contains filtered or unexported fields
}
func (AIGatewayNewResponseDLP) AsUnion ¶
func (r AIGatewayNewResponseDLP) AsUnion() AIGatewayNewResponseDLPUnion
AsUnion returns a AIGatewayNewResponseDLPUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are AIGatewayNewResponseDLPObject, AIGatewayNewResponseDLPObject.
func (*AIGatewayNewResponseDLP) UnmarshalJSON ¶
func (r *AIGatewayNewResponseDLP) UnmarshalJSON(data []byte) (err error)
type AIGatewayNewResponseDLPAction ¶
type AIGatewayNewResponseDLPAction string
const ( AIGatewayNewResponseDLPActionBlock AIGatewayNewResponseDLPAction = "BLOCK" AIGatewayNewResponseDLPActionFlag AIGatewayNewResponseDLPAction = "FLAG" )
func (AIGatewayNewResponseDLPAction) IsKnown ¶
func (r AIGatewayNewResponseDLPAction) IsKnown() bool
type AIGatewayNewResponseDLPObject ¶
type AIGatewayNewResponseDLPObject struct {
Action AIGatewayNewResponseDLPObjectAction `json:"action" api:"required"`
Enabled bool `json:"enabled" api:"required"`
Profiles []string `json:"profiles" api:"required"`
JSON aiGatewayNewResponseDLPObjectJSON `json:"-"`
}
func (*AIGatewayNewResponseDLPObject) UnmarshalJSON ¶
func (r *AIGatewayNewResponseDLPObject) UnmarshalJSON(data []byte) (err error)
type AIGatewayNewResponseDLPObjectAction ¶
type AIGatewayNewResponseDLPObjectAction string
const ( AIGatewayNewResponseDLPObjectActionBlock AIGatewayNewResponseDLPObjectAction = "BLOCK" AIGatewayNewResponseDLPObjectActionFlag AIGatewayNewResponseDLPObjectAction = "FLAG" )
func (AIGatewayNewResponseDLPObjectAction) IsKnown ¶
func (r AIGatewayNewResponseDLPObjectAction) IsKnown() bool
type AIGatewayNewResponseDLPUnion ¶
type AIGatewayNewResponseDLPUnion interface {
// contains filtered or unexported methods
}
Union satisfied by AIGatewayNewResponseDLPObject or AIGatewayNewResponseDLPObject.
type AIGatewayNewResponseEnvelope ¶
type AIGatewayNewResponseEnvelope struct {
Result AIGatewayNewResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON aiGatewayNewResponseEnvelopeJSON `json:"-"`
}
func (*AIGatewayNewResponseEnvelope) UnmarshalJSON ¶
func (r *AIGatewayNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AIGatewayNewResponseGuardrails ¶
type AIGatewayNewResponseGuardrails struct {
Prompt AIGatewayNewResponseGuardrailsPrompt `json:"prompt" api:"required"`
Response AIGatewayNewResponseGuardrailsResponse `json:"response" api:"required"`
JSON aiGatewayNewResponseGuardrailsJSON `json:"-"`
}
func (*AIGatewayNewResponseGuardrails) UnmarshalJSON ¶
func (r *AIGatewayNewResponseGuardrails) UnmarshalJSON(data []byte) (err error)
type AIGatewayNewResponseGuardrailsPrompt ¶
type AIGatewayNewResponseGuardrailsPrompt struct {
P1 AIGatewayNewResponseGuardrailsPromptP1 `json:"P1"`
S1 AIGatewayNewResponseGuardrailsPromptS1 `json:"S1"`
S10 AIGatewayNewResponseGuardrailsPromptS10 `json:"S10"`
S11 AIGatewayNewResponseGuardrailsPromptS11 `json:"S11"`
S12 AIGatewayNewResponseGuardrailsPromptS12 `json:"S12"`
S13 AIGatewayNewResponseGuardrailsPromptS13 `json:"S13"`
S2 AIGatewayNewResponseGuardrailsPromptS2 `json:"S2"`
S3 AIGatewayNewResponseGuardrailsPromptS3 `json:"S3"`
S4 AIGatewayNewResponseGuardrailsPromptS4 `json:"S4"`
S5 AIGatewayNewResponseGuardrailsPromptS5 `json:"S5"`
S6 AIGatewayNewResponseGuardrailsPromptS6 `json:"S6"`
S7 AIGatewayNewResponseGuardrailsPromptS7 `json:"S7"`
S8 AIGatewayNewResponseGuardrailsPromptS8 `json:"S8"`
S9 AIGatewayNewResponseGuardrailsPromptS9 `json:"S9"`
JSON aiGatewayNewResponseGuardrailsPromptJSON `json:"-"`
}
func (*AIGatewayNewResponseGuardrailsPrompt) UnmarshalJSON ¶
func (r *AIGatewayNewResponseGuardrailsPrompt) UnmarshalJSON(data []byte) (err error)
type AIGatewayNewResponseGuardrailsPromptP1 ¶
type AIGatewayNewResponseGuardrailsPromptP1 string
const ( AIGatewayNewResponseGuardrailsPromptP1Flag AIGatewayNewResponseGuardrailsPromptP1 = "FLAG" AIGatewayNewResponseGuardrailsPromptP1Block AIGatewayNewResponseGuardrailsPromptP1 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsPromptP1) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsPromptP1) IsKnown() bool
type AIGatewayNewResponseGuardrailsPromptS1 ¶
type AIGatewayNewResponseGuardrailsPromptS1 string
const ( AIGatewayNewResponseGuardrailsPromptS1Flag AIGatewayNewResponseGuardrailsPromptS1 = "FLAG" AIGatewayNewResponseGuardrailsPromptS1Block AIGatewayNewResponseGuardrailsPromptS1 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsPromptS1) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsPromptS1) IsKnown() bool
type AIGatewayNewResponseGuardrailsPromptS2 ¶
type AIGatewayNewResponseGuardrailsPromptS2 string
const ( AIGatewayNewResponseGuardrailsPromptS2Flag AIGatewayNewResponseGuardrailsPromptS2 = "FLAG" AIGatewayNewResponseGuardrailsPromptS2Block AIGatewayNewResponseGuardrailsPromptS2 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsPromptS2) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsPromptS2) IsKnown() bool
type AIGatewayNewResponseGuardrailsPromptS3 ¶
type AIGatewayNewResponseGuardrailsPromptS3 string
const ( AIGatewayNewResponseGuardrailsPromptS3Flag AIGatewayNewResponseGuardrailsPromptS3 = "FLAG" AIGatewayNewResponseGuardrailsPromptS3Block AIGatewayNewResponseGuardrailsPromptS3 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsPromptS3) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsPromptS3) IsKnown() bool
type AIGatewayNewResponseGuardrailsPromptS4 ¶
type AIGatewayNewResponseGuardrailsPromptS4 string
const ( AIGatewayNewResponseGuardrailsPromptS4Flag AIGatewayNewResponseGuardrailsPromptS4 = "FLAG" AIGatewayNewResponseGuardrailsPromptS4Block AIGatewayNewResponseGuardrailsPromptS4 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsPromptS4) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsPromptS4) IsKnown() bool
type AIGatewayNewResponseGuardrailsPromptS5 ¶
type AIGatewayNewResponseGuardrailsPromptS5 string
const ( AIGatewayNewResponseGuardrailsPromptS5Flag AIGatewayNewResponseGuardrailsPromptS5 = "FLAG" AIGatewayNewResponseGuardrailsPromptS5Block AIGatewayNewResponseGuardrailsPromptS5 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsPromptS5) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsPromptS5) IsKnown() bool
type AIGatewayNewResponseGuardrailsPromptS6 ¶
type AIGatewayNewResponseGuardrailsPromptS6 string
const ( AIGatewayNewResponseGuardrailsPromptS6Flag AIGatewayNewResponseGuardrailsPromptS6 = "FLAG" AIGatewayNewResponseGuardrailsPromptS6Block AIGatewayNewResponseGuardrailsPromptS6 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsPromptS6) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsPromptS6) IsKnown() bool
type AIGatewayNewResponseGuardrailsPromptS7 ¶
type AIGatewayNewResponseGuardrailsPromptS7 string
const ( AIGatewayNewResponseGuardrailsPromptS7Flag AIGatewayNewResponseGuardrailsPromptS7 = "FLAG" AIGatewayNewResponseGuardrailsPromptS7Block AIGatewayNewResponseGuardrailsPromptS7 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsPromptS7) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsPromptS7) IsKnown() bool
type AIGatewayNewResponseGuardrailsPromptS8 ¶
type AIGatewayNewResponseGuardrailsPromptS8 string
const ( AIGatewayNewResponseGuardrailsPromptS8Flag AIGatewayNewResponseGuardrailsPromptS8 = "FLAG" AIGatewayNewResponseGuardrailsPromptS8Block AIGatewayNewResponseGuardrailsPromptS8 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsPromptS8) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsPromptS8) IsKnown() bool
type AIGatewayNewResponseGuardrailsPromptS9 ¶
type AIGatewayNewResponseGuardrailsPromptS9 string
const ( AIGatewayNewResponseGuardrailsPromptS9Flag AIGatewayNewResponseGuardrailsPromptS9 = "FLAG" AIGatewayNewResponseGuardrailsPromptS9Block AIGatewayNewResponseGuardrailsPromptS9 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsPromptS9) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsPromptS9) IsKnown() bool
type AIGatewayNewResponseGuardrailsPromptS10 ¶
type AIGatewayNewResponseGuardrailsPromptS10 string
const ( AIGatewayNewResponseGuardrailsPromptS10Flag AIGatewayNewResponseGuardrailsPromptS10 = "FLAG" AIGatewayNewResponseGuardrailsPromptS10Block AIGatewayNewResponseGuardrailsPromptS10 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsPromptS10) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsPromptS10) IsKnown() bool
type AIGatewayNewResponseGuardrailsPromptS11 ¶
type AIGatewayNewResponseGuardrailsPromptS11 string
const ( AIGatewayNewResponseGuardrailsPromptS11Flag AIGatewayNewResponseGuardrailsPromptS11 = "FLAG" AIGatewayNewResponseGuardrailsPromptS11Block AIGatewayNewResponseGuardrailsPromptS11 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsPromptS11) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsPromptS11) IsKnown() bool
type AIGatewayNewResponseGuardrailsPromptS12 ¶
type AIGatewayNewResponseGuardrailsPromptS12 string
const ( AIGatewayNewResponseGuardrailsPromptS12Flag AIGatewayNewResponseGuardrailsPromptS12 = "FLAG" AIGatewayNewResponseGuardrailsPromptS12Block AIGatewayNewResponseGuardrailsPromptS12 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsPromptS12) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsPromptS12) IsKnown() bool
type AIGatewayNewResponseGuardrailsPromptS13 ¶
type AIGatewayNewResponseGuardrailsPromptS13 string
const ( AIGatewayNewResponseGuardrailsPromptS13Flag AIGatewayNewResponseGuardrailsPromptS13 = "FLAG" AIGatewayNewResponseGuardrailsPromptS13Block AIGatewayNewResponseGuardrailsPromptS13 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsPromptS13) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsPromptS13) IsKnown() bool
type AIGatewayNewResponseGuardrailsResponse ¶
type AIGatewayNewResponseGuardrailsResponse struct {
P1 AIGatewayNewResponseGuardrailsResponseP1 `json:"P1"`
S1 AIGatewayNewResponseGuardrailsResponseS1 `json:"S1"`
S10 AIGatewayNewResponseGuardrailsResponseS10 `json:"S10"`
S11 AIGatewayNewResponseGuardrailsResponseS11 `json:"S11"`
S12 AIGatewayNewResponseGuardrailsResponseS12 `json:"S12"`
S13 AIGatewayNewResponseGuardrailsResponseS13 `json:"S13"`
S2 AIGatewayNewResponseGuardrailsResponseS2 `json:"S2"`
S3 AIGatewayNewResponseGuardrailsResponseS3 `json:"S3"`
S4 AIGatewayNewResponseGuardrailsResponseS4 `json:"S4"`
S5 AIGatewayNewResponseGuardrailsResponseS5 `json:"S5"`
S6 AIGatewayNewResponseGuardrailsResponseS6 `json:"S6"`
S7 AIGatewayNewResponseGuardrailsResponseS7 `json:"S7"`
S8 AIGatewayNewResponseGuardrailsResponseS8 `json:"S8"`
S9 AIGatewayNewResponseGuardrailsResponseS9 `json:"S9"`
JSON aiGatewayNewResponseGuardrailsResponseJSON `json:"-"`
}
func (*AIGatewayNewResponseGuardrailsResponse) UnmarshalJSON ¶
func (r *AIGatewayNewResponseGuardrailsResponse) UnmarshalJSON(data []byte) (err error)
type AIGatewayNewResponseGuardrailsResponseP1 ¶
type AIGatewayNewResponseGuardrailsResponseP1 string
const ( AIGatewayNewResponseGuardrailsResponseP1Flag AIGatewayNewResponseGuardrailsResponseP1 = "FLAG" AIGatewayNewResponseGuardrailsResponseP1Block AIGatewayNewResponseGuardrailsResponseP1 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsResponseP1) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsResponseP1) IsKnown() bool
type AIGatewayNewResponseGuardrailsResponseS1 ¶
type AIGatewayNewResponseGuardrailsResponseS1 string
const ( AIGatewayNewResponseGuardrailsResponseS1Flag AIGatewayNewResponseGuardrailsResponseS1 = "FLAG" AIGatewayNewResponseGuardrailsResponseS1Block AIGatewayNewResponseGuardrailsResponseS1 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsResponseS1) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsResponseS1) IsKnown() bool
type AIGatewayNewResponseGuardrailsResponseS2 ¶
type AIGatewayNewResponseGuardrailsResponseS2 string
const ( AIGatewayNewResponseGuardrailsResponseS2Flag AIGatewayNewResponseGuardrailsResponseS2 = "FLAG" AIGatewayNewResponseGuardrailsResponseS2Block AIGatewayNewResponseGuardrailsResponseS2 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsResponseS2) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsResponseS2) IsKnown() bool
type AIGatewayNewResponseGuardrailsResponseS3 ¶
type AIGatewayNewResponseGuardrailsResponseS3 string
const ( AIGatewayNewResponseGuardrailsResponseS3Flag AIGatewayNewResponseGuardrailsResponseS3 = "FLAG" AIGatewayNewResponseGuardrailsResponseS3Block AIGatewayNewResponseGuardrailsResponseS3 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsResponseS3) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsResponseS3) IsKnown() bool
type AIGatewayNewResponseGuardrailsResponseS4 ¶
type AIGatewayNewResponseGuardrailsResponseS4 string
const ( AIGatewayNewResponseGuardrailsResponseS4Flag AIGatewayNewResponseGuardrailsResponseS4 = "FLAG" AIGatewayNewResponseGuardrailsResponseS4Block AIGatewayNewResponseGuardrailsResponseS4 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsResponseS4) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsResponseS4) IsKnown() bool
type AIGatewayNewResponseGuardrailsResponseS5 ¶
type AIGatewayNewResponseGuardrailsResponseS5 string
const ( AIGatewayNewResponseGuardrailsResponseS5Flag AIGatewayNewResponseGuardrailsResponseS5 = "FLAG" AIGatewayNewResponseGuardrailsResponseS5Block AIGatewayNewResponseGuardrailsResponseS5 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsResponseS5) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsResponseS5) IsKnown() bool
type AIGatewayNewResponseGuardrailsResponseS6 ¶
type AIGatewayNewResponseGuardrailsResponseS6 string
const ( AIGatewayNewResponseGuardrailsResponseS6Flag AIGatewayNewResponseGuardrailsResponseS6 = "FLAG" AIGatewayNewResponseGuardrailsResponseS6Block AIGatewayNewResponseGuardrailsResponseS6 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsResponseS6) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsResponseS6) IsKnown() bool
type AIGatewayNewResponseGuardrailsResponseS7 ¶
type AIGatewayNewResponseGuardrailsResponseS7 string
const ( AIGatewayNewResponseGuardrailsResponseS7Flag AIGatewayNewResponseGuardrailsResponseS7 = "FLAG" AIGatewayNewResponseGuardrailsResponseS7Block AIGatewayNewResponseGuardrailsResponseS7 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsResponseS7) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsResponseS7) IsKnown() bool
type AIGatewayNewResponseGuardrailsResponseS8 ¶
type AIGatewayNewResponseGuardrailsResponseS8 string
const ( AIGatewayNewResponseGuardrailsResponseS8Flag AIGatewayNewResponseGuardrailsResponseS8 = "FLAG" AIGatewayNewResponseGuardrailsResponseS8Block AIGatewayNewResponseGuardrailsResponseS8 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsResponseS8) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsResponseS8) IsKnown() bool
type AIGatewayNewResponseGuardrailsResponseS9 ¶
type AIGatewayNewResponseGuardrailsResponseS9 string
const ( AIGatewayNewResponseGuardrailsResponseS9Flag AIGatewayNewResponseGuardrailsResponseS9 = "FLAG" AIGatewayNewResponseGuardrailsResponseS9Block AIGatewayNewResponseGuardrailsResponseS9 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsResponseS9) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsResponseS9) IsKnown() bool
type AIGatewayNewResponseGuardrailsResponseS10 ¶
type AIGatewayNewResponseGuardrailsResponseS10 string
const ( AIGatewayNewResponseGuardrailsResponseS10Flag AIGatewayNewResponseGuardrailsResponseS10 = "FLAG" AIGatewayNewResponseGuardrailsResponseS10Block AIGatewayNewResponseGuardrailsResponseS10 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsResponseS10) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsResponseS10) IsKnown() bool
type AIGatewayNewResponseGuardrailsResponseS11 ¶
type AIGatewayNewResponseGuardrailsResponseS11 string
const ( AIGatewayNewResponseGuardrailsResponseS11Flag AIGatewayNewResponseGuardrailsResponseS11 = "FLAG" AIGatewayNewResponseGuardrailsResponseS11Block AIGatewayNewResponseGuardrailsResponseS11 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsResponseS11) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsResponseS11) IsKnown() bool
type AIGatewayNewResponseGuardrailsResponseS12 ¶
type AIGatewayNewResponseGuardrailsResponseS12 string
const ( AIGatewayNewResponseGuardrailsResponseS12Flag AIGatewayNewResponseGuardrailsResponseS12 = "FLAG" AIGatewayNewResponseGuardrailsResponseS12Block AIGatewayNewResponseGuardrailsResponseS12 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsResponseS12) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsResponseS12) IsKnown() bool
type AIGatewayNewResponseGuardrailsResponseS13 ¶
type AIGatewayNewResponseGuardrailsResponseS13 string
const ( AIGatewayNewResponseGuardrailsResponseS13Flag AIGatewayNewResponseGuardrailsResponseS13 = "FLAG" AIGatewayNewResponseGuardrailsResponseS13Block AIGatewayNewResponseGuardrailsResponseS13 = "BLOCK" )
func (AIGatewayNewResponseGuardrailsResponseS13) IsKnown ¶
func (r AIGatewayNewResponseGuardrailsResponseS13) IsKnown() bool
type AIGatewayNewResponseLogManagementStrategy ¶
type AIGatewayNewResponseLogManagementStrategy string
const ( AIGatewayNewResponseLogManagementStrategyStopInserting AIGatewayNewResponseLogManagementStrategy = "STOP_INSERTING" AIGatewayNewResponseLogManagementStrategyDeleteOldest AIGatewayNewResponseLogManagementStrategy = "DELETE_OLDEST" )
func (AIGatewayNewResponseLogManagementStrategy) IsKnown ¶
func (r AIGatewayNewResponseLogManagementStrategy) IsKnown() bool
type AIGatewayNewResponseOtel ¶
type AIGatewayNewResponseOtel struct {
Authorization string `json:"authorization" api:"required"`
Headers map[string]string `json:"headers" api:"required"`
URL string `json:"url" api:"required" format:"uri"`
ContentType AIGatewayNewResponseOtelContentType `json:"content_type"`
JSON aiGatewayNewResponseOtelJSON `json:"-"`
}
func (*AIGatewayNewResponseOtel) UnmarshalJSON ¶
func (r *AIGatewayNewResponseOtel) UnmarshalJSON(data []byte) (err error)
type AIGatewayNewResponseOtelContentType ¶
type AIGatewayNewResponseOtelContentType string
const ( AIGatewayNewResponseOtelContentTypeJson AIGatewayNewResponseOtelContentType = "json" AIGatewayNewResponseOtelContentTypeProtobuf AIGatewayNewResponseOtelContentType = "protobuf" )
func (AIGatewayNewResponseOtelContentType) IsKnown ¶
func (r AIGatewayNewResponseOtelContentType) IsKnown() bool
type AIGatewayNewResponseRateLimitingTechnique ¶
type AIGatewayNewResponseRateLimitingTechnique string
const ( AIGatewayNewResponseRateLimitingTechniqueFixed AIGatewayNewResponseRateLimitingTechnique = "fixed" AIGatewayNewResponseRateLimitingTechniqueSliding AIGatewayNewResponseRateLimitingTechnique = "sliding" )
func (AIGatewayNewResponseRateLimitingTechnique) IsKnown ¶
func (r AIGatewayNewResponseRateLimitingTechnique) IsKnown() bool
type AIGatewayNewResponseRetryBackoff ¶
type AIGatewayNewResponseRetryBackoff string
Backoff strategy for retry delays
const ( AIGatewayNewResponseRetryBackoffConstant AIGatewayNewResponseRetryBackoff = "constant" AIGatewayNewResponseRetryBackoffLinear AIGatewayNewResponseRetryBackoff = "linear" AIGatewayNewResponseRetryBackoffExponential AIGatewayNewResponseRetryBackoff = "exponential" )
func (AIGatewayNewResponseRetryBackoff) IsKnown ¶
func (r AIGatewayNewResponseRetryBackoff) IsKnown() bool
type AIGatewayNewResponseStripe ¶
type AIGatewayNewResponseStripe struct {
Authorization string `json:"authorization" api:"required"`
UsageEvents []AIGatewayNewResponseStripeUsageEvent `json:"usage_events" api:"required"`
JSON aiGatewayNewResponseStripeJSON `json:"-"`
}
func (*AIGatewayNewResponseStripe) UnmarshalJSON ¶
func (r *AIGatewayNewResponseStripe) UnmarshalJSON(data []byte) (err error)
type AIGatewayNewResponseStripeUsageEvent ¶
type AIGatewayNewResponseStripeUsageEvent struct {
Payload string `json:"payload" api:"required"`
JSON aiGatewayNewResponseStripeUsageEventJSON `json:"-"`
}
func (*AIGatewayNewResponseStripeUsageEvent) UnmarshalJSON ¶
func (r *AIGatewayNewResponseStripeUsageEvent) UnmarshalJSON(data []byte) (err error)
type AIGatewayNewResponseWorkersAIBillingMode ¶
type AIGatewayNewResponseWorkersAIBillingMode string
Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported.
const (
AIGatewayNewResponseWorkersAIBillingModePostpaid AIGatewayNewResponseWorkersAIBillingMode = "postpaid"
)
func (AIGatewayNewResponseWorkersAIBillingMode) IsKnown ¶
func (r AIGatewayNewResponseWorkersAIBillingMode) IsKnown() bool
type AIGatewayService ¶
type AIGatewayService struct {
Options []option.RequestOption
EvaluationTypes *EvaluationTypeService
Logs *LogService
Datasets *DatasetService
Evaluations *EvaluationService
DynamicRouting *DynamicRoutingService
ProviderConfigs *ProviderConfigService
URLs *URLService
Billing *BillingService
}
AIGatewayService 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 NewAIGatewayService method instead.
func NewAIGatewayService ¶
func NewAIGatewayService(opts ...option.RequestOption) (r *AIGatewayService)
NewAIGatewayService 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 (*AIGatewayService) Delete ¶
func (r *AIGatewayService) Delete(ctx context.Context, id string, body AIGatewayDeleteParams, opts ...option.RequestOption) (res *AIGatewayDeleteResponse, err error)
Deletes an AI Gateway dataset.
func (*AIGatewayService) Get ¶
func (r *AIGatewayService) Get(ctx context.Context, id string, query AIGatewayGetParams, opts ...option.RequestOption) (res *AIGatewayGetResponse, err error)
Retrieves details for a specific AI Gateway dataset.
func (*AIGatewayService) List ¶
func (r *AIGatewayService) List(ctx context.Context, params AIGatewayListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[AIGatewayListResponse], err error)
Lists all AI Gateway evaluator types configured for the account.
func (*AIGatewayService) ListAutoPaging ¶
func (r *AIGatewayService) ListAutoPaging(ctx context.Context, params AIGatewayListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[AIGatewayListResponse]
Lists all AI Gateway evaluator types configured for the account.
func (*AIGatewayService) New ¶
func (r *AIGatewayService) New(ctx context.Context, params AIGatewayNewParams, opts ...option.RequestOption) (res *AIGatewayNewResponse, err error)
Creates a new AI Gateway.
func (*AIGatewayService) Update ¶
func (r *AIGatewayService) Update(ctx context.Context, id string, params AIGatewayUpdateParams, opts ...option.RequestOption) (res *AIGatewayUpdateResponse, err error)
Updates an existing AI Gateway dataset.
type AIGatewayUpdateParams ¶
type AIGatewayUpdateParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
CacheInvalidateOnUpdate param.Field[bool] `json:"cache_invalidate_on_update" api:"required"`
CacheTTL param.Field[int64] `json:"cache_ttl" api:"required"`
CollectLogs param.Field[bool] `json:"collect_logs" api:"required"`
RateLimitingInterval param.Field[int64] `json:"rate_limiting_interval" api:"required"`
RateLimitingLimit param.Field[int64] `json:"rate_limiting_limit" api:"required"`
Authentication param.Field[bool] `json:"authentication"`
DLP param.Field[AIGatewayUpdateParamsDLPUnion] `json:"dlp"`
Guardrails param.Field[AIGatewayUpdateParamsGuardrails] `json:"guardrails"`
LogManagement param.Field[int64] `json:"log_management"`
LogManagementStrategy param.Field[AIGatewayUpdateParamsLogManagementStrategy] `json:"log_management_strategy"`
Logpush param.Field[bool] `json:"logpush"`
LogpushPublicKey param.Field[string] `json:"logpush_public_key"`
Otel param.Field[[]AIGatewayUpdateParamsOtel] `json:"otel"`
RateLimitingTechnique param.Field[AIGatewayUpdateParamsRateLimitingTechnique] `json:"rate_limiting_technique"`
// Backoff strategy for retry delays
RetryBackoff param.Field[AIGatewayUpdateParamsRetryBackoff] `json:"retry_backoff"`
// Delay between retry attempts in milliseconds (0-5000)
RetryDelay param.Field[int64] `json:"retry_delay"`
// Maximum number of retry attempts for failed requests (1-5)
RetryMaxAttempts param.Field[int64] `json:"retry_max_attempts"`
StoreID param.Field[string] `json:"store_id"`
Stripe param.Field[AIGatewayUpdateParamsStripe] `json:"stripe"`
// Controls how Workers AI inference calls routed through this gateway are billed.
// Only 'postpaid' is currently supported.
WorkersAIBillingMode param.Field[AIGatewayUpdateParamsWorkersAIBillingMode] `json:"workers_ai_billing_mode"`
Zdr param.Field[bool] `json:"zdr"`
}
func (AIGatewayUpdateParams) MarshalJSON ¶
func (r AIGatewayUpdateParams) MarshalJSON() (data []byte, err error)
type AIGatewayUpdateParamsDLP ¶
type AIGatewayUpdateParamsDLP struct {
Enabled param.Field[bool] `json:"enabled" api:"required"`
Action param.Field[AIGatewayUpdateParamsDLPAction] `json:"action"`
Policies param.Field[interface{}] `json:"policies"`
Profiles param.Field[interface{}] `json:"profiles"`
}
func (AIGatewayUpdateParamsDLP) MarshalJSON ¶
func (r AIGatewayUpdateParamsDLP) MarshalJSON() (data []byte, err error)
type AIGatewayUpdateParamsDLPAction ¶
type AIGatewayUpdateParamsDLPAction string
const ( AIGatewayUpdateParamsDLPActionBlock AIGatewayUpdateParamsDLPAction = "BLOCK" AIGatewayUpdateParamsDLPActionFlag AIGatewayUpdateParamsDLPAction = "FLAG" )
func (AIGatewayUpdateParamsDLPAction) IsKnown ¶
func (r AIGatewayUpdateParamsDLPAction) IsKnown() bool
type AIGatewayUpdateParamsDLPObject ¶
type AIGatewayUpdateParamsDLPObject struct {
Action param.Field[AIGatewayUpdateParamsDLPObjectAction] `json:"action" api:"required"`
Enabled param.Field[bool] `json:"enabled" api:"required"`
Profiles param.Field[[]string] `json:"profiles" api:"required"`
}
func (AIGatewayUpdateParamsDLPObject) MarshalJSON ¶
func (r AIGatewayUpdateParamsDLPObject) MarshalJSON() (data []byte, err error)
type AIGatewayUpdateParamsDLPObjectAction ¶
type AIGatewayUpdateParamsDLPObjectAction string
const ( AIGatewayUpdateParamsDLPObjectActionBlock AIGatewayUpdateParamsDLPObjectAction = "BLOCK" AIGatewayUpdateParamsDLPObjectActionFlag AIGatewayUpdateParamsDLPObjectAction = "FLAG" )
func (AIGatewayUpdateParamsDLPObjectAction) IsKnown ¶
func (r AIGatewayUpdateParamsDLPObjectAction) IsKnown() bool
type AIGatewayUpdateParamsDLPUnion ¶
type AIGatewayUpdateParamsDLPUnion interface {
// contains filtered or unexported methods
}
Satisfied by ai_gateway.AIGatewayUpdateParamsDLPObject, ai_gateway.AIGatewayUpdateParamsDLPObject, AIGatewayUpdateParamsDLP.
type AIGatewayUpdateParamsGuardrails ¶
type AIGatewayUpdateParamsGuardrails struct {
Prompt param.Field[AIGatewayUpdateParamsGuardrailsPrompt] `json:"prompt" api:"required"`
Response param.Field[AIGatewayUpdateParamsGuardrailsResponse] `json:"response" api:"required"`
}
func (AIGatewayUpdateParamsGuardrails) MarshalJSON ¶
func (r AIGatewayUpdateParamsGuardrails) MarshalJSON() (data []byte, err error)
type AIGatewayUpdateParamsGuardrailsPrompt ¶
type AIGatewayUpdateParamsGuardrailsPrompt struct {
P1 param.Field[AIGatewayUpdateParamsGuardrailsPromptP1] `json:"P1"`
S1 param.Field[AIGatewayUpdateParamsGuardrailsPromptS1] `json:"S1"`
S10 param.Field[AIGatewayUpdateParamsGuardrailsPromptS10] `json:"S10"`
S11 param.Field[AIGatewayUpdateParamsGuardrailsPromptS11] `json:"S11"`
S12 param.Field[AIGatewayUpdateParamsGuardrailsPromptS12] `json:"S12"`
S13 param.Field[AIGatewayUpdateParamsGuardrailsPromptS13] `json:"S13"`
S2 param.Field[AIGatewayUpdateParamsGuardrailsPromptS2] `json:"S2"`
S3 param.Field[AIGatewayUpdateParamsGuardrailsPromptS3] `json:"S3"`
S4 param.Field[AIGatewayUpdateParamsGuardrailsPromptS4] `json:"S4"`
S5 param.Field[AIGatewayUpdateParamsGuardrailsPromptS5] `json:"S5"`
S6 param.Field[AIGatewayUpdateParamsGuardrailsPromptS6] `json:"S6"`
S7 param.Field[AIGatewayUpdateParamsGuardrailsPromptS7] `json:"S7"`
S8 param.Field[AIGatewayUpdateParamsGuardrailsPromptS8] `json:"S8"`
S9 param.Field[AIGatewayUpdateParamsGuardrailsPromptS9] `json:"S9"`
}
func (AIGatewayUpdateParamsGuardrailsPrompt) MarshalJSON ¶
func (r AIGatewayUpdateParamsGuardrailsPrompt) MarshalJSON() (data []byte, err error)
type AIGatewayUpdateParamsGuardrailsPromptP1 ¶
type AIGatewayUpdateParamsGuardrailsPromptP1 string
const ( AIGatewayUpdateParamsGuardrailsPromptP1Flag AIGatewayUpdateParamsGuardrailsPromptP1 = "FLAG" AIGatewayUpdateParamsGuardrailsPromptP1Block AIGatewayUpdateParamsGuardrailsPromptP1 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsPromptP1) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsPromptP1) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsPromptS1 ¶
type AIGatewayUpdateParamsGuardrailsPromptS1 string
const ( AIGatewayUpdateParamsGuardrailsPromptS1Flag AIGatewayUpdateParamsGuardrailsPromptS1 = "FLAG" AIGatewayUpdateParamsGuardrailsPromptS1Block AIGatewayUpdateParamsGuardrailsPromptS1 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsPromptS1) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsPromptS1) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsPromptS2 ¶
type AIGatewayUpdateParamsGuardrailsPromptS2 string
const ( AIGatewayUpdateParamsGuardrailsPromptS2Flag AIGatewayUpdateParamsGuardrailsPromptS2 = "FLAG" AIGatewayUpdateParamsGuardrailsPromptS2Block AIGatewayUpdateParamsGuardrailsPromptS2 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsPromptS2) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsPromptS2) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsPromptS3 ¶
type AIGatewayUpdateParamsGuardrailsPromptS3 string
const ( AIGatewayUpdateParamsGuardrailsPromptS3Flag AIGatewayUpdateParamsGuardrailsPromptS3 = "FLAG" AIGatewayUpdateParamsGuardrailsPromptS3Block AIGatewayUpdateParamsGuardrailsPromptS3 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsPromptS3) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsPromptS3) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsPromptS4 ¶
type AIGatewayUpdateParamsGuardrailsPromptS4 string
const ( AIGatewayUpdateParamsGuardrailsPromptS4Flag AIGatewayUpdateParamsGuardrailsPromptS4 = "FLAG" AIGatewayUpdateParamsGuardrailsPromptS4Block AIGatewayUpdateParamsGuardrailsPromptS4 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsPromptS4) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsPromptS4) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsPromptS5 ¶
type AIGatewayUpdateParamsGuardrailsPromptS5 string
const ( AIGatewayUpdateParamsGuardrailsPromptS5Flag AIGatewayUpdateParamsGuardrailsPromptS5 = "FLAG" AIGatewayUpdateParamsGuardrailsPromptS5Block AIGatewayUpdateParamsGuardrailsPromptS5 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsPromptS5) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsPromptS5) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsPromptS6 ¶
type AIGatewayUpdateParamsGuardrailsPromptS6 string
const ( AIGatewayUpdateParamsGuardrailsPromptS6Flag AIGatewayUpdateParamsGuardrailsPromptS6 = "FLAG" AIGatewayUpdateParamsGuardrailsPromptS6Block AIGatewayUpdateParamsGuardrailsPromptS6 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsPromptS6) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsPromptS6) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsPromptS7 ¶
type AIGatewayUpdateParamsGuardrailsPromptS7 string
const ( AIGatewayUpdateParamsGuardrailsPromptS7Flag AIGatewayUpdateParamsGuardrailsPromptS7 = "FLAG" AIGatewayUpdateParamsGuardrailsPromptS7Block AIGatewayUpdateParamsGuardrailsPromptS7 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsPromptS7) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsPromptS7) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsPromptS8 ¶
type AIGatewayUpdateParamsGuardrailsPromptS8 string
const ( AIGatewayUpdateParamsGuardrailsPromptS8Flag AIGatewayUpdateParamsGuardrailsPromptS8 = "FLAG" AIGatewayUpdateParamsGuardrailsPromptS8Block AIGatewayUpdateParamsGuardrailsPromptS8 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsPromptS8) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsPromptS8) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsPromptS9 ¶
type AIGatewayUpdateParamsGuardrailsPromptS9 string
const ( AIGatewayUpdateParamsGuardrailsPromptS9Flag AIGatewayUpdateParamsGuardrailsPromptS9 = "FLAG" AIGatewayUpdateParamsGuardrailsPromptS9Block AIGatewayUpdateParamsGuardrailsPromptS9 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsPromptS9) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsPromptS9) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsPromptS10 ¶
type AIGatewayUpdateParamsGuardrailsPromptS10 string
const ( AIGatewayUpdateParamsGuardrailsPromptS10Flag AIGatewayUpdateParamsGuardrailsPromptS10 = "FLAG" AIGatewayUpdateParamsGuardrailsPromptS10Block AIGatewayUpdateParamsGuardrailsPromptS10 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsPromptS10) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsPromptS10) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsPromptS11 ¶
type AIGatewayUpdateParamsGuardrailsPromptS11 string
const ( AIGatewayUpdateParamsGuardrailsPromptS11Flag AIGatewayUpdateParamsGuardrailsPromptS11 = "FLAG" AIGatewayUpdateParamsGuardrailsPromptS11Block AIGatewayUpdateParamsGuardrailsPromptS11 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsPromptS11) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsPromptS11) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsPromptS12 ¶
type AIGatewayUpdateParamsGuardrailsPromptS12 string
const ( AIGatewayUpdateParamsGuardrailsPromptS12Flag AIGatewayUpdateParamsGuardrailsPromptS12 = "FLAG" AIGatewayUpdateParamsGuardrailsPromptS12Block AIGatewayUpdateParamsGuardrailsPromptS12 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsPromptS12) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsPromptS12) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsPromptS13 ¶
type AIGatewayUpdateParamsGuardrailsPromptS13 string
const ( AIGatewayUpdateParamsGuardrailsPromptS13Flag AIGatewayUpdateParamsGuardrailsPromptS13 = "FLAG" AIGatewayUpdateParamsGuardrailsPromptS13Block AIGatewayUpdateParamsGuardrailsPromptS13 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsPromptS13) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsPromptS13) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsResponse ¶
type AIGatewayUpdateParamsGuardrailsResponse struct {
P1 param.Field[AIGatewayUpdateParamsGuardrailsResponseP1] `json:"P1"`
S1 param.Field[AIGatewayUpdateParamsGuardrailsResponseS1] `json:"S1"`
S10 param.Field[AIGatewayUpdateParamsGuardrailsResponseS10] `json:"S10"`
S11 param.Field[AIGatewayUpdateParamsGuardrailsResponseS11] `json:"S11"`
S12 param.Field[AIGatewayUpdateParamsGuardrailsResponseS12] `json:"S12"`
S13 param.Field[AIGatewayUpdateParamsGuardrailsResponseS13] `json:"S13"`
S2 param.Field[AIGatewayUpdateParamsGuardrailsResponseS2] `json:"S2"`
S3 param.Field[AIGatewayUpdateParamsGuardrailsResponseS3] `json:"S3"`
S4 param.Field[AIGatewayUpdateParamsGuardrailsResponseS4] `json:"S4"`
S5 param.Field[AIGatewayUpdateParamsGuardrailsResponseS5] `json:"S5"`
S6 param.Field[AIGatewayUpdateParamsGuardrailsResponseS6] `json:"S6"`
S7 param.Field[AIGatewayUpdateParamsGuardrailsResponseS7] `json:"S7"`
S8 param.Field[AIGatewayUpdateParamsGuardrailsResponseS8] `json:"S8"`
S9 param.Field[AIGatewayUpdateParamsGuardrailsResponseS9] `json:"S9"`
}
func (AIGatewayUpdateParamsGuardrailsResponse) MarshalJSON ¶
func (r AIGatewayUpdateParamsGuardrailsResponse) MarshalJSON() (data []byte, err error)
type AIGatewayUpdateParamsGuardrailsResponseP1 ¶
type AIGatewayUpdateParamsGuardrailsResponseP1 string
const ( AIGatewayUpdateParamsGuardrailsResponseP1Flag AIGatewayUpdateParamsGuardrailsResponseP1 = "FLAG" AIGatewayUpdateParamsGuardrailsResponseP1Block AIGatewayUpdateParamsGuardrailsResponseP1 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsResponseP1) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsResponseP1) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsResponseS1 ¶
type AIGatewayUpdateParamsGuardrailsResponseS1 string
const ( AIGatewayUpdateParamsGuardrailsResponseS1Flag AIGatewayUpdateParamsGuardrailsResponseS1 = "FLAG" AIGatewayUpdateParamsGuardrailsResponseS1Block AIGatewayUpdateParamsGuardrailsResponseS1 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsResponseS1) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsResponseS1) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsResponseS2 ¶
type AIGatewayUpdateParamsGuardrailsResponseS2 string
const ( AIGatewayUpdateParamsGuardrailsResponseS2Flag AIGatewayUpdateParamsGuardrailsResponseS2 = "FLAG" AIGatewayUpdateParamsGuardrailsResponseS2Block AIGatewayUpdateParamsGuardrailsResponseS2 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsResponseS2) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsResponseS2) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsResponseS3 ¶
type AIGatewayUpdateParamsGuardrailsResponseS3 string
const ( AIGatewayUpdateParamsGuardrailsResponseS3Flag AIGatewayUpdateParamsGuardrailsResponseS3 = "FLAG" AIGatewayUpdateParamsGuardrailsResponseS3Block AIGatewayUpdateParamsGuardrailsResponseS3 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsResponseS3) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsResponseS3) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsResponseS4 ¶
type AIGatewayUpdateParamsGuardrailsResponseS4 string
const ( AIGatewayUpdateParamsGuardrailsResponseS4Flag AIGatewayUpdateParamsGuardrailsResponseS4 = "FLAG" AIGatewayUpdateParamsGuardrailsResponseS4Block AIGatewayUpdateParamsGuardrailsResponseS4 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsResponseS4) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsResponseS4) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsResponseS5 ¶
type AIGatewayUpdateParamsGuardrailsResponseS5 string
const ( AIGatewayUpdateParamsGuardrailsResponseS5Flag AIGatewayUpdateParamsGuardrailsResponseS5 = "FLAG" AIGatewayUpdateParamsGuardrailsResponseS5Block AIGatewayUpdateParamsGuardrailsResponseS5 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsResponseS5) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsResponseS5) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsResponseS6 ¶
type AIGatewayUpdateParamsGuardrailsResponseS6 string
const ( AIGatewayUpdateParamsGuardrailsResponseS6Flag AIGatewayUpdateParamsGuardrailsResponseS6 = "FLAG" AIGatewayUpdateParamsGuardrailsResponseS6Block AIGatewayUpdateParamsGuardrailsResponseS6 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsResponseS6) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsResponseS6) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsResponseS7 ¶
type AIGatewayUpdateParamsGuardrailsResponseS7 string
const ( AIGatewayUpdateParamsGuardrailsResponseS7Flag AIGatewayUpdateParamsGuardrailsResponseS7 = "FLAG" AIGatewayUpdateParamsGuardrailsResponseS7Block AIGatewayUpdateParamsGuardrailsResponseS7 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsResponseS7) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsResponseS7) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsResponseS8 ¶
type AIGatewayUpdateParamsGuardrailsResponseS8 string
const ( AIGatewayUpdateParamsGuardrailsResponseS8Flag AIGatewayUpdateParamsGuardrailsResponseS8 = "FLAG" AIGatewayUpdateParamsGuardrailsResponseS8Block AIGatewayUpdateParamsGuardrailsResponseS8 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsResponseS8) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsResponseS8) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsResponseS9 ¶
type AIGatewayUpdateParamsGuardrailsResponseS9 string
const ( AIGatewayUpdateParamsGuardrailsResponseS9Flag AIGatewayUpdateParamsGuardrailsResponseS9 = "FLAG" AIGatewayUpdateParamsGuardrailsResponseS9Block AIGatewayUpdateParamsGuardrailsResponseS9 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsResponseS9) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsResponseS9) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsResponseS10 ¶
type AIGatewayUpdateParamsGuardrailsResponseS10 string
const ( AIGatewayUpdateParamsGuardrailsResponseS10Flag AIGatewayUpdateParamsGuardrailsResponseS10 = "FLAG" AIGatewayUpdateParamsGuardrailsResponseS10Block AIGatewayUpdateParamsGuardrailsResponseS10 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsResponseS10) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsResponseS10) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsResponseS11 ¶
type AIGatewayUpdateParamsGuardrailsResponseS11 string
const ( AIGatewayUpdateParamsGuardrailsResponseS11Flag AIGatewayUpdateParamsGuardrailsResponseS11 = "FLAG" AIGatewayUpdateParamsGuardrailsResponseS11Block AIGatewayUpdateParamsGuardrailsResponseS11 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsResponseS11) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsResponseS11) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsResponseS12 ¶
type AIGatewayUpdateParamsGuardrailsResponseS12 string
const ( AIGatewayUpdateParamsGuardrailsResponseS12Flag AIGatewayUpdateParamsGuardrailsResponseS12 = "FLAG" AIGatewayUpdateParamsGuardrailsResponseS12Block AIGatewayUpdateParamsGuardrailsResponseS12 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsResponseS12) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsResponseS12) IsKnown() bool
type AIGatewayUpdateParamsGuardrailsResponseS13 ¶
type AIGatewayUpdateParamsGuardrailsResponseS13 string
const ( AIGatewayUpdateParamsGuardrailsResponseS13Flag AIGatewayUpdateParamsGuardrailsResponseS13 = "FLAG" AIGatewayUpdateParamsGuardrailsResponseS13Block AIGatewayUpdateParamsGuardrailsResponseS13 = "BLOCK" )
func (AIGatewayUpdateParamsGuardrailsResponseS13) IsKnown ¶
func (r AIGatewayUpdateParamsGuardrailsResponseS13) IsKnown() bool
type AIGatewayUpdateParamsLogManagementStrategy ¶
type AIGatewayUpdateParamsLogManagementStrategy string
const ( AIGatewayUpdateParamsLogManagementStrategyStopInserting AIGatewayUpdateParamsLogManagementStrategy = "STOP_INSERTING" AIGatewayUpdateParamsLogManagementStrategyDeleteOldest AIGatewayUpdateParamsLogManagementStrategy = "DELETE_OLDEST" )
func (AIGatewayUpdateParamsLogManagementStrategy) IsKnown ¶
func (r AIGatewayUpdateParamsLogManagementStrategy) IsKnown() bool
type AIGatewayUpdateParamsOtel ¶
type AIGatewayUpdateParamsOtel struct {
Authorization param.Field[string] `json:"authorization" api:"required"`
Headers param.Field[map[string]string] `json:"headers" api:"required"`
URL param.Field[string] `json:"url" api:"required" format:"uri"`
ContentType param.Field[AIGatewayUpdateParamsOtelContentType] `json:"content_type"`
}
func (AIGatewayUpdateParamsOtel) MarshalJSON ¶
func (r AIGatewayUpdateParamsOtel) MarshalJSON() (data []byte, err error)
type AIGatewayUpdateParamsOtelContentType ¶
type AIGatewayUpdateParamsOtelContentType string
const ( AIGatewayUpdateParamsOtelContentTypeJson AIGatewayUpdateParamsOtelContentType = "json" AIGatewayUpdateParamsOtelContentTypeProtobuf AIGatewayUpdateParamsOtelContentType = "protobuf" )
func (AIGatewayUpdateParamsOtelContentType) IsKnown ¶
func (r AIGatewayUpdateParamsOtelContentType) IsKnown() bool
type AIGatewayUpdateParamsRateLimitingTechnique ¶
type AIGatewayUpdateParamsRateLimitingTechnique string
const ( AIGatewayUpdateParamsRateLimitingTechniqueFixed AIGatewayUpdateParamsRateLimitingTechnique = "fixed" AIGatewayUpdateParamsRateLimitingTechniqueSliding AIGatewayUpdateParamsRateLimitingTechnique = "sliding" )
func (AIGatewayUpdateParamsRateLimitingTechnique) IsKnown ¶
func (r AIGatewayUpdateParamsRateLimitingTechnique) IsKnown() bool
type AIGatewayUpdateParamsRetryBackoff ¶
type AIGatewayUpdateParamsRetryBackoff string
Backoff strategy for retry delays
const ( AIGatewayUpdateParamsRetryBackoffConstant AIGatewayUpdateParamsRetryBackoff = "constant" AIGatewayUpdateParamsRetryBackoffLinear AIGatewayUpdateParamsRetryBackoff = "linear" AIGatewayUpdateParamsRetryBackoffExponential AIGatewayUpdateParamsRetryBackoff = "exponential" )
func (AIGatewayUpdateParamsRetryBackoff) IsKnown ¶
func (r AIGatewayUpdateParamsRetryBackoff) IsKnown() bool
type AIGatewayUpdateParamsStripe ¶
type AIGatewayUpdateParamsStripe struct {
Authorization param.Field[string] `json:"authorization" api:"required"`
UsageEvents param.Field[[]AIGatewayUpdateParamsStripeUsageEvent] `json:"usage_events" api:"required"`
}
func (AIGatewayUpdateParamsStripe) MarshalJSON ¶
func (r AIGatewayUpdateParamsStripe) MarshalJSON() (data []byte, err error)
type AIGatewayUpdateParamsStripeUsageEvent ¶
type AIGatewayUpdateParamsStripeUsageEvent struct {
Payload param.Field[string] `json:"payload" api:"required"`
}
func (AIGatewayUpdateParamsStripeUsageEvent) MarshalJSON ¶
func (r AIGatewayUpdateParamsStripeUsageEvent) MarshalJSON() (data []byte, err error)
type AIGatewayUpdateParamsWorkersAIBillingMode ¶
type AIGatewayUpdateParamsWorkersAIBillingMode string
Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported.
const (
AIGatewayUpdateParamsWorkersAIBillingModePostpaid AIGatewayUpdateParamsWorkersAIBillingMode = "postpaid"
)
func (AIGatewayUpdateParamsWorkersAIBillingMode) IsKnown ¶
func (r AIGatewayUpdateParamsWorkersAIBillingMode) IsKnown() bool
type AIGatewayUpdateResponse ¶
type AIGatewayUpdateResponse struct {
// gateway id
ID string `json:"id" api:"required"`
CacheInvalidateOnUpdate bool `json:"cache_invalidate_on_update" api:"required"`
CacheTTL int64 `json:"cache_ttl" api:"required,nullable"`
CollectLogs bool `json:"collect_logs" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
RateLimitingInterval int64 `json:"rate_limiting_interval" api:"required,nullable"`
RateLimitingLimit int64 `json:"rate_limiting_limit" api:"required,nullable"`
Authentication bool `json:"authentication"`
DLP AIGatewayUpdateResponseDLP `json:"dlp"`
Guardrails AIGatewayUpdateResponseGuardrails `json:"guardrails" api:"nullable"`
IsDefault bool `json:"is_default"`
LogManagement int64 `json:"log_management" api:"nullable"`
LogManagementStrategy AIGatewayUpdateResponseLogManagementStrategy `json:"log_management_strategy" api:"nullable"`
Logpush bool `json:"logpush"`
LogpushPublicKey string `json:"logpush_public_key" api:"nullable"`
Otel []AIGatewayUpdateResponseOtel `json:"otel" api:"nullable"`
RateLimitingTechnique AIGatewayUpdateResponseRateLimitingTechnique `json:"rate_limiting_technique" api:"nullable"`
// Backoff strategy for retry delays
RetryBackoff AIGatewayUpdateResponseRetryBackoff `json:"retry_backoff" api:"nullable"`
// Delay between retry attempts in milliseconds (0-5000)
RetryDelay int64 `json:"retry_delay" api:"nullable"`
// Maximum number of retry attempts for failed requests (1-5)
RetryMaxAttempts int64 `json:"retry_max_attempts" api:"nullable"`
StoreID string `json:"store_id" api:"nullable"`
Stripe AIGatewayUpdateResponseStripe `json:"stripe" api:"nullable"`
// Controls how Workers AI inference calls routed through this gateway are billed.
// Only 'postpaid' is currently supported.
WorkersAIBillingMode AIGatewayUpdateResponseWorkersAIBillingMode `json:"workers_ai_billing_mode"`
Zdr bool `json:"zdr"`
JSON aiGatewayUpdateResponseJSON `json:"-"`
}
func (*AIGatewayUpdateResponse) UnmarshalJSON ¶
func (r *AIGatewayUpdateResponse) UnmarshalJSON(data []byte) (err error)
type AIGatewayUpdateResponseDLP ¶
type AIGatewayUpdateResponseDLP struct {
Enabled bool `json:"enabled" api:"required"`
Action AIGatewayUpdateResponseDLPAction `json:"action"`
// This field can have the runtime type of
// [[]AIGatewayUpdateResponseDLPObjectPolicy].
Policies interface{} `json:"policies"`
// This field can have the runtime type of [[]string].
Profiles interface{} `json:"profiles"`
JSON aiGatewayUpdateResponseDLPJSON `json:"-"`
// contains filtered or unexported fields
}
func (AIGatewayUpdateResponseDLP) AsUnion ¶
func (r AIGatewayUpdateResponseDLP) AsUnion() AIGatewayUpdateResponseDLPUnion
AsUnion returns a AIGatewayUpdateResponseDLPUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are AIGatewayUpdateResponseDLPObject, AIGatewayUpdateResponseDLPObject.
func (*AIGatewayUpdateResponseDLP) UnmarshalJSON ¶
func (r *AIGatewayUpdateResponseDLP) UnmarshalJSON(data []byte) (err error)
type AIGatewayUpdateResponseDLPAction ¶
type AIGatewayUpdateResponseDLPAction string
const ( AIGatewayUpdateResponseDLPActionBlock AIGatewayUpdateResponseDLPAction = "BLOCK" AIGatewayUpdateResponseDLPActionFlag AIGatewayUpdateResponseDLPAction = "FLAG" )
func (AIGatewayUpdateResponseDLPAction) IsKnown ¶
func (r AIGatewayUpdateResponseDLPAction) IsKnown() bool
type AIGatewayUpdateResponseDLPObject ¶
type AIGatewayUpdateResponseDLPObject struct {
Action AIGatewayUpdateResponseDLPObjectAction `json:"action" api:"required"`
Enabled bool `json:"enabled" api:"required"`
Profiles []string `json:"profiles" api:"required"`
JSON aiGatewayUpdateResponseDLPObjectJSON `json:"-"`
}
func (*AIGatewayUpdateResponseDLPObject) UnmarshalJSON ¶
func (r *AIGatewayUpdateResponseDLPObject) UnmarshalJSON(data []byte) (err error)
type AIGatewayUpdateResponseDLPObjectAction ¶
type AIGatewayUpdateResponseDLPObjectAction string
const ( AIGatewayUpdateResponseDLPObjectActionBlock AIGatewayUpdateResponseDLPObjectAction = "BLOCK" AIGatewayUpdateResponseDLPObjectActionFlag AIGatewayUpdateResponseDLPObjectAction = "FLAG" )
func (AIGatewayUpdateResponseDLPObjectAction) IsKnown ¶
func (r AIGatewayUpdateResponseDLPObjectAction) IsKnown() bool
type AIGatewayUpdateResponseDLPUnion ¶
type AIGatewayUpdateResponseDLPUnion interface {
// contains filtered or unexported methods
}
Union satisfied by AIGatewayUpdateResponseDLPObject or AIGatewayUpdateResponseDLPObject.
type AIGatewayUpdateResponseEnvelope ¶
type AIGatewayUpdateResponseEnvelope struct {
Result AIGatewayUpdateResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON aiGatewayUpdateResponseEnvelopeJSON `json:"-"`
}
func (*AIGatewayUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *AIGatewayUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AIGatewayUpdateResponseGuardrails ¶
type AIGatewayUpdateResponseGuardrails struct {
Prompt AIGatewayUpdateResponseGuardrailsPrompt `json:"prompt" api:"required"`
Response AIGatewayUpdateResponseGuardrailsResponse `json:"response" api:"required"`
JSON aiGatewayUpdateResponseGuardrailsJSON `json:"-"`
}
func (*AIGatewayUpdateResponseGuardrails) UnmarshalJSON ¶
func (r *AIGatewayUpdateResponseGuardrails) UnmarshalJSON(data []byte) (err error)
type AIGatewayUpdateResponseGuardrailsPrompt ¶
type AIGatewayUpdateResponseGuardrailsPrompt struct {
P1 AIGatewayUpdateResponseGuardrailsPromptP1 `json:"P1"`
S1 AIGatewayUpdateResponseGuardrailsPromptS1 `json:"S1"`
S10 AIGatewayUpdateResponseGuardrailsPromptS10 `json:"S10"`
S11 AIGatewayUpdateResponseGuardrailsPromptS11 `json:"S11"`
S12 AIGatewayUpdateResponseGuardrailsPromptS12 `json:"S12"`
S13 AIGatewayUpdateResponseGuardrailsPromptS13 `json:"S13"`
S2 AIGatewayUpdateResponseGuardrailsPromptS2 `json:"S2"`
S3 AIGatewayUpdateResponseGuardrailsPromptS3 `json:"S3"`
S4 AIGatewayUpdateResponseGuardrailsPromptS4 `json:"S4"`
S5 AIGatewayUpdateResponseGuardrailsPromptS5 `json:"S5"`
S6 AIGatewayUpdateResponseGuardrailsPromptS6 `json:"S6"`
S7 AIGatewayUpdateResponseGuardrailsPromptS7 `json:"S7"`
S8 AIGatewayUpdateResponseGuardrailsPromptS8 `json:"S8"`
S9 AIGatewayUpdateResponseGuardrailsPromptS9 `json:"S9"`
JSON aiGatewayUpdateResponseGuardrailsPromptJSON `json:"-"`
}
func (*AIGatewayUpdateResponseGuardrailsPrompt) UnmarshalJSON ¶
func (r *AIGatewayUpdateResponseGuardrailsPrompt) UnmarshalJSON(data []byte) (err error)
type AIGatewayUpdateResponseGuardrailsPromptP1 ¶
type AIGatewayUpdateResponseGuardrailsPromptP1 string
const ( AIGatewayUpdateResponseGuardrailsPromptP1Flag AIGatewayUpdateResponseGuardrailsPromptP1 = "FLAG" AIGatewayUpdateResponseGuardrailsPromptP1Block AIGatewayUpdateResponseGuardrailsPromptP1 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsPromptP1) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsPromptP1) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsPromptS1 ¶
type AIGatewayUpdateResponseGuardrailsPromptS1 string
const ( AIGatewayUpdateResponseGuardrailsPromptS1Flag AIGatewayUpdateResponseGuardrailsPromptS1 = "FLAG" AIGatewayUpdateResponseGuardrailsPromptS1Block AIGatewayUpdateResponseGuardrailsPromptS1 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsPromptS1) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsPromptS1) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsPromptS2 ¶
type AIGatewayUpdateResponseGuardrailsPromptS2 string
const ( AIGatewayUpdateResponseGuardrailsPromptS2Flag AIGatewayUpdateResponseGuardrailsPromptS2 = "FLAG" AIGatewayUpdateResponseGuardrailsPromptS2Block AIGatewayUpdateResponseGuardrailsPromptS2 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsPromptS2) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsPromptS2) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsPromptS3 ¶
type AIGatewayUpdateResponseGuardrailsPromptS3 string
const ( AIGatewayUpdateResponseGuardrailsPromptS3Flag AIGatewayUpdateResponseGuardrailsPromptS3 = "FLAG" AIGatewayUpdateResponseGuardrailsPromptS3Block AIGatewayUpdateResponseGuardrailsPromptS3 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsPromptS3) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsPromptS3) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsPromptS4 ¶
type AIGatewayUpdateResponseGuardrailsPromptS4 string
const ( AIGatewayUpdateResponseGuardrailsPromptS4Flag AIGatewayUpdateResponseGuardrailsPromptS4 = "FLAG" AIGatewayUpdateResponseGuardrailsPromptS4Block AIGatewayUpdateResponseGuardrailsPromptS4 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsPromptS4) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsPromptS4) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsPromptS5 ¶
type AIGatewayUpdateResponseGuardrailsPromptS5 string
const ( AIGatewayUpdateResponseGuardrailsPromptS5Flag AIGatewayUpdateResponseGuardrailsPromptS5 = "FLAG" AIGatewayUpdateResponseGuardrailsPromptS5Block AIGatewayUpdateResponseGuardrailsPromptS5 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsPromptS5) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsPromptS5) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsPromptS6 ¶
type AIGatewayUpdateResponseGuardrailsPromptS6 string
const ( AIGatewayUpdateResponseGuardrailsPromptS6Flag AIGatewayUpdateResponseGuardrailsPromptS6 = "FLAG" AIGatewayUpdateResponseGuardrailsPromptS6Block AIGatewayUpdateResponseGuardrailsPromptS6 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsPromptS6) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsPromptS6) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsPromptS7 ¶
type AIGatewayUpdateResponseGuardrailsPromptS7 string
const ( AIGatewayUpdateResponseGuardrailsPromptS7Flag AIGatewayUpdateResponseGuardrailsPromptS7 = "FLAG" AIGatewayUpdateResponseGuardrailsPromptS7Block AIGatewayUpdateResponseGuardrailsPromptS7 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsPromptS7) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsPromptS7) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsPromptS8 ¶
type AIGatewayUpdateResponseGuardrailsPromptS8 string
const ( AIGatewayUpdateResponseGuardrailsPromptS8Flag AIGatewayUpdateResponseGuardrailsPromptS8 = "FLAG" AIGatewayUpdateResponseGuardrailsPromptS8Block AIGatewayUpdateResponseGuardrailsPromptS8 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsPromptS8) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsPromptS8) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsPromptS9 ¶
type AIGatewayUpdateResponseGuardrailsPromptS9 string
const ( AIGatewayUpdateResponseGuardrailsPromptS9Flag AIGatewayUpdateResponseGuardrailsPromptS9 = "FLAG" AIGatewayUpdateResponseGuardrailsPromptS9Block AIGatewayUpdateResponseGuardrailsPromptS9 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsPromptS9) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsPromptS9) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsPromptS10 ¶
type AIGatewayUpdateResponseGuardrailsPromptS10 string
const ( AIGatewayUpdateResponseGuardrailsPromptS10Flag AIGatewayUpdateResponseGuardrailsPromptS10 = "FLAG" AIGatewayUpdateResponseGuardrailsPromptS10Block AIGatewayUpdateResponseGuardrailsPromptS10 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsPromptS10) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsPromptS10) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsPromptS11 ¶
type AIGatewayUpdateResponseGuardrailsPromptS11 string
const ( AIGatewayUpdateResponseGuardrailsPromptS11Flag AIGatewayUpdateResponseGuardrailsPromptS11 = "FLAG" AIGatewayUpdateResponseGuardrailsPromptS11Block AIGatewayUpdateResponseGuardrailsPromptS11 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsPromptS11) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsPromptS11) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsPromptS12 ¶
type AIGatewayUpdateResponseGuardrailsPromptS12 string
const ( AIGatewayUpdateResponseGuardrailsPromptS12Flag AIGatewayUpdateResponseGuardrailsPromptS12 = "FLAG" AIGatewayUpdateResponseGuardrailsPromptS12Block AIGatewayUpdateResponseGuardrailsPromptS12 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsPromptS12) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsPromptS12) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsPromptS13 ¶
type AIGatewayUpdateResponseGuardrailsPromptS13 string
const ( AIGatewayUpdateResponseGuardrailsPromptS13Flag AIGatewayUpdateResponseGuardrailsPromptS13 = "FLAG" AIGatewayUpdateResponseGuardrailsPromptS13Block AIGatewayUpdateResponseGuardrailsPromptS13 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsPromptS13) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsPromptS13) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsResponse ¶
type AIGatewayUpdateResponseGuardrailsResponse struct {
P1 AIGatewayUpdateResponseGuardrailsResponseP1 `json:"P1"`
S1 AIGatewayUpdateResponseGuardrailsResponseS1 `json:"S1"`
S10 AIGatewayUpdateResponseGuardrailsResponseS10 `json:"S10"`
S11 AIGatewayUpdateResponseGuardrailsResponseS11 `json:"S11"`
S12 AIGatewayUpdateResponseGuardrailsResponseS12 `json:"S12"`
S13 AIGatewayUpdateResponseGuardrailsResponseS13 `json:"S13"`
S2 AIGatewayUpdateResponseGuardrailsResponseS2 `json:"S2"`
S3 AIGatewayUpdateResponseGuardrailsResponseS3 `json:"S3"`
S4 AIGatewayUpdateResponseGuardrailsResponseS4 `json:"S4"`
S5 AIGatewayUpdateResponseGuardrailsResponseS5 `json:"S5"`
S6 AIGatewayUpdateResponseGuardrailsResponseS6 `json:"S6"`
S7 AIGatewayUpdateResponseGuardrailsResponseS7 `json:"S7"`
S8 AIGatewayUpdateResponseGuardrailsResponseS8 `json:"S8"`
S9 AIGatewayUpdateResponseGuardrailsResponseS9 `json:"S9"`
JSON aiGatewayUpdateResponseGuardrailsResponseJSON `json:"-"`
}
func (*AIGatewayUpdateResponseGuardrailsResponse) UnmarshalJSON ¶
func (r *AIGatewayUpdateResponseGuardrailsResponse) UnmarshalJSON(data []byte) (err error)
type AIGatewayUpdateResponseGuardrailsResponseP1 ¶
type AIGatewayUpdateResponseGuardrailsResponseP1 string
const ( AIGatewayUpdateResponseGuardrailsResponseP1Flag AIGatewayUpdateResponseGuardrailsResponseP1 = "FLAG" AIGatewayUpdateResponseGuardrailsResponseP1Block AIGatewayUpdateResponseGuardrailsResponseP1 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsResponseP1) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsResponseP1) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsResponseS1 ¶
type AIGatewayUpdateResponseGuardrailsResponseS1 string
const ( AIGatewayUpdateResponseGuardrailsResponseS1Flag AIGatewayUpdateResponseGuardrailsResponseS1 = "FLAG" AIGatewayUpdateResponseGuardrailsResponseS1Block AIGatewayUpdateResponseGuardrailsResponseS1 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsResponseS1) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsResponseS1) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsResponseS2 ¶
type AIGatewayUpdateResponseGuardrailsResponseS2 string
const ( AIGatewayUpdateResponseGuardrailsResponseS2Flag AIGatewayUpdateResponseGuardrailsResponseS2 = "FLAG" AIGatewayUpdateResponseGuardrailsResponseS2Block AIGatewayUpdateResponseGuardrailsResponseS2 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsResponseS2) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsResponseS2) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsResponseS3 ¶
type AIGatewayUpdateResponseGuardrailsResponseS3 string
const ( AIGatewayUpdateResponseGuardrailsResponseS3Flag AIGatewayUpdateResponseGuardrailsResponseS3 = "FLAG" AIGatewayUpdateResponseGuardrailsResponseS3Block AIGatewayUpdateResponseGuardrailsResponseS3 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsResponseS3) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsResponseS3) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsResponseS4 ¶
type AIGatewayUpdateResponseGuardrailsResponseS4 string
const ( AIGatewayUpdateResponseGuardrailsResponseS4Flag AIGatewayUpdateResponseGuardrailsResponseS4 = "FLAG" AIGatewayUpdateResponseGuardrailsResponseS4Block AIGatewayUpdateResponseGuardrailsResponseS4 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsResponseS4) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsResponseS4) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsResponseS5 ¶
type AIGatewayUpdateResponseGuardrailsResponseS5 string
const ( AIGatewayUpdateResponseGuardrailsResponseS5Flag AIGatewayUpdateResponseGuardrailsResponseS5 = "FLAG" AIGatewayUpdateResponseGuardrailsResponseS5Block AIGatewayUpdateResponseGuardrailsResponseS5 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsResponseS5) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsResponseS5) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsResponseS6 ¶
type AIGatewayUpdateResponseGuardrailsResponseS6 string
const ( AIGatewayUpdateResponseGuardrailsResponseS6Flag AIGatewayUpdateResponseGuardrailsResponseS6 = "FLAG" AIGatewayUpdateResponseGuardrailsResponseS6Block AIGatewayUpdateResponseGuardrailsResponseS6 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsResponseS6) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsResponseS6) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsResponseS7 ¶
type AIGatewayUpdateResponseGuardrailsResponseS7 string
const ( AIGatewayUpdateResponseGuardrailsResponseS7Flag AIGatewayUpdateResponseGuardrailsResponseS7 = "FLAG" AIGatewayUpdateResponseGuardrailsResponseS7Block AIGatewayUpdateResponseGuardrailsResponseS7 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsResponseS7) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsResponseS7) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsResponseS8 ¶
type AIGatewayUpdateResponseGuardrailsResponseS8 string
const ( AIGatewayUpdateResponseGuardrailsResponseS8Flag AIGatewayUpdateResponseGuardrailsResponseS8 = "FLAG" AIGatewayUpdateResponseGuardrailsResponseS8Block AIGatewayUpdateResponseGuardrailsResponseS8 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsResponseS8) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsResponseS8) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsResponseS9 ¶
type AIGatewayUpdateResponseGuardrailsResponseS9 string
const ( AIGatewayUpdateResponseGuardrailsResponseS9Flag AIGatewayUpdateResponseGuardrailsResponseS9 = "FLAG" AIGatewayUpdateResponseGuardrailsResponseS9Block AIGatewayUpdateResponseGuardrailsResponseS9 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsResponseS9) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsResponseS9) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsResponseS10 ¶
type AIGatewayUpdateResponseGuardrailsResponseS10 string
const ( AIGatewayUpdateResponseGuardrailsResponseS10Flag AIGatewayUpdateResponseGuardrailsResponseS10 = "FLAG" AIGatewayUpdateResponseGuardrailsResponseS10Block AIGatewayUpdateResponseGuardrailsResponseS10 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsResponseS10) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsResponseS10) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsResponseS11 ¶
type AIGatewayUpdateResponseGuardrailsResponseS11 string
const ( AIGatewayUpdateResponseGuardrailsResponseS11Flag AIGatewayUpdateResponseGuardrailsResponseS11 = "FLAG" AIGatewayUpdateResponseGuardrailsResponseS11Block AIGatewayUpdateResponseGuardrailsResponseS11 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsResponseS11) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsResponseS11) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsResponseS12 ¶
type AIGatewayUpdateResponseGuardrailsResponseS12 string
const ( AIGatewayUpdateResponseGuardrailsResponseS12Flag AIGatewayUpdateResponseGuardrailsResponseS12 = "FLAG" AIGatewayUpdateResponseGuardrailsResponseS12Block AIGatewayUpdateResponseGuardrailsResponseS12 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsResponseS12) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsResponseS12) IsKnown() bool
type AIGatewayUpdateResponseGuardrailsResponseS13 ¶
type AIGatewayUpdateResponseGuardrailsResponseS13 string
const ( AIGatewayUpdateResponseGuardrailsResponseS13Flag AIGatewayUpdateResponseGuardrailsResponseS13 = "FLAG" AIGatewayUpdateResponseGuardrailsResponseS13Block AIGatewayUpdateResponseGuardrailsResponseS13 = "BLOCK" )
func (AIGatewayUpdateResponseGuardrailsResponseS13) IsKnown ¶
func (r AIGatewayUpdateResponseGuardrailsResponseS13) IsKnown() bool
type AIGatewayUpdateResponseLogManagementStrategy ¶
type AIGatewayUpdateResponseLogManagementStrategy string
const ( AIGatewayUpdateResponseLogManagementStrategyStopInserting AIGatewayUpdateResponseLogManagementStrategy = "STOP_INSERTING" AIGatewayUpdateResponseLogManagementStrategyDeleteOldest AIGatewayUpdateResponseLogManagementStrategy = "DELETE_OLDEST" )
func (AIGatewayUpdateResponseLogManagementStrategy) IsKnown ¶
func (r AIGatewayUpdateResponseLogManagementStrategy) IsKnown() bool
type AIGatewayUpdateResponseOtel ¶
type AIGatewayUpdateResponseOtel struct {
Authorization string `json:"authorization" api:"required"`
Headers map[string]string `json:"headers" api:"required"`
URL string `json:"url" api:"required" format:"uri"`
ContentType AIGatewayUpdateResponseOtelContentType `json:"content_type"`
JSON aiGatewayUpdateResponseOtelJSON `json:"-"`
}
func (*AIGatewayUpdateResponseOtel) UnmarshalJSON ¶
func (r *AIGatewayUpdateResponseOtel) UnmarshalJSON(data []byte) (err error)
type AIGatewayUpdateResponseOtelContentType ¶
type AIGatewayUpdateResponseOtelContentType string
const ( AIGatewayUpdateResponseOtelContentTypeJson AIGatewayUpdateResponseOtelContentType = "json" AIGatewayUpdateResponseOtelContentTypeProtobuf AIGatewayUpdateResponseOtelContentType = "protobuf" )
func (AIGatewayUpdateResponseOtelContentType) IsKnown ¶
func (r AIGatewayUpdateResponseOtelContentType) IsKnown() bool
type AIGatewayUpdateResponseRateLimitingTechnique ¶
type AIGatewayUpdateResponseRateLimitingTechnique string
const ( AIGatewayUpdateResponseRateLimitingTechniqueFixed AIGatewayUpdateResponseRateLimitingTechnique = "fixed" AIGatewayUpdateResponseRateLimitingTechniqueSliding AIGatewayUpdateResponseRateLimitingTechnique = "sliding" )
func (AIGatewayUpdateResponseRateLimitingTechnique) IsKnown ¶
func (r AIGatewayUpdateResponseRateLimitingTechnique) IsKnown() bool
type AIGatewayUpdateResponseRetryBackoff ¶
type AIGatewayUpdateResponseRetryBackoff string
Backoff strategy for retry delays
const ( AIGatewayUpdateResponseRetryBackoffConstant AIGatewayUpdateResponseRetryBackoff = "constant" AIGatewayUpdateResponseRetryBackoffLinear AIGatewayUpdateResponseRetryBackoff = "linear" AIGatewayUpdateResponseRetryBackoffExponential AIGatewayUpdateResponseRetryBackoff = "exponential" )
func (AIGatewayUpdateResponseRetryBackoff) IsKnown ¶
func (r AIGatewayUpdateResponseRetryBackoff) IsKnown() bool
type AIGatewayUpdateResponseStripe ¶
type AIGatewayUpdateResponseStripe struct {
Authorization string `json:"authorization" api:"required"`
UsageEvents []AIGatewayUpdateResponseStripeUsageEvent `json:"usage_events" api:"required"`
JSON aiGatewayUpdateResponseStripeJSON `json:"-"`
}
func (*AIGatewayUpdateResponseStripe) UnmarshalJSON ¶
func (r *AIGatewayUpdateResponseStripe) UnmarshalJSON(data []byte) (err error)
type AIGatewayUpdateResponseStripeUsageEvent ¶
type AIGatewayUpdateResponseStripeUsageEvent struct {
Payload string `json:"payload" api:"required"`
JSON aiGatewayUpdateResponseStripeUsageEventJSON `json:"-"`
}
func (*AIGatewayUpdateResponseStripeUsageEvent) UnmarshalJSON ¶
func (r *AIGatewayUpdateResponseStripeUsageEvent) UnmarshalJSON(data []byte) (err error)
type AIGatewayUpdateResponseWorkersAIBillingMode ¶
type AIGatewayUpdateResponseWorkersAIBillingMode string
Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported.
const (
AIGatewayUpdateResponseWorkersAIBillingModePostpaid AIGatewayUpdateResponseWorkersAIBillingMode = "postpaid"
)
func (AIGatewayUpdateResponseWorkersAIBillingMode) IsKnown ¶
func (r AIGatewayUpdateResponseWorkersAIBillingMode) IsKnown() bool
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 BillingCreditBalanceResponse ¶
type BillingCreditBalanceResponse struct {
Balance float64 `json:"balance" api:"required"`
HasDefaultPaymentMethod bool `json:"has_default_payment_method" api:"required"`
PaymentMethod BillingCreditBalanceResponsePaymentMethod `json:"payment_method" api:"required,nullable"`
TopupConfig BillingCreditBalanceResponseTopupConfig `json:"topup_config" api:"required"`
FirstTopupSuccess bool `json:"first_topup_success"`
JSON billingCreditBalanceResponseJSON `json:"-"`
}
func (*BillingCreditBalanceResponse) UnmarshalJSON ¶
func (r *BillingCreditBalanceResponse) UnmarshalJSON(data []byte) (err error)
type BillingCreditBalanceResponseEnvelope ¶
type BillingCreditBalanceResponseEnvelope struct {
Errors []BillingCreditBalanceResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []BillingCreditBalanceResponseEnvelopeMessages `json:"messages" api:"required"`
Result BillingCreditBalanceResponse `json:"result" api:"required"`
Success BillingCreditBalanceResponseEnvelopeSuccess `json:"success" api:"required"`
ResultInfo BillingCreditBalanceResponseEnvelopeResultInfo `json:"result_info"`
JSON billingCreditBalanceResponseEnvelopeJSON `json:"-"`
}
func (*BillingCreditBalanceResponseEnvelope) UnmarshalJSON ¶
func (r *BillingCreditBalanceResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BillingCreditBalanceResponseEnvelopeErrors ¶
type BillingCreditBalanceResponseEnvelopeErrors struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingCreditBalanceResponseEnvelopeErrorsJSON `json:"-"`
}
func (*BillingCreditBalanceResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *BillingCreditBalanceResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type BillingCreditBalanceResponseEnvelopeMessages ¶
type BillingCreditBalanceResponseEnvelopeMessages struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingCreditBalanceResponseEnvelopeMessagesJSON `json:"-"`
}
func (*BillingCreditBalanceResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *BillingCreditBalanceResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type BillingCreditBalanceResponseEnvelopeResultInfo ¶
type BillingCreditBalanceResponseEnvelopeResultInfo struct {
HasMore bool `json:"has_more" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
TotalCount float64 `json:"total_count" api:"required"`
JSON billingCreditBalanceResponseEnvelopeResultInfoJSON `json:"-"`
}
func (*BillingCreditBalanceResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *BillingCreditBalanceResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type BillingCreditBalanceResponseEnvelopeSuccess ¶
type BillingCreditBalanceResponseEnvelopeSuccess bool
const (
BillingCreditBalanceResponseEnvelopeSuccessTrue BillingCreditBalanceResponseEnvelopeSuccess = true
)
func (BillingCreditBalanceResponseEnvelopeSuccess) IsKnown ¶
func (r BillingCreditBalanceResponseEnvelopeSuccess) IsKnown() bool
type BillingCreditBalanceResponsePaymentMethod ¶
type BillingCreditBalanceResponsePaymentMethod struct {
Brand string `json:"brand"`
Last4 string `json:"last4"`
JSON billingCreditBalanceResponsePaymentMethodJSON `json:"-"`
}
func (*BillingCreditBalanceResponsePaymentMethod) UnmarshalJSON ¶
func (r *BillingCreditBalanceResponsePaymentMethod) UnmarshalJSON(data []byte) (err error)
type BillingCreditBalanceResponseTopupConfig ¶
type BillingCreditBalanceResponseTopupConfig struct {
Amount float64 `json:"amount" api:"required,nullable"`
DisabledReason string `json:"disabledReason" api:"required,nullable"`
Error string `json:"error" api:"required,nullable"`
LastFailedAt float64 `json:"lastFailedAt" api:"required,nullable"`
Threshold float64 `json:"threshold" api:"required,nullable"`
JSON billingCreditBalanceResponseTopupConfigJSON `json:"-"`
}
func (*BillingCreditBalanceResponseTopupConfig) UnmarshalJSON ¶
func (r *BillingCreditBalanceResponseTopupConfig) UnmarshalJSON(data []byte) (err error)
type BillingInvoiceHistoryParams ¶
type BillingInvoiceHistoryParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
// Filter invoice type: auto, manual, or all.
Type param.Field[BillingInvoiceHistoryParamsType] `query:"type"`
}
func (BillingInvoiceHistoryParams) URLQuery ¶
func (r BillingInvoiceHistoryParams) URLQuery() (v url.Values)
URLQuery serializes BillingInvoiceHistoryParams's query parameters as `url.Values`.
type BillingInvoiceHistoryParamsType ¶
type BillingInvoiceHistoryParamsType string
Filter invoice type: auto, manual, or all.
const ( BillingInvoiceHistoryParamsTypeAuto BillingInvoiceHistoryParamsType = "auto" BillingInvoiceHistoryParamsTypeAll BillingInvoiceHistoryParamsType = "all" BillingInvoiceHistoryParamsTypeManual BillingInvoiceHistoryParamsType = "manual" )
func (BillingInvoiceHistoryParamsType) IsKnown ¶
func (r BillingInvoiceHistoryParamsType) IsKnown() bool
type BillingInvoiceHistoryResponse ¶
type BillingInvoiceHistoryResponse struct {
Invoices []BillingInvoiceHistoryResponseInvoice `json:"invoices" api:"required"`
Pagination BillingInvoiceHistoryResponsePagination `json:"pagination" api:"required"`
JSON billingInvoiceHistoryResponseJSON `json:"-"`
}
func (*BillingInvoiceHistoryResponse) UnmarshalJSON ¶
func (r *BillingInvoiceHistoryResponse) UnmarshalJSON(data []byte) (err error)
type BillingInvoiceHistoryResponseEnvelope ¶
type BillingInvoiceHistoryResponseEnvelope struct {
Errors []BillingInvoiceHistoryResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []BillingInvoiceHistoryResponseEnvelopeMessages `json:"messages" api:"required"`
Result BillingInvoiceHistoryResponse `json:"result" api:"required"`
Success BillingInvoiceHistoryResponseEnvelopeSuccess `json:"success" api:"required"`
ResultInfo BillingInvoiceHistoryResponseEnvelopeResultInfo `json:"result_info"`
JSON billingInvoiceHistoryResponseEnvelopeJSON `json:"-"`
}
func (*BillingInvoiceHistoryResponseEnvelope) UnmarshalJSON ¶
func (r *BillingInvoiceHistoryResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BillingInvoiceHistoryResponseEnvelopeErrors ¶
type BillingInvoiceHistoryResponseEnvelopeErrors struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingInvoiceHistoryResponseEnvelopeErrorsJSON `json:"-"`
}
func (*BillingInvoiceHistoryResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *BillingInvoiceHistoryResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type BillingInvoiceHistoryResponseEnvelopeMessages ¶
type BillingInvoiceHistoryResponseEnvelopeMessages struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingInvoiceHistoryResponseEnvelopeMessagesJSON `json:"-"`
}
func (*BillingInvoiceHistoryResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *BillingInvoiceHistoryResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type BillingInvoiceHistoryResponseEnvelopeResultInfo ¶
type BillingInvoiceHistoryResponseEnvelopeResultInfo struct {
HasMore bool `json:"has_more" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
TotalCount float64 `json:"total_count" api:"required"`
JSON billingInvoiceHistoryResponseEnvelopeResultInfoJSON `json:"-"`
}
func (*BillingInvoiceHistoryResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *BillingInvoiceHistoryResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type BillingInvoiceHistoryResponseEnvelopeSuccess ¶
type BillingInvoiceHistoryResponseEnvelopeSuccess bool
const (
BillingInvoiceHistoryResponseEnvelopeSuccessTrue BillingInvoiceHistoryResponseEnvelopeSuccess = true
)
func (BillingInvoiceHistoryResponseEnvelopeSuccess) IsKnown ¶
func (r BillingInvoiceHistoryResponseEnvelopeSuccess) IsKnown() bool
type BillingInvoiceHistoryResponseInvoice ¶
type BillingInvoiceHistoryResponseInvoice struct {
AmountDue float64 `json:"amount_due" api:"required"`
AmountPaid float64 `json:"amount_paid" api:"required"`
AmountRemaining float64 `json:"amount_remaining" api:"required"`
Currency string `json:"currency" api:"required"`
ID string `json:"id" api:"nullable"`
AttemptCount float64 `json:"attempt_count"`
Attempted bool `json:"attempted"`
AutoAdvance bool `json:"auto_advance" api:"nullable"`
Created float64 `json:"created"`
CreatedBy string `json:"created_by"`
Description string `json:"description" api:"nullable"`
InvoiceOrigin string `json:"invoice_origin"`
InvoicePDF string `json:"invoice_pdf" api:"nullable"`
Status string `json:"status" api:"nullable"`
JSON billingInvoiceHistoryResponseInvoiceJSON `json:"-"`
}
func (*BillingInvoiceHistoryResponseInvoice) UnmarshalJSON ¶
func (r *BillingInvoiceHistoryResponseInvoice) UnmarshalJSON(data []byte) (err error)
type BillingInvoiceHistoryResponsePagination ¶
type BillingInvoiceHistoryResponsePagination struct {
HasMore bool `json:"has_more" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
TotalCount float64 `json:"total_count" api:"required"`
JSON billingInvoiceHistoryResponsePaginationJSON `json:"-"`
}
func (*BillingInvoiceHistoryResponsePagination) UnmarshalJSON ¶
func (r *BillingInvoiceHistoryResponsePagination) UnmarshalJSON(data []byte) (err error)
type BillingInvoicePreviewResponse ¶
type BillingInvoicePreviewResponse struct {
ID string `json:"id" api:"required"`
AmountDue float64 `json:"amount_due" api:"required"`
AmountPaid float64 `json:"amount_paid" api:"required"`
AmountRemaining float64 `json:"amount_remaining" api:"required"`
Currency string `json:"currency" api:"required"`
InvoiceLines []BillingInvoicePreviewResponseInvoiceLine `json:"invoice_lines" api:"required"`
PeriodEnd float64 `json:"period_end" api:"required"`
PeriodStart float64 `json:"period_start" api:"required"`
Status BillingInvoicePreviewResponseStatus `json:"status" api:"required"`
JSON billingInvoicePreviewResponseJSON `json:"-"`
}
func (*BillingInvoicePreviewResponse) UnmarshalJSON ¶
func (r *BillingInvoicePreviewResponse) UnmarshalJSON(data []byte) (err error)
type BillingInvoicePreviewResponseEnvelope ¶
type BillingInvoicePreviewResponseEnvelope struct {
Errors []BillingInvoicePreviewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []BillingInvoicePreviewResponseEnvelopeMessages `json:"messages" api:"required"`
Result BillingInvoicePreviewResponse `json:"result" api:"required"`
Success BillingInvoicePreviewResponseEnvelopeSuccess `json:"success" api:"required"`
ResultInfo BillingInvoicePreviewResponseEnvelopeResultInfo `json:"result_info"`
JSON billingInvoicePreviewResponseEnvelopeJSON `json:"-"`
}
func (*BillingInvoicePreviewResponseEnvelope) UnmarshalJSON ¶
func (r *BillingInvoicePreviewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BillingInvoicePreviewResponseEnvelopeErrors ¶
type BillingInvoicePreviewResponseEnvelopeErrors struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingInvoicePreviewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*BillingInvoicePreviewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *BillingInvoicePreviewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type BillingInvoicePreviewResponseEnvelopeMessages ¶
type BillingInvoicePreviewResponseEnvelopeMessages struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingInvoicePreviewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*BillingInvoicePreviewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *BillingInvoicePreviewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type BillingInvoicePreviewResponseEnvelopeResultInfo ¶
type BillingInvoicePreviewResponseEnvelopeResultInfo struct {
HasMore bool `json:"has_more" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
TotalCount float64 `json:"total_count" api:"required"`
JSON billingInvoicePreviewResponseEnvelopeResultInfoJSON `json:"-"`
}
func (*BillingInvoicePreviewResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *BillingInvoicePreviewResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type BillingInvoicePreviewResponseEnvelopeSuccess ¶
type BillingInvoicePreviewResponseEnvelopeSuccess bool
const (
BillingInvoicePreviewResponseEnvelopeSuccessTrue BillingInvoicePreviewResponseEnvelopeSuccess = true
)
func (BillingInvoicePreviewResponseEnvelopeSuccess) IsKnown ¶
func (r BillingInvoicePreviewResponseEnvelopeSuccess) IsKnown() bool
type BillingInvoicePreviewResponseInvoiceLine ¶
type BillingInvoicePreviewResponseInvoiceLine struct {
Amount float64 `json:"amount" api:"required"`
Currency string `json:"currency" api:"required"`
Description string `json:"description" api:"required,nullable"`
Period BillingInvoicePreviewResponseInvoiceLinesPeriod `json:"period" api:"required"`
Pricing BillingInvoicePreviewResponseInvoiceLinesPricing `json:"pricing" api:"required"`
Quantity float64 `json:"quantity" api:"required"`
PretaxCreditAmounts []BillingInvoicePreviewResponseInvoiceLinesPretaxCreditAmount `json:"pretax_credit_amounts"`
JSON billingInvoicePreviewResponseInvoiceLineJSON `json:"-"`
}
func (*BillingInvoicePreviewResponseInvoiceLine) UnmarshalJSON ¶
func (r *BillingInvoicePreviewResponseInvoiceLine) UnmarshalJSON(data []byte) (err error)
type BillingInvoicePreviewResponseInvoiceLinesPeriod ¶
type BillingInvoicePreviewResponseInvoiceLinesPeriod struct {
End float64 `json:"end" api:"required"`
Start float64 `json:"start" api:"required"`
JSON billingInvoicePreviewResponseInvoiceLinesPeriodJSON `json:"-"`
}
func (*BillingInvoicePreviewResponseInvoiceLinesPeriod) UnmarshalJSON ¶
func (r *BillingInvoicePreviewResponseInvoiceLinesPeriod) UnmarshalJSON(data []byte) (err error)
type BillingInvoicePreviewResponseInvoiceLinesPretaxCreditAmount ¶
type BillingInvoicePreviewResponseInvoiceLinesPretaxCreditAmount struct {
Amount float64 `json:"amount" api:"required"`
Type string `json:"type" api:"required"`
CreditBalanceTransaction string `json:"credit_balance_transaction" api:"nullable"`
Discount string `json:"discount" api:"nullable"`
JSON billingInvoicePreviewResponseInvoiceLinesPretaxCreditAmountJSON `json:"-"`
}
func (*BillingInvoicePreviewResponseInvoiceLinesPretaxCreditAmount) UnmarshalJSON ¶
func (r *BillingInvoicePreviewResponseInvoiceLinesPretaxCreditAmount) UnmarshalJSON(data []byte) (err error)
type BillingInvoicePreviewResponseInvoiceLinesPricing ¶
type BillingInvoicePreviewResponseInvoiceLinesPricing struct {
UnitAmountDecimal string `json:"unit_amount_decimal" api:"required,nullable"`
JSON billingInvoicePreviewResponseInvoiceLinesPricingJSON `json:"-"`
}
func (*BillingInvoicePreviewResponseInvoiceLinesPricing) UnmarshalJSON ¶
func (r *BillingInvoicePreviewResponseInvoiceLinesPricing) UnmarshalJSON(data []byte) (err error)
type BillingInvoicePreviewResponseStatus ¶
type BillingInvoicePreviewResponseStatus string
const ( BillingInvoicePreviewResponseStatusDraft BillingInvoicePreviewResponseStatus = "draft" BillingInvoicePreviewResponseStatusOpen BillingInvoicePreviewResponseStatus = "open" BillingInvoicePreviewResponseStatusPaid BillingInvoicePreviewResponseStatus = "paid" BillingInvoicePreviewResponseStatusUncollectible BillingInvoicePreviewResponseStatus = "uncollectible" BillingInvoicePreviewResponseStatusVoid BillingInvoicePreviewResponseStatus = "void" )
func (BillingInvoicePreviewResponseStatus) IsKnown ¶
func (r BillingInvoicePreviewResponseStatus) IsKnown() bool
type BillingService ¶
type BillingService struct {
Options []option.RequestOption
Topup *BillingTopupService
SpendingLimit *BillingSpendingLimitService
}
BillingService 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 NewBillingService method instead.
func NewBillingService ¶
func NewBillingService(opts ...option.RequestOption) (r *BillingService)
NewBillingService 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 (*BillingService) CreditBalance ¶
func (r *BillingService) CreditBalance(ctx context.Context, query BillingCreditBalanceParams, opts ...option.RequestOption) (res *BillingCreditBalanceResponse, err error)
Retrieve the current credit balance, payment method info, and top-up configuration.
func (*BillingService) InvoiceHistory ¶
func (r *BillingService) InvoiceHistory(ctx context.Context, params BillingInvoiceHistoryParams, opts ...option.RequestOption) (res *BillingInvoiceHistoryResponse, err error)
Retrieve a list of past invoices with pagination, optionally filtered by type.
func (*BillingService) InvoicePreview ¶
func (r *BillingService) InvoicePreview(ctx context.Context, query BillingInvoicePreviewParams, opts ...option.RequestOption) (res *BillingInvoicePreviewResponse, err error)
Retrieve a preview of the upcoming invoice including line items and tax.
func (*BillingService) UsageHistory ¶
func (r *BillingService) UsageHistory(ctx context.Context, params BillingUsageHistoryParams, opts ...option.RequestOption) (res *BillingUsageHistoryResponse, err error)
Retrieve aggregated usage meter event summaries for the given time range.
type BillingSpendingLimitDeleteResponse ¶
type BillingSpendingLimitDeleteResponse = interface{}
type BillingSpendingLimitDeleteResponseEnvelope ¶
type BillingSpendingLimitDeleteResponseEnvelope struct {
Errors []BillingSpendingLimitDeleteResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []BillingSpendingLimitDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
Result BillingSpendingLimitDeleteResponse `json:"result" api:"required"`
Success BillingSpendingLimitDeleteResponseEnvelopeSuccess `json:"success" api:"required"`
ResultInfo BillingSpendingLimitDeleteResponseEnvelopeResultInfo `json:"result_info"`
JSON billingSpendingLimitDeleteResponseEnvelopeJSON `json:"-"`
}
func (*BillingSpendingLimitDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *BillingSpendingLimitDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BillingSpendingLimitDeleteResponseEnvelopeErrors ¶
type BillingSpendingLimitDeleteResponseEnvelopeErrors struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingSpendingLimitDeleteResponseEnvelopeErrorsJSON `json:"-"`
}
func (*BillingSpendingLimitDeleteResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *BillingSpendingLimitDeleteResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type BillingSpendingLimitDeleteResponseEnvelopeMessages ¶
type BillingSpendingLimitDeleteResponseEnvelopeMessages struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingSpendingLimitDeleteResponseEnvelopeMessagesJSON `json:"-"`
}
func (*BillingSpendingLimitDeleteResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *BillingSpendingLimitDeleteResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type BillingSpendingLimitDeleteResponseEnvelopeResultInfo ¶
type BillingSpendingLimitDeleteResponseEnvelopeResultInfo struct {
HasMore bool `json:"has_more" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
TotalCount float64 `json:"total_count" api:"required"`
JSON billingSpendingLimitDeleteResponseEnvelopeResultInfoJSON `json:"-"`
}
func (*BillingSpendingLimitDeleteResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *BillingSpendingLimitDeleteResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type BillingSpendingLimitDeleteResponseEnvelopeSuccess ¶
type BillingSpendingLimitDeleteResponseEnvelopeSuccess bool
const (
BillingSpendingLimitDeleteResponseEnvelopeSuccessTrue BillingSpendingLimitDeleteResponseEnvelopeSuccess = true
)
func (BillingSpendingLimitDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r BillingSpendingLimitDeleteResponseEnvelopeSuccess) IsKnown() bool
type BillingSpendingLimitGetResponse ¶
type BillingSpendingLimitGetResponse struct {
Config BillingSpendingLimitGetResponseConfig `json:"config" api:"required"`
Enabled bool `json:"enabled" api:"required"`
JSON billingSpendingLimitGetResponseJSON `json:"-"`
}
func (*BillingSpendingLimitGetResponse) UnmarshalJSON ¶
func (r *BillingSpendingLimitGetResponse) UnmarshalJSON(data []byte) (err error)
type BillingSpendingLimitGetResponseConfig ¶
type BillingSpendingLimitGetResponseConfig struct {
Amount float64 `json:"amount" api:"required,nullable"`
Duration string `json:"duration" api:"required,nullable"`
Strategy string `json:"strategy" api:"required,nullable"`
JSON billingSpendingLimitGetResponseConfigJSON `json:"-"`
}
func (*BillingSpendingLimitGetResponseConfig) UnmarshalJSON ¶
func (r *BillingSpendingLimitGetResponseConfig) UnmarshalJSON(data []byte) (err error)
type BillingSpendingLimitGetResponseEnvelope ¶
type BillingSpendingLimitGetResponseEnvelope struct {
Errors []BillingSpendingLimitGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []BillingSpendingLimitGetResponseEnvelopeMessages `json:"messages" api:"required"`
Result BillingSpendingLimitGetResponse `json:"result" api:"required"`
Success BillingSpendingLimitGetResponseEnvelopeSuccess `json:"success" api:"required"`
ResultInfo BillingSpendingLimitGetResponseEnvelopeResultInfo `json:"result_info"`
JSON billingSpendingLimitGetResponseEnvelopeJSON `json:"-"`
}
func (*BillingSpendingLimitGetResponseEnvelope) UnmarshalJSON ¶
func (r *BillingSpendingLimitGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BillingSpendingLimitGetResponseEnvelopeErrors ¶
type BillingSpendingLimitGetResponseEnvelopeErrors struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingSpendingLimitGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*BillingSpendingLimitGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *BillingSpendingLimitGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type BillingSpendingLimitGetResponseEnvelopeMessages ¶
type BillingSpendingLimitGetResponseEnvelopeMessages struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingSpendingLimitGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*BillingSpendingLimitGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *BillingSpendingLimitGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type BillingSpendingLimitGetResponseEnvelopeResultInfo ¶
type BillingSpendingLimitGetResponseEnvelopeResultInfo struct {
HasMore bool `json:"has_more" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
TotalCount float64 `json:"total_count" api:"required"`
JSON billingSpendingLimitGetResponseEnvelopeResultInfoJSON `json:"-"`
}
func (*BillingSpendingLimitGetResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *BillingSpendingLimitGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type BillingSpendingLimitGetResponseEnvelopeSuccess ¶
type BillingSpendingLimitGetResponseEnvelopeSuccess bool
const (
BillingSpendingLimitGetResponseEnvelopeSuccessTrue BillingSpendingLimitGetResponseEnvelopeSuccess = true
)
func (BillingSpendingLimitGetResponseEnvelopeSuccess) IsKnown ¶
func (r BillingSpendingLimitGetResponseEnvelopeSuccess) IsKnown() bool
type BillingSpendingLimitNewParams ¶
type BillingSpendingLimitNewParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
// Spending limit amount in cents (min 100).
Amount param.Field[int64] `json:"amount" api:"required"`
// Spending limit duration.
Duration param.Field[BillingSpendingLimitNewParamsDuration] `json:"duration" api:"required"`
// Spending limit strategy.
Strategy param.Field[BillingSpendingLimitNewParamsStrategy] `json:"strategy" api:"required"`
}
func (BillingSpendingLimitNewParams) MarshalJSON ¶
func (r BillingSpendingLimitNewParams) MarshalJSON() (data []byte, err error)
type BillingSpendingLimitNewParamsDuration ¶
type BillingSpendingLimitNewParamsDuration string
Spending limit duration.
const ( BillingSpendingLimitNewParamsDurationDaily BillingSpendingLimitNewParamsDuration = "daily" BillingSpendingLimitNewParamsDurationWeekly BillingSpendingLimitNewParamsDuration = "weekly" BillingSpendingLimitNewParamsDurationMonthly BillingSpendingLimitNewParamsDuration = "monthly" )
func (BillingSpendingLimitNewParamsDuration) IsKnown ¶
func (r BillingSpendingLimitNewParamsDuration) IsKnown() bool
type BillingSpendingLimitNewParamsStrategy ¶
type BillingSpendingLimitNewParamsStrategy string
Spending limit strategy.
const ( BillingSpendingLimitNewParamsStrategyFixed BillingSpendingLimitNewParamsStrategy = "fixed" BillingSpendingLimitNewParamsStrategySliding BillingSpendingLimitNewParamsStrategy = "sliding" )
func (BillingSpendingLimitNewParamsStrategy) IsKnown ¶
func (r BillingSpendingLimitNewParamsStrategy) IsKnown() bool
type BillingSpendingLimitNewResponse ¶
type BillingSpendingLimitNewResponse = interface{}
type BillingSpendingLimitNewResponseEnvelope ¶
type BillingSpendingLimitNewResponseEnvelope struct {
Errors []BillingSpendingLimitNewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []BillingSpendingLimitNewResponseEnvelopeMessages `json:"messages" api:"required"`
Result BillingSpendingLimitNewResponse `json:"result" api:"required"`
Success BillingSpendingLimitNewResponseEnvelopeSuccess `json:"success" api:"required"`
ResultInfo BillingSpendingLimitNewResponseEnvelopeResultInfo `json:"result_info"`
JSON billingSpendingLimitNewResponseEnvelopeJSON `json:"-"`
}
func (*BillingSpendingLimitNewResponseEnvelope) UnmarshalJSON ¶
func (r *BillingSpendingLimitNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BillingSpendingLimitNewResponseEnvelopeErrors ¶
type BillingSpendingLimitNewResponseEnvelopeErrors struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingSpendingLimitNewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*BillingSpendingLimitNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *BillingSpendingLimitNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type BillingSpendingLimitNewResponseEnvelopeMessages ¶
type BillingSpendingLimitNewResponseEnvelopeMessages struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingSpendingLimitNewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*BillingSpendingLimitNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *BillingSpendingLimitNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type BillingSpendingLimitNewResponseEnvelopeResultInfo ¶
type BillingSpendingLimitNewResponseEnvelopeResultInfo struct {
HasMore bool `json:"has_more" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
TotalCount float64 `json:"total_count" api:"required"`
JSON billingSpendingLimitNewResponseEnvelopeResultInfoJSON `json:"-"`
}
func (*BillingSpendingLimitNewResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *BillingSpendingLimitNewResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type BillingSpendingLimitNewResponseEnvelopeSuccess ¶
type BillingSpendingLimitNewResponseEnvelopeSuccess bool
const (
BillingSpendingLimitNewResponseEnvelopeSuccessTrue BillingSpendingLimitNewResponseEnvelopeSuccess = true
)
func (BillingSpendingLimitNewResponseEnvelopeSuccess) IsKnown ¶
func (r BillingSpendingLimitNewResponseEnvelopeSuccess) IsKnown() bool
type BillingSpendingLimitService ¶
type BillingSpendingLimitService struct {
Options []option.RequestOption
}
BillingSpendingLimitService 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 NewBillingSpendingLimitService method instead.
func NewBillingSpendingLimitService ¶
func NewBillingSpendingLimitService(opts ...option.RequestOption) (r *BillingSpendingLimitService)
NewBillingSpendingLimitService 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 (*BillingSpendingLimitService) Delete ¶
func (r *BillingSpendingLimitService) Delete(ctx context.Context, body BillingSpendingLimitDeleteParams, opts ...option.RequestOption) (res *BillingSpendingLimitDeleteResponse, err error)
Remove the spending limit for the account.
func (*BillingSpendingLimitService) Get ¶
func (r *BillingSpendingLimitService) Get(ctx context.Context, query BillingSpendingLimitGetParams, opts ...option.RequestOption) (res *BillingSpendingLimitGetResponse, err error)
Retrieve the current spending limit configuration for the account.
func (*BillingSpendingLimitService) New ¶
func (r *BillingSpendingLimitService) New(ctx context.Context, params BillingSpendingLimitNewParams, opts ...option.RequestOption) (res *BillingSpendingLimitNewResponse, err error)
Configure a spending limit with amount, strategy, and duration.
type BillingTopupConfigDeleteResponse ¶
type BillingTopupConfigDeleteResponse = interface{}
type BillingTopupConfigDeleteResponseEnvelope ¶
type BillingTopupConfigDeleteResponseEnvelope struct {
Errors []BillingTopupConfigDeleteResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []BillingTopupConfigDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
Result BillingTopupConfigDeleteResponse `json:"result" api:"required"`
Success BillingTopupConfigDeleteResponseEnvelopeSuccess `json:"success" api:"required"`
ResultInfo BillingTopupConfigDeleteResponseEnvelopeResultInfo `json:"result_info"`
JSON billingTopupConfigDeleteResponseEnvelopeJSON `json:"-"`
}
func (*BillingTopupConfigDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *BillingTopupConfigDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BillingTopupConfigDeleteResponseEnvelopeErrors ¶
type BillingTopupConfigDeleteResponseEnvelopeErrors struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingTopupConfigDeleteResponseEnvelopeErrorsJSON `json:"-"`
}
func (*BillingTopupConfigDeleteResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *BillingTopupConfigDeleteResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type BillingTopupConfigDeleteResponseEnvelopeMessages ¶
type BillingTopupConfigDeleteResponseEnvelopeMessages struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingTopupConfigDeleteResponseEnvelopeMessagesJSON `json:"-"`
}
func (*BillingTopupConfigDeleteResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *BillingTopupConfigDeleteResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type BillingTopupConfigDeleteResponseEnvelopeResultInfo ¶
type BillingTopupConfigDeleteResponseEnvelopeResultInfo struct {
HasMore bool `json:"has_more" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
TotalCount float64 `json:"total_count" api:"required"`
JSON billingTopupConfigDeleteResponseEnvelopeResultInfoJSON `json:"-"`
}
func (*BillingTopupConfigDeleteResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *BillingTopupConfigDeleteResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type BillingTopupConfigDeleteResponseEnvelopeSuccess ¶
type BillingTopupConfigDeleteResponseEnvelopeSuccess bool
const (
BillingTopupConfigDeleteResponseEnvelopeSuccessTrue BillingTopupConfigDeleteResponseEnvelopeSuccess = true
)
func (BillingTopupConfigDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r BillingTopupConfigDeleteResponseEnvelopeSuccess) IsKnown() bool
type BillingTopupConfigGetResponse ¶
type BillingTopupConfigGetResponse struct {
Amount float64 `json:"amount" api:"required,nullable"`
DisabledReason string `json:"disabledReason" api:"required,nullable"`
Error string `json:"error" api:"required,nullable"`
LastFailedAt float64 `json:"lastFailedAt" api:"required,nullable"`
Threshold float64 `json:"threshold" api:"required,nullable"`
JSON billingTopupConfigGetResponseJSON `json:"-"`
}
func (*BillingTopupConfigGetResponse) UnmarshalJSON ¶
func (r *BillingTopupConfigGetResponse) UnmarshalJSON(data []byte) (err error)
type BillingTopupConfigGetResponseEnvelope ¶
type BillingTopupConfigGetResponseEnvelope struct {
Errors []BillingTopupConfigGetResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []BillingTopupConfigGetResponseEnvelopeMessages `json:"messages" api:"required"`
Result BillingTopupConfigGetResponse `json:"result" api:"required"`
Success BillingTopupConfigGetResponseEnvelopeSuccess `json:"success" api:"required"`
ResultInfo BillingTopupConfigGetResponseEnvelopeResultInfo `json:"result_info"`
JSON billingTopupConfigGetResponseEnvelopeJSON `json:"-"`
}
func (*BillingTopupConfigGetResponseEnvelope) UnmarshalJSON ¶
func (r *BillingTopupConfigGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BillingTopupConfigGetResponseEnvelopeErrors ¶
type BillingTopupConfigGetResponseEnvelopeErrors struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingTopupConfigGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*BillingTopupConfigGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *BillingTopupConfigGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type BillingTopupConfigGetResponseEnvelopeMessages ¶
type BillingTopupConfigGetResponseEnvelopeMessages struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingTopupConfigGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*BillingTopupConfigGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *BillingTopupConfigGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type BillingTopupConfigGetResponseEnvelopeResultInfo ¶
type BillingTopupConfigGetResponseEnvelopeResultInfo struct {
HasMore bool `json:"has_more" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
TotalCount float64 `json:"total_count" api:"required"`
JSON billingTopupConfigGetResponseEnvelopeResultInfoJSON `json:"-"`
}
func (*BillingTopupConfigGetResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *BillingTopupConfigGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type BillingTopupConfigGetResponseEnvelopeSuccess ¶
type BillingTopupConfigGetResponseEnvelopeSuccess bool
const (
BillingTopupConfigGetResponseEnvelopeSuccessTrue BillingTopupConfigGetResponseEnvelopeSuccess = true
)
func (BillingTopupConfigGetResponseEnvelopeSuccess) IsKnown ¶
func (r BillingTopupConfigGetResponseEnvelopeSuccess) IsKnown() bool
type BillingTopupConfigNewParams ¶
type BillingTopupConfigNewParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
// Auto top-up amount in cents (min 1000).
Amount param.Field[int64] `json:"amount" api:"required"`
// Balance threshold in cents that triggers auto top-up (min 500).
Threshold param.Field[int64] `json:"threshold" api:"required"`
}
func (BillingTopupConfigNewParams) MarshalJSON ¶
func (r BillingTopupConfigNewParams) MarshalJSON() (data []byte, err error)
type BillingTopupConfigNewResponse ¶
type BillingTopupConfigNewResponse struct {
Amount float64 `json:"amount" api:"required"`
Threshold float64 `json:"threshold" api:"required"`
JSON billingTopupConfigNewResponseJSON `json:"-"`
}
func (*BillingTopupConfigNewResponse) UnmarshalJSON ¶
func (r *BillingTopupConfigNewResponse) UnmarshalJSON(data []byte) (err error)
type BillingTopupConfigNewResponseEnvelope ¶
type BillingTopupConfigNewResponseEnvelope struct {
Errors []BillingTopupConfigNewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []BillingTopupConfigNewResponseEnvelopeMessages `json:"messages" api:"required"`
Result BillingTopupConfigNewResponse `json:"result" api:"required"`
Success BillingTopupConfigNewResponseEnvelopeSuccess `json:"success" api:"required"`
ResultInfo BillingTopupConfigNewResponseEnvelopeResultInfo `json:"result_info"`
JSON billingTopupConfigNewResponseEnvelopeJSON `json:"-"`
}
func (*BillingTopupConfigNewResponseEnvelope) UnmarshalJSON ¶
func (r *BillingTopupConfigNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BillingTopupConfigNewResponseEnvelopeErrors ¶
type BillingTopupConfigNewResponseEnvelopeErrors struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingTopupConfigNewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*BillingTopupConfigNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *BillingTopupConfigNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type BillingTopupConfigNewResponseEnvelopeMessages ¶
type BillingTopupConfigNewResponseEnvelopeMessages struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingTopupConfigNewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*BillingTopupConfigNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *BillingTopupConfigNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type BillingTopupConfigNewResponseEnvelopeResultInfo ¶
type BillingTopupConfigNewResponseEnvelopeResultInfo struct {
HasMore bool `json:"has_more" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
TotalCount float64 `json:"total_count" api:"required"`
JSON billingTopupConfigNewResponseEnvelopeResultInfoJSON `json:"-"`
}
func (*BillingTopupConfigNewResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *BillingTopupConfigNewResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type BillingTopupConfigNewResponseEnvelopeSuccess ¶
type BillingTopupConfigNewResponseEnvelopeSuccess bool
const (
BillingTopupConfigNewResponseEnvelopeSuccessTrue BillingTopupConfigNewResponseEnvelopeSuccess = true
)
func (BillingTopupConfigNewResponseEnvelopeSuccess) IsKnown ¶
func (r BillingTopupConfigNewResponseEnvelopeSuccess) IsKnown() bool
type BillingTopupConfigService ¶
type BillingTopupConfigService struct {
Options []option.RequestOption
}
BillingTopupConfigService 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 NewBillingTopupConfigService method instead.
func NewBillingTopupConfigService ¶
func NewBillingTopupConfigService(opts ...option.RequestOption) (r *BillingTopupConfigService)
NewBillingTopupConfigService 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 (*BillingTopupConfigService) Delete ¶
func (r *BillingTopupConfigService) Delete(ctx context.Context, body BillingTopupConfigDeleteParams, opts ...option.RequestOption) (res *BillingTopupConfigDeleteResponse, err error)
Remove the auto top-up configuration for the account.
func (*BillingTopupConfigService) Get ¶
func (r *BillingTopupConfigService) Get(ctx context.Context, query BillingTopupConfigGetParams, opts ...option.RequestOption) (res *BillingTopupConfigGetResponse, err error)
Retrieve the current auto top-up threshold, amount, and any error state.
func (*BillingTopupConfigService) New ¶
func (r *BillingTopupConfigService) New(ctx context.Context, params BillingTopupConfigNewParams, opts ...option.RequestOption) (res *BillingTopupConfigNewResponse, err error)
Configure auto top-up with a balance threshold and top-up amount.
type BillingTopupNewParams ¶
type BillingTopupNewParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
// Top-up amount in cents (min 1000).
Amount param.Field[int64] `json:"amount" api:"required"`
}
func (BillingTopupNewParams) MarshalJSON ¶
func (r BillingTopupNewParams) MarshalJSON() (data []byte, err error)
type BillingTopupNewResponse ¶
type BillingTopupNewResponse struct {
// Stripe PaymentIntent client secret.
ClientSecret string `json:"client_secret" api:"required,nullable"`
// Whether the user was already onboarded.
Onboarding bool `json:"onboarding" api:"required"`
// Stripe invoice ID.
PaymentIntentID string `json:"payment_intent_id" api:"required"`
// Card brand (visa, mastercard, etc.).
Brand string `json:"brand"`
// Last 4 digits of card.
Last4 string `json:"last4"`
JSON billingTopupNewResponseJSON `json:"-"`
}
func (*BillingTopupNewResponse) UnmarshalJSON ¶
func (r *BillingTopupNewResponse) UnmarshalJSON(data []byte) (err error)
type BillingTopupNewResponseEnvelope ¶
type BillingTopupNewResponseEnvelope struct {
Errors []BillingTopupNewResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []BillingTopupNewResponseEnvelopeMessages `json:"messages" api:"required"`
Result BillingTopupNewResponse `json:"result" api:"required"`
Success BillingTopupNewResponseEnvelopeSuccess `json:"success" api:"required"`
ResultInfo BillingTopupNewResponseEnvelopeResultInfo `json:"result_info"`
JSON billingTopupNewResponseEnvelopeJSON `json:"-"`
}
func (*BillingTopupNewResponseEnvelope) UnmarshalJSON ¶
func (r *BillingTopupNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BillingTopupNewResponseEnvelopeErrors ¶
type BillingTopupNewResponseEnvelopeErrors struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingTopupNewResponseEnvelopeErrorsJSON `json:"-"`
}
func (*BillingTopupNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *BillingTopupNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type BillingTopupNewResponseEnvelopeMessages ¶
type BillingTopupNewResponseEnvelopeMessages struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingTopupNewResponseEnvelopeMessagesJSON `json:"-"`
}
func (*BillingTopupNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *BillingTopupNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type BillingTopupNewResponseEnvelopeResultInfo ¶
type BillingTopupNewResponseEnvelopeResultInfo struct {
HasMore bool `json:"has_more" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
TotalCount float64 `json:"total_count" api:"required"`
JSON billingTopupNewResponseEnvelopeResultInfoJSON `json:"-"`
}
func (*BillingTopupNewResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *BillingTopupNewResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type BillingTopupNewResponseEnvelopeSuccess ¶
type BillingTopupNewResponseEnvelopeSuccess bool
const (
BillingTopupNewResponseEnvelopeSuccessTrue BillingTopupNewResponseEnvelopeSuccess = true
)
func (BillingTopupNewResponseEnvelopeSuccess) IsKnown ¶
func (r BillingTopupNewResponseEnvelopeSuccess) IsKnown() bool
type BillingTopupService ¶
type BillingTopupService struct {
Options []option.RequestOption
Config *BillingTopupConfigService
}
BillingTopupService 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 NewBillingTopupService method instead.
func NewBillingTopupService ¶
func NewBillingTopupService(opts ...option.RequestOption) (r *BillingTopupService)
NewBillingTopupService 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 (*BillingTopupService) New ¶
func (r *BillingTopupService) New(ctx context.Context, params BillingTopupNewParams, opts ...option.RequestOption) (res *BillingTopupNewResponse, err error)
Create a credit top-up via Stripe PaymentIntent for the given account.
func (*BillingTopupService) Status ¶
func (r *BillingTopupService) Status(ctx context.Context, params BillingTopupStatusParams, opts ...option.RequestOption) (res *BillingTopupStatusResponse, err error)
Get the payment processing status of a top-up by its invoice ID.
type BillingTopupStatusParams ¶
type BillingTopupStatusParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
// Stripe invoice ID to check status for.
PaymentIntentID param.Field[string] `json:"payment_intent_id" api:"required"`
}
func (BillingTopupStatusParams) MarshalJSON ¶
func (r BillingTopupStatusParams) MarshalJSON() (data []byte, err error)
type BillingTopupStatusResponse ¶
type BillingTopupStatusResponse struct {
PaymentIntentID string `json:"payment_intent_id" api:"required"`
Status BillingTopupStatusResponseStatus `json:"status" api:"required"`
JSON billingTopupStatusResponseJSON `json:"-"`
}
func (*BillingTopupStatusResponse) UnmarshalJSON ¶
func (r *BillingTopupStatusResponse) UnmarshalJSON(data []byte) (err error)
type BillingTopupStatusResponseEnvelope ¶
type BillingTopupStatusResponseEnvelope struct {
Errors []BillingTopupStatusResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []BillingTopupStatusResponseEnvelopeMessages `json:"messages" api:"required"`
Result BillingTopupStatusResponse `json:"result" api:"required"`
Success BillingTopupStatusResponseEnvelopeSuccess `json:"success" api:"required"`
ResultInfo BillingTopupStatusResponseEnvelopeResultInfo `json:"result_info"`
JSON billingTopupStatusResponseEnvelopeJSON `json:"-"`
}
func (*BillingTopupStatusResponseEnvelope) UnmarshalJSON ¶
func (r *BillingTopupStatusResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BillingTopupStatusResponseEnvelopeErrors ¶
type BillingTopupStatusResponseEnvelopeErrors struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingTopupStatusResponseEnvelopeErrorsJSON `json:"-"`
}
func (*BillingTopupStatusResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *BillingTopupStatusResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type BillingTopupStatusResponseEnvelopeMessages ¶
type BillingTopupStatusResponseEnvelopeMessages struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingTopupStatusResponseEnvelopeMessagesJSON `json:"-"`
}
func (*BillingTopupStatusResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *BillingTopupStatusResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type BillingTopupStatusResponseEnvelopeResultInfo ¶
type BillingTopupStatusResponseEnvelopeResultInfo struct {
HasMore bool `json:"has_more" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
TotalCount float64 `json:"total_count" api:"required"`
JSON billingTopupStatusResponseEnvelopeResultInfoJSON `json:"-"`
}
func (*BillingTopupStatusResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *BillingTopupStatusResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type BillingTopupStatusResponseEnvelopeSuccess ¶
type BillingTopupStatusResponseEnvelopeSuccess bool
const (
BillingTopupStatusResponseEnvelopeSuccessTrue BillingTopupStatusResponseEnvelopeSuccess = true
)
func (BillingTopupStatusResponseEnvelopeSuccess) IsKnown ¶
func (r BillingTopupStatusResponseEnvelopeSuccess) IsKnown() bool
type BillingTopupStatusResponseStatus ¶
type BillingTopupStatusResponseStatus string
const ( BillingTopupStatusResponseStatusCompleted BillingTopupStatusResponseStatus = "completed" BillingTopupStatusResponseStatusPending BillingTopupStatusResponseStatus = "pending" )
func (BillingTopupStatusResponseStatus) IsKnown ¶
func (r BillingTopupStatusResponseStatus) IsKnown() bool
type BillingUsageHistoryParams ¶
type BillingUsageHistoryParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
// Grouping window for usage data.
ValueGroupingWindow param.Field[BillingUsageHistoryParamsValueGroupingWindow] `query:"value_grouping_window" api:"required"`
// End time as Unix timestamp in milliseconds.
EndTime param.Field[float64] `query:"end_time"`
// Start time as Unix timestamp in milliseconds.
StartTime param.Field[float64] `query:"start_time"`
}
func (BillingUsageHistoryParams) URLQuery ¶
func (r BillingUsageHistoryParams) URLQuery() (v url.Values)
URLQuery serializes BillingUsageHistoryParams's query parameters as `url.Values`.
type BillingUsageHistoryParamsValueGroupingWindow ¶
type BillingUsageHistoryParamsValueGroupingWindow string
Grouping window for usage data.
const ( BillingUsageHistoryParamsValueGroupingWindowDay BillingUsageHistoryParamsValueGroupingWindow = "day" BillingUsageHistoryParamsValueGroupingWindowHour BillingUsageHistoryParamsValueGroupingWindow = "hour" )
func (BillingUsageHistoryParamsValueGroupingWindow) IsKnown ¶
func (r BillingUsageHistoryParamsValueGroupingWindow) IsKnown() bool
type BillingUsageHistoryResponse ¶
type BillingUsageHistoryResponse struct {
History []BillingUsageHistoryResponseHistory `json:"history" api:"required"`
JSON billingUsageHistoryResponseJSON `json:"-"`
}
func (*BillingUsageHistoryResponse) UnmarshalJSON ¶
func (r *BillingUsageHistoryResponse) UnmarshalJSON(data []byte) (err error)
type BillingUsageHistoryResponseEnvelope ¶
type BillingUsageHistoryResponseEnvelope struct {
Errors []BillingUsageHistoryResponseEnvelopeErrors `json:"errors" api:"required"`
Messages []BillingUsageHistoryResponseEnvelopeMessages `json:"messages" api:"required"`
Result BillingUsageHistoryResponse `json:"result" api:"required"`
Success BillingUsageHistoryResponseEnvelopeSuccess `json:"success" api:"required"`
ResultInfo BillingUsageHistoryResponseEnvelopeResultInfo `json:"result_info"`
JSON billingUsageHistoryResponseEnvelopeJSON `json:"-"`
}
func (*BillingUsageHistoryResponseEnvelope) UnmarshalJSON ¶
func (r *BillingUsageHistoryResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BillingUsageHistoryResponseEnvelopeErrors ¶
type BillingUsageHistoryResponseEnvelopeErrors struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingUsageHistoryResponseEnvelopeErrorsJSON `json:"-"`
}
func (*BillingUsageHistoryResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *BillingUsageHistoryResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type BillingUsageHistoryResponseEnvelopeMessages ¶
type BillingUsageHistoryResponseEnvelopeMessages struct {
Code float64 `json:"code" api:"required"`
Message string `json:"message" api:"required"`
JSON billingUsageHistoryResponseEnvelopeMessagesJSON `json:"-"`
}
func (*BillingUsageHistoryResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *BillingUsageHistoryResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type BillingUsageHistoryResponseEnvelopeResultInfo ¶
type BillingUsageHistoryResponseEnvelopeResultInfo struct {
HasMore bool `json:"has_more" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
TotalCount float64 `json:"total_count" api:"required"`
JSON billingUsageHistoryResponseEnvelopeResultInfoJSON `json:"-"`
}
func (*BillingUsageHistoryResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *BillingUsageHistoryResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type BillingUsageHistoryResponseEnvelopeSuccess ¶
type BillingUsageHistoryResponseEnvelopeSuccess bool
const (
BillingUsageHistoryResponseEnvelopeSuccessTrue BillingUsageHistoryResponseEnvelopeSuccess = true
)
func (BillingUsageHistoryResponseEnvelopeSuccess) IsKnown ¶
func (r BillingUsageHistoryResponseEnvelopeSuccess) IsKnown() bool
type BillingUsageHistoryResponseHistory ¶
type BillingUsageHistoryResponseHistory struct {
ID string `json:"id" api:"required"`
AggregatedValue float64 `json:"aggregated_value" api:"required"`
EndTime float64 `json:"end_time" api:"required"`
StartTime float64 `json:"start_time" api:"required"`
JSON billingUsageHistoryResponseHistoryJSON `json:"-"`
}
func (*BillingUsageHistoryResponseHistory) UnmarshalJSON ¶
func (r *BillingUsageHistoryResponseHistory) UnmarshalJSON(data []byte) (err error)
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 DatasetDeleteParams ¶
type DatasetDeleteResponse ¶
type DatasetDeleteResponse struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Enable bool `json:"enable" api:"required"`
Filters []DatasetDeleteResponseFilter `json:"filters" api:"required"`
// gateway id
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
JSON datasetDeleteResponseJSON `json:"-"`
}
func (*DatasetDeleteResponse) UnmarshalJSON ¶
func (r *DatasetDeleteResponse) UnmarshalJSON(data []byte) (err error)
type DatasetDeleteResponseEnvelope ¶
type DatasetDeleteResponseEnvelope struct {
Result DatasetDeleteResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON datasetDeleteResponseEnvelopeJSON `json:"-"`
}
func (*DatasetDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *DatasetDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DatasetDeleteResponseFilter ¶
type DatasetDeleteResponseFilter struct {
Key DatasetDeleteResponseFiltersKey `json:"key" api:"required"`
Operator DatasetDeleteResponseFiltersOperator `json:"operator" api:"required"`
Value []DatasetDeleteResponseFiltersValueUnion `json:"value" api:"required"`
JSON datasetDeleteResponseFilterJSON `json:"-"`
}
func (*DatasetDeleteResponseFilter) UnmarshalJSON ¶
func (r *DatasetDeleteResponseFilter) UnmarshalJSON(data []byte) (err error)
type DatasetDeleteResponseFiltersKey ¶
type DatasetDeleteResponseFiltersKey string
const ( DatasetDeleteResponseFiltersKeyCreatedAt DatasetDeleteResponseFiltersKey = "created_at" DatasetDeleteResponseFiltersKeyRequestContentType DatasetDeleteResponseFiltersKey = "request_content_type" DatasetDeleteResponseFiltersKeyResponseContentType DatasetDeleteResponseFiltersKey = "response_content_type" DatasetDeleteResponseFiltersKeySuccess DatasetDeleteResponseFiltersKey = "success" DatasetDeleteResponseFiltersKeyCached DatasetDeleteResponseFiltersKey = "cached" DatasetDeleteResponseFiltersKeyProvider DatasetDeleteResponseFiltersKey = "provider" DatasetDeleteResponseFiltersKeyModel DatasetDeleteResponseFiltersKey = "model" DatasetDeleteResponseFiltersKeyCost DatasetDeleteResponseFiltersKey = "cost" DatasetDeleteResponseFiltersKeyTokens DatasetDeleteResponseFiltersKey = "tokens" DatasetDeleteResponseFiltersKeyTokensIn DatasetDeleteResponseFiltersKey = "tokens_in" DatasetDeleteResponseFiltersKeyTokensOut DatasetDeleteResponseFiltersKey = "tokens_out" DatasetDeleteResponseFiltersKeyDuration DatasetDeleteResponseFiltersKey = "duration" DatasetDeleteResponseFiltersKeyFeedback DatasetDeleteResponseFiltersKey = "feedback" )
func (DatasetDeleteResponseFiltersKey) IsKnown ¶
func (r DatasetDeleteResponseFiltersKey) IsKnown() bool
type DatasetDeleteResponseFiltersOperator ¶
type DatasetDeleteResponseFiltersOperator string
const ( DatasetDeleteResponseFiltersOperatorEq DatasetDeleteResponseFiltersOperator = "eq" DatasetDeleteResponseFiltersOperatorContains DatasetDeleteResponseFiltersOperator = "contains" DatasetDeleteResponseFiltersOperatorLt DatasetDeleteResponseFiltersOperator = "lt" DatasetDeleteResponseFiltersOperatorGt DatasetDeleteResponseFiltersOperator = "gt" )
func (DatasetDeleteResponseFiltersOperator) IsKnown ¶
func (r DatasetDeleteResponseFiltersOperator) IsKnown() bool
type DatasetDeleteResponseFiltersValueUnion ¶
type DatasetDeleteResponseFiltersValueUnion interface {
ImplementsDatasetDeleteResponseFiltersValueUnion()
}
Union satisfied by shared.UnionString, shared.UnionFloat or shared.UnionBool.
type DatasetGetParams ¶
type DatasetGetResponse ¶
type DatasetGetResponse struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Enable bool `json:"enable" api:"required"`
Filters []DatasetGetResponseFilter `json:"filters" api:"required"`
// gateway id
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
JSON datasetGetResponseJSON `json:"-"`
}
func (*DatasetGetResponse) UnmarshalJSON ¶
func (r *DatasetGetResponse) UnmarshalJSON(data []byte) (err error)
type DatasetGetResponseEnvelope ¶
type DatasetGetResponseEnvelope struct {
Result DatasetGetResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON datasetGetResponseEnvelopeJSON `json:"-"`
}
func (*DatasetGetResponseEnvelope) UnmarshalJSON ¶
func (r *DatasetGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DatasetGetResponseFilter ¶
type DatasetGetResponseFilter struct {
Key DatasetGetResponseFiltersKey `json:"key" api:"required"`
Operator DatasetGetResponseFiltersOperator `json:"operator" api:"required"`
Value []DatasetGetResponseFiltersValueUnion `json:"value" api:"required"`
JSON datasetGetResponseFilterJSON `json:"-"`
}
func (*DatasetGetResponseFilter) UnmarshalJSON ¶
func (r *DatasetGetResponseFilter) UnmarshalJSON(data []byte) (err error)
type DatasetGetResponseFiltersKey ¶
type DatasetGetResponseFiltersKey string
const ( DatasetGetResponseFiltersKeyCreatedAt DatasetGetResponseFiltersKey = "created_at" DatasetGetResponseFiltersKeyRequestContentType DatasetGetResponseFiltersKey = "request_content_type" DatasetGetResponseFiltersKeyResponseContentType DatasetGetResponseFiltersKey = "response_content_type" DatasetGetResponseFiltersKeySuccess DatasetGetResponseFiltersKey = "success" DatasetGetResponseFiltersKeyCached DatasetGetResponseFiltersKey = "cached" DatasetGetResponseFiltersKeyProvider DatasetGetResponseFiltersKey = "provider" DatasetGetResponseFiltersKeyModel DatasetGetResponseFiltersKey = "model" DatasetGetResponseFiltersKeyCost DatasetGetResponseFiltersKey = "cost" DatasetGetResponseFiltersKeyTokens DatasetGetResponseFiltersKey = "tokens" DatasetGetResponseFiltersKeyTokensIn DatasetGetResponseFiltersKey = "tokens_in" DatasetGetResponseFiltersKeyTokensOut DatasetGetResponseFiltersKey = "tokens_out" DatasetGetResponseFiltersKeyDuration DatasetGetResponseFiltersKey = "duration" DatasetGetResponseFiltersKeyFeedback DatasetGetResponseFiltersKey = "feedback" )
func (DatasetGetResponseFiltersKey) IsKnown ¶
func (r DatasetGetResponseFiltersKey) IsKnown() bool
type DatasetGetResponseFiltersOperator ¶
type DatasetGetResponseFiltersOperator string
const ( DatasetGetResponseFiltersOperatorEq DatasetGetResponseFiltersOperator = "eq" DatasetGetResponseFiltersOperatorContains DatasetGetResponseFiltersOperator = "contains" DatasetGetResponseFiltersOperatorLt DatasetGetResponseFiltersOperator = "lt" DatasetGetResponseFiltersOperatorGt DatasetGetResponseFiltersOperator = "gt" )
func (DatasetGetResponseFiltersOperator) IsKnown ¶
func (r DatasetGetResponseFiltersOperator) IsKnown() bool
type DatasetGetResponseFiltersValueUnion ¶
type DatasetGetResponseFiltersValueUnion interface {
ImplementsDatasetGetResponseFiltersValueUnion()
}
Union satisfied by shared.UnionString, shared.UnionFloat or shared.UnionBool.
type DatasetListParams ¶
type DatasetListParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
Enable param.Field[bool] `query:"enable"`
Name param.Field[string] `query:"name"`
Page param.Field[int64] `query:"page"`
PerPage param.Field[int64] `query:"per_page"`
// Search by id, name, filters
Search param.Field[string] `query:"search"`
}
func (DatasetListParams) URLQuery ¶
func (r DatasetListParams) URLQuery() (v url.Values)
URLQuery serializes DatasetListParams's query parameters as `url.Values`.
type DatasetListResponse ¶
type DatasetListResponse struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Enable bool `json:"enable" api:"required"`
Filters []DatasetListResponseFilter `json:"filters" api:"required"`
// gateway id
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
JSON datasetListResponseJSON `json:"-"`
}
func (*DatasetListResponse) UnmarshalJSON ¶
func (r *DatasetListResponse) UnmarshalJSON(data []byte) (err error)
type DatasetListResponseFilter ¶
type DatasetListResponseFilter struct {
Key DatasetListResponseFiltersKey `json:"key" api:"required"`
Operator DatasetListResponseFiltersOperator `json:"operator" api:"required"`
Value []DatasetListResponseFiltersValueUnion `json:"value" api:"required"`
JSON datasetListResponseFilterJSON `json:"-"`
}
func (*DatasetListResponseFilter) UnmarshalJSON ¶
func (r *DatasetListResponseFilter) UnmarshalJSON(data []byte) (err error)
type DatasetListResponseFiltersKey ¶
type DatasetListResponseFiltersKey string
const ( DatasetListResponseFiltersKeyCreatedAt DatasetListResponseFiltersKey = "created_at" DatasetListResponseFiltersKeyRequestContentType DatasetListResponseFiltersKey = "request_content_type" DatasetListResponseFiltersKeyResponseContentType DatasetListResponseFiltersKey = "response_content_type" DatasetListResponseFiltersKeySuccess DatasetListResponseFiltersKey = "success" DatasetListResponseFiltersKeyCached DatasetListResponseFiltersKey = "cached" DatasetListResponseFiltersKeyProvider DatasetListResponseFiltersKey = "provider" DatasetListResponseFiltersKeyModel DatasetListResponseFiltersKey = "model" DatasetListResponseFiltersKeyCost DatasetListResponseFiltersKey = "cost" DatasetListResponseFiltersKeyTokens DatasetListResponseFiltersKey = "tokens" DatasetListResponseFiltersKeyTokensIn DatasetListResponseFiltersKey = "tokens_in" DatasetListResponseFiltersKeyTokensOut DatasetListResponseFiltersKey = "tokens_out" DatasetListResponseFiltersKeyDuration DatasetListResponseFiltersKey = "duration" DatasetListResponseFiltersKeyFeedback DatasetListResponseFiltersKey = "feedback" )
func (DatasetListResponseFiltersKey) IsKnown ¶
func (r DatasetListResponseFiltersKey) IsKnown() bool
type DatasetListResponseFiltersOperator ¶
type DatasetListResponseFiltersOperator string
const ( DatasetListResponseFiltersOperatorEq DatasetListResponseFiltersOperator = "eq" DatasetListResponseFiltersOperatorContains DatasetListResponseFiltersOperator = "contains" DatasetListResponseFiltersOperatorLt DatasetListResponseFiltersOperator = "lt" DatasetListResponseFiltersOperatorGt DatasetListResponseFiltersOperator = "gt" )
func (DatasetListResponseFiltersOperator) IsKnown ¶
func (r DatasetListResponseFiltersOperator) IsKnown() bool
type DatasetListResponseFiltersValueUnion ¶
type DatasetListResponseFiltersValueUnion interface {
ImplementsDatasetListResponseFiltersValueUnion()
}
Union satisfied by shared.UnionString, shared.UnionFloat or shared.UnionBool.
type DatasetNewParams ¶
type DatasetNewParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
Enable param.Field[bool] `json:"enable" api:"required"`
Filters param.Field[[]DatasetNewParamsFilter] `json:"filters" api:"required"`
Name param.Field[string] `json:"name" api:"required"`
}
func (DatasetNewParams) MarshalJSON ¶
func (r DatasetNewParams) MarshalJSON() (data []byte, err error)
type DatasetNewParamsFilter ¶
type DatasetNewParamsFilter struct {
Key param.Field[DatasetNewParamsFiltersKey] `json:"key" api:"required"`
Operator param.Field[DatasetNewParamsFiltersOperator] `json:"operator" api:"required"`
Value param.Field[[]DatasetNewParamsFiltersValueUnion] `json:"value" api:"required"`
}
func (DatasetNewParamsFilter) MarshalJSON ¶
func (r DatasetNewParamsFilter) MarshalJSON() (data []byte, err error)
type DatasetNewParamsFiltersKey ¶
type DatasetNewParamsFiltersKey string
const ( DatasetNewParamsFiltersKeyCreatedAt DatasetNewParamsFiltersKey = "created_at" DatasetNewParamsFiltersKeyRequestContentType DatasetNewParamsFiltersKey = "request_content_type" DatasetNewParamsFiltersKeyResponseContentType DatasetNewParamsFiltersKey = "response_content_type" DatasetNewParamsFiltersKeySuccess DatasetNewParamsFiltersKey = "success" DatasetNewParamsFiltersKeyCached DatasetNewParamsFiltersKey = "cached" DatasetNewParamsFiltersKeyProvider DatasetNewParamsFiltersKey = "provider" DatasetNewParamsFiltersKeyModel DatasetNewParamsFiltersKey = "model" DatasetNewParamsFiltersKeyCost DatasetNewParamsFiltersKey = "cost" DatasetNewParamsFiltersKeyTokens DatasetNewParamsFiltersKey = "tokens" DatasetNewParamsFiltersKeyTokensIn DatasetNewParamsFiltersKey = "tokens_in" DatasetNewParamsFiltersKeyTokensOut DatasetNewParamsFiltersKey = "tokens_out" DatasetNewParamsFiltersKeyDuration DatasetNewParamsFiltersKey = "duration" DatasetNewParamsFiltersKeyFeedback DatasetNewParamsFiltersKey = "feedback" )
func (DatasetNewParamsFiltersKey) IsKnown ¶
func (r DatasetNewParamsFiltersKey) IsKnown() bool
type DatasetNewParamsFiltersOperator ¶
type DatasetNewParamsFiltersOperator string
const ( DatasetNewParamsFiltersOperatorEq DatasetNewParamsFiltersOperator = "eq" DatasetNewParamsFiltersOperatorContains DatasetNewParamsFiltersOperator = "contains" DatasetNewParamsFiltersOperatorLt DatasetNewParamsFiltersOperator = "lt" DatasetNewParamsFiltersOperatorGt DatasetNewParamsFiltersOperator = "gt" )
func (DatasetNewParamsFiltersOperator) IsKnown ¶
func (r DatasetNewParamsFiltersOperator) IsKnown() bool
type DatasetNewParamsFiltersValueUnion ¶
type DatasetNewParamsFiltersValueUnion interface {
ImplementsDatasetNewParamsFiltersValueUnion()
}
Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.
type DatasetNewResponse ¶
type DatasetNewResponse struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Enable bool `json:"enable" api:"required"`
Filters []DatasetNewResponseFilter `json:"filters" api:"required"`
// gateway id
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
JSON datasetNewResponseJSON `json:"-"`
}
func (*DatasetNewResponse) UnmarshalJSON ¶
func (r *DatasetNewResponse) UnmarshalJSON(data []byte) (err error)
type DatasetNewResponseEnvelope ¶
type DatasetNewResponseEnvelope struct {
Result DatasetNewResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON datasetNewResponseEnvelopeJSON `json:"-"`
}
func (*DatasetNewResponseEnvelope) UnmarshalJSON ¶
func (r *DatasetNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DatasetNewResponseFilter ¶
type DatasetNewResponseFilter struct {
Key DatasetNewResponseFiltersKey `json:"key" api:"required"`
Operator DatasetNewResponseFiltersOperator `json:"operator" api:"required"`
Value []DatasetNewResponseFiltersValueUnion `json:"value" api:"required"`
JSON datasetNewResponseFilterJSON `json:"-"`
}
func (*DatasetNewResponseFilter) UnmarshalJSON ¶
func (r *DatasetNewResponseFilter) UnmarshalJSON(data []byte) (err error)
type DatasetNewResponseFiltersKey ¶
type DatasetNewResponseFiltersKey string
const ( DatasetNewResponseFiltersKeyCreatedAt DatasetNewResponseFiltersKey = "created_at" DatasetNewResponseFiltersKeyRequestContentType DatasetNewResponseFiltersKey = "request_content_type" DatasetNewResponseFiltersKeyResponseContentType DatasetNewResponseFiltersKey = "response_content_type" DatasetNewResponseFiltersKeySuccess DatasetNewResponseFiltersKey = "success" DatasetNewResponseFiltersKeyCached DatasetNewResponseFiltersKey = "cached" DatasetNewResponseFiltersKeyProvider DatasetNewResponseFiltersKey = "provider" DatasetNewResponseFiltersKeyModel DatasetNewResponseFiltersKey = "model" DatasetNewResponseFiltersKeyCost DatasetNewResponseFiltersKey = "cost" DatasetNewResponseFiltersKeyTokens DatasetNewResponseFiltersKey = "tokens" DatasetNewResponseFiltersKeyTokensIn DatasetNewResponseFiltersKey = "tokens_in" DatasetNewResponseFiltersKeyTokensOut DatasetNewResponseFiltersKey = "tokens_out" DatasetNewResponseFiltersKeyDuration DatasetNewResponseFiltersKey = "duration" DatasetNewResponseFiltersKeyFeedback DatasetNewResponseFiltersKey = "feedback" )
func (DatasetNewResponseFiltersKey) IsKnown ¶
func (r DatasetNewResponseFiltersKey) IsKnown() bool
type DatasetNewResponseFiltersOperator ¶
type DatasetNewResponseFiltersOperator string
const ( DatasetNewResponseFiltersOperatorEq DatasetNewResponseFiltersOperator = "eq" DatasetNewResponseFiltersOperatorContains DatasetNewResponseFiltersOperator = "contains" DatasetNewResponseFiltersOperatorLt DatasetNewResponseFiltersOperator = "lt" DatasetNewResponseFiltersOperatorGt DatasetNewResponseFiltersOperator = "gt" )
func (DatasetNewResponseFiltersOperator) IsKnown ¶
func (r DatasetNewResponseFiltersOperator) IsKnown() bool
type DatasetNewResponseFiltersValueUnion ¶
type DatasetNewResponseFiltersValueUnion interface {
ImplementsDatasetNewResponseFiltersValueUnion()
}
Union satisfied by shared.UnionString, shared.UnionFloat or shared.UnionBool.
type DatasetService ¶
type DatasetService struct {
Options []option.RequestOption
}
DatasetService 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 NewDatasetService method instead.
func NewDatasetService ¶
func NewDatasetService(opts ...option.RequestOption) (r *DatasetService)
NewDatasetService 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 (*DatasetService) Delete ¶
func (r *DatasetService) Delete(ctx context.Context, gatewayID string, id string, body DatasetDeleteParams, opts ...option.RequestOption) (res *DatasetDeleteResponse, err error)
Deletes an AI Gateway dataset.
func (*DatasetService) Get ¶
func (r *DatasetService) Get(ctx context.Context, gatewayID string, id string, query DatasetGetParams, opts ...option.RequestOption) (res *DatasetGetResponse, err error)
Retrieves details for a specific AI Gateway dataset.
func (*DatasetService) List ¶
func (r *DatasetService) List(ctx context.Context, gatewayID string, params DatasetListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[DatasetListResponse], err error)
Lists all AI Gateway evaluator types configured for the account.
func (*DatasetService) ListAutoPaging ¶
func (r *DatasetService) ListAutoPaging(ctx context.Context, gatewayID string, params DatasetListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[DatasetListResponse]
Lists all AI Gateway evaluator types configured for the account.
func (*DatasetService) New ¶
func (r *DatasetService) New(ctx context.Context, gatewayID string, params DatasetNewParams, opts ...option.RequestOption) (res *DatasetNewResponse, err error)
Creates a new AI Gateway.
func (*DatasetService) Update ¶
func (r *DatasetService) Update(ctx context.Context, gatewayID string, id string, params DatasetUpdateParams, opts ...option.RequestOption) (res *DatasetUpdateResponse, err error)
Updates an existing AI Gateway dataset.
type DatasetUpdateParams ¶
type DatasetUpdateParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
Enable param.Field[bool] `json:"enable" api:"required"`
Filters param.Field[[]DatasetUpdateParamsFilter] `json:"filters" api:"required"`
Name param.Field[string] `json:"name" api:"required"`
}
func (DatasetUpdateParams) MarshalJSON ¶
func (r DatasetUpdateParams) MarshalJSON() (data []byte, err error)
type DatasetUpdateParamsFilter ¶
type DatasetUpdateParamsFilter struct {
Key param.Field[DatasetUpdateParamsFiltersKey] `json:"key" api:"required"`
Operator param.Field[DatasetUpdateParamsFiltersOperator] `json:"operator" api:"required"`
Value param.Field[[]DatasetUpdateParamsFiltersValueUnion] `json:"value" api:"required"`
}
func (DatasetUpdateParamsFilter) MarshalJSON ¶
func (r DatasetUpdateParamsFilter) MarshalJSON() (data []byte, err error)
type DatasetUpdateParamsFiltersKey ¶
type DatasetUpdateParamsFiltersKey string
const ( DatasetUpdateParamsFiltersKeyCreatedAt DatasetUpdateParamsFiltersKey = "created_at" DatasetUpdateParamsFiltersKeyRequestContentType DatasetUpdateParamsFiltersKey = "request_content_type" DatasetUpdateParamsFiltersKeyResponseContentType DatasetUpdateParamsFiltersKey = "response_content_type" DatasetUpdateParamsFiltersKeySuccess DatasetUpdateParamsFiltersKey = "success" DatasetUpdateParamsFiltersKeyCached DatasetUpdateParamsFiltersKey = "cached" DatasetUpdateParamsFiltersKeyProvider DatasetUpdateParamsFiltersKey = "provider" DatasetUpdateParamsFiltersKeyModel DatasetUpdateParamsFiltersKey = "model" DatasetUpdateParamsFiltersKeyCost DatasetUpdateParamsFiltersKey = "cost" DatasetUpdateParamsFiltersKeyTokens DatasetUpdateParamsFiltersKey = "tokens" DatasetUpdateParamsFiltersKeyTokensIn DatasetUpdateParamsFiltersKey = "tokens_in" DatasetUpdateParamsFiltersKeyTokensOut DatasetUpdateParamsFiltersKey = "tokens_out" DatasetUpdateParamsFiltersKeyDuration DatasetUpdateParamsFiltersKey = "duration" DatasetUpdateParamsFiltersKeyFeedback DatasetUpdateParamsFiltersKey = "feedback" )
func (DatasetUpdateParamsFiltersKey) IsKnown ¶
func (r DatasetUpdateParamsFiltersKey) IsKnown() bool
type DatasetUpdateParamsFiltersOperator ¶
type DatasetUpdateParamsFiltersOperator string
const ( DatasetUpdateParamsFiltersOperatorEq DatasetUpdateParamsFiltersOperator = "eq" DatasetUpdateParamsFiltersOperatorContains DatasetUpdateParamsFiltersOperator = "contains" DatasetUpdateParamsFiltersOperatorLt DatasetUpdateParamsFiltersOperator = "lt" DatasetUpdateParamsFiltersOperatorGt DatasetUpdateParamsFiltersOperator = "gt" )
func (DatasetUpdateParamsFiltersOperator) IsKnown ¶
func (r DatasetUpdateParamsFiltersOperator) IsKnown() bool
type DatasetUpdateParamsFiltersValueUnion ¶
type DatasetUpdateParamsFiltersValueUnion interface {
ImplementsDatasetUpdateParamsFiltersValueUnion()
}
Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.
type DatasetUpdateResponse ¶
type DatasetUpdateResponse struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Enable bool `json:"enable" api:"required"`
Filters []DatasetUpdateResponseFilter `json:"filters" api:"required"`
// gateway id
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
JSON datasetUpdateResponseJSON `json:"-"`
}
func (*DatasetUpdateResponse) UnmarshalJSON ¶
func (r *DatasetUpdateResponse) UnmarshalJSON(data []byte) (err error)
type DatasetUpdateResponseEnvelope ¶
type DatasetUpdateResponseEnvelope struct {
Result DatasetUpdateResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON datasetUpdateResponseEnvelopeJSON `json:"-"`
}
func (*DatasetUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *DatasetUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DatasetUpdateResponseFilter ¶
type DatasetUpdateResponseFilter struct {
Key DatasetUpdateResponseFiltersKey `json:"key" api:"required"`
Operator DatasetUpdateResponseFiltersOperator `json:"operator" api:"required"`
Value []DatasetUpdateResponseFiltersValueUnion `json:"value" api:"required"`
JSON datasetUpdateResponseFilterJSON `json:"-"`
}
func (*DatasetUpdateResponseFilter) UnmarshalJSON ¶
func (r *DatasetUpdateResponseFilter) UnmarshalJSON(data []byte) (err error)
type DatasetUpdateResponseFiltersKey ¶
type DatasetUpdateResponseFiltersKey string
const ( DatasetUpdateResponseFiltersKeyCreatedAt DatasetUpdateResponseFiltersKey = "created_at" DatasetUpdateResponseFiltersKeyRequestContentType DatasetUpdateResponseFiltersKey = "request_content_type" DatasetUpdateResponseFiltersKeyResponseContentType DatasetUpdateResponseFiltersKey = "response_content_type" DatasetUpdateResponseFiltersKeySuccess DatasetUpdateResponseFiltersKey = "success" DatasetUpdateResponseFiltersKeyCached DatasetUpdateResponseFiltersKey = "cached" DatasetUpdateResponseFiltersKeyProvider DatasetUpdateResponseFiltersKey = "provider" DatasetUpdateResponseFiltersKeyModel DatasetUpdateResponseFiltersKey = "model" DatasetUpdateResponseFiltersKeyCost DatasetUpdateResponseFiltersKey = "cost" DatasetUpdateResponseFiltersKeyTokens DatasetUpdateResponseFiltersKey = "tokens" DatasetUpdateResponseFiltersKeyTokensIn DatasetUpdateResponseFiltersKey = "tokens_in" DatasetUpdateResponseFiltersKeyTokensOut DatasetUpdateResponseFiltersKey = "tokens_out" DatasetUpdateResponseFiltersKeyDuration DatasetUpdateResponseFiltersKey = "duration" DatasetUpdateResponseFiltersKeyFeedback DatasetUpdateResponseFiltersKey = "feedback" )
func (DatasetUpdateResponseFiltersKey) IsKnown ¶
func (r DatasetUpdateResponseFiltersKey) IsKnown() bool
type DatasetUpdateResponseFiltersOperator ¶
type DatasetUpdateResponseFiltersOperator string
const ( DatasetUpdateResponseFiltersOperatorEq DatasetUpdateResponseFiltersOperator = "eq" DatasetUpdateResponseFiltersOperatorContains DatasetUpdateResponseFiltersOperator = "contains" DatasetUpdateResponseFiltersOperatorLt DatasetUpdateResponseFiltersOperator = "lt" DatasetUpdateResponseFiltersOperatorGt DatasetUpdateResponseFiltersOperator = "gt" )
func (DatasetUpdateResponseFiltersOperator) IsKnown ¶
func (r DatasetUpdateResponseFiltersOperator) IsKnown() bool
type DatasetUpdateResponseFiltersValueUnion ¶
type DatasetUpdateResponseFiltersValueUnion interface {
ImplementsDatasetUpdateResponseFiltersValueUnion()
}
Union satisfied by shared.UnionString, shared.UnionFloat or shared.UnionBool.
type DynamicRoutingDeleteResponse ¶
type DynamicRoutingDeleteResponse struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Elements []DynamicRoutingDeleteResponseElement `json:"elements" api:"required"`
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
JSON dynamicRoutingDeleteResponseJSON `json:"-"`
}
func (*DynamicRoutingDeleteResponse) UnmarshalJSON ¶
func (r *DynamicRoutingDeleteResponse) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingDeleteResponseElement ¶
type DynamicRoutingDeleteResponseElement struct {
ID string `json:"id" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingDeleteResponseElementsObjectOutputs],
// [map[string]DynamicRoutingDeleteResponseElementsObjectOutput].
Outputs interface{} `json:"outputs" api:"required"`
Type DynamicRoutingDeleteResponseElementsType `json:"type" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingDeleteResponseElementsObjectProperties].
Properties interface{} `json:"properties"`
JSON dynamicRoutingDeleteResponseElementJSON `json:"-"`
// contains filtered or unexported fields
}
func (DynamicRoutingDeleteResponseElement) AsUnion ¶
func (r DynamicRoutingDeleteResponseElement) AsUnion() DynamicRoutingDeleteResponseElementsUnion
AsUnion returns a DynamicRoutingDeleteResponseElementsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are DynamicRoutingDeleteResponseElementsObject, DynamicRoutingDeleteResponseElementsObject, DynamicRoutingDeleteResponseElementsObject, DynamicRoutingDeleteResponseElementsObject, DynamicRoutingDeleteResponseElementsObject, DynamicRoutingDeleteResponseElementsObject.
func (*DynamicRoutingDeleteResponseElement) UnmarshalJSON ¶
func (r *DynamicRoutingDeleteResponseElement) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingDeleteResponseElementsObject ¶
type DynamicRoutingDeleteResponseElementsObject struct {
ID string `json:"id" api:"required"`
Outputs DynamicRoutingDeleteResponseElementsObjectOutputs `json:"outputs" api:"required"`
Type DynamicRoutingDeleteResponseElementsObjectType `json:"type" api:"required"`
JSON dynamicRoutingDeleteResponseElementsObjectJSON `json:"-"`
}
func (*DynamicRoutingDeleteResponseElementsObject) UnmarshalJSON ¶
func (r *DynamicRoutingDeleteResponseElementsObject) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingDeleteResponseElementsObjectOutputs ¶
type DynamicRoutingDeleteResponseElementsObjectOutputs struct {
Next DynamicRoutingDeleteResponseElementsObjectOutputsNext `json:"next" api:"required"`
JSON dynamicRoutingDeleteResponseElementsObjectOutputsJSON `json:"-"`
}
func (*DynamicRoutingDeleteResponseElementsObjectOutputs) UnmarshalJSON ¶
func (r *DynamicRoutingDeleteResponseElementsObjectOutputs) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingDeleteResponseElementsObjectOutputsNext ¶
type DynamicRoutingDeleteResponseElementsObjectOutputsNext struct {
ElementID string `json:"elementId" api:"required"`
JSON dynamicRoutingDeleteResponseElementsObjectOutputsNextJSON `json:"-"`
}
func (*DynamicRoutingDeleteResponseElementsObjectOutputsNext) UnmarshalJSON ¶
func (r *DynamicRoutingDeleteResponseElementsObjectOutputsNext) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingDeleteResponseElementsObjectType ¶
type DynamicRoutingDeleteResponseElementsObjectType string
const (
DynamicRoutingDeleteResponseElementsObjectTypeStart DynamicRoutingDeleteResponseElementsObjectType = "start"
)
func (DynamicRoutingDeleteResponseElementsObjectType) IsKnown ¶
func (r DynamicRoutingDeleteResponseElementsObjectType) IsKnown() bool
type DynamicRoutingDeleteResponseElementsType ¶
type DynamicRoutingDeleteResponseElementsType string
const ( DynamicRoutingDeleteResponseElementsTypeStart DynamicRoutingDeleteResponseElementsType = "start" DynamicRoutingDeleteResponseElementsTypeConditional DynamicRoutingDeleteResponseElementsType = "conditional" DynamicRoutingDeleteResponseElementsTypePercentage DynamicRoutingDeleteResponseElementsType = "percentage" DynamicRoutingDeleteResponseElementsTypeRate DynamicRoutingDeleteResponseElementsType = "rate" DynamicRoutingDeleteResponseElementsTypeModel DynamicRoutingDeleteResponseElementsType = "model" DynamicRoutingDeleteResponseElementsTypeEnd DynamicRoutingDeleteResponseElementsType = "end" )
func (DynamicRoutingDeleteResponseElementsType) IsKnown ¶
func (r DynamicRoutingDeleteResponseElementsType) IsKnown() bool
type DynamicRoutingDeleteResponseElementsUnion ¶
type DynamicRoutingDeleteResponseElementsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by DynamicRoutingDeleteResponseElementsObject, DynamicRoutingDeleteResponseElementsObject, DynamicRoutingDeleteResponseElementsObject, DynamicRoutingDeleteResponseElementsObject, DynamicRoutingDeleteResponseElementsObject or DynamicRoutingDeleteResponseElementsObject.
type DynamicRoutingDeleteResponseEnvelope ¶
type DynamicRoutingDeleteResponseEnvelope struct {
Result DynamicRoutingDeleteResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON dynamicRoutingDeleteResponseEnvelopeJSON `json:"-"`
}
func (*DynamicRoutingDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *DynamicRoutingDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingGetParams ¶
type DynamicRoutingGetResponse ¶
type DynamicRoutingGetResponse struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Deployment DynamicRoutingGetResponseDeployment `json:"deployment" api:"required"`
Elements []DynamicRoutingGetResponseElement `json:"elements" api:"required"`
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
Version DynamicRoutingGetResponseVersion `json:"version" api:"required"`
JSON dynamicRoutingGetResponseJSON `json:"-"`
}
func (*DynamicRoutingGetResponse) UnmarshalJSON ¶
func (r *DynamicRoutingGetResponse) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingGetResponseDeployment ¶
type DynamicRoutingGetResponseDeployment struct {
CreatedAt string `json:"created_at" api:"required"`
DeploymentID string `json:"deployment_id" api:"required"`
VersionID string `json:"version_id" api:"required"`
JSON dynamicRoutingGetResponseDeploymentJSON `json:"-"`
}
func (*DynamicRoutingGetResponseDeployment) UnmarshalJSON ¶
func (r *DynamicRoutingGetResponseDeployment) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingGetResponseElement ¶
type DynamicRoutingGetResponseElement struct {
ID string `json:"id" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingGetResponseElementsObjectOutputs],
// [map[string]DynamicRoutingGetResponseElementsObjectOutput].
Outputs interface{} `json:"outputs" api:"required"`
Type DynamicRoutingGetResponseElementsType `json:"type" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingGetResponseElementsObjectProperties].
Properties interface{} `json:"properties"`
JSON dynamicRoutingGetResponseElementJSON `json:"-"`
// contains filtered or unexported fields
}
func (DynamicRoutingGetResponseElement) AsUnion ¶
func (r DynamicRoutingGetResponseElement) AsUnion() DynamicRoutingGetResponseElementsUnion
AsUnion returns a DynamicRoutingGetResponseElementsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are DynamicRoutingGetResponseElementsObject, DynamicRoutingGetResponseElementsObject, DynamicRoutingGetResponseElementsObject, DynamicRoutingGetResponseElementsObject, DynamicRoutingGetResponseElementsObject, DynamicRoutingGetResponseElementsObject.
func (*DynamicRoutingGetResponseElement) UnmarshalJSON ¶
func (r *DynamicRoutingGetResponseElement) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingGetResponseElementsObject ¶
type DynamicRoutingGetResponseElementsObject struct {
ID string `json:"id" api:"required"`
Outputs DynamicRoutingGetResponseElementsObjectOutputs `json:"outputs" api:"required"`
Type DynamicRoutingGetResponseElementsObjectType `json:"type" api:"required"`
JSON dynamicRoutingGetResponseElementsObjectJSON `json:"-"`
}
func (*DynamicRoutingGetResponseElementsObject) UnmarshalJSON ¶
func (r *DynamicRoutingGetResponseElementsObject) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingGetResponseElementsObjectOutputs ¶
type DynamicRoutingGetResponseElementsObjectOutputs struct {
Next DynamicRoutingGetResponseElementsObjectOutputsNext `json:"next" api:"required"`
JSON dynamicRoutingGetResponseElementsObjectOutputsJSON `json:"-"`
}
func (*DynamicRoutingGetResponseElementsObjectOutputs) UnmarshalJSON ¶
func (r *DynamicRoutingGetResponseElementsObjectOutputs) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingGetResponseElementsObjectOutputsNext ¶
type DynamicRoutingGetResponseElementsObjectOutputsNext struct {
ElementID string `json:"elementId" api:"required"`
JSON dynamicRoutingGetResponseElementsObjectOutputsNextJSON `json:"-"`
}
func (*DynamicRoutingGetResponseElementsObjectOutputsNext) UnmarshalJSON ¶
func (r *DynamicRoutingGetResponseElementsObjectOutputsNext) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingGetResponseElementsObjectType ¶
type DynamicRoutingGetResponseElementsObjectType string
const (
DynamicRoutingGetResponseElementsObjectTypeStart DynamicRoutingGetResponseElementsObjectType = "start"
)
func (DynamicRoutingGetResponseElementsObjectType) IsKnown ¶
func (r DynamicRoutingGetResponseElementsObjectType) IsKnown() bool
type DynamicRoutingGetResponseElementsType ¶
type DynamicRoutingGetResponseElementsType string
const ( DynamicRoutingGetResponseElementsTypeStart DynamicRoutingGetResponseElementsType = "start" DynamicRoutingGetResponseElementsTypeConditional DynamicRoutingGetResponseElementsType = "conditional" DynamicRoutingGetResponseElementsTypePercentage DynamicRoutingGetResponseElementsType = "percentage" DynamicRoutingGetResponseElementsTypeRate DynamicRoutingGetResponseElementsType = "rate" DynamicRoutingGetResponseElementsTypeModel DynamicRoutingGetResponseElementsType = "model" DynamicRoutingGetResponseElementsTypeEnd DynamicRoutingGetResponseElementsType = "end" )
func (DynamicRoutingGetResponseElementsType) IsKnown ¶
func (r DynamicRoutingGetResponseElementsType) IsKnown() bool
type DynamicRoutingGetResponseElementsUnion ¶
type DynamicRoutingGetResponseElementsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by DynamicRoutingGetResponseElementsObject, DynamicRoutingGetResponseElementsObject, DynamicRoutingGetResponseElementsObject, DynamicRoutingGetResponseElementsObject, DynamicRoutingGetResponseElementsObject or DynamicRoutingGetResponseElementsObject.
type DynamicRoutingGetResponseEnvelope ¶
type DynamicRoutingGetResponseEnvelope struct {
Result DynamicRoutingGetResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON dynamicRoutingGetResponseEnvelopeJSON `json:"-"`
}
func (*DynamicRoutingGetResponseEnvelope) UnmarshalJSON ¶
func (r *DynamicRoutingGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingGetResponseVersion ¶
type DynamicRoutingGetResponseVersion struct {
Active DynamicRoutingGetResponseVersionActive `json:"active" api:"required"`
CreatedAt string `json:"created_at" api:"required"`
Data string `json:"data" api:"required"`
VersionID string `json:"version_id" api:"required"`
IsValid bool `json:"is_valid"`
JSON dynamicRoutingGetResponseVersionJSON `json:"-"`
}
func (*DynamicRoutingGetResponseVersion) UnmarshalJSON ¶
func (r *DynamicRoutingGetResponseVersion) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingGetResponseVersionActive ¶
type DynamicRoutingGetResponseVersionActive string
const ( DynamicRoutingGetResponseVersionActiveTrue DynamicRoutingGetResponseVersionActive = "true" DynamicRoutingGetResponseVersionActiveFalse DynamicRoutingGetResponseVersionActive = "false" )
func (DynamicRoutingGetResponseVersionActive) IsKnown ¶
func (r DynamicRoutingGetResponseVersionActive) IsKnown() bool
type DynamicRoutingGetVersionResponse ¶
type DynamicRoutingGetVersionResponse struct {
ID string `json:"id" api:"required"`
Active DynamicRoutingGetVersionResponseActive `json:"active" api:"required"`
CreatedAt string `json:"created_at" api:"required"`
Data string `json:"data" api:"required"`
Elements []DynamicRoutingGetVersionResponseElement `json:"elements" api:"required"`
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
VersionID string `json:"version_id" api:"required"`
IsValid bool `json:"is_valid"`
JSON dynamicRoutingGetVersionResponseJSON `json:"-"`
}
func (*DynamicRoutingGetVersionResponse) UnmarshalJSON ¶
func (r *DynamicRoutingGetVersionResponse) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingGetVersionResponseActive ¶
type DynamicRoutingGetVersionResponseActive string
const ( DynamicRoutingGetVersionResponseActiveTrue DynamicRoutingGetVersionResponseActive = "true" DynamicRoutingGetVersionResponseActiveFalse DynamicRoutingGetVersionResponseActive = "false" )
func (DynamicRoutingGetVersionResponseActive) IsKnown ¶
func (r DynamicRoutingGetVersionResponseActive) IsKnown() bool
type DynamicRoutingGetVersionResponseElement ¶
type DynamicRoutingGetVersionResponseElement struct {
ID string `json:"id" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingGetVersionResponseElementsObjectOutputs],
// [map[string]DynamicRoutingGetVersionResponseElementsObjectOutput].
Outputs interface{} `json:"outputs" api:"required"`
Type DynamicRoutingGetVersionResponseElementsType `json:"type" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingGetVersionResponseElementsObjectProperties].
Properties interface{} `json:"properties"`
JSON dynamicRoutingGetVersionResponseElementJSON `json:"-"`
// contains filtered or unexported fields
}
func (DynamicRoutingGetVersionResponseElement) AsUnion ¶
func (r DynamicRoutingGetVersionResponseElement) AsUnion() DynamicRoutingGetVersionResponseElementsUnion
AsUnion returns a DynamicRoutingGetVersionResponseElementsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are DynamicRoutingGetVersionResponseElementsObject, DynamicRoutingGetVersionResponseElementsObject, DynamicRoutingGetVersionResponseElementsObject, DynamicRoutingGetVersionResponseElementsObject, DynamicRoutingGetVersionResponseElementsObject, DynamicRoutingGetVersionResponseElementsObject.
func (*DynamicRoutingGetVersionResponseElement) UnmarshalJSON ¶
func (r *DynamicRoutingGetVersionResponseElement) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingGetVersionResponseElementsObject ¶
type DynamicRoutingGetVersionResponseElementsObject struct {
ID string `json:"id" api:"required"`
Outputs DynamicRoutingGetVersionResponseElementsObjectOutputs `json:"outputs" api:"required"`
Type DynamicRoutingGetVersionResponseElementsObjectType `json:"type" api:"required"`
JSON dynamicRoutingGetVersionResponseElementsObjectJSON `json:"-"`
}
func (*DynamicRoutingGetVersionResponseElementsObject) UnmarshalJSON ¶
func (r *DynamicRoutingGetVersionResponseElementsObject) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingGetVersionResponseElementsObjectOutputs ¶
type DynamicRoutingGetVersionResponseElementsObjectOutputs struct {
Next DynamicRoutingGetVersionResponseElementsObjectOutputsNext `json:"next" api:"required"`
JSON dynamicRoutingGetVersionResponseElementsObjectOutputsJSON `json:"-"`
}
func (*DynamicRoutingGetVersionResponseElementsObjectOutputs) UnmarshalJSON ¶
func (r *DynamicRoutingGetVersionResponseElementsObjectOutputs) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingGetVersionResponseElementsObjectOutputsNext ¶
type DynamicRoutingGetVersionResponseElementsObjectOutputsNext struct {
ElementID string `json:"elementId" api:"required"`
JSON dynamicRoutingGetVersionResponseElementsObjectOutputsNextJSON `json:"-"`
}
func (*DynamicRoutingGetVersionResponseElementsObjectOutputsNext) UnmarshalJSON ¶
func (r *DynamicRoutingGetVersionResponseElementsObjectOutputsNext) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingGetVersionResponseElementsObjectType ¶
type DynamicRoutingGetVersionResponseElementsObjectType string
const (
DynamicRoutingGetVersionResponseElementsObjectTypeStart DynamicRoutingGetVersionResponseElementsObjectType = "start"
)
func (DynamicRoutingGetVersionResponseElementsObjectType) IsKnown ¶
func (r DynamicRoutingGetVersionResponseElementsObjectType) IsKnown() bool
type DynamicRoutingGetVersionResponseElementsType ¶
type DynamicRoutingGetVersionResponseElementsType string
const ( DynamicRoutingGetVersionResponseElementsTypeStart DynamicRoutingGetVersionResponseElementsType = "start" DynamicRoutingGetVersionResponseElementsTypeConditional DynamicRoutingGetVersionResponseElementsType = "conditional" DynamicRoutingGetVersionResponseElementsTypePercentage DynamicRoutingGetVersionResponseElementsType = "percentage" DynamicRoutingGetVersionResponseElementsTypeRate DynamicRoutingGetVersionResponseElementsType = "rate" DynamicRoutingGetVersionResponseElementsTypeModel DynamicRoutingGetVersionResponseElementsType = "model" DynamicRoutingGetVersionResponseElementsTypeEnd DynamicRoutingGetVersionResponseElementsType = "end" )
func (DynamicRoutingGetVersionResponseElementsType) IsKnown ¶
func (r DynamicRoutingGetVersionResponseElementsType) IsKnown() bool
type DynamicRoutingGetVersionResponseElementsUnion ¶
type DynamicRoutingGetVersionResponseElementsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by DynamicRoutingGetVersionResponseElementsObject, DynamicRoutingGetVersionResponseElementsObject, DynamicRoutingGetVersionResponseElementsObject, DynamicRoutingGetVersionResponseElementsObject, DynamicRoutingGetVersionResponseElementsObject or DynamicRoutingGetVersionResponseElementsObject.
type DynamicRoutingGetVersionResponseEnvelope ¶
type DynamicRoutingGetVersionResponseEnvelope struct {
Result DynamicRoutingGetVersionResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON dynamicRoutingGetVersionResponseEnvelopeJSON `json:"-"`
}
func (*DynamicRoutingGetVersionResponseEnvelope) UnmarshalJSON ¶
func (r *DynamicRoutingGetVersionResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListDeploymentsResponse ¶
type DynamicRoutingListDeploymentsResponse struct {
Data DynamicRoutingListDeploymentsResponseData `json:"data" api:"required"`
Success bool `json:"success" api:"required"`
JSON dynamicRoutingListDeploymentsResponseJSON `json:"-"`
}
func (*DynamicRoutingListDeploymentsResponse) UnmarshalJSON ¶
func (r *DynamicRoutingListDeploymentsResponse) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListDeploymentsResponseData ¶
type DynamicRoutingListDeploymentsResponseData struct {
Deployments []DynamicRoutingListDeploymentsResponseDataDeployment `json:"deployments" api:"required"`
OrderBy string `json:"order_by" api:"required"`
OrderByDirection string `json:"order_by_direction" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
JSON dynamicRoutingListDeploymentsResponseDataJSON `json:"-"`
}
func (*DynamicRoutingListDeploymentsResponseData) UnmarshalJSON ¶
func (r *DynamicRoutingListDeploymentsResponseData) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListDeploymentsResponseDataDeployment ¶
type DynamicRoutingListDeploymentsResponseDataDeployment struct {
CreatedAt string `json:"created_at" api:"required"`
DeploymentID string `json:"deployment_id" api:"required"`
VersionID string `json:"version_id" api:"required"`
JSON dynamicRoutingListDeploymentsResponseDataDeploymentJSON `json:"-"`
}
func (*DynamicRoutingListDeploymentsResponseDataDeployment) UnmarshalJSON ¶
func (r *DynamicRoutingListDeploymentsResponseDataDeployment) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListParams ¶
type DynamicRoutingListParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
// Page number
Page param.Field[int64] `query:"page"`
// Number of routes per page
PerPage param.Field[int64] `query:"per_page"`
}
func (DynamicRoutingListParams) URLQuery ¶
func (r DynamicRoutingListParams) URLQuery() (v url.Values)
URLQuery serializes DynamicRoutingListParams's query parameters as `url.Values`.
type DynamicRoutingListResponse ¶
type DynamicRoutingListResponse struct {
Data DynamicRoutingListResponseData `json:"data" api:"required"`
Success bool `json:"success" api:"required"`
JSON dynamicRoutingListResponseJSON `json:"-"`
}
func (*DynamicRoutingListResponse) UnmarshalJSON ¶
func (r *DynamicRoutingListResponse) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListResponseData ¶
type DynamicRoutingListResponseData struct {
OrderBy string `json:"order_by" api:"required"`
OrderByDirection string `json:"order_by_direction" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
Routes []DynamicRoutingListResponseDataRoute `json:"routes" api:"required"`
JSON dynamicRoutingListResponseDataJSON `json:"-"`
}
func (*DynamicRoutingListResponseData) UnmarshalJSON ¶
func (r *DynamicRoutingListResponseData) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListResponseDataRoute ¶
type DynamicRoutingListResponseDataRoute struct {
ID string `json:"id" api:"required"`
AccountTag string `json:"account_tag" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Deployment DynamicRoutingListResponseDataRoutesDeployment `json:"deployment" api:"required"`
Elements []DynamicRoutingListResponseDataRoutesElement `json:"elements" api:"required"`
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
Version DynamicRoutingListResponseDataRoutesVersion `json:"version" api:"required"`
JSON dynamicRoutingListResponseDataRouteJSON `json:"-"`
}
func (*DynamicRoutingListResponseDataRoute) UnmarshalJSON ¶
func (r *DynamicRoutingListResponseDataRoute) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListResponseDataRoutesDeployment ¶
type DynamicRoutingListResponseDataRoutesDeployment struct {
CreatedAt string `json:"created_at" api:"required"`
DeploymentID string `json:"deployment_id" api:"required"`
VersionID string `json:"version_id" api:"required"`
JSON dynamicRoutingListResponseDataRoutesDeploymentJSON `json:"-"`
}
func (*DynamicRoutingListResponseDataRoutesDeployment) UnmarshalJSON ¶
func (r *DynamicRoutingListResponseDataRoutesDeployment) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListResponseDataRoutesElement ¶
type DynamicRoutingListResponseDataRoutesElement struct {
ID string `json:"id" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingListResponseDataRoutesElementsObjectOutputs],
// [map[string]DynamicRoutingListResponseDataRoutesElementsObjectOutput].
Outputs interface{} `json:"outputs" api:"required"`
Type DynamicRoutingListResponseDataRoutesElementsType `json:"type" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingListResponseDataRoutesElementsObjectProperties].
Properties interface{} `json:"properties"`
JSON dynamicRoutingListResponseDataRoutesElementJSON `json:"-"`
// contains filtered or unexported fields
}
func (DynamicRoutingListResponseDataRoutesElement) AsUnion ¶
func (r DynamicRoutingListResponseDataRoutesElement) AsUnion() DynamicRoutingListResponseDataRoutesElementsUnion
AsUnion returns a DynamicRoutingListResponseDataRoutesElementsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are DynamicRoutingListResponseDataRoutesElementsObject, DynamicRoutingListResponseDataRoutesElementsObject, DynamicRoutingListResponseDataRoutesElementsObject, DynamicRoutingListResponseDataRoutesElementsObject, DynamicRoutingListResponseDataRoutesElementsObject, DynamicRoutingListResponseDataRoutesElementsObject.
func (*DynamicRoutingListResponseDataRoutesElement) UnmarshalJSON ¶
func (r *DynamicRoutingListResponseDataRoutesElement) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListResponseDataRoutesElementsObject ¶
type DynamicRoutingListResponseDataRoutesElementsObject struct {
ID string `json:"id" api:"required"`
Outputs DynamicRoutingListResponseDataRoutesElementsObjectOutputs `json:"outputs" api:"required"`
Type DynamicRoutingListResponseDataRoutesElementsObjectType `json:"type" api:"required"`
JSON dynamicRoutingListResponseDataRoutesElementsObjectJSON `json:"-"`
}
func (*DynamicRoutingListResponseDataRoutesElementsObject) UnmarshalJSON ¶
func (r *DynamicRoutingListResponseDataRoutesElementsObject) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListResponseDataRoutesElementsObjectOutputs ¶
type DynamicRoutingListResponseDataRoutesElementsObjectOutputs struct {
Next DynamicRoutingListResponseDataRoutesElementsObjectOutputsNext `json:"next" api:"required"`
JSON dynamicRoutingListResponseDataRoutesElementsObjectOutputsJSON `json:"-"`
}
func (*DynamicRoutingListResponseDataRoutesElementsObjectOutputs) UnmarshalJSON ¶
func (r *DynamicRoutingListResponseDataRoutesElementsObjectOutputs) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListResponseDataRoutesElementsObjectOutputsNext ¶
type DynamicRoutingListResponseDataRoutesElementsObjectOutputsNext struct {
ElementID string `json:"elementId" api:"required"`
JSON dynamicRoutingListResponseDataRoutesElementsObjectOutputsNextJSON `json:"-"`
}
func (*DynamicRoutingListResponseDataRoutesElementsObjectOutputsNext) UnmarshalJSON ¶
func (r *DynamicRoutingListResponseDataRoutesElementsObjectOutputsNext) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListResponseDataRoutesElementsObjectType ¶
type DynamicRoutingListResponseDataRoutesElementsObjectType string
const (
DynamicRoutingListResponseDataRoutesElementsObjectTypeStart DynamicRoutingListResponseDataRoutesElementsObjectType = "start"
)
func (DynamicRoutingListResponseDataRoutesElementsObjectType) IsKnown ¶
func (r DynamicRoutingListResponseDataRoutesElementsObjectType) IsKnown() bool
type DynamicRoutingListResponseDataRoutesElementsType ¶
type DynamicRoutingListResponseDataRoutesElementsType string
const ( DynamicRoutingListResponseDataRoutesElementsTypeStart DynamicRoutingListResponseDataRoutesElementsType = "start" DynamicRoutingListResponseDataRoutesElementsTypeConditional DynamicRoutingListResponseDataRoutesElementsType = "conditional" DynamicRoutingListResponseDataRoutesElementsTypePercentage DynamicRoutingListResponseDataRoutesElementsType = "percentage" DynamicRoutingListResponseDataRoutesElementsTypeRate DynamicRoutingListResponseDataRoutesElementsType = "rate" DynamicRoutingListResponseDataRoutesElementsTypeModel DynamicRoutingListResponseDataRoutesElementsType = "model" DynamicRoutingListResponseDataRoutesElementsTypeEnd DynamicRoutingListResponseDataRoutesElementsType = "end" )
func (DynamicRoutingListResponseDataRoutesElementsType) IsKnown ¶
func (r DynamicRoutingListResponseDataRoutesElementsType) IsKnown() bool
type DynamicRoutingListResponseDataRoutesElementsUnion ¶
type DynamicRoutingListResponseDataRoutesElementsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by DynamicRoutingListResponseDataRoutesElementsObject, DynamicRoutingListResponseDataRoutesElementsObject, DynamicRoutingListResponseDataRoutesElementsObject, DynamicRoutingListResponseDataRoutesElementsObject, DynamicRoutingListResponseDataRoutesElementsObject or DynamicRoutingListResponseDataRoutesElementsObject.
type DynamicRoutingListResponseDataRoutesVersion ¶
type DynamicRoutingListResponseDataRoutesVersion struct {
Active DynamicRoutingListResponseDataRoutesVersionActive `json:"active" api:"required"`
CreatedAt string `json:"created_at" api:"required"`
Data string `json:"data" api:"required"`
VersionID string `json:"version_id" api:"required"`
IsValid bool `json:"is_valid"`
JSON dynamicRoutingListResponseDataRoutesVersionJSON `json:"-"`
}
func (*DynamicRoutingListResponseDataRoutesVersion) UnmarshalJSON ¶
func (r *DynamicRoutingListResponseDataRoutesVersion) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListResponseDataRoutesVersionActive ¶
type DynamicRoutingListResponseDataRoutesVersionActive string
const ( DynamicRoutingListResponseDataRoutesVersionActiveTrue DynamicRoutingListResponseDataRoutesVersionActive = "true" DynamicRoutingListResponseDataRoutesVersionActiveFalse DynamicRoutingListResponseDataRoutesVersionActive = "false" )
func (DynamicRoutingListResponseDataRoutesVersionActive) IsKnown ¶
func (r DynamicRoutingListResponseDataRoutesVersionActive) IsKnown() bool
type DynamicRoutingListVersionsResponse ¶
type DynamicRoutingListVersionsResponse struct {
Data DynamicRoutingListVersionsResponseData `json:"data" api:"required"`
Success bool `json:"success" api:"required"`
JSON dynamicRoutingListVersionsResponseJSON `json:"-"`
}
func (*DynamicRoutingListVersionsResponse) UnmarshalJSON ¶
func (r *DynamicRoutingListVersionsResponse) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListVersionsResponseData ¶
type DynamicRoutingListVersionsResponseData struct {
OrderBy string `json:"order_by" api:"required"`
OrderByDirection string `json:"order_by_direction" api:"required"`
Page float64 `json:"page" api:"required"`
PerPage float64 `json:"per_page" api:"required"`
Versions []DynamicRoutingListVersionsResponseDataVersion `json:"versions" api:"required"`
JSON dynamicRoutingListVersionsResponseDataJSON `json:"-"`
}
func (*DynamicRoutingListVersionsResponseData) UnmarshalJSON ¶
func (r *DynamicRoutingListVersionsResponseData) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListVersionsResponseDataVersion ¶
type DynamicRoutingListVersionsResponseDataVersion struct {
Active DynamicRoutingListVersionsResponseDataVersionsActive `json:"active" api:"required"`
CreatedAt string `json:"created_at" api:"required"`
Data string `json:"data" api:"required"`
VersionID string `json:"version_id" api:"required"`
IsValid bool `json:"is_valid"`
JSON dynamicRoutingListVersionsResponseDataVersionJSON `json:"-"`
}
func (*DynamicRoutingListVersionsResponseDataVersion) UnmarshalJSON ¶
func (r *DynamicRoutingListVersionsResponseDataVersion) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingListVersionsResponseDataVersionsActive ¶
type DynamicRoutingListVersionsResponseDataVersionsActive string
const ( DynamicRoutingListVersionsResponseDataVersionsActiveTrue DynamicRoutingListVersionsResponseDataVersionsActive = "true" DynamicRoutingListVersionsResponseDataVersionsActiveFalse DynamicRoutingListVersionsResponseDataVersionsActive = "false" )
func (DynamicRoutingListVersionsResponseDataVersionsActive) IsKnown ¶
func (r DynamicRoutingListVersionsResponseDataVersionsActive) IsKnown() bool
type DynamicRoutingNewDeploymentParams ¶
type DynamicRoutingNewDeploymentParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
VersionID param.Field[string] `json:"version_id" api:"required"`
}
func (DynamicRoutingNewDeploymentParams) MarshalJSON ¶
func (r DynamicRoutingNewDeploymentParams) MarshalJSON() (data []byte, err error)
type DynamicRoutingNewDeploymentResponse ¶
type DynamicRoutingNewDeploymentResponse struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Elements []DynamicRoutingNewDeploymentResponseElement `json:"elements" api:"required"`
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
JSON dynamicRoutingNewDeploymentResponseJSON `json:"-"`
}
func (*DynamicRoutingNewDeploymentResponse) UnmarshalJSON ¶
func (r *DynamicRoutingNewDeploymentResponse) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewDeploymentResponseElement ¶
type DynamicRoutingNewDeploymentResponseElement struct {
ID string `json:"id" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingNewDeploymentResponseElementsObjectOutputs],
// [map[string]DynamicRoutingNewDeploymentResponseElementsObjectOutput].
Outputs interface{} `json:"outputs" api:"required"`
Type DynamicRoutingNewDeploymentResponseElementsType `json:"type" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingNewDeploymentResponseElementsObjectProperties].
Properties interface{} `json:"properties"`
JSON dynamicRoutingNewDeploymentResponseElementJSON `json:"-"`
// contains filtered or unexported fields
}
func (DynamicRoutingNewDeploymentResponseElement) AsUnion ¶
func (r DynamicRoutingNewDeploymentResponseElement) AsUnion() DynamicRoutingNewDeploymentResponseElementsUnion
AsUnion returns a DynamicRoutingNewDeploymentResponseElementsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are DynamicRoutingNewDeploymentResponseElementsObject, DynamicRoutingNewDeploymentResponseElementsObject, DynamicRoutingNewDeploymentResponseElementsObject, DynamicRoutingNewDeploymentResponseElementsObject, DynamicRoutingNewDeploymentResponseElementsObject, DynamicRoutingNewDeploymentResponseElementsObject.
func (*DynamicRoutingNewDeploymentResponseElement) UnmarshalJSON ¶
func (r *DynamicRoutingNewDeploymentResponseElement) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewDeploymentResponseElementsObject ¶
type DynamicRoutingNewDeploymentResponseElementsObject struct {
ID string `json:"id" api:"required"`
Outputs DynamicRoutingNewDeploymentResponseElementsObjectOutputs `json:"outputs" api:"required"`
Type DynamicRoutingNewDeploymentResponseElementsObjectType `json:"type" api:"required"`
JSON dynamicRoutingNewDeploymentResponseElementsObjectJSON `json:"-"`
}
func (*DynamicRoutingNewDeploymentResponseElementsObject) UnmarshalJSON ¶
func (r *DynamicRoutingNewDeploymentResponseElementsObject) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewDeploymentResponseElementsObjectOutputs ¶
type DynamicRoutingNewDeploymentResponseElementsObjectOutputs struct {
Next DynamicRoutingNewDeploymentResponseElementsObjectOutputsNext `json:"next" api:"required"`
JSON dynamicRoutingNewDeploymentResponseElementsObjectOutputsJSON `json:"-"`
}
func (*DynamicRoutingNewDeploymentResponseElementsObjectOutputs) UnmarshalJSON ¶
func (r *DynamicRoutingNewDeploymentResponseElementsObjectOutputs) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewDeploymentResponseElementsObjectOutputsNext ¶
type DynamicRoutingNewDeploymentResponseElementsObjectOutputsNext struct {
ElementID string `json:"elementId" api:"required"`
JSON dynamicRoutingNewDeploymentResponseElementsObjectOutputsNextJSON `json:"-"`
}
func (*DynamicRoutingNewDeploymentResponseElementsObjectOutputsNext) UnmarshalJSON ¶
func (r *DynamicRoutingNewDeploymentResponseElementsObjectOutputsNext) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewDeploymentResponseElementsObjectType ¶
type DynamicRoutingNewDeploymentResponseElementsObjectType string
const (
DynamicRoutingNewDeploymentResponseElementsObjectTypeStart DynamicRoutingNewDeploymentResponseElementsObjectType = "start"
)
func (DynamicRoutingNewDeploymentResponseElementsObjectType) IsKnown ¶
func (r DynamicRoutingNewDeploymentResponseElementsObjectType) IsKnown() bool
type DynamicRoutingNewDeploymentResponseElementsType ¶
type DynamicRoutingNewDeploymentResponseElementsType string
const ( DynamicRoutingNewDeploymentResponseElementsTypeStart DynamicRoutingNewDeploymentResponseElementsType = "start" DynamicRoutingNewDeploymentResponseElementsTypeConditional DynamicRoutingNewDeploymentResponseElementsType = "conditional" DynamicRoutingNewDeploymentResponseElementsTypePercentage DynamicRoutingNewDeploymentResponseElementsType = "percentage" DynamicRoutingNewDeploymentResponseElementsTypeRate DynamicRoutingNewDeploymentResponseElementsType = "rate" DynamicRoutingNewDeploymentResponseElementsTypeModel DynamicRoutingNewDeploymentResponseElementsType = "model" DynamicRoutingNewDeploymentResponseElementsTypeEnd DynamicRoutingNewDeploymentResponseElementsType = "end" )
func (DynamicRoutingNewDeploymentResponseElementsType) IsKnown ¶
func (r DynamicRoutingNewDeploymentResponseElementsType) IsKnown() bool
type DynamicRoutingNewDeploymentResponseElementsUnion ¶
type DynamicRoutingNewDeploymentResponseElementsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by DynamicRoutingNewDeploymentResponseElementsObject, DynamicRoutingNewDeploymentResponseElementsObject, DynamicRoutingNewDeploymentResponseElementsObject, DynamicRoutingNewDeploymentResponseElementsObject, DynamicRoutingNewDeploymentResponseElementsObject or DynamicRoutingNewDeploymentResponseElementsObject.
type DynamicRoutingNewDeploymentResponseEnvelope ¶
type DynamicRoutingNewDeploymentResponseEnvelope struct {
Result DynamicRoutingNewDeploymentResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON dynamicRoutingNewDeploymentResponseEnvelopeJSON `json:"-"`
}
func (*DynamicRoutingNewDeploymentResponseEnvelope) UnmarshalJSON ¶
func (r *DynamicRoutingNewDeploymentResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewParams ¶
type DynamicRoutingNewParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
Elements param.Field[[]DynamicRoutingNewParamsElementUnion] `json:"elements" api:"required"`
Name param.Field[string] `json:"name" api:"required"`
}
func (DynamicRoutingNewParams) MarshalJSON ¶
func (r DynamicRoutingNewParams) MarshalJSON() (data []byte, err error)
type DynamicRoutingNewParamsElement ¶
type DynamicRoutingNewParamsElement struct {
ID param.Field[string] `json:"id" api:"required"`
Outputs param.Field[interface{}] `json:"outputs" api:"required"`
Type param.Field[DynamicRoutingNewParamsElementsType] `json:"type" api:"required"`
Properties param.Field[interface{}] `json:"properties"`
}
func (DynamicRoutingNewParamsElement) MarshalJSON ¶
func (r DynamicRoutingNewParamsElement) MarshalJSON() (data []byte, err error)
type DynamicRoutingNewParamsElementUnion ¶
type DynamicRoutingNewParamsElementUnion interface {
// contains filtered or unexported methods
}
Satisfied by ai_gateway.DynamicRoutingNewParamsElementsObject, ai_gateway.DynamicRoutingNewParamsElementsObject, ai_gateway.DynamicRoutingNewParamsElementsObject, ai_gateway.DynamicRoutingNewParamsElementsObject, ai_gateway.DynamicRoutingNewParamsElementsObject, ai_gateway.DynamicRoutingNewParamsElementsObject, DynamicRoutingNewParamsElement.
type DynamicRoutingNewParamsElementsObject ¶
type DynamicRoutingNewParamsElementsObject struct {
ID param.Field[string] `json:"id" api:"required"`
Outputs param.Field[DynamicRoutingNewParamsElementsObjectOutputs] `json:"outputs" api:"required"`
Type param.Field[DynamicRoutingNewParamsElementsObjectType] `json:"type" api:"required"`
}
func (DynamicRoutingNewParamsElementsObject) MarshalJSON ¶
func (r DynamicRoutingNewParamsElementsObject) MarshalJSON() (data []byte, err error)
type DynamicRoutingNewParamsElementsObjectOutputs ¶
type DynamicRoutingNewParamsElementsObjectOutputs struct {
Next param.Field[DynamicRoutingNewParamsElementsObjectOutputsNext] `json:"next" api:"required"`
}
func (DynamicRoutingNewParamsElementsObjectOutputs) MarshalJSON ¶
func (r DynamicRoutingNewParamsElementsObjectOutputs) MarshalJSON() (data []byte, err error)
type DynamicRoutingNewParamsElementsObjectOutputsNext ¶
type DynamicRoutingNewParamsElementsObjectOutputsNext struct {
ElementID param.Field[string] `json:"elementId" api:"required"`
}
func (DynamicRoutingNewParamsElementsObjectOutputsNext) MarshalJSON ¶
func (r DynamicRoutingNewParamsElementsObjectOutputsNext) MarshalJSON() (data []byte, err error)
type DynamicRoutingNewParamsElementsObjectType ¶
type DynamicRoutingNewParamsElementsObjectType string
const (
DynamicRoutingNewParamsElementsObjectTypeStart DynamicRoutingNewParamsElementsObjectType = "start"
)
func (DynamicRoutingNewParamsElementsObjectType) IsKnown ¶
func (r DynamicRoutingNewParamsElementsObjectType) IsKnown() bool
type DynamicRoutingNewParamsElementsType ¶
type DynamicRoutingNewParamsElementsType string
const ( DynamicRoutingNewParamsElementsTypeStart DynamicRoutingNewParamsElementsType = "start" DynamicRoutingNewParamsElementsTypeConditional DynamicRoutingNewParamsElementsType = "conditional" DynamicRoutingNewParamsElementsTypePercentage DynamicRoutingNewParamsElementsType = "percentage" DynamicRoutingNewParamsElementsTypeRate DynamicRoutingNewParamsElementsType = "rate" DynamicRoutingNewParamsElementsTypeModel DynamicRoutingNewParamsElementsType = "model" DynamicRoutingNewParamsElementsTypeEnd DynamicRoutingNewParamsElementsType = "end" )
func (DynamicRoutingNewParamsElementsType) IsKnown ¶
func (r DynamicRoutingNewParamsElementsType) IsKnown() bool
type DynamicRoutingNewResponse ¶
type DynamicRoutingNewResponse struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Deployment DynamicRoutingNewResponseDeployment `json:"deployment" api:"required"`
Elements []DynamicRoutingNewResponseElement `json:"elements" api:"required"`
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
Version DynamicRoutingNewResponseVersion `json:"version" api:"required"`
JSON dynamicRoutingNewResponseJSON `json:"-"`
}
func (*DynamicRoutingNewResponse) UnmarshalJSON ¶
func (r *DynamicRoutingNewResponse) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewResponseDeployment ¶
type DynamicRoutingNewResponseDeployment struct {
CreatedAt string `json:"created_at" api:"required"`
DeploymentID string `json:"deployment_id" api:"required"`
VersionID string `json:"version_id" api:"required"`
JSON dynamicRoutingNewResponseDeploymentJSON `json:"-"`
}
func (*DynamicRoutingNewResponseDeployment) UnmarshalJSON ¶
func (r *DynamicRoutingNewResponseDeployment) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewResponseElement ¶
type DynamicRoutingNewResponseElement struct {
ID string `json:"id" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingNewResponseElementsObjectOutputs],
// [map[string]DynamicRoutingNewResponseElementsObjectOutput].
Outputs interface{} `json:"outputs" api:"required"`
Type DynamicRoutingNewResponseElementsType `json:"type" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingNewResponseElementsObjectProperties].
Properties interface{} `json:"properties"`
JSON dynamicRoutingNewResponseElementJSON `json:"-"`
// contains filtered or unexported fields
}
func (DynamicRoutingNewResponseElement) AsUnion ¶
func (r DynamicRoutingNewResponseElement) AsUnion() DynamicRoutingNewResponseElementsUnion
AsUnion returns a DynamicRoutingNewResponseElementsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are DynamicRoutingNewResponseElementsObject, DynamicRoutingNewResponseElementsObject, DynamicRoutingNewResponseElementsObject, DynamicRoutingNewResponseElementsObject, DynamicRoutingNewResponseElementsObject, DynamicRoutingNewResponseElementsObject.
func (*DynamicRoutingNewResponseElement) UnmarshalJSON ¶
func (r *DynamicRoutingNewResponseElement) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewResponseElementsObject ¶
type DynamicRoutingNewResponseElementsObject struct {
ID string `json:"id" api:"required"`
Outputs DynamicRoutingNewResponseElementsObjectOutputs `json:"outputs" api:"required"`
Type DynamicRoutingNewResponseElementsObjectType `json:"type" api:"required"`
JSON dynamicRoutingNewResponseElementsObjectJSON `json:"-"`
}
func (*DynamicRoutingNewResponseElementsObject) UnmarshalJSON ¶
func (r *DynamicRoutingNewResponseElementsObject) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewResponseElementsObjectOutputs ¶
type DynamicRoutingNewResponseElementsObjectOutputs struct {
Next DynamicRoutingNewResponseElementsObjectOutputsNext `json:"next" api:"required"`
JSON dynamicRoutingNewResponseElementsObjectOutputsJSON `json:"-"`
}
func (*DynamicRoutingNewResponseElementsObjectOutputs) UnmarshalJSON ¶
func (r *DynamicRoutingNewResponseElementsObjectOutputs) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewResponseElementsObjectOutputsNext ¶
type DynamicRoutingNewResponseElementsObjectOutputsNext struct {
ElementID string `json:"elementId" api:"required"`
JSON dynamicRoutingNewResponseElementsObjectOutputsNextJSON `json:"-"`
}
func (*DynamicRoutingNewResponseElementsObjectOutputsNext) UnmarshalJSON ¶
func (r *DynamicRoutingNewResponseElementsObjectOutputsNext) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewResponseElementsObjectType ¶
type DynamicRoutingNewResponseElementsObjectType string
const (
DynamicRoutingNewResponseElementsObjectTypeStart DynamicRoutingNewResponseElementsObjectType = "start"
)
func (DynamicRoutingNewResponseElementsObjectType) IsKnown ¶
func (r DynamicRoutingNewResponseElementsObjectType) IsKnown() bool
type DynamicRoutingNewResponseElementsType ¶
type DynamicRoutingNewResponseElementsType string
const ( DynamicRoutingNewResponseElementsTypeStart DynamicRoutingNewResponseElementsType = "start" DynamicRoutingNewResponseElementsTypeConditional DynamicRoutingNewResponseElementsType = "conditional" DynamicRoutingNewResponseElementsTypePercentage DynamicRoutingNewResponseElementsType = "percentage" DynamicRoutingNewResponseElementsTypeRate DynamicRoutingNewResponseElementsType = "rate" DynamicRoutingNewResponseElementsTypeModel DynamicRoutingNewResponseElementsType = "model" DynamicRoutingNewResponseElementsTypeEnd DynamicRoutingNewResponseElementsType = "end" )
func (DynamicRoutingNewResponseElementsType) IsKnown ¶
func (r DynamicRoutingNewResponseElementsType) IsKnown() bool
type DynamicRoutingNewResponseElementsUnion ¶
type DynamicRoutingNewResponseElementsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by DynamicRoutingNewResponseElementsObject, DynamicRoutingNewResponseElementsObject, DynamicRoutingNewResponseElementsObject, DynamicRoutingNewResponseElementsObject, DynamicRoutingNewResponseElementsObject or DynamicRoutingNewResponseElementsObject.
type DynamicRoutingNewResponseEnvelope ¶
type DynamicRoutingNewResponseEnvelope struct {
Result DynamicRoutingNewResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON dynamicRoutingNewResponseEnvelopeJSON `json:"-"`
}
func (*DynamicRoutingNewResponseEnvelope) UnmarshalJSON ¶
func (r *DynamicRoutingNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewResponseVersion ¶
type DynamicRoutingNewResponseVersion struct {
Active DynamicRoutingNewResponseVersionActive `json:"active" api:"required"`
CreatedAt string `json:"created_at" api:"required"`
Data string `json:"data" api:"required"`
VersionID string `json:"version_id" api:"required"`
IsValid bool `json:"is_valid"`
JSON dynamicRoutingNewResponseVersionJSON `json:"-"`
}
func (*DynamicRoutingNewResponseVersion) UnmarshalJSON ¶
func (r *DynamicRoutingNewResponseVersion) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewResponseVersionActive ¶
type DynamicRoutingNewResponseVersionActive string
const ( DynamicRoutingNewResponseVersionActiveTrue DynamicRoutingNewResponseVersionActive = "true" DynamicRoutingNewResponseVersionActiveFalse DynamicRoutingNewResponseVersionActive = "false" )
func (DynamicRoutingNewResponseVersionActive) IsKnown ¶
func (r DynamicRoutingNewResponseVersionActive) IsKnown() bool
type DynamicRoutingNewVersionParams ¶
type DynamicRoutingNewVersionParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
Elements param.Field[[]DynamicRoutingNewVersionParamsElementUnion] `json:"elements" api:"required"`
}
func (DynamicRoutingNewVersionParams) MarshalJSON ¶
func (r DynamicRoutingNewVersionParams) MarshalJSON() (data []byte, err error)
type DynamicRoutingNewVersionParamsElement ¶
type DynamicRoutingNewVersionParamsElement struct {
ID param.Field[string] `json:"id" api:"required"`
Outputs param.Field[interface{}] `json:"outputs" api:"required"`
Type param.Field[DynamicRoutingNewVersionParamsElementsType] `json:"type" api:"required"`
Properties param.Field[interface{}] `json:"properties"`
}
func (DynamicRoutingNewVersionParamsElement) MarshalJSON ¶
func (r DynamicRoutingNewVersionParamsElement) MarshalJSON() (data []byte, err error)
type DynamicRoutingNewVersionParamsElementUnion ¶
type DynamicRoutingNewVersionParamsElementUnion interface {
// contains filtered or unexported methods
}
Satisfied by ai_gateway.DynamicRoutingNewVersionParamsElementsObject, ai_gateway.DynamicRoutingNewVersionParamsElementsObject, ai_gateway.DynamicRoutingNewVersionParamsElementsObject, ai_gateway.DynamicRoutingNewVersionParamsElementsObject, ai_gateway.DynamicRoutingNewVersionParamsElementsObject, ai_gateway.DynamicRoutingNewVersionParamsElementsObject, DynamicRoutingNewVersionParamsElement.
type DynamicRoutingNewVersionParamsElementsObject ¶
type DynamicRoutingNewVersionParamsElementsObject struct {
ID param.Field[string] `json:"id" api:"required"`
Outputs param.Field[DynamicRoutingNewVersionParamsElementsObjectOutputs] `json:"outputs" api:"required"`
Type param.Field[DynamicRoutingNewVersionParamsElementsObjectType] `json:"type" api:"required"`
}
func (DynamicRoutingNewVersionParamsElementsObject) MarshalJSON ¶
func (r DynamicRoutingNewVersionParamsElementsObject) MarshalJSON() (data []byte, err error)
type DynamicRoutingNewVersionParamsElementsObjectOutputs ¶
type DynamicRoutingNewVersionParamsElementsObjectOutputs struct {
Next param.Field[DynamicRoutingNewVersionParamsElementsObjectOutputsNext] `json:"next" api:"required"`
}
func (DynamicRoutingNewVersionParamsElementsObjectOutputs) MarshalJSON ¶
func (r DynamicRoutingNewVersionParamsElementsObjectOutputs) MarshalJSON() (data []byte, err error)
type DynamicRoutingNewVersionParamsElementsObjectOutputsNext ¶
type DynamicRoutingNewVersionParamsElementsObjectOutputsNext struct {
ElementID param.Field[string] `json:"elementId" api:"required"`
}
func (DynamicRoutingNewVersionParamsElementsObjectOutputsNext) MarshalJSON ¶
func (r DynamicRoutingNewVersionParamsElementsObjectOutputsNext) MarshalJSON() (data []byte, err error)
type DynamicRoutingNewVersionParamsElementsObjectType ¶
type DynamicRoutingNewVersionParamsElementsObjectType string
const (
DynamicRoutingNewVersionParamsElementsObjectTypeStart DynamicRoutingNewVersionParamsElementsObjectType = "start"
)
func (DynamicRoutingNewVersionParamsElementsObjectType) IsKnown ¶
func (r DynamicRoutingNewVersionParamsElementsObjectType) IsKnown() bool
type DynamicRoutingNewVersionParamsElementsType ¶
type DynamicRoutingNewVersionParamsElementsType string
const ( DynamicRoutingNewVersionParamsElementsTypeStart DynamicRoutingNewVersionParamsElementsType = "start" DynamicRoutingNewVersionParamsElementsTypeConditional DynamicRoutingNewVersionParamsElementsType = "conditional" DynamicRoutingNewVersionParamsElementsTypePercentage DynamicRoutingNewVersionParamsElementsType = "percentage" DynamicRoutingNewVersionParamsElementsTypeRate DynamicRoutingNewVersionParamsElementsType = "rate" DynamicRoutingNewVersionParamsElementsTypeModel DynamicRoutingNewVersionParamsElementsType = "model" DynamicRoutingNewVersionParamsElementsTypeEnd DynamicRoutingNewVersionParamsElementsType = "end" )
func (DynamicRoutingNewVersionParamsElementsType) IsKnown ¶
func (r DynamicRoutingNewVersionParamsElementsType) IsKnown() bool
type DynamicRoutingNewVersionResponse ¶
type DynamicRoutingNewVersionResponse struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Elements []DynamicRoutingNewVersionResponseElement `json:"elements" api:"required"`
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
JSON dynamicRoutingNewVersionResponseJSON `json:"-"`
}
func (*DynamicRoutingNewVersionResponse) UnmarshalJSON ¶
func (r *DynamicRoutingNewVersionResponse) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewVersionResponseElement ¶
type DynamicRoutingNewVersionResponseElement struct {
ID string `json:"id" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingNewVersionResponseElementsObjectOutputs],
// [map[string]DynamicRoutingNewVersionResponseElementsObjectOutput].
Outputs interface{} `json:"outputs" api:"required"`
Type DynamicRoutingNewVersionResponseElementsType `json:"type" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingNewVersionResponseElementsObjectProperties].
Properties interface{} `json:"properties"`
JSON dynamicRoutingNewVersionResponseElementJSON `json:"-"`
// contains filtered or unexported fields
}
func (DynamicRoutingNewVersionResponseElement) AsUnion ¶
func (r DynamicRoutingNewVersionResponseElement) AsUnion() DynamicRoutingNewVersionResponseElementsUnion
AsUnion returns a DynamicRoutingNewVersionResponseElementsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are DynamicRoutingNewVersionResponseElementsObject, DynamicRoutingNewVersionResponseElementsObject, DynamicRoutingNewVersionResponseElementsObject, DynamicRoutingNewVersionResponseElementsObject, DynamicRoutingNewVersionResponseElementsObject, DynamicRoutingNewVersionResponseElementsObject.
func (*DynamicRoutingNewVersionResponseElement) UnmarshalJSON ¶
func (r *DynamicRoutingNewVersionResponseElement) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewVersionResponseElementsObject ¶
type DynamicRoutingNewVersionResponseElementsObject struct {
ID string `json:"id" api:"required"`
Outputs DynamicRoutingNewVersionResponseElementsObjectOutputs `json:"outputs" api:"required"`
Type DynamicRoutingNewVersionResponseElementsObjectType `json:"type" api:"required"`
JSON dynamicRoutingNewVersionResponseElementsObjectJSON `json:"-"`
}
func (*DynamicRoutingNewVersionResponseElementsObject) UnmarshalJSON ¶
func (r *DynamicRoutingNewVersionResponseElementsObject) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewVersionResponseElementsObjectOutputs ¶
type DynamicRoutingNewVersionResponseElementsObjectOutputs struct {
Next DynamicRoutingNewVersionResponseElementsObjectOutputsNext `json:"next" api:"required"`
JSON dynamicRoutingNewVersionResponseElementsObjectOutputsJSON `json:"-"`
}
func (*DynamicRoutingNewVersionResponseElementsObjectOutputs) UnmarshalJSON ¶
func (r *DynamicRoutingNewVersionResponseElementsObjectOutputs) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewVersionResponseElementsObjectOutputsNext ¶
type DynamicRoutingNewVersionResponseElementsObjectOutputsNext struct {
ElementID string `json:"elementId" api:"required"`
JSON dynamicRoutingNewVersionResponseElementsObjectOutputsNextJSON `json:"-"`
}
func (*DynamicRoutingNewVersionResponseElementsObjectOutputsNext) UnmarshalJSON ¶
func (r *DynamicRoutingNewVersionResponseElementsObjectOutputsNext) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingNewVersionResponseElementsObjectType ¶
type DynamicRoutingNewVersionResponseElementsObjectType string
const (
DynamicRoutingNewVersionResponseElementsObjectTypeStart DynamicRoutingNewVersionResponseElementsObjectType = "start"
)
func (DynamicRoutingNewVersionResponseElementsObjectType) IsKnown ¶
func (r DynamicRoutingNewVersionResponseElementsObjectType) IsKnown() bool
type DynamicRoutingNewVersionResponseElementsType ¶
type DynamicRoutingNewVersionResponseElementsType string
const ( DynamicRoutingNewVersionResponseElementsTypeStart DynamicRoutingNewVersionResponseElementsType = "start" DynamicRoutingNewVersionResponseElementsTypeConditional DynamicRoutingNewVersionResponseElementsType = "conditional" DynamicRoutingNewVersionResponseElementsTypePercentage DynamicRoutingNewVersionResponseElementsType = "percentage" DynamicRoutingNewVersionResponseElementsTypeRate DynamicRoutingNewVersionResponseElementsType = "rate" DynamicRoutingNewVersionResponseElementsTypeModel DynamicRoutingNewVersionResponseElementsType = "model" DynamicRoutingNewVersionResponseElementsTypeEnd DynamicRoutingNewVersionResponseElementsType = "end" )
func (DynamicRoutingNewVersionResponseElementsType) IsKnown ¶
func (r DynamicRoutingNewVersionResponseElementsType) IsKnown() bool
type DynamicRoutingNewVersionResponseElementsUnion ¶
type DynamicRoutingNewVersionResponseElementsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by DynamicRoutingNewVersionResponseElementsObject, DynamicRoutingNewVersionResponseElementsObject, DynamicRoutingNewVersionResponseElementsObject, DynamicRoutingNewVersionResponseElementsObject, DynamicRoutingNewVersionResponseElementsObject or DynamicRoutingNewVersionResponseElementsObject.
type DynamicRoutingNewVersionResponseEnvelope ¶
type DynamicRoutingNewVersionResponseEnvelope struct {
Result DynamicRoutingNewVersionResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON dynamicRoutingNewVersionResponseEnvelopeJSON `json:"-"`
}
func (*DynamicRoutingNewVersionResponseEnvelope) UnmarshalJSON ¶
func (r *DynamicRoutingNewVersionResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingService ¶
type DynamicRoutingService struct {
Options []option.RequestOption
}
DynamicRoutingService 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 NewDynamicRoutingService method instead.
func NewDynamicRoutingService ¶
func NewDynamicRoutingService(opts ...option.RequestOption) (r *DynamicRoutingService)
NewDynamicRoutingService 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 (*DynamicRoutingService) Delete ¶
func (r *DynamicRoutingService) Delete(ctx context.Context, gatewayID string, id string, body DynamicRoutingDeleteParams, opts ...option.RequestOption) (res *DynamicRoutingDeleteResponse, err error)
Delete an AI Gateway Dynamic Route.
func (*DynamicRoutingService) Get ¶
func (r *DynamicRoutingService) Get(ctx context.Context, gatewayID string, id string, query DynamicRoutingGetParams, opts ...option.RequestOption) (res *DynamicRoutingGetResponse, err error)
Get an AI Gateway Dynamic Route.
func (*DynamicRoutingService) GetVersion ¶
func (r *DynamicRoutingService) GetVersion(ctx context.Context, gatewayID string, id string, versionID string, query DynamicRoutingGetVersionParams, opts ...option.RequestOption) (res *DynamicRoutingGetVersionResponse, err error)
Get an AI Gateway Dynamic Route Version.
func (*DynamicRoutingService) List ¶
func (r *DynamicRoutingService) List(ctx context.Context, gatewayID string, params DynamicRoutingListParams, opts ...option.RequestOption) (res *DynamicRoutingListResponse, err error)
List all AI Gateway Dynamic Routes.
func (*DynamicRoutingService) ListDeployments ¶
func (r *DynamicRoutingService) ListDeployments(ctx context.Context, gatewayID string, id string, query DynamicRoutingListDeploymentsParams, opts ...option.RequestOption) (res *DynamicRoutingListDeploymentsResponse, err error)
List all AI Gateway Dynamic Route Deployments.
func (*DynamicRoutingService) ListVersions ¶
func (r *DynamicRoutingService) ListVersions(ctx context.Context, gatewayID string, id string, query DynamicRoutingListVersionsParams, opts ...option.RequestOption) (res *DynamicRoutingListVersionsResponse, err error)
List all AI Gateway Dynamic Route Versions.
func (*DynamicRoutingService) New ¶
func (r *DynamicRoutingService) New(ctx context.Context, gatewayID string, params DynamicRoutingNewParams, opts ...option.RequestOption) (res *DynamicRoutingNewResponse, err error)
Create a new AI Gateway Dynamic Route.
func (*DynamicRoutingService) NewDeployment ¶
func (r *DynamicRoutingService) NewDeployment(ctx context.Context, gatewayID string, id string, params DynamicRoutingNewDeploymentParams, opts ...option.RequestOption) (res *DynamicRoutingNewDeploymentResponse, err error)
Create a new AI Gateway Dynamic Route Deployment.
func (*DynamicRoutingService) NewVersion ¶
func (r *DynamicRoutingService) NewVersion(ctx context.Context, gatewayID string, id string, params DynamicRoutingNewVersionParams, opts ...option.RequestOption) (res *DynamicRoutingNewVersionResponse, err error)
Create a new AI Gateway Dynamic Route Version.
func (*DynamicRoutingService) Update ¶
func (r *DynamicRoutingService) Update(ctx context.Context, gatewayID string, id string, params DynamicRoutingUpdateParams, opts ...option.RequestOption) (res *DynamicRoutingUpdateResponse, err error)
Update an AI Gateway Dynamic Route.
type DynamicRoutingUpdateParams ¶
type DynamicRoutingUpdateParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
Name param.Field[string] `json:"name" api:"required"`
}
func (DynamicRoutingUpdateParams) MarshalJSON ¶
func (r DynamicRoutingUpdateParams) MarshalJSON() (data []byte, err error)
type DynamicRoutingUpdateResponse ¶
type DynamicRoutingUpdateResponse struct {
Route DynamicRoutingUpdateResponseRoute `json:"route" api:"required"`
Success bool `json:"success" api:"required"`
JSON dynamicRoutingUpdateResponseJSON `json:"-"`
}
func (*DynamicRoutingUpdateResponse) UnmarshalJSON ¶
func (r *DynamicRoutingUpdateResponse) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingUpdateResponseRoute ¶
type DynamicRoutingUpdateResponseRoute struct {
ID string `json:"id" api:"required"`
AccountTag string `json:"account_tag" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Deployment DynamicRoutingUpdateResponseRouteDeployment `json:"deployment" api:"required"`
Elements []DynamicRoutingUpdateResponseRouteElement `json:"elements" api:"required"`
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
Version DynamicRoutingUpdateResponseRouteVersion `json:"version" api:"required"`
JSON dynamicRoutingUpdateResponseRouteJSON `json:"-"`
}
func (*DynamicRoutingUpdateResponseRoute) UnmarshalJSON ¶
func (r *DynamicRoutingUpdateResponseRoute) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingUpdateResponseRouteDeployment ¶
type DynamicRoutingUpdateResponseRouteDeployment struct {
CreatedAt string `json:"created_at" api:"required"`
DeploymentID string `json:"deployment_id" api:"required"`
VersionID string `json:"version_id" api:"required"`
JSON dynamicRoutingUpdateResponseRouteDeploymentJSON `json:"-"`
}
func (*DynamicRoutingUpdateResponseRouteDeployment) UnmarshalJSON ¶
func (r *DynamicRoutingUpdateResponseRouteDeployment) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingUpdateResponseRouteElement ¶
type DynamicRoutingUpdateResponseRouteElement struct {
ID string `json:"id" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingUpdateResponseRouteElementsObjectOutputs],
// [map[string]DynamicRoutingUpdateResponseRouteElementsObjectOutput].
Outputs interface{} `json:"outputs" api:"required"`
Type DynamicRoutingUpdateResponseRouteElementsType `json:"type" api:"required"`
// This field can have the runtime type of
// [DynamicRoutingUpdateResponseRouteElementsObjectProperties].
Properties interface{} `json:"properties"`
JSON dynamicRoutingUpdateResponseRouteElementJSON `json:"-"`
// contains filtered or unexported fields
}
func (DynamicRoutingUpdateResponseRouteElement) AsUnion ¶
func (r DynamicRoutingUpdateResponseRouteElement) AsUnion() DynamicRoutingUpdateResponseRouteElementsUnion
AsUnion returns a DynamicRoutingUpdateResponseRouteElementsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are DynamicRoutingUpdateResponseRouteElementsObject, DynamicRoutingUpdateResponseRouteElementsObject, DynamicRoutingUpdateResponseRouteElementsObject, DynamicRoutingUpdateResponseRouteElementsObject, DynamicRoutingUpdateResponseRouteElementsObject, DynamicRoutingUpdateResponseRouteElementsObject.
func (*DynamicRoutingUpdateResponseRouteElement) UnmarshalJSON ¶
func (r *DynamicRoutingUpdateResponseRouteElement) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingUpdateResponseRouteElementsObject ¶
type DynamicRoutingUpdateResponseRouteElementsObject struct {
ID string `json:"id" api:"required"`
Outputs DynamicRoutingUpdateResponseRouteElementsObjectOutputs `json:"outputs" api:"required"`
Type DynamicRoutingUpdateResponseRouteElementsObjectType `json:"type" api:"required"`
JSON dynamicRoutingUpdateResponseRouteElementsObjectJSON `json:"-"`
}
func (*DynamicRoutingUpdateResponseRouteElementsObject) UnmarshalJSON ¶
func (r *DynamicRoutingUpdateResponseRouteElementsObject) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingUpdateResponseRouteElementsObjectOutputs ¶
type DynamicRoutingUpdateResponseRouteElementsObjectOutputs struct {
Next DynamicRoutingUpdateResponseRouteElementsObjectOutputsNext `json:"next" api:"required"`
JSON dynamicRoutingUpdateResponseRouteElementsObjectOutputsJSON `json:"-"`
}
func (*DynamicRoutingUpdateResponseRouteElementsObjectOutputs) UnmarshalJSON ¶
func (r *DynamicRoutingUpdateResponseRouteElementsObjectOutputs) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingUpdateResponseRouteElementsObjectOutputsNext ¶
type DynamicRoutingUpdateResponseRouteElementsObjectOutputsNext struct {
ElementID string `json:"elementId" api:"required"`
JSON dynamicRoutingUpdateResponseRouteElementsObjectOutputsNextJSON `json:"-"`
}
func (*DynamicRoutingUpdateResponseRouteElementsObjectOutputsNext) UnmarshalJSON ¶
func (r *DynamicRoutingUpdateResponseRouteElementsObjectOutputsNext) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingUpdateResponseRouteElementsObjectType ¶
type DynamicRoutingUpdateResponseRouteElementsObjectType string
const (
DynamicRoutingUpdateResponseRouteElementsObjectTypeStart DynamicRoutingUpdateResponseRouteElementsObjectType = "start"
)
func (DynamicRoutingUpdateResponseRouteElementsObjectType) IsKnown ¶
func (r DynamicRoutingUpdateResponseRouteElementsObjectType) IsKnown() bool
type DynamicRoutingUpdateResponseRouteElementsType ¶
type DynamicRoutingUpdateResponseRouteElementsType string
const ( DynamicRoutingUpdateResponseRouteElementsTypeStart DynamicRoutingUpdateResponseRouteElementsType = "start" DynamicRoutingUpdateResponseRouteElementsTypeConditional DynamicRoutingUpdateResponseRouteElementsType = "conditional" DynamicRoutingUpdateResponseRouteElementsTypePercentage DynamicRoutingUpdateResponseRouteElementsType = "percentage" DynamicRoutingUpdateResponseRouteElementsTypeRate DynamicRoutingUpdateResponseRouteElementsType = "rate" DynamicRoutingUpdateResponseRouteElementsTypeModel DynamicRoutingUpdateResponseRouteElementsType = "model" DynamicRoutingUpdateResponseRouteElementsTypeEnd DynamicRoutingUpdateResponseRouteElementsType = "end" )
func (DynamicRoutingUpdateResponseRouteElementsType) IsKnown ¶
func (r DynamicRoutingUpdateResponseRouteElementsType) IsKnown() bool
type DynamicRoutingUpdateResponseRouteElementsUnion ¶
type DynamicRoutingUpdateResponseRouteElementsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by DynamicRoutingUpdateResponseRouteElementsObject, DynamicRoutingUpdateResponseRouteElementsObject, DynamicRoutingUpdateResponseRouteElementsObject, DynamicRoutingUpdateResponseRouteElementsObject, DynamicRoutingUpdateResponseRouteElementsObject or DynamicRoutingUpdateResponseRouteElementsObject.
type DynamicRoutingUpdateResponseRouteVersion ¶
type DynamicRoutingUpdateResponseRouteVersion struct {
Active DynamicRoutingUpdateResponseRouteVersionActive `json:"active" api:"required"`
CreatedAt string `json:"created_at" api:"required"`
Data string `json:"data" api:"required"`
VersionID string `json:"version_id" api:"required"`
IsValid bool `json:"is_valid"`
JSON dynamicRoutingUpdateResponseRouteVersionJSON `json:"-"`
}
func (*DynamicRoutingUpdateResponseRouteVersion) UnmarshalJSON ¶
func (r *DynamicRoutingUpdateResponseRouteVersion) UnmarshalJSON(data []byte) (err error)
type DynamicRoutingUpdateResponseRouteVersionActive ¶
type DynamicRoutingUpdateResponseRouteVersionActive string
const ( DynamicRoutingUpdateResponseRouteVersionActiveTrue DynamicRoutingUpdateResponseRouteVersionActive = "true" DynamicRoutingUpdateResponseRouteVersionActiveFalse DynamicRoutingUpdateResponseRouteVersionActive = "false" )
func (DynamicRoutingUpdateResponseRouteVersionActive) IsKnown ¶
func (r DynamicRoutingUpdateResponseRouteVersionActive) IsKnown() bool
type ErrorDataSource ¶
type ErrorDataSource = shared.ErrorDataSource
This is an alias to an internal type.
type EvaluationDeleteParams ¶
type EvaluationDeleteResponse ¶
type EvaluationDeleteResponse struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Datasets []EvaluationDeleteResponseDataset `json:"datasets" api:"required"`
// gateway id
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
Processed bool `json:"processed" api:"required"`
Results []EvaluationDeleteResponseResult `json:"results" api:"required"`
TotalLogs float64 `json:"total_logs" api:"required"`
JSON evaluationDeleteResponseJSON `json:"-"`
}
func (*EvaluationDeleteResponse) UnmarshalJSON ¶
func (r *EvaluationDeleteResponse) UnmarshalJSON(data []byte) (err error)
type EvaluationDeleteResponseDataset ¶
type EvaluationDeleteResponseDataset struct {
ID string `json:"id" api:"required"`
AccountID string `json:"account_id" api:"required"`
AccountTag string `json:"account_tag" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Enable bool `json:"enable" api:"required"`
Filters []EvaluationDeleteResponseDatasetsFilter `json:"filters" api:"required"`
// gateway id
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
JSON evaluationDeleteResponseDatasetJSON `json:"-"`
}
func (*EvaluationDeleteResponseDataset) UnmarshalJSON ¶
func (r *EvaluationDeleteResponseDataset) UnmarshalJSON(data []byte) (err error)
type EvaluationDeleteResponseDatasetsFilter ¶
type EvaluationDeleteResponseDatasetsFilter struct {
Key EvaluationDeleteResponseDatasetsFiltersKey `json:"key" api:"required"`
Operator EvaluationDeleteResponseDatasetsFiltersOperator `json:"operator" api:"required"`
Value []EvaluationDeleteResponseDatasetsFiltersValueUnion `json:"value" api:"required"`
JSON evaluationDeleteResponseDatasetsFilterJSON `json:"-"`
}
func (*EvaluationDeleteResponseDatasetsFilter) UnmarshalJSON ¶
func (r *EvaluationDeleteResponseDatasetsFilter) UnmarshalJSON(data []byte) (err error)
type EvaluationDeleteResponseDatasetsFiltersKey ¶
type EvaluationDeleteResponseDatasetsFiltersKey string
const ( EvaluationDeleteResponseDatasetsFiltersKeyCreatedAt EvaluationDeleteResponseDatasetsFiltersKey = "created_at" EvaluationDeleteResponseDatasetsFiltersKeyRequestContentType EvaluationDeleteResponseDatasetsFiltersKey = "request_content_type" EvaluationDeleteResponseDatasetsFiltersKeyResponseContentType EvaluationDeleteResponseDatasetsFiltersKey = "response_content_type" EvaluationDeleteResponseDatasetsFiltersKeySuccess EvaluationDeleteResponseDatasetsFiltersKey = "success" EvaluationDeleteResponseDatasetsFiltersKeyCached EvaluationDeleteResponseDatasetsFiltersKey = "cached" EvaluationDeleteResponseDatasetsFiltersKeyProvider EvaluationDeleteResponseDatasetsFiltersKey = "provider" EvaluationDeleteResponseDatasetsFiltersKeyModel EvaluationDeleteResponseDatasetsFiltersKey = "model" EvaluationDeleteResponseDatasetsFiltersKeyCost EvaluationDeleteResponseDatasetsFiltersKey = "cost" EvaluationDeleteResponseDatasetsFiltersKeyTokens EvaluationDeleteResponseDatasetsFiltersKey = "tokens" EvaluationDeleteResponseDatasetsFiltersKeyTokensIn EvaluationDeleteResponseDatasetsFiltersKey = "tokens_in" EvaluationDeleteResponseDatasetsFiltersKeyTokensOut EvaluationDeleteResponseDatasetsFiltersKey = "tokens_out" EvaluationDeleteResponseDatasetsFiltersKeyDuration EvaluationDeleteResponseDatasetsFiltersKey = "duration" EvaluationDeleteResponseDatasetsFiltersKeyFeedback EvaluationDeleteResponseDatasetsFiltersKey = "feedback" )
func (EvaluationDeleteResponseDatasetsFiltersKey) IsKnown ¶
func (r EvaluationDeleteResponseDatasetsFiltersKey) IsKnown() bool
type EvaluationDeleteResponseDatasetsFiltersOperator ¶
type EvaluationDeleteResponseDatasetsFiltersOperator string
const ( EvaluationDeleteResponseDatasetsFiltersOperatorEq EvaluationDeleteResponseDatasetsFiltersOperator = "eq" EvaluationDeleteResponseDatasetsFiltersOperatorContains EvaluationDeleteResponseDatasetsFiltersOperator = "contains" EvaluationDeleteResponseDatasetsFiltersOperatorLt EvaluationDeleteResponseDatasetsFiltersOperator = "lt" EvaluationDeleteResponseDatasetsFiltersOperatorGt EvaluationDeleteResponseDatasetsFiltersOperator = "gt" )
func (EvaluationDeleteResponseDatasetsFiltersOperator) IsKnown ¶
func (r EvaluationDeleteResponseDatasetsFiltersOperator) IsKnown() bool
type EvaluationDeleteResponseDatasetsFiltersValueUnion ¶
type EvaluationDeleteResponseDatasetsFiltersValueUnion interface {
ImplementsEvaluationDeleteResponseDatasetsFiltersValueUnion()
}
Union satisfied by shared.UnionString, shared.UnionFloat or shared.UnionBool.
type EvaluationDeleteResponseEnvelope ¶
type EvaluationDeleteResponseEnvelope struct {
Result EvaluationDeleteResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON evaluationDeleteResponseEnvelopeJSON `json:"-"`
}
func (*EvaluationDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *EvaluationDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type EvaluationDeleteResponseResult ¶
type EvaluationDeleteResponseResult struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
EvaluationID string `json:"evaluation_id" api:"required"`
EvaluationTypeID string `json:"evaluation_type_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Result string `json:"result" api:"required"`
Status float64 `json:"status" api:"required"`
StatusDescription string `json:"status_description" api:"required"`
TotalLogs float64 `json:"total_logs" api:"required"`
JSON evaluationDeleteResponseResultJSON `json:"-"`
}
func (*EvaluationDeleteResponseResult) UnmarshalJSON ¶
func (r *EvaluationDeleteResponseResult) UnmarshalJSON(data []byte) (err error)
type EvaluationGetParams ¶
type EvaluationGetResponse ¶
type EvaluationGetResponse struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Datasets []EvaluationGetResponseDataset `json:"datasets" api:"required"`
// gateway id
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
Processed bool `json:"processed" api:"required"`
Results []EvaluationGetResponseResult `json:"results" api:"required"`
TotalLogs float64 `json:"total_logs" api:"required"`
JSON evaluationGetResponseJSON `json:"-"`
}
func (*EvaluationGetResponse) UnmarshalJSON ¶
func (r *EvaluationGetResponse) UnmarshalJSON(data []byte) (err error)
type EvaluationGetResponseDataset ¶
type EvaluationGetResponseDataset struct {
ID string `json:"id" api:"required"`
AccountID string `json:"account_id" api:"required"`
AccountTag string `json:"account_tag" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Enable bool `json:"enable" api:"required"`
Filters []EvaluationGetResponseDatasetsFilter `json:"filters" api:"required"`
// gateway id
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
JSON evaluationGetResponseDatasetJSON `json:"-"`
}
func (*EvaluationGetResponseDataset) UnmarshalJSON ¶
func (r *EvaluationGetResponseDataset) UnmarshalJSON(data []byte) (err error)
type EvaluationGetResponseDatasetsFilter ¶
type EvaluationGetResponseDatasetsFilter struct {
Key EvaluationGetResponseDatasetsFiltersKey `json:"key" api:"required"`
Operator EvaluationGetResponseDatasetsFiltersOperator `json:"operator" api:"required"`
Value []EvaluationGetResponseDatasetsFiltersValueUnion `json:"value" api:"required"`
JSON evaluationGetResponseDatasetsFilterJSON `json:"-"`
}
func (*EvaluationGetResponseDatasetsFilter) UnmarshalJSON ¶
func (r *EvaluationGetResponseDatasetsFilter) UnmarshalJSON(data []byte) (err error)
type EvaluationGetResponseDatasetsFiltersKey ¶
type EvaluationGetResponseDatasetsFiltersKey string
const ( EvaluationGetResponseDatasetsFiltersKeyCreatedAt EvaluationGetResponseDatasetsFiltersKey = "created_at" EvaluationGetResponseDatasetsFiltersKeyRequestContentType EvaluationGetResponseDatasetsFiltersKey = "request_content_type" EvaluationGetResponseDatasetsFiltersKeyResponseContentType EvaluationGetResponseDatasetsFiltersKey = "response_content_type" EvaluationGetResponseDatasetsFiltersKeySuccess EvaluationGetResponseDatasetsFiltersKey = "success" EvaluationGetResponseDatasetsFiltersKeyCached EvaluationGetResponseDatasetsFiltersKey = "cached" EvaluationGetResponseDatasetsFiltersKeyProvider EvaluationGetResponseDatasetsFiltersKey = "provider" EvaluationGetResponseDatasetsFiltersKeyModel EvaluationGetResponseDatasetsFiltersKey = "model" EvaluationGetResponseDatasetsFiltersKeyCost EvaluationGetResponseDatasetsFiltersKey = "cost" EvaluationGetResponseDatasetsFiltersKeyTokens EvaluationGetResponseDatasetsFiltersKey = "tokens" EvaluationGetResponseDatasetsFiltersKeyTokensIn EvaluationGetResponseDatasetsFiltersKey = "tokens_in" EvaluationGetResponseDatasetsFiltersKeyTokensOut EvaluationGetResponseDatasetsFiltersKey = "tokens_out" EvaluationGetResponseDatasetsFiltersKeyDuration EvaluationGetResponseDatasetsFiltersKey = "duration" EvaluationGetResponseDatasetsFiltersKeyFeedback EvaluationGetResponseDatasetsFiltersKey = "feedback" )
func (EvaluationGetResponseDatasetsFiltersKey) IsKnown ¶
func (r EvaluationGetResponseDatasetsFiltersKey) IsKnown() bool
type EvaluationGetResponseDatasetsFiltersOperator ¶
type EvaluationGetResponseDatasetsFiltersOperator string
const ( EvaluationGetResponseDatasetsFiltersOperatorEq EvaluationGetResponseDatasetsFiltersOperator = "eq" EvaluationGetResponseDatasetsFiltersOperatorContains EvaluationGetResponseDatasetsFiltersOperator = "contains" EvaluationGetResponseDatasetsFiltersOperatorLt EvaluationGetResponseDatasetsFiltersOperator = "lt" EvaluationGetResponseDatasetsFiltersOperatorGt EvaluationGetResponseDatasetsFiltersOperator = "gt" )
func (EvaluationGetResponseDatasetsFiltersOperator) IsKnown ¶
func (r EvaluationGetResponseDatasetsFiltersOperator) IsKnown() bool
type EvaluationGetResponseDatasetsFiltersValueUnion ¶
type EvaluationGetResponseDatasetsFiltersValueUnion interface {
ImplementsEvaluationGetResponseDatasetsFiltersValueUnion()
}
Union satisfied by shared.UnionString, shared.UnionFloat or shared.UnionBool.
type EvaluationGetResponseEnvelope ¶
type EvaluationGetResponseEnvelope struct {
Result EvaluationGetResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON evaluationGetResponseEnvelopeJSON `json:"-"`
}
func (*EvaluationGetResponseEnvelope) UnmarshalJSON ¶
func (r *EvaluationGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type EvaluationGetResponseResult ¶
type EvaluationGetResponseResult struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
EvaluationID string `json:"evaluation_id" api:"required"`
EvaluationTypeID string `json:"evaluation_type_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Result string `json:"result" api:"required"`
Status float64 `json:"status" api:"required"`
StatusDescription string `json:"status_description" api:"required"`
TotalLogs float64 `json:"total_logs" api:"required"`
JSON evaluationGetResponseResultJSON `json:"-"`
}
func (*EvaluationGetResponseResult) UnmarshalJSON ¶
func (r *EvaluationGetResponseResult) UnmarshalJSON(data []byte) (err error)
type EvaluationListParams ¶
type EvaluationListParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
Name param.Field[string] `query:"name"`
Page param.Field[int64] `query:"page"`
PerPage param.Field[int64] `query:"per_page"`
Processed param.Field[bool] `query:"processed"`
// Search by id, name
Search param.Field[string] `query:"search"`
}
func (EvaluationListParams) URLQuery ¶
func (r EvaluationListParams) URLQuery() (v url.Values)
URLQuery serializes EvaluationListParams's query parameters as `url.Values`.
type EvaluationListResponse ¶
type EvaluationListResponse struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Datasets []EvaluationListResponseDataset `json:"datasets" api:"required"`
// gateway id
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
Processed bool `json:"processed" api:"required"`
Results []EvaluationListResponseResult `json:"results" api:"required"`
TotalLogs float64 `json:"total_logs" api:"required"`
JSON evaluationListResponseJSON `json:"-"`
}
func (*EvaluationListResponse) UnmarshalJSON ¶
func (r *EvaluationListResponse) UnmarshalJSON(data []byte) (err error)
type EvaluationListResponseDataset ¶
type EvaluationListResponseDataset struct {
ID string `json:"id" api:"required"`
AccountID string `json:"account_id" api:"required"`
AccountTag string `json:"account_tag" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Enable bool `json:"enable" api:"required"`
Filters []EvaluationListResponseDatasetsFilter `json:"filters" api:"required"`
// gateway id
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
JSON evaluationListResponseDatasetJSON `json:"-"`
}
func (*EvaluationListResponseDataset) UnmarshalJSON ¶
func (r *EvaluationListResponseDataset) UnmarshalJSON(data []byte) (err error)
type EvaluationListResponseDatasetsFilter ¶
type EvaluationListResponseDatasetsFilter struct {
Key EvaluationListResponseDatasetsFiltersKey `json:"key" api:"required"`
Operator EvaluationListResponseDatasetsFiltersOperator `json:"operator" api:"required"`
Value []EvaluationListResponseDatasetsFiltersValueUnion `json:"value" api:"required"`
JSON evaluationListResponseDatasetsFilterJSON `json:"-"`
}
func (*EvaluationListResponseDatasetsFilter) UnmarshalJSON ¶
func (r *EvaluationListResponseDatasetsFilter) UnmarshalJSON(data []byte) (err error)
type EvaluationListResponseDatasetsFiltersKey ¶
type EvaluationListResponseDatasetsFiltersKey string
const ( EvaluationListResponseDatasetsFiltersKeyCreatedAt EvaluationListResponseDatasetsFiltersKey = "created_at" EvaluationListResponseDatasetsFiltersKeyRequestContentType EvaluationListResponseDatasetsFiltersKey = "request_content_type" EvaluationListResponseDatasetsFiltersKeyResponseContentType EvaluationListResponseDatasetsFiltersKey = "response_content_type" EvaluationListResponseDatasetsFiltersKeySuccess EvaluationListResponseDatasetsFiltersKey = "success" EvaluationListResponseDatasetsFiltersKeyCached EvaluationListResponseDatasetsFiltersKey = "cached" EvaluationListResponseDatasetsFiltersKeyProvider EvaluationListResponseDatasetsFiltersKey = "provider" EvaluationListResponseDatasetsFiltersKeyModel EvaluationListResponseDatasetsFiltersKey = "model" EvaluationListResponseDatasetsFiltersKeyCost EvaluationListResponseDatasetsFiltersKey = "cost" EvaluationListResponseDatasetsFiltersKeyTokens EvaluationListResponseDatasetsFiltersKey = "tokens" EvaluationListResponseDatasetsFiltersKeyTokensIn EvaluationListResponseDatasetsFiltersKey = "tokens_in" EvaluationListResponseDatasetsFiltersKeyTokensOut EvaluationListResponseDatasetsFiltersKey = "tokens_out" EvaluationListResponseDatasetsFiltersKeyDuration EvaluationListResponseDatasetsFiltersKey = "duration" EvaluationListResponseDatasetsFiltersKeyFeedback EvaluationListResponseDatasetsFiltersKey = "feedback" )
func (EvaluationListResponseDatasetsFiltersKey) IsKnown ¶
func (r EvaluationListResponseDatasetsFiltersKey) IsKnown() bool
type EvaluationListResponseDatasetsFiltersOperator ¶
type EvaluationListResponseDatasetsFiltersOperator string
const ( EvaluationListResponseDatasetsFiltersOperatorEq EvaluationListResponseDatasetsFiltersOperator = "eq" EvaluationListResponseDatasetsFiltersOperatorContains EvaluationListResponseDatasetsFiltersOperator = "contains" EvaluationListResponseDatasetsFiltersOperatorLt EvaluationListResponseDatasetsFiltersOperator = "lt" EvaluationListResponseDatasetsFiltersOperatorGt EvaluationListResponseDatasetsFiltersOperator = "gt" )
func (EvaluationListResponseDatasetsFiltersOperator) IsKnown ¶
func (r EvaluationListResponseDatasetsFiltersOperator) IsKnown() bool
type EvaluationListResponseDatasetsFiltersValueUnion ¶
type EvaluationListResponseDatasetsFiltersValueUnion interface {
ImplementsEvaluationListResponseDatasetsFiltersValueUnion()
}
Union satisfied by shared.UnionString, shared.UnionFloat or shared.UnionBool.
type EvaluationListResponseResult ¶
type EvaluationListResponseResult struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
EvaluationID string `json:"evaluation_id" api:"required"`
EvaluationTypeID string `json:"evaluation_type_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Result string `json:"result" api:"required"`
Status float64 `json:"status" api:"required"`
StatusDescription string `json:"status_description" api:"required"`
TotalLogs float64 `json:"total_logs" api:"required"`
JSON evaluationListResponseResultJSON `json:"-"`
}
func (*EvaluationListResponseResult) UnmarshalJSON ¶
func (r *EvaluationListResponseResult) UnmarshalJSON(data []byte) (err error)
type EvaluationNewParams ¶
type EvaluationNewParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
DatasetIDs param.Field[[]string] `json:"dataset_ids" api:"required"`
EvaluationTypeIDs param.Field[[]string] `json:"evaluation_type_ids" api:"required"`
Name param.Field[string] `json:"name" api:"required"`
}
func (EvaluationNewParams) MarshalJSON ¶
func (r EvaluationNewParams) MarshalJSON() (data []byte, err error)
type EvaluationNewResponse ¶
type EvaluationNewResponse struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Datasets []EvaluationNewResponseDataset `json:"datasets" api:"required"`
// gateway id
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
Processed bool `json:"processed" api:"required"`
Results []EvaluationNewResponseResult `json:"results" api:"required"`
TotalLogs float64 `json:"total_logs" api:"required"`
JSON evaluationNewResponseJSON `json:"-"`
}
func (*EvaluationNewResponse) UnmarshalJSON ¶
func (r *EvaluationNewResponse) UnmarshalJSON(data []byte) (err error)
type EvaluationNewResponseDataset ¶
type EvaluationNewResponseDataset struct {
ID string `json:"id" api:"required"`
AccountID string `json:"account_id" api:"required"`
AccountTag string `json:"account_tag" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Enable bool `json:"enable" api:"required"`
Filters []EvaluationNewResponseDatasetsFilter `json:"filters" api:"required"`
// gateway id
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
JSON evaluationNewResponseDatasetJSON `json:"-"`
}
func (*EvaluationNewResponseDataset) UnmarshalJSON ¶
func (r *EvaluationNewResponseDataset) UnmarshalJSON(data []byte) (err error)
type EvaluationNewResponseDatasetsFilter ¶
type EvaluationNewResponseDatasetsFilter struct {
Key EvaluationNewResponseDatasetsFiltersKey `json:"key" api:"required"`
Operator EvaluationNewResponseDatasetsFiltersOperator `json:"operator" api:"required"`
Value []EvaluationNewResponseDatasetsFiltersValueUnion `json:"value" api:"required"`
JSON evaluationNewResponseDatasetsFilterJSON `json:"-"`
}
func (*EvaluationNewResponseDatasetsFilter) UnmarshalJSON ¶
func (r *EvaluationNewResponseDatasetsFilter) UnmarshalJSON(data []byte) (err error)
type EvaluationNewResponseDatasetsFiltersKey ¶
type EvaluationNewResponseDatasetsFiltersKey string
const ( EvaluationNewResponseDatasetsFiltersKeyCreatedAt EvaluationNewResponseDatasetsFiltersKey = "created_at" EvaluationNewResponseDatasetsFiltersKeyRequestContentType EvaluationNewResponseDatasetsFiltersKey = "request_content_type" EvaluationNewResponseDatasetsFiltersKeyResponseContentType EvaluationNewResponseDatasetsFiltersKey = "response_content_type" EvaluationNewResponseDatasetsFiltersKeySuccess EvaluationNewResponseDatasetsFiltersKey = "success" EvaluationNewResponseDatasetsFiltersKeyCached EvaluationNewResponseDatasetsFiltersKey = "cached" EvaluationNewResponseDatasetsFiltersKeyProvider EvaluationNewResponseDatasetsFiltersKey = "provider" EvaluationNewResponseDatasetsFiltersKeyModel EvaluationNewResponseDatasetsFiltersKey = "model" EvaluationNewResponseDatasetsFiltersKeyCost EvaluationNewResponseDatasetsFiltersKey = "cost" EvaluationNewResponseDatasetsFiltersKeyTokens EvaluationNewResponseDatasetsFiltersKey = "tokens" EvaluationNewResponseDatasetsFiltersKeyTokensIn EvaluationNewResponseDatasetsFiltersKey = "tokens_in" EvaluationNewResponseDatasetsFiltersKeyTokensOut EvaluationNewResponseDatasetsFiltersKey = "tokens_out" EvaluationNewResponseDatasetsFiltersKeyDuration EvaluationNewResponseDatasetsFiltersKey = "duration" EvaluationNewResponseDatasetsFiltersKeyFeedback EvaluationNewResponseDatasetsFiltersKey = "feedback" )
func (EvaluationNewResponseDatasetsFiltersKey) IsKnown ¶
func (r EvaluationNewResponseDatasetsFiltersKey) IsKnown() bool
type EvaluationNewResponseDatasetsFiltersOperator ¶
type EvaluationNewResponseDatasetsFiltersOperator string
const ( EvaluationNewResponseDatasetsFiltersOperatorEq EvaluationNewResponseDatasetsFiltersOperator = "eq" EvaluationNewResponseDatasetsFiltersOperatorContains EvaluationNewResponseDatasetsFiltersOperator = "contains" EvaluationNewResponseDatasetsFiltersOperatorLt EvaluationNewResponseDatasetsFiltersOperator = "lt" EvaluationNewResponseDatasetsFiltersOperatorGt EvaluationNewResponseDatasetsFiltersOperator = "gt" )
func (EvaluationNewResponseDatasetsFiltersOperator) IsKnown ¶
func (r EvaluationNewResponseDatasetsFiltersOperator) IsKnown() bool
type EvaluationNewResponseDatasetsFiltersValueUnion ¶
type EvaluationNewResponseDatasetsFiltersValueUnion interface {
ImplementsEvaluationNewResponseDatasetsFiltersValueUnion()
}
Union satisfied by shared.UnionString, shared.UnionFloat or shared.UnionBool.
type EvaluationNewResponseEnvelope ¶
type EvaluationNewResponseEnvelope struct {
Result EvaluationNewResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON evaluationNewResponseEnvelopeJSON `json:"-"`
}
func (*EvaluationNewResponseEnvelope) UnmarshalJSON ¶
func (r *EvaluationNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type EvaluationNewResponseResult ¶
type EvaluationNewResponseResult struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
EvaluationID string `json:"evaluation_id" api:"required"`
EvaluationTypeID string `json:"evaluation_type_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Result string `json:"result" api:"required"`
Status float64 `json:"status" api:"required"`
StatusDescription string `json:"status_description" api:"required"`
TotalLogs float64 `json:"total_logs" api:"required"`
JSON evaluationNewResponseResultJSON `json:"-"`
}
func (*EvaluationNewResponseResult) UnmarshalJSON ¶
func (r *EvaluationNewResponseResult) UnmarshalJSON(data []byte) (err error)
type EvaluationService ¶
type EvaluationService struct {
Options []option.RequestOption
}
EvaluationService 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 NewEvaluationService method instead.
func NewEvaluationService ¶
func NewEvaluationService(opts ...option.RequestOption) (r *EvaluationService)
NewEvaluationService 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 (*EvaluationService) Delete ¶
func (r *EvaluationService) Delete(ctx context.Context, gatewayID string, id string, body EvaluationDeleteParams, opts ...option.RequestOption) (res *EvaluationDeleteResponse, err error)
Deletes an AI Gateway dataset.
func (*EvaluationService) Get ¶
func (r *EvaluationService) Get(ctx context.Context, gatewayID string, id string, query EvaluationGetParams, opts ...option.RequestOption) (res *EvaluationGetResponse, err error)
Retrieves details for a specific AI Gateway dataset.
func (*EvaluationService) List ¶
func (r *EvaluationService) List(ctx context.Context, gatewayID string, params EvaluationListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[EvaluationListResponse], err error)
Lists all AI Gateway evaluator types configured for the account.
func (*EvaluationService) ListAutoPaging ¶
func (r *EvaluationService) ListAutoPaging(ctx context.Context, gatewayID string, params EvaluationListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[EvaluationListResponse]
Lists all AI Gateway evaluator types configured for the account.
func (*EvaluationService) New ¶
func (r *EvaluationService) New(ctx context.Context, gatewayID string, params EvaluationNewParams, opts ...option.RequestOption) (res *EvaluationNewResponse, err error)
Creates a new AI Gateway.
type EvaluationTypeListParams ¶
type EvaluationTypeListParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
OrderBy param.Field[string] `query:"order_by"`
OrderByDirection param.Field[EvaluationTypeListParamsOrderByDirection] `query:"order_by_direction"`
Page param.Field[int64] `query:"page"`
PerPage param.Field[int64] `query:"per_page"`
}
func (EvaluationTypeListParams) URLQuery ¶
func (r EvaluationTypeListParams) URLQuery() (v url.Values)
URLQuery serializes EvaluationTypeListParams's query parameters as `url.Values`.
type EvaluationTypeListParamsOrderByDirection ¶
type EvaluationTypeListParamsOrderByDirection string
const ( EvaluationTypeListParamsOrderByDirectionAsc EvaluationTypeListParamsOrderByDirection = "asc" EvaluationTypeListParamsOrderByDirectionDesc EvaluationTypeListParamsOrderByDirection = "desc" )
func (EvaluationTypeListParamsOrderByDirection) IsKnown ¶
func (r EvaluationTypeListParamsOrderByDirection) IsKnown() bool
type EvaluationTypeListResponse ¶
type EvaluationTypeListResponse struct {
ID string `json:"id" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Description string `json:"description" api:"required"`
Enable bool `json:"enable" api:"required"`
Mandatory bool `json:"mandatory" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
Name string `json:"name" api:"required"`
Type string `json:"type" api:"required"`
JSON evaluationTypeListResponseJSON `json:"-"`
}
func (*EvaluationTypeListResponse) UnmarshalJSON ¶
func (r *EvaluationTypeListResponse) UnmarshalJSON(data []byte) (err error)
type EvaluationTypeService ¶
type EvaluationTypeService struct {
Options []option.RequestOption
}
EvaluationTypeService 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 NewEvaluationTypeService method instead.
func NewEvaluationTypeService ¶
func NewEvaluationTypeService(opts ...option.RequestOption) (r *EvaluationTypeService)
NewEvaluationTypeService 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 (*EvaluationTypeService) List ¶
func (r *EvaluationTypeService) List(ctx context.Context, params EvaluationTypeListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[EvaluationTypeListResponse], err error)
List Evaluators
func (*EvaluationTypeService) ListAutoPaging ¶
func (r *EvaluationTypeService) ListAutoPaging(ctx context.Context, params EvaluationTypeListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[EvaluationTypeListResponse]
List Evaluators
type LogDeleteParams ¶
type LogDeleteParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
Filters param.Field[[]LogDeleteParamsFilter] `query:"filters"`
Limit param.Field[int64] `query:"limit"`
OrderBy param.Field[LogDeleteParamsOrderBy] `query:"order_by"`
OrderByDirection param.Field[LogDeleteParamsOrderByDirection] `query:"order_by_direction"`
}
func (LogDeleteParams) URLQuery ¶
func (r LogDeleteParams) URLQuery() (v url.Values)
URLQuery serializes LogDeleteParams's query parameters as `url.Values`.
type LogDeleteParamsFilter ¶
type LogDeleteParamsFilter struct {
Key param.Field[LogDeleteParamsFiltersKey] `query:"key" api:"required"`
Operator param.Field[LogDeleteParamsFiltersOperator] `query:"operator" api:"required"`
Value param.Field[[]LogDeleteParamsFiltersValueUnion] `query:"value" api:"required"`
}
func (LogDeleteParamsFilter) URLQuery ¶
func (r LogDeleteParamsFilter) URLQuery() (v url.Values)
URLQuery serializes LogDeleteParamsFilter's query parameters as `url.Values`.
type LogDeleteParamsFiltersKey ¶
type LogDeleteParamsFiltersKey string
const ( LogDeleteParamsFiltersKeyID LogDeleteParamsFiltersKey = "id" LogDeleteParamsFiltersKeyCreatedAt LogDeleteParamsFiltersKey = "created_at" LogDeleteParamsFiltersKeyRequestContentType LogDeleteParamsFiltersKey = "request_content_type" LogDeleteParamsFiltersKeyResponseContentType LogDeleteParamsFiltersKey = "response_content_type" LogDeleteParamsFiltersKeyRequestType LogDeleteParamsFiltersKey = "request_type" LogDeleteParamsFiltersKeySuccess LogDeleteParamsFiltersKey = "success" LogDeleteParamsFiltersKeyCached LogDeleteParamsFiltersKey = "cached" LogDeleteParamsFiltersKeyProvider LogDeleteParamsFiltersKey = "provider" LogDeleteParamsFiltersKeyModel LogDeleteParamsFiltersKey = "model" LogDeleteParamsFiltersKeyModelType LogDeleteParamsFiltersKey = "model_type" LogDeleteParamsFiltersKeyCost LogDeleteParamsFiltersKey = "cost" LogDeleteParamsFiltersKeyTokens LogDeleteParamsFiltersKey = "tokens" LogDeleteParamsFiltersKeyTokensIn LogDeleteParamsFiltersKey = "tokens_in" LogDeleteParamsFiltersKeyTokensOut LogDeleteParamsFiltersKey = "tokens_out" LogDeleteParamsFiltersKeyDuration LogDeleteParamsFiltersKey = "duration" LogDeleteParamsFiltersKeyFeedback LogDeleteParamsFiltersKey = "feedback" LogDeleteParamsFiltersKeyEventID LogDeleteParamsFiltersKey = "event_id" LogDeleteParamsFiltersKeyMetadataKey LogDeleteParamsFiltersKey = "metadata.key" LogDeleteParamsFiltersKeyMetadataValue LogDeleteParamsFiltersKey = "metadata.value" LogDeleteParamsFiltersKeyAuthentication LogDeleteParamsFiltersKey = "authentication" LogDeleteParamsFiltersKeyWholesale LogDeleteParamsFiltersKey = "wholesale" LogDeleteParamsFiltersKeyCompatibilityMode LogDeleteParamsFiltersKey = "compatibilityMode" LogDeleteParamsFiltersKeyDLPAction LogDeleteParamsFiltersKey = "dlp_action" )
func (LogDeleteParamsFiltersKey) IsKnown ¶
func (r LogDeleteParamsFiltersKey) IsKnown() bool
type LogDeleteParamsFiltersOperator ¶
type LogDeleteParamsFiltersOperator string
const ( LogDeleteParamsFiltersOperatorEq LogDeleteParamsFiltersOperator = "eq" LogDeleteParamsFiltersOperatorNeq LogDeleteParamsFiltersOperator = "neq" LogDeleteParamsFiltersOperatorContains LogDeleteParamsFiltersOperator = "contains" LogDeleteParamsFiltersOperatorLt LogDeleteParamsFiltersOperator = "lt" LogDeleteParamsFiltersOperatorGt LogDeleteParamsFiltersOperator = "gt" )
func (LogDeleteParamsFiltersOperator) IsKnown ¶
func (r LogDeleteParamsFiltersOperator) IsKnown() bool
type LogDeleteParamsFiltersValueUnion ¶
type LogDeleteParamsFiltersValueUnion interface {
ImplementsLogDeleteParamsFiltersValueUnion()
}
Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.
type LogDeleteParamsOrderBy ¶
type LogDeleteParamsOrderBy string
const ( LogDeleteParamsOrderByCreatedAt LogDeleteParamsOrderBy = "created_at" LogDeleteParamsOrderByProvider LogDeleteParamsOrderBy = "provider" LogDeleteParamsOrderByModel LogDeleteParamsOrderBy = "model" LogDeleteParamsOrderByModelType LogDeleteParamsOrderBy = "model_type" LogDeleteParamsOrderBySuccess LogDeleteParamsOrderBy = "success" LogDeleteParamsOrderByCached LogDeleteParamsOrderBy = "cached" LogDeleteParamsOrderByCost LogDeleteParamsOrderBy = "cost" LogDeleteParamsOrderByTokensIn LogDeleteParamsOrderBy = "tokens_in" LogDeleteParamsOrderByTokensOut LogDeleteParamsOrderBy = "tokens_out" LogDeleteParamsOrderByDuration LogDeleteParamsOrderBy = "duration" LogDeleteParamsOrderByFeedback LogDeleteParamsOrderBy = "feedback" )
func (LogDeleteParamsOrderBy) IsKnown ¶
func (r LogDeleteParamsOrderBy) IsKnown() bool
type LogDeleteParamsOrderByDirection ¶
type LogDeleteParamsOrderByDirection string
const ( LogDeleteParamsOrderByDirectionAsc LogDeleteParamsOrderByDirection = "asc" LogDeleteParamsOrderByDirectionDesc LogDeleteParamsOrderByDirection = "desc" )
func (LogDeleteParamsOrderByDirection) IsKnown ¶
func (r LogDeleteParamsOrderByDirection) IsKnown() bool
type LogDeleteResponse ¶
type LogDeleteResponse struct {
Success bool `json:"success" api:"required"`
JSON logDeleteResponseJSON `json:"-"`
}
func (*LogDeleteResponse) UnmarshalJSON ¶
func (r *LogDeleteResponse) UnmarshalJSON(data []byte) (err error)
type LogEditParams ¶
type LogEditParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
Feedback param.Field[float64] `json:"feedback"`
Metadata param.Field[map[string]LogEditParamsMetadataUnion] `json:"metadata"`
Score param.Field[float64] `json:"score"`
}
func (LogEditParams) MarshalJSON ¶
func (r LogEditParams) MarshalJSON() (data []byte, err error)
type LogEditParamsMetadataUnion ¶
type LogEditParamsMetadataUnion interface {
ImplementsLogEditParamsMetadataUnion()
}
Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.
type LogEditResponse ¶
type LogEditResponse = interface{}
type LogEditResponseEnvelope ¶
type LogEditResponseEnvelope struct {
Result LogEditResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON logEditResponseEnvelopeJSON `json:"-"`
}
func (*LogEditResponseEnvelope) UnmarshalJSON ¶
func (r *LogEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type LogGetParams ¶
type LogGetResponse ¶
type LogGetResponse struct {
ID string `json:"id" api:"required"`
Cached bool `json:"cached" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Duration int64 `json:"duration" api:"required"`
Model string `json:"model" api:"required"`
Path string `json:"path" api:"required"`
Provider string `json:"provider" api:"required"`
Success bool `json:"success" api:"required"`
TokensIn int64 `json:"tokens_in" api:"required,nullable"`
TokensOut int64 `json:"tokens_out" api:"required,nullable"`
Cost float64 `json:"cost"`
CustomCost bool `json:"custom_cost"`
Metadata string `json:"metadata"`
ModelType string `json:"model_type"`
RequestContentType string `json:"request_content_type"`
RequestHead string `json:"request_head"`
RequestHeadComplete bool `json:"request_head_complete"`
RequestSize int64 `json:"request_size"`
RequestType string `json:"request_type"`
ResponseContentType string `json:"response_content_type"`
ResponseHead string `json:"response_head"`
ResponseHeadComplete bool `json:"response_head_complete"`
ResponseSize int64 `json:"response_size"`
StatusCode int64 `json:"status_code"`
Step int64 `json:"step"`
JSON logGetResponseJSON `json:"-"`
}
func (*LogGetResponse) UnmarshalJSON ¶
func (r *LogGetResponse) UnmarshalJSON(data []byte) (err error)
type LogGetResponseEnvelope ¶
type LogGetResponseEnvelope struct {
Result LogGetResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON logGetResponseEnvelopeJSON `json:"-"`
}
func (*LogGetResponseEnvelope) UnmarshalJSON ¶
func (r *LogGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type LogListParams ¶
type LogListParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
Cached param.Field[bool] `query:"cached"`
Direction param.Field[LogListParamsDirection] `query:"direction"`
EndDate param.Field[time.Time] `query:"end_date" format:"date-time"`
Feedback param.Field[LogListParamsFeedback] `query:"feedback"`
Filters param.Field[[]LogListParamsFilter] `query:"filters"`
MaxCost param.Field[float64] `query:"max_cost"`
MaxDuration param.Field[float64] `query:"max_duration"`
MaxTokensIn param.Field[float64] `query:"max_tokens_in"`
MaxTokensOut param.Field[float64] `query:"max_tokens_out"`
MaxTotalTokens param.Field[float64] `query:"max_total_tokens"`
MetaInfo param.Field[bool] `query:"meta_info"`
MinCost param.Field[float64] `query:"min_cost"`
MinDuration param.Field[float64] `query:"min_duration"`
MinTokensIn param.Field[float64] `query:"min_tokens_in"`
MinTokensOut param.Field[float64] `query:"min_tokens_out"`
MinTotalTokens param.Field[float64] `query:"min_total_tokens"`
Model param.Field[string] `query:"model"`
ModelType param.Field[string] `query:"model_type"`
OrderBy param.Field[LogListParamsOrderBy] `query:"order_by"`
OrderByDirection param.Field[LogListParamsOrderByDirection] `query:"order_by_direction"`
Page param.Field[int64] `query:"page"`
PerPage param.Field[int64] `query:"per_page"`
Provider param.Field[string] `query:"provider"`
RequestContentType param.Field[string] `query:"request_content_type"`
ResponseContentType param.Field[string] `query:"response_content_type"`
Search param.Field[string] `query:"search"`
StartDate param.Field[time.Time] `query:"start_date" format:"date-time"`
Success param.Field[bool] `query:"success"`
}
func (LogListParams) URLQuery ¶
func (r LogListParams) URLQuery() (v url.Values)
URLQuery serializes LogListParams's query parameters as `url.Values`.
type LogListParamsDirection ¶
type LogListParamsDirection string
const ( LogListParamsDirectionAsc LogListParamsDirection = "asc" LogListParamsDirectionDesc LogListParamsDirection = "desc" )
func (LogListParamsDirection) IsKnown ¶
func (r LogListParamsDirection) IsKnown() bool
type LogListParamsFeedback ¶
type LogListParamsFeedback float64
const ( LogListParamsFeedback0 LogListParamsFeedback = 0 LogListParamsFeedback1 LogListParamsFeedback = 1 )
func (LogListParamsFeedback) IsKnown ¶
func (r LogListParamsFeedback) IsKnown() bool
type LogListParamsFilter ¶
type LogListParamsFilter struct {
Key param.Field[LogListParamsFiltersKey] `query:"key" api:"required"`
Operator param.Field[LogListParamsFiltersOperator] `query:"operator" api:"required"`
Value param.Field[[]LogListParamsFiltersValueUnion] `query:"value" api:"required"`
}
func (LogListParamsFilter) URLQuery ¶
func (r LogListParamsFilter) URLQuery() (v url.Values)
URLQuery serializes LogListParamsFilter's query parameters as `url.Values`.
type LogListParamsFiltersKey ¶
type LogListParamsFiltersKey string
const ( LogListParamsFiltersKeyID LogListParamsFiltersKey = "id" LogListParamsFiltersKeyCreatedAt LogListParamsFiltersKey = "created_at" LogListParamsFiltersKeyRequestContentType LogListParamsFiltersKey = "request_content_type" LogListParamsFiltersKeyResponseContentType LogListParamsFiltersKey = "response_content_type" LogListParamsFiltersKeyRequestType LogListParamsFiltersKey = "request_type" LogListParamsFiltersKeySuccess LogListParamsFiltersKey = "success" LogListParamsFiltersKeyCached LogListParamsFiltersKey = "cached" LogListParamsFiltersKeyProvider LogListParamsFiltersKey = "provider" LogListParamsFiltersKeyModel LogListParamsFiltersKey = "model" LogListParamsFiltersKeyModelType LogListParamsFiltersKey = "model_type" LogListParamsFiltersKeyCost LogListParamsFiltersKey = "cost" LogListParamsFiltersKeyTokens LogListParamsFiltersKey = "tokens" LogListParamsFiltersKeyTokensIn LogListParamsFiltersKey = "tokens_in" LogListParamsFiltersKeyTokensOut LogListParamsFiltersKey = "tokens_out" LogListParamsFiltersKeyDuration LogListParamsFiltersKey = "duration" LogListParamsFiltersKeyFeedback LogListParamsFiltersKey = "feedback" LogListParamsFiltersKeyEventID LogListParamsFiltersKey = "event_id" LogListParamsFiltersKeyMetadataKey LogListParamsFiltersKey = "metadata.key" LogListParamsFiltersKeyMetadataValue LogListParamsFiltersKey = "metadata.value" LogListParamsFiltersKeyAuthentication LogListParamsFiltersKey = "authentication" LogListParamsFiltersKeyWholesale LogListParamsFiltersKey = "wholesale" LogListParamsFiltersKeyCompatibilityMode LogListParamsFiltersKey = "compatibilityMode" LogListParamsFiltersKeyDLPAction LogListParamsFiltersKey = "dlp_action" )
func (LogListParamsFiltersKey) IsKnown ¶
func (r LogListParamsFiltersKey) IsKnown() bool
type LogListParamsFiltersOperator ¶
type LogListParamsFiltersOperator string
const ( LogListParamsFiltersOperatorEq LogListParamsFiltersOperator = "eq" LogListParamsFiltersOperatorNeq LogListParamsFiltersOperator = "neq" LogListParamsFiltersOperatorContains LogListParamsFiltersOperator = "contains" LogListParamsFiltersOperatorLt LogListParamsFiltersOperator = "lt" LogListParamsFiltersOperatorGt LogListParamsFiltersOperator = "gt" )
func (LogListParamsFiltersOperator) IsKnown ¶
func (r LogListParamsFiltersOperator) IsKnown() bool
type LogListParamsFiltersValueUnion ¶
type LogListParamsFiltersValueUnion interface {
ImplementsLogListParamsFiltersValueUnion()
}
Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.
type LogListParamsOrderBy ¶
type LogListParamsOrderBy string
const ( LogListParamsOrderByCreatedAt LogListParamsOrderBy = "created_at" LogListParamsOrderByProvider LogListParamsOrderBy = "provider" LogListParamsOrderByModel LogListParamsOrderBy = "model" LogListParamsOrderByModelType LogListParamsOrderBy = "model_type" LogListParamsOrderBySuccess LogListParamsOrderBy = "success" LogListParamsOrderByCached LogListParamsOrderBy = "cached" )
func (LogListParamsOrderBy) IsKnown ¶
func (r LogListParamsOrderBy) IsKnown() bool
type LogListParamsOrderByDirection ¶
type LogListParamsOrderByDirection string
const ( LogListParamsOrderByDirectionAsc LogListParamsOrderByDirection = "asc" LogListParamsOrderByDirectionDesc LogListParamsOrderByDirection = "desc" )
func (LogListParamsOrderByDirection) IsKnown ¶
func (r LogListParamsOrderByDirection) IsKnown() bool
type LogListResponse ¶
type LogListResponse struct {
ID string `json:"id" api:"required"`
Cached bool `json:"cached" api:"required"`
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
Duration int64 `json:"duration" api:"required"`
Model string `json:"model" api:"required"`
Path string `json:"path" api:"required"`
Provider string `json:"provider" api:"required"`
Success bool `json:"success" api:"required"`
TokensIn int64 `json:"tokens_in" api:"required,nullable"`
TokensOut int64 `json:"tokens_out" api:"required,nullable"`
Cost float64 `json:"cost"`
CustomCost bool `json:"custom_cost"`
Metadata string `json:"metadata"`
ModelType string `json:"model_type"`
RequestContentType string `json:"request_content_type"`
RequestType string `json:"request_type"`
ResponseContentType string `json:"response_content_type"`
StatusCode int64 `json:"status_code"`
Step int64 `json:"step"`
JSON logListResponseJSON `json:"-"`
}
func (*LogListResponse) UnmarshalJSON ¶
func (r *LogListResponse) UnmarshalJSON(data []byte) (err error)
type LogRequestParams ¶
type LogRequestResponse ¶
type LogRequestResponse = interface{}
type LogResponseParams ¶
type LogResponseResponse ¶
type LogResponseResponse = interface{}
type LogService ¶
type LogService struct {
Options []option.RequestOption
}
LogService 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 NewLogService method instead.
func NewLogService ¶
func NewLogService(opts ...option.RequestOption) (r *LogService)
NewLogService 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 (*LogService) Delete ¶
func (r *LogService) Delete(ctx context.Context, gatewayID string, params LogDeleteParams, opts ...option.RequestOption) (res *LogDeleteResponse, err error)
Delete Gateway Logs
func (*LogService) Edit ¶
func (r *LogService) Edit(ctx context.Context, gatewayID string, id string, params LogEditParams, opts ...option.RequestOption) (res *LogEditResponse, err error)
Updates metadata for an AI Gateway log entry.
func (*LogService) Get ¶
func (r *LogService) Get(ctx context.Context, gatewayID string, id string, query LogGetParams, opts ...option.RequestOption) (res *LogGetResponse, err error)
Retrieves detailed information for a specific AI Gateway log entry.
func (*LogService) List ¶
func (r *LogService) List(ctx context.Context, gatewayID string, params LogListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[LogListResponse], err error)
List Gateway Logs
func (*LogService) ListAutoPaging ¶
func (r *LogService) ListAutoPaging(ctx context.Context, gatewayID string, params LogListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[LogListResponse]
List Gateway Logs
func (*LogService) Request ¶
func (r *LogService) Request(ctx context.Context, gatewayID string, id string, query LogRequestParams, opts ...option.RequestOption) (res *LogRequestResponse, err error)
Retrieves the original request payload for an AI Gateway log entry.
func (*LogService) Response ¶
func (r *LogService) Response(ctx context.Context, gatewayID string, id string, query LogResponseParams, opts ...option.RequestOption) (res *LogResponseResponse, err error)
Retrieves the response payload for an AI Gateway log entry.
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 ProviderConfigListParams ¶
type ProviderConfigListParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
Page param.Field[int64] `query:"page"`
PerPage param.Field[int64] `query:"per_page"`
}
func (ProviderConfigListParams) URLQuery ¶
func (r ProviderConfigListParams) URLQuery() (v url.Values)
URLQuery serializes ProviderConfigListParams's query parameters as `url.Values`.
type ProviderConfigListResponse ¶
type ProviderConfigListResponse struct {
ID string `json:"id" api:"required"`
Alias string `json:"alias" api:"required"`
DefaultConfig bool `json:"default_config" api:"required"`
// gateway id
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
ProviderSlug string `json:"provider_slug" api:"required"`
SecretID string `json:"secret_id" api:"required"`
SecretPreview string `json:"secret_preview" api:"required"`
RateLimit float64 `json:"rate_limit"`
RateLimitPeriod float64 `json:"rate_limit_period"`
JSON providerConfigListResponseJSON `json:"-"`
}
func (*ProviderConfigListResponse) UnmarshalJSON ¶
func (r *ProviderConfigListResponse) UnmarshalJSON(data []byte) (err error)
type ProviderConfigNewParams ¶
type ProviderConfigNewParams struct {
AccountID param.Field[string] `path:"account_id" api:"required"`
Alias param.Field[string] `json:"alias" api:"required"`
DefaultConfig param.Field[bool] `json:"default_config" api:"required"`
ProviderSlug param.Field[string] `json:"provider_slug" api:"required"`
Secret param.Field[string] `json:"secret" api:"required"`
SecretID param.Field[string] `json:"secret_id" api:"required"`
RateLimit param.Field[float64] `json:"rate_limit"`
RateLimitPeriod param.Field[float64] `json:"rate_limit_period"`
}
func (ProviderConfigNewParams) MarshalJSON ¶
func (r ProviderConfigNewParams) MarshalJSON() (data []byte, err error)
type ProviderConfigNewResponse ¶
type ProviderConfigNewResponse struct {
ID string `json:"id" api:"required"`
Alias string `json:"alias" api:"required"`
DefaultConfig bool `json:"default_config" api:"required"`
// gateway id
GatewayID string `json:"gateway_id" api:"required"`
ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
ProviderSlug string `json:"provider_slug" api:"required"`
SecretID string `json:"secret_id" api:"required"`
SecretPreview string `json:"secret_preview" api:"required"`
RateLimit float64 `json:"rate_limit"`
RateLimitPeriod float64 `json:"rate_limit_period"`
JSON providerConfigNewResponseJSON `json:"-"`
}
func (*ProviderConfigNewResponse) UnmarshalJSON ¶
func (r *ProviderConfigNewResponse) UnmarshalJSON(data []byte) (err error)
type ProviderConfigNewResponseEnvelope ¶
type ProviderConfigNewResponseEnvelope struct {
Result ProviderConfigNewResponse `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON providerConfigNewResponseEnvelopeJSON `json:"-"`
}
func (*ProviderConfigNewResponseEnvelope) UnmarshalJSON ¶
func (r *ProviderConfigNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ProviderConfigService ¶
type ProviderConfigService struct {
Options []option.RequestOption
}
ProviderConfigService 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 NewProviderConfigService method instead.
func NewProviderConfigService ¶
func NewProviderConfigService(opts ...option.RequestOption) (r *ProviderConfigService)
NewProviderConfigService 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 (*ProviderConfigService) List ¶
func (r *ProviderConfigService) List(ctx context.Context, gatewayID string, params ProviderConfigListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[ProviderConfigListResponse], err error)
Lists all AI Gateway evaluator types configured for the account.
func (*ProviderConfigService) ListAutoPaging ¶
func (r *ProviderConfigService) ListAutoPaging(ctx context.Context, gatewayID string, params ProviderConfigListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[ProviderConfigListResponse]
Lists all AI Gateway evaluator types configured for the account.
func (*ProviderConfigService) New ¶
func (r *ProviderConfigService) New(ctx context.Context, gatewayID string, params ProviderConfigNewParams, opts ...option.RequestOption) (res *ProviderConfigNewResponse, err error)
Creates a new AI Gateway.
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.
type URLGetParams ¶
type URLGetResponseEnvelope ¶
type URLGetResponseEnvelope struct {
Result string `json:"result" api:"required"`
Success bool `json:"success" api:"required"`
JSON urlGetResponseEnvelopeJSON `json:"-"`
}
func (*URLGetResponseEnvelope) UnmarshalJSON ¶
func (r *URLGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type URLService ¶
type URLService struct {
Options []option.RequestOption
}
URLService 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 NewURLService method instead.
func NewURLService ¶
func NewURLService(opts ...option.RequestOption) (r *URLService)
NewURLService 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 (*URLService) Get ¶
func (r *URLService) Get(ctx context.Context, gatewayID string, provider string, query URLGetParams, opts ...option.RequestOption) (res *string, err error)
Retrieves the endpoint URL for an AI Gateway.