ai_gateway

package
v7.3.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin

This is an alias to an internal value.

View Source
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare

This is an alias to an internal value.

View Source
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser

This is an alias to an internal value.

View Source
const CertificateCADigicert = shared.CertificateCADigicert

This is an alias to an internal value.

View Source
const CertificateCAGoogle = shared.CertificateCAGoogle

This is an alias to an internal value.

View Source
const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt

This is an alias to an internal value.

View Source
const CertificateCASSLCom = shared.CertificateCASSLCom

This is an alias to an internal value.

View Source
const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA

This is an alias to an internal value.

View Source
const CloudflareTunnelConfigSrcCloudflare = shared.CloudflareTunnelConfigSrcCloudflare

This is an alias to an internal value.

View Source
const CloudflareTunnelConfigSrcLocal = shared.CloudflareTunnelConfigSrcLocal

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusDegraded = shared.CloudflareTunnelStatusDegraded

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusDown = shared.CloudflareTunnelStatusDown

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusHealthy = shared.CloudflareTunnelStatusHealthy

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusInactive = shared.CloudflareTunnelStatusInactive

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeMagic = shared.CloudflareTunnelTunTypeMagic

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARP = shared.CloudflareTunnelTunTypeWARP

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector

This is an alias to an internal value.

View Source
const MemberPoliciesAccessAllow = shared.MemberPoliciesAccessAllow

This is an alias to an internal value.

View Source
const MemberPoliciesAccessDeny = shared.MemberPoliciesAccessDeny

This is an alias to an internal value.

View Source
const MemberStatusAccepted = shared.MemberStatusAccepted

This is an alias to an internal value.

View Source
const MemberStatusPending = shared.MemberStatusPending

This is an alias to an internal value.

View Source
const RatePlanIDBusiness = shared.RatePlanIDBusiness

This is an alias to an internal value.

View Source
const RatePlanIDEnterprise = shared.RatePlanIDEnterprise

This is an alias to an internal value.

View Source
const RatePlanIDFree = shared.RatePlanIDFree

This is an alias to an internal value.

View Source
const RatePlanIDLite = shared.RatePlanIDLite

This is an alias to an internal value.

View Source
const RatePlanIDPartnersBusiness = shared.RatePlanIDPartnersBusiness

This is an alias to an internal value.

View Source
const RatePlanIDPartnersEnterprise = shared.RatePlanIDPartnersEnterprise

This is an alias to an internal value.

View Source
const RatePlanIDPartnersFree = shared.RatePlanIDPartnersFree

This is an alias to an internal value.

View Source
const RatePlanIDPartnersPro = shared.RatePlanIDPartnersPro

This is an alias to an internal value.

View Source
const RatePlanIDPro = shared.RatePlanIDPro

This is an alias to an internal value.

View Source
const RatePlanIDProPlus = shared.RatePlanIDProPlus

This is an alias to an internal value.

View Source
const SortDirectionAsc = shared.SortDirectionAsc

This is an alias to an internal value.

View Source
const SortDirectionDesc = shared.SortDirectionDesc

This is an alias to an internal value.

View Source
const SubscriptionFrequencyMonthly = shared.SubscriptionFrequencyMonthly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyQuarterly = shared.SubscriptionFrequencyQuarterly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyWeekly = shared.SubscriptionFrequencyWeekly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyYearly = shared.SubscriptionFrequencyYearly

This is an alias to an internal value.

View Source
const SubscriptionStateAwaitingPayment = shared.SubscriptionStateAwaitingPayment

This is an alias to an internal value.

View Source
const SubscriptionStateCancelled = shared.SubscriptionStateCancelled

This is an alias to an internal value.

View Source
const SubscriptionStateExpired = shared.SubscriptionStateExpired

This is an alias to an internal value.

View Source
const SubscriptionStateFailed = shared.SubscriptionStateFailed

This is an alias to an internal value.

View Source
const SubscriptionStatePaid = shared.SubscriptionStatePaid

This is an alias to an internal value.

View Source
const SubscriptionStateProvisioned = shared.SubscriptionStateProvisioned

This is an alias to an internal value.

View Source
const SubscriptionStateTrial = shared.SubscriptionStateTrial

This is an alias to an internal value.

View Source
const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow

This is an alias to an internal value.

View Source
const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny

This is an alias to an internal value.

View Source
const TokenStatusActive = shared.TokenStatusActive

This is an alias to an internal value.

View Source
const TokenStatusDisabled = shared.TokenStatusDisabled

This is an alias to an internal value.

View Source
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 AIGatewayDeleteParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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

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

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

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 AIGatewayDeleteResponseGuardrailsPromptP1

type AIGatewayDeleteResponseGuardrailsPromptP1 string
const (
	AIGatewayDeleteResponseGuardrailsPromptP1Flag  AIGatewayDeleteResponseGuardrailsPromptP1 = "FLAG"
	AIGatewayDeleteResponseGuardrailsPromptP1Block AIGatewayDeleteResponseGuardrailsPromptP1 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsPromptP1) IsKnown

type AIGatewayDeleteResponseGuardrailsPromptS1

type AIGatewayDeleteResponseGuardrailsPromptS1 string
const (
	AIGatewayDeleteResponseGuardrailsPromptS1Flag  AIGatewayDeleteResponseGuardrailsPromptS1 = "FLAG"
	AIGatewayDeleteResponseGuardrailsPromptS1Block AIGatewayDeleteResponseGuardrailsPromptS1 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsPromptS1) IsKnown

type AIGatewayDeleteResponseGuardrailsPromptS2

type AIGatewayDeleteResponseGuardrailsPromptS2 string
const (
	AIGatewayDeleteResponseGuardrailsPromptS2Flag  AIGatewayDeleteResponseGuardrailsPromptS2 = "FLAG"
	AIGatewayDeleteResponseGuardrailsPromptS2Block AIGatewayDeleteResponseGuardrailsPromptS2 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsPromptS2) IsKnown

type AIGatewayDeleteResponseGuardrailsPromptS3

type AIGatewayDeleteResponseGuardrailsPromptS3 string
const (
	AIGatewayDeleteResponseGuardrailsPromptS3Flag  AIGatewayDeleteResponseGuardrailsPromptS3 = "FLAG"
	AIGatewayDeleteResponseGuardrailsPromptS3Block AIGatewayDeleteResponseGuardrailsPromptS3 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsPromptS3) IsKnown

type AIGatewayDeleteResponseGuardrailsPromptS4

type AIGatewayDeleteResponseGuardrailsPromptS4 string
const (
	AIGatewayDeleteResponseGuardrailsPromptS4Flag  AIGatewayDeleteResponseGuardrailsPromptS4 = "FLAG"
	AIGatewayDeleteResponseGuardrailsPromptS4Block AIGatewayDeleteResponseGuardrailsPromptS4 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsPromptS4) IsKnown

type AIGatewayDeleteResponseGuardrailsPromptS5

type AIGatewayDeleteResponseGuardrailsPromptS5 string
const (
	AIGatewayDeleteResponseGuardrailsPromptS5Flag  AIGatewayDeleteResponseGuardrailsPromptS5 = "FLAG"
	AIGatewayDeleteResponseGuardrailsPromptS5Block AIGatewayDeleteResponseGuardrailsPromptS5 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsPromptS5) IsKnown

type AIGatewayDeleteResponseGuardrailsPromptS6

type AIGatewayDeleteResponseGuardrailsPromptS6 string
const (
	AIGatewayDeleteResponseGuardrailsPromptS6Flag  AIGatewayDeleteResponseGuardrailsPromptS6 = "FLAG"
	AIGatewayDeleteResponseGuardrailsPromptS6Block AIGatewayDeleteResponseGuardrailsPromptS6 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsPromptS6) IsKnown

type AIGatewayDeleteResponseGuardrailsPromptS7

type AIGatewayDeleteResponseGuardrailsPromptS7 string
const (
	AIGatewayDeleteResponseGuardrailsPromptS7Flag  AIGatewayDeleteResponseGuardrailsPromptS7 = "FLAG"
	AIGatewayDeleteResponseGuardrailsPromptS7Block AIGatewayDeleteResponseGuardrailsPromptS7 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsPromptS7) IsKnown

type AIGatewayDeleteResponseGuardrailsPromptS8

type AIGatewayDeleteResponseGuardrailsPromptS8 string
const (
	AIGatewayDeleteResponseGuardrailsPromptS8Flag  AIGatewayDeleteResponseGuardrailsPromptS8 = "FLAG"
	AIGatewayDeleteResponseGuardrailsPromptS8Block AIGatewayDeleteResponseGuardrailsPromptS8 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsPromptS8) IsKnown

type AIGatewayDeleteResponseGuardrailsPromptS9

type AIGatewayDeleteResponseGuardrailsPromptS9 string
const (
	AIGatewayDeleteResponseGuardrailsPromptS9Flag  AIGatewayDeleteResponseGuardrailsPromptS9 = "FLAG"
	AIGatewayDeleteResponseGuardrailsPromptS9Block AIGatewayDeleteResponseGuardrailsPromptS9 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsPromptS9) IsKnown

type AIGatewayDeleteResponseGuardrailsPromptS10

type AIGatewayDeleteResponseGuardrailsPromptS10 string
const (
	AIGatewayDeleteResponseGuardrailsPromptS10Flag  AIGatewayDeleteResponseGuardrailsPromptS10 = "FLAG"
	AIGatewayDeleteResponseGuardrailsPromptS10Block AIGatewayDeleteResponseGuardrailsPromptS10 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsPromptS10) IsKnown

type AIGatewayDeleteResponseGuardrailsPromptS11

type AIGatewayDeleteResponseGuardrailsPromptS11 string
const (
	AIGatewayDeleteResponseGuardrailsPromptS11Flag  AIGatewayDeleteResponseGuardrailsPromptS11 = "FLAG"
	AIGatewayDeleteResponseGuardrailsPromptS11Block AIGatewayDeleteResponseGuardrailsPromptS11 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsPromptS11) IsKnown

type AIGatewayDeleteResponseGuardrailsPromptS12

type AIGatewayDeleteResponseGuardrailsPromptS12 string
const (
	AIGatewayDeleteResponseGuardrailsPromptS12Flag  AIGatewayDeleteResponseGuardrailsPromptS12 = "FLAG"
	AIGatewayDeleteResponseGuardrailsPromptS12Block AIGatewayDeleteResponseGuardrailsPromptS12 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsPromptS12) IsKnown

type AIGatewayDeleteResponseGuardrailsPromptS13

type AIGatewayDeleteResponseGuardrailsPromptS13 string
const (
	AIGatewayDeleteResponseGuardrailsPromptS13Flag  AIGatewayDeleteResponseGuardrailsPromptS13 = "FLAG"
	AIGatewayDeleteResponseGuardrailsPromptS13Block AIGatewayDeleteResponseGuardrailsPromptS13 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsPromptS13) IsKnown

type AIGatewayDeleteResponseGuardrailsResponseP1

type AIGatewayDeleteResponseGuardrailsResponseP1 string
const (
	AIGatewayDeleteResponseGuardrailsResponseP1Flag  AIGatewayDeleteResponseGuardrailsResponseP1 = "FLAG"
	AIGatewayDeleteResponseGuardrailsResponseP1Block AIGatewayDeleteResponseGuardrailsResponseP1 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsResponseP1) IsKnown

type AIGatewayDeleteResponseGuardrailsResponseS1

type AIGatewayDeleteResponseGuardrailsResponseS1 string
const (
	AIGatewayDeleteResponseGuardrailsResponseS1Flag  AIGatewayDeleteResponseGuardrailsResponseS1 = "FLAG"
	AIGatewayDeleteResponseGuardrailsResponseS1Block AIGatewayDeleteResponseGuardrailsResponseS1 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsResponseS1) IsKnown

type AIGatewayDeleteResponseGuardrailsResponseS2

type AIGatewayDeleteResponseGuardrailsResponseS2 string
const (
	AIGatewayDeleteResponseGuardrailsResponseS2Flag  AIGatewayDeleteResponseGuardrailsResponseS2 = "FLAG"
	AIGatewayDeleteResponseGuardrailsResponseS2Block AIGatewayDeleteResponseGuardrailsResponseS2 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsResponseS2) IsKnown

type AIGatewayDeleteResponseGuardrailsResponseS3

type AIGatewayDeleteResponseGuardrailsResponseS3 string
const (
	AIGatewayDeleteResponseGuardrailsResponseS3Flag  AIGatewayDeleteResponseGuardrailsResponseS3 = "FLAG"
	AIGatewayDeleteResponseGuardrailsResponseS3Block AIGatewayDeleteResponseGuardrailsResponseS3 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsResponseS3) IsKnown

type AIGatewayDeleteResponseGuardrailsResponseS4

type AIGatewayDeleteResponseGuardrailsResponseS4 string
const (
	AIGatewayDeleteResponseGuardrailsResponseS4Flag  AIGatewayDeleteResponseGuardrailsResponseS4 = "FLAG"
	AIGatewayDeleteResponseGuardrailsResponseS4Block AIGatewayDeleteResponseGuardrailsResponseS4 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsResponseS4) IsKnown

type AIGatewayDeleteResponseGuardrailsResponseS5

type AIGatewayDeleteResponseGuardrailsResponseS5 string
const (
	AIGatewayDeleteResponseGuardrailsResponseS5Flag  AIGatewayDeleteResponseGuardrailsResponseS5 = "FLAG"
	AIGatewayDeleteResponseGuardrailsResponseS5Block AIGatewayDeleteResponseGuardrailsResponseS5 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsResponseS5) IsKnown

type AIGatewayDeleteResponseGuardrailsResponseS6

type AIGatewayDeleteResponseGuardrailsResponseS6 string
const (
	AIGatewayDeleteResponseGuardrailsResponseS6Flag  AIGatewayDeleteResponseGuardrailsResponseS6 = "FLAG"
	AIGatewayDeleteResponseGuardrailsResponseS6Block AIGatewayDeleteResponseGuardrailsResponseS6 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsResponseS6) IsKnown

type AIGatewayDeleteResponseGuardrailsResponseS7

type AIGatewayDeleteResponseGuardrailsResponseS7 string
const (
	AIGatewayDeleteResponseGuardrailsResponseS7Flag  AIGatewayDeleteResponseGuardrailsResponseS7 = "FLAG"
	AIGatewayDeleteResponseGuardrailsResponseS7Block AIGatewayDeleteResponseGuardrailsResponseS7 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsResponseS7) IsKnown

type AIGatewayDeleteResponseGuardrailsResponseS8

type AIGatewayDeleteResponseGuardrailsResponseS8 string
const (
	AIGatewayDeleteResponseGuardrailsResponseS8Flag  AIGatewayDeleteResponseGuardrailsResponseS8 = "FLAG"
	AIGatewayDeleteResponseGuardrailsResponseS8Block AIGatewayDeleteResponseGuardrailsResponseS8 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsResponseS8) IsKnown

type AIGatewayDeleteResponseGuardrailsResponseS9

type AIGatewayDeleteResponseGuardrailsResponseS9 string
const (
	AIGatewayDeleteResponseGuardrailsResponseS9Flag  AIGatewayDeleteResponseGuardrailsResponseS9 = "FLAG"
	AIGatewayDeleteResponseGuardrailsResponseS9Block AIGatewayDeleteResponseGuardrailsResponseS9 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsResponseS9) IsKnown

type AIGatewayDeleteResponseGuardrailsResponseS10

type AIGatewayDeleteResponseGuardrailsResponseS10 string
const (
	AIGatewayDeleteResponseGuardrailsResponseS10Flag  AIGatewayDeleteResponseGuardrailsResponseS10 = "FLAG"
	AIGatewayDeleteResponseGuardrailsResponseS10Block AIGatewayDeleteResponseGuardrailsResponseS10 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsResponseS10) IsKnown

type AIGatewayDeleteResponseGuardrailsResponseS11

type AIGatewayDeleteResponseGuardrailsResponseS11 string
const (
	AIGatewayDeleteResponseGuardrailsResponseS11Flag  AIGatewayDeleteResponseGuardrailsResponseS11 = "FLAG"
	AIGatewayDeleteResponseGuardrailsResponseS11Block AIGatewayDeleteResponseGuardrailsResponseS11 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsResponseS11) IsKnown

type AIGatewayDeleteResponseGuardrailsResponseS12

type AIGatewayDeleteResponseGuardrailsResponseS12 string
const (
	AIGatewayDeleteResponseGuardrailsResponseS12Flag  AIGatewayDeleteResponseGuardrailsResponseS12 = "FLAG"
	AIGatewayDeleteResponseGuardrailsResponseS12Block AIGatewayDeleteResponseGuardrailsResponseS12 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsResponseS12) IsKnown

type AIGatewayDeleteResponseGuardrailsResponseS13

type AIGatewayDeleteResponseGuardrailsResponseS13 string
const (
	AIGatewayDeleteResponseGuardrailsResponseS13Flag  AIGatewayDeleteResponseGuardrailsResponseS13 = "FLAG"
	AIGatewayDeleteResponseGuardrailsResponseS13Block AIGatewayDeleteResponseGuardrailsResponseS13 = "BLOCK"
)

func (AIGatewayDeleteResponseGuardrailsResponseS13) IsKnown

type AIGatewayDeleteResponseLogManagementStrategy

type AIGatewayDeleteResponseLogManagementStrategy string
const (
	AIGatewayDeleteResponseLogManagementStrategyStopInserting AIGatewayDeleteResponseLogManagementStrategy = "STOP_INSERTING"
	AIGatewayDeleteResponseLogManagementStrategyDeleteOldest  AIGatewayDeleteResponseLogManagementStrategy = "DELETE_OLDEST"
)

func (AIGatewayDeleteResponseLogManagementStrategy) IsKnown

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

type AIGatewayDeleteResponseRateLimitingTechnique

type AIGatewayDeleteResponseRateLimitingTechnique string
const (
	AIGatewayDeleteResponseRateLimitingTechniqueFixed   AIGatewayDeleteResponseRateLimitingTechnique = "fixed"
	AIGatewayDeleteResponseRateLimitingTechniqueSliding AIGatewayDeleteResponseRateLimitingTechnique = "sliding"
)

func (AIGatewayDeleteResponseRateLimitingTechnique) IsKnown

type AIGatewayDeleteResponseRetryBackoff

type AIGatewayDeleteResponseRetryBackoff string

Backoff strategy for retry delays

const (
	AIGatewayDeleteResponseRetryBackoffConstant    AIGatewayDeleteResponseRetryBackoff = "constant"
	AIGatewayDeleteResponseRetryBackoffLinear      AIGatewayDeleteResponseRetryBackoff = "linear"
	AIGatewayDeleteResponseRetryBackoffExponential AIGatewayDeleteResponseRetryBackoff = "exponential"
)

func (AIGatewayDeleteResponseRetryBackoff) IsKnown

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

type AIGatewayGetParams

type AIGatewayGetParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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

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

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

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

type AIGatewayGetResponseGuardrailsPromptS1

type AIGatewayGetResponseGuardrailsPromptS1 string
const (
	AIGatewayGetResponseGuardrailsPromptS1Flag  AIGatewayGetResponseGuardrailsPromptS1 = "FLAG"
	AIGatewayGetResponseGuardrailsPromptS1Block AIGatewayGetResponseGuardrailsPromptS1 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsPromptS1) IsKnown

type AIGatewayGetResponseGuardrailsPromptS2

type AIGatewayGetResponseGuardrailsPromptS2 string
const (
	AIGatewayGetResponseGuardrailsPromptS2Flag  AIGatewayGetResponseGuardrailsPromptS2 = "FLAG"
	AIGatewayGetResponseGuardrailsPromptS2Block AIGatewayGetResponseGuardrailsPromptS2 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsPromptS2) IsKnown

type AIGatewayGetResponseGuardrailsPromptS3

type AIGatewayGetResponseGuardrailsPromptS3 string
const (
	AIGatewayGetResponseGuardrailsPromptS3Flag  AIGatewayGetResponseGuardrailsPromptS3 = "FLAG"
	AIGatewayGetResponseGuardrailsPromptS3Block AIGatewayGetResponseGuardrailsPromptS3 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsPromptS3) IsKnown

type AIGatewayGetResponseGuardrailsPromptS4

type AIGatewayGetResponseGuardrailsPromptS4 string
const (
	AIGatewayGetResponseGuardrailsPromptS4Flag  AIGatewayGetResponseGuardrailsPromptS4 = "FLAG"
	AIGatewayGetResponseGuardrailsPromptS4Block AIGatewayGetResponseGuardrailsPromptS4 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsPromptS4) IsKnown

type AIGatewayGetResponseGuardrailsPromptS5

type AIGatewayGetResponseGuardrailsPromptS5 string
const (
	AIGatewayGetResponseGuardrailsPromptS5Flag  AIGatewayGetResponseGuardrailsPromptS5 = "FLAG"
	AIGatewayGetResponseGuardrailsPromptS5Block AIGatewayGetResponseGuardrailsPromptS5 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsPromptS5) IsKnown

type AIGatewayGetResponseGuardrailsPromptS6

type AIGatewayGetResponseGuardrailsPromptS6 string
const (
	AIGatewayGetResponseGuardrailsPromptS6Flag  AIGatewayGetResponseGuardrailsPromptS6 = "FLAG"
	AIGatewayGetResponseGuardrailsPromptS6Block AIGatewayGetResponseGuardrailsPromptS6 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsPromptS6) IsKnown

type AIGatewayGetResponseGuardrailsPromptS7

type AIGatewayGetResponseGuardrailsPromptS7 string
const (
	AIGatewayGetResponseGuardrailsPromptS7Flag  AIGatewayGetResponseGuardrailsPromptS7 = "FLAG"
	AIGatewayGetResponseGuardrailsPromptS7Block AIGatewayGetResponseGuardrailsPromptS7 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsPromptS7) IsKnown

type AIGatewayGetResponseGuardrailsPromptS8

type AIGatewayGetResponseGuardrailsPromptS8 string
const (
	AIGatewayGetResponseGuardrailsPromptS8Flag  AIGatewayGetResponseGuardrailsPromptS8 = "FLAG"
	AIGatewayGetResponseGuardrailsPromptS8Block AIGatewayGetResponseGuardrailsPromptS8 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsPromptS8) IsKnown

type AIGatewayGetResponseGuardrailsPromptS9

type AIGatewayGetResponseGuardrailsPromptS9 string
const (
	AIGatewayGetResponseGuardrailsPromptS9Flag  AIGatewayGetResponseGuardrailsPromptS9 = "FLAG"
	AIGatewayGetResponseGuardrailsPromptS9Block AIGatewayGetResponseGuardrailsPromptS9 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsPromptS9) IsKnown

type AIGatewayGetResponseGuardrailsPromptS10

type AIGatewayGetResponseGuardrailsPromptS10 string
const (
	AIGatewayGetResponseGuardrailsPromptS10Flag  AIGatewayGetResponseGuardrailsPromptS10 = "FLAG"
	AIGatewayGetResponseGuardrailsPromptS10Block AIGatewayGetResponseGuardrailsPromptS10 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsPromptS10) IsKnown

type AIGatewayGetResponseGuardrailsPromptS11

type AIGatewayGetResponseGuardrailsPromptS11 string
const (
	AIGatewayGetResponseGuardrailsPromptS11Flag  AIGatewayGetResponseGuardrailsPromptS11 = "FLAG"
	AIGatewayGetResponseGuardrailsPromptS11Block AIGatewayGetResponseGuardrailsPromptS11 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsPromptS11) IsKnown

type AIGatewayGetResponseGuardrailsPromptS12

type AIGatewayGetResponseGuardrailsPromptS12 string
const (
	AIGatewayGetResponseGuardrailsPromptS12Flag  AIGatewayGetResponseGuardrailsPromptS12 = "FLAG"
	AIGatewayGetResponseGuardrailsPromptS12Block AIGatewayGetResponseGuardrailsPromptS12 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsPromptS12) IsKnown

type AIGatewayGetResponseGuardrailsPromptS13

type AIGatewayGetResponseGuardrailsPromptS13 string
const (
	AIGatewayGetResponseGuardrailsPromptS13Flag  AIGatewayGetResponseGuardrailsPromptS13 = "FLAG"
	AIGatewayGetResponseGuardrailsPromptS13Block AIGatewayGetResponseGuardrailsPromptS13 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsPromptS13) IsKnown

type AIGatewayGetResponseGuardrailsResponse

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

type AIGatewayGetResponseGuardrailsResponseS1

type AIGatewayGetResponseGuardrailsResponseS1 string
const (
	AIGatewayGetResponseGuardrailsResponseS1Flag  AIGatewayGetResponseGuardrailsResponseS1 = "FLAG"
	AIGatewayGetResponseGuardrailsResponseS1Block AIGatewayGetResponseGuardrailsResponseS1 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsResponseS1) IsKnown

type AIGatewayGetResponseGuardrailsResponseS2

type AIGatewayGetResponseGuardrailsResponseS2 string
const (
	AIGatewayGetResponseGuardrailsResponseS2Flag  AIGatewayGetResponseGuardrailsResponseS2 = "FLAG"
	AIGatewayGetResponseGuardrailsResponseS2Block AIGatewayGetResponseGuardrailsResponseS2 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsResponseS2) IsKnown

type AIGatewayGetResponseGuardrailsResponseS3

type AIGatewayGetResponseGuardrailsResponseS3 string
const (
	AIGatewayGetResponseGuardrailsResponseS3Flag  AIGatewayGetResponseGuardrailsResponseS3 = "FLAG"
	AIGatewayGetResponseGuardrailsResponseS3Block AIGatewayGetResponseGuardrailsResponseS3 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsResponseS3) IsKnown

type AIGatewayGetResponseGuardrailsResponseS4

type AIGatewayGetResponseGuardrailsResponseS4 string
const (
	AIGatewayGetResponseGuardrailsResponseS4Flag  AIGatewayGetResponseGuardrailsResponseS4 = "FLAG"
	AIGatewayGetResponseGuardrailsResponseS4Block AIGatewayGetResponseGuardrailsResponseS4 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsResponseS4) IsKnown

type AIGatewayGetResponseGuardrailsResponseS5

type AIGatewayGetResponseGuardrailsResponseS5 string
const (
	AIGatewayGetResponseGuardrailsResponseS5Flag  AIGatewayGetResponseGuardrailsResponseS5 = "FLAG"
	AIGatewayGetResponseGuardrailsResponseS5Block AIGatewayGetResponseGuardrailsResponseS5 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsResponseS5) IsKnown

type AIGatewayGetResponseGuardrailsResponseS6

type AIGatewayGetResponseGuardrailsResponseS6 string
const (
	AIGatewayGetResponseGuardrailsResponseS6Flag  AIGatewayGetResponseGuardrailsResponseS6 = "FLAG"
	AIGatewayGetResponseGuardrailsResponseS6Block AIGatewayGetResponseGuardrailsResponseS6 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsResponseS6) IsKnown

type AIGatewayGetResponseGuardrailsResponseS7

type AIGatewayGetResponseGuardrailsResponseS7 string
const (
	AIGatewayGetResponseGuardrailsResponseS7Flag  AIGatewayGetResponseGuardrailsResponseS7 = "FLAG"
	AIGatewayGetResponseGuardrailsResponseS7Block AIGatewayGetResponseGuardrailsResponseS7 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsResponseS7) IsKnown

type AIGatewayGetResponseGuardrailsResponseS8

type AIGatewayGetResponseGuardrailsResponseS8 string
const (
	AIGatewayGetResponseGuardrailsResponseS8Flag  AIGatewayGetResponseGuardrailsResponseS8 = "FLAG"
	AIGatewayGetResponseGuardrailsResponseS8Block AIGatewayGetResponseGuardrailsResponseS8 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsResponseS8) IsKnown

type AIGatewayGetResponseGuardrailsResponseS9

type AIGatewayGetResponseGuardrailsResponseS9 string
const (
	AIGatewayGetResponseGuardrailsResponseS9Flag  AIGatewayGetResponseGuardrailsResponseS9 = "FLAG"
	AIGatewayGetResponseGuardrailsResponseS9Block AIGatewayGetResponseGuardrailsResponseS9 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsResponseS9) IsKnown

type AIGatewayGetResponseGuardrailsResponseS10

type AIGatewayGetResponseGuardrailsResponseS10 string
const (
	AIGatewayGetResponseGuardrailsResponseS10Flag  AIGatewayGetResponseGuardrailsResponseS10 = "FLAG"
	AIGatewayGetResponseGuardrailsResponseS10Block AIGatewayGetResponseGuardrailsResponseS10 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsResponseS10) IsKnown

type AIGatewayGetResponseGuardrailsResponseS11

type AIGatewayGetResponseGuardrailsResponseS11 string
const (
	AIGatewayGetResponseGuardrailsResponseS11Flag  AIGatewayGetResponseGuardrailsResponseS11 = "FLAG"
	AIGatewayGetResponseGuardrailsResponseS11Block AIGatewayGetResponseGuardrailsResponseS11 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsResponseS11) IsKnown

type AIGatewayGetResponseGuardrailsResponseS12

type AIGatewayGetResponseGuardrailsResponseS12 string
const (
	AIGatewayGetResponseGuardrailsResponseS12Flag  AIGatewayGetResponseGuardrailsResponseS12 = "FLAG"
	AIGatewayGetResponseGuardrailsResponseS12Block AIGatewayGetResponseGuardrailsResponseS12 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsResponseS12) IsKnown

type AIGatewayGetResponseGuardrailsResponseS13

type AIGatewayGetResponseGuardrailsResponseS13 string
const (
	AIGatewayGetResponseGuardrailsResponseS13Flag  AIGatewayGetResponseGuardrailsResponseS13 = "FLAG"
	AIGatewayGetResponseGuardrailsResponseS13Block AIGatewayGetResponseGuardrailsResponseS13 = "BLOCK"
)

func (AIGatewayGetResponseGuardrailsResponseS13) IsKnown

type AIGatewayGetResponseLogManagementStrategy

type AIGatewayGetResponseLogManagementStrategy string
const (
	AIGatewayGetResponseLogManagementStrategyStopInserting AIGatewayGetResponseLogManagementStrategy = "STOP_INSERTING"
	AIGatewayGetResponseLogManagementStrategyDeleteOldest  AIGatewayGetResponseLogManagementStrategy = "DELETE_OLDEST"
)

func (AIGatewayGetResponseLogManagementStrategy) IsKnown

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

type AIGatewayGetResponseRateLimitingTechnique

type AIGatewayGetResponseRateLimitingTechnique string
const (
	AIGatewayGetResponseRateLimitingTechniqueFixed   AIGatewayGetResponseRateLimitingTechnique = "fixed"
	AIGatewayGetResponseRateLimitingTechniqueSliding AIGatewayGetResponseRateLimitingTechnique = "sliding"
)

func (AIGatewayGetResponseRateLimitingTechnique) IsKnown

type AIGatewayGetResponseRetryBackoff

type AIGatewayGetResponseRetryBackoff string

Backoff strategy for retry delays

const (
	AIGatewayGetResponseRetryBackoffConstant    AIGatewayGetResponseRetryBackoff = "constant"
	AIGatewayGetResponseRetryBackoffLinear      AIGatewayGetResponseRetryBackoff = "linear"
	AIGatewayGetResponseRetryBackoffExponential AIGatewayGetResponseRetryBackoff = "exponential"
)

func (AIGatewayGetResponseRetryBackoff) IsKnown

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

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

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

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

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

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

type AIGatewayListResponseGuardrailsPromptS1

type AIGatewayListResponseGuardrailsPromptS1 string
const (
	AIGatewayListResponseGuardrailsPromptS1Flag  AIGatewayListResponseGuardrailsPromptS1 = "FLAG"
	AIGatewayListResponseGuardrailsPromptS1Block AIGatewayListResponseGuardrailsPromptS1 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsPromptS1) IsKnown

type AIGatewayListResponseGuardrailsPromptS2

type AIGatewayListResponseGuardrailsPromptS2 string
const (
	AIGatewayListResponseGuardrailsPromptS2Flag  AIGatewayListResponseGuardrailsPromptS2 = "FLAG"
	AIGatewayListResponseGuardrailsPromptS2Block AIGatewayListResponseGuardrailsPromptS2 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsPromptS2) IsKnown

type AIGatewayListResponseGuardrailsPromptS3

type AIGatewayListResponseGuardrailsPromptS3 string
const (
	AIGatewayListResponseGuardrailsPromptS3Flag  AIGatewayListResponseGuardrailsPromptS3 = "FLAG"
	AIGatewayListResponseGuardrailsPromptS3Block AIGatewayListResponseGuardrailsPromptS3 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsPromptS3) IsKnown

type AIGatewayListResponseGuardrailsPromptS4

type AIGatewayListResponseGuardrailsPromptS4 string
const (
	AIGatewayListResponseGuardrailsPromptS4Flag  AIGatewayListResponseGuardrailsPromptS4 = "FLAG"
	AIGatewayListResponseGuardrailsPromptS4Block AIGatewayListResponseGuardrailsPromptS4 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsPromptS4) IsKnown

type AIGatewayListResponseGuardrailsPromptS5

type AIGatewayListResponseGuardrailsPromptS5 string
const (
	AIGatewayListResponseGuardrailsPromptS5Flag  AIGatewayListResponseGuardrailsPromptS5 = "FLAG"
	AIGatewayListResponseGuardrailsPromptS5Block AIGatewayListResponseGuardrailsPromptS5 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsPromptS5) IsKnown

type AIGatewayListResponseGuardrailsPromptS6

type AIGatewayListResponseGuardrailsPromptS6 string
const (
	AIGatewayListResponseGuardrailsPromptS6Flag  AIGatewayListResponseGuardrailsPromptS6 = "FLAG"
	AIGatewayListResponseGuardrailsPromptS6Block AIGatewayListResponseGuardrailsPromptS6 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsPromptS6) IsKnown

type AIGatewayListResponseGuardrailsPromptS7

type AIGatewayListResponseGuardrailsPromptS7 string
const (
	AIGatewayListResponseGuardrailsPromptS7Flag  AIGatewayListResponseGuardrailsPromptS7 = "FLAG"
	AIGatewayListResponseGuardrailsPromptS7Block AIGatewayListResponseGuardrailsPromptS7 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsPromptS7) IsKnown

type AIGatewayListResponseGuardrailsPromptS8

type AIGatewayListResponseGuardrailsPromptS8 string
const (
	AIGatewayListResponseGuardrailsPromptS8Flag  AIGatewayListResponseGuardrailsPromptS8 = "FLAG"
	AIGatewayListResponseGuardrailsPromptS8Block AIGatewayListResponseGuardrailsPromptS8 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsPromptS8) IsKnown

type AIGatewayListResponseGuardrailsPromptS9

type AIGatewayListResponseGuardrailsPromptS9 string
const (
	AIGatewayListResponseGuardrailsPromptS9Flag  AIGatewayListResponseGuardrailsPromptS9 = "FLAG"
	AIGatewayListResponseGuardrailsPromptS9Block AIGatewayListResponseGuardrailsPromptS9 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsPromptS9) IsKnown

type AIGatewayListResponseGuardrailsPromptS10

type AIGatewayListResponseGuardrailsPromptS10 string
const (
	AIGatewayListResponseGuardrailsPromptS10Flag  AIGatewayListResponseGuardrailsPromptS10 = "FLAG"
	AIGatewayListResponseGuardrailsPromptS10Block AIGatewayListResponseGuardrailsPromptS10 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsPromptS10) IsKnown

type AIGatewayListResponseGuardrailsPromptS11

type AIGatewayListResponseGuardrailsPromptS11 string
const (
	AIGatewayListResponseGuardrailsPromptS11Flag  AIGatewayListResponseGuardrailsPromptS11 = "FLAG"
	AIGatewayListResponseGuardrailsPromptS11Block AIGatewayListResponseGuardrailsPromptS11 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsPromptS11) IsKnown

type AIGatewayListResponseGuardrailsPromptS12

type AIGatewayListResponseGuardrailsPromptS12 string
const (
	AIGatewayListResponseGuardrailsPromptS12Flag  AIGatewayListResponseGuardrailsPromptS12 = "FLAG"
	AIGatewayListResponseGuardrailsPromptS12Block AIGatewayListResponseGuardrailsPromptS12 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsPromptS12) IsKnown

type AIGatewayListResponseGuardrailsPromptS13

type AIGatewayListResponseGuardrailsPromptS13 string
const (
	AIGatewayListResponseGuardrailsPromptS13Flag  AIGatewayListResponseGuardrailsPromptS13 = "FLAG"
	AIGatewayListResponseGuardrailsPromptS13Block AIGatewayListResponseGuardrailsPromptS13 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsPromptS13) IsKnown

type AIGatewayListResponseGuardrailsResponseP1

type AIGatewayListResponseGuardrailsResponseP1 string
const (
	AIGatewayListResponseGuardrailsResponseP1Flag  AIGatewayListResponseGuardrailsResponseP1 = "FLAG"
	AIGatewayListResponseGuardrailsResponseP1Block AIGatewayListResponseGuardrailsResponseP1 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsResponseP1) IsKnown

type AIGatewayListResponseGuardrailsResponseS1

type AIGatewayListResponseGuardrailsResponseS1 string
const (
	AIGatewayListResponseGuardrailsResponseS1Flag  AIGatewayListResponseGuardrailsResponseS1 = "FLAG"
	AIGatewayListResponseGuardrailsResponseS1Block AIGatewayListResponseGuardrailsResponseS1 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsResponseS1) IsKnown

type AIGatewayListResponseGuardrailsResponseS2

type AIGatewayListResponseGuardrailsResponseS2 string
const (
	AIGatewayListResponseGuardrailsResponseS2Flag  AIGatewayListResponseGuardrailsResponseS2 = "FLAG"
	AIGatewayListResponseGuardrailsResponseS2Block AIGatewayListResponseGuardrailsResponseS2 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsResponseS2) IsKnown

type AIGatewayListResponseGuardrailsResponseS3

type AIGatewayListResponseGuardrailsResponseS3 string
const (
	AIGatewayListResponseGuardrailsResponseS3Flag  AIGatewayListResponseGuardrailsResponseS3 = "FLAG"
	AIGatewayListResponseGuardrailsResponseS3Block AIGatewayListResponseGuardrailsResponseS3 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsResponseS3) IsKnown

type AIGatewayListResponseGuardrailsResponseS4

type AIGatewayListResponseGuardrailsResponseS4 string
const (
	AIGatewayListResponseGuardrailsResponseS4Flag  AIGatewayListResponseGuardrailsResponseS4 = "FLAG"
	AIGatewayListResponseGuardrailsResponseS4Block AIGatewayListResponseGuardrailsResponseS4 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsResponseS4) IsKnown

type AIGatewayListResponseGuardrailsResponseS5

type AIGatewayListResponseGuardrailsResponseS5 string
const (
	AIGatewayListResponseGuardrailsResponseS5Flag  AIGatewayListResponseGuardrailsResponseS5 = "FLAG"
	AIGatewayListResponseGuardrailsResponseS5Block AIGatewayListResponseGuardrailsResponseS5 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsResponseS5) IsKnown

type AIGatewayListResponseGuardrailsResponseS6

type AIGatewayListResponseGuardrailsResponseS6 string
const (
	AIGatewayListResponseGuardrailsResponseS6Flag  AIGatewayListResponseGuardrailsResponseS6 = "FLAG"
	AIGatewayListResponseGuardrailsResponseS6Block AIGatewayListResponseGuardrailsResponseS6 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsResponseS6) IsKnown

type AIGatewayListResponseGuardrailsResponseS7

type AIGatewayListResponseGuardrailsResponseS7 string
const (
	AIGatewayListResponseGuardrailsResponseS7Flag  AIGatewayListResponseGuardrailsResponseS7 = "FLAG"
	AIGatewayListResponseGuardrailsResponseS7Block AIGatewayListResponseGuardrailsResponseS7 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsResponseS7) IsKnown

type AIGatewayListResponseGuardrailsResponseS8

type AIGatewayListResponseGuardrailsResponseS8 string
const (
	AIGatewayListResponseGuardrailsResponseS8Flag  AIGatewayListResponseGuardrailsResponseS8 = "FLAG"
	AIGatewayListResponseGuardrailsResponseS8Block AIGatewayListResponseGuardrailsResponseS8 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsResponseS8) IsKnown

type AIGatewayListResponseGuardrailsResponseS9

type AIGatewayListResponseGuardrailsResponseS9 string
const (
	AIGatewayListResponseGuardrailsResponseS9Flag  AIGatewayListResponseGuardrailsResponseS9 = "FLAG"
	AIGatewayListResponseGuardrailsResponseS9Block AIGatewayListResponseGuardrailsResponseS9 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsResponseS9) IsKnown

type AIGatewayListResponseGuardrailsResponseS10

type AIGatewayListResponseGuardrailsResponseS10 string
const (
	AIGatewayListResponseGuardrailsResponseS10Flag  AIGatewayListResponseGuardrailsResponseS10 = "FLAG"
	AIGatewayListResponseGuardrailsResponseS10Block AIGatewayListResponseGuardrailsResponseS10 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsResponseS10) IsKnown

type AIGatewayListResponseGuardrailsResponseS11

type AIGatewayListResponseGuardrailsResponseS11 string
const (
	AIGatewayListResponseGuardrailsResponseS11Flag  AIGatewayListResponseGuardrailsResponseS11 = "FLAG"
	AIGatewayListResponseGuardrailsResponseS11Block AIGatewayListResponseGuardrailsResponseS11 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsResponseS11) IsKnown

type AIGatewayListResponseGuardrailsResponseS12

type AIGatewayListResponseGuardrailsResponseS12 string
const (
	AIGatewayListResponseGuardrailsResponseS12Flag  AIGatewayListResponseGuardrailsResponseS12 = "FLAG"
	AIGatewayListResponseGuardrailsResponseS12Block AIGatewayListResponseGuardrailsResponseS12 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsResponseS12) IsKnown

type AIGatewayListResponseGuardrailsResponseS13

type AIGatewayListResponseGuardrailsResponseS13 string
const (
	AIGatewayListResponseGuardrailsResponseS13Flag  AIGatewayListResponseGuardrailsResponseS13 = "FLAG"
	AIGatewayListResponseGuardrailsResponseS13Block AIGatewayListResponseGuardrailsResponseS13 = "BLOCK"
)

func (AIGatewayListResponseGuardrailsResponseS13) IsKnown

type AIGatewayListResponseLogManagementStrategy

type AIGatewayListResponseLogManagementStrategy string
const (
	AIGatewayListResponseLogManagementStrategyStopInserting AIGatewayListResponseLogManagementStrategy = "STOP_INSERTING"
	AIGatewayListResponseLogManagementStrategyDeleteOldest  AIGatewayListResponseLogManagementStrategy = "DELETE_OLDEST"
)

func (AIGatewayListResponseLogManagementStrategy) IsKnown

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

type AIGatewayListResponseRateLimitingTechnique

type AIGatewayListResponseRateLimitingTechnique string
const (
	AIGatewayListResponseRateLimitingTechniqueFixed   AIGatewayListResponseRateLimitingTechnique = "fixed"
	AIGatewayListResponseRateLimitingTechniqueSliding AIGatewayListResponseRateLimitingTechnique = "sliding"
)

func (AIGatewayListResponseRateLimitingTechnique) IsKnown

type AIGatewayListResponseRetryBackoff

type AIGatewayListResponseRetryBackoff string

Backoff strategy for retry delays

const (
	AIGatewayListResponseRetryBackoffConstant    AIGatewayListResponseRetryBackoff = "constant"
	AIGatewayListResponseRetryBackoffLinear      AIGatewayListResponseRetryBackoff = "linear"
	AIGatewayListResponseRetryBackoffExponential AIGatewayListResponseRetryBackoff = "exponential"
)

func (AIGatewayListResponseRetryBackoff) IsKnown

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

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

type AIGatewayNewParamsRateLimitingTechnique

type AIGatewayNewParamsRateLimitingTechnique string
const (
	AIGatewayNewParamsRateLimitingTechniqueFixed   AIGatewayNewParamsRateLimitingTechnique = "fixed"
	AIGatewayNewParamsRateLimitingTechniqueSliding AIGatewayNewParamsRateLimitingTechnique = "sliding"
)

func (AIGatewayNewParamsRateLimitingTechnique) IsKnown

type AIGatewayNewParamsRetryBackoff

type AIGatewayNewParamsRetryBackoff string

Backoff strategy for retry delays

const (
	AIGatewayNewParamsRetryBackoffConstant    AIGatewayNewParamsRetryBackoff = "constant"
	AIGatewayNewParamsRetryBackoffLinear      AIGatewayNewParamsRetryBackoff = "linear"
	AIGatewayNewParamsRetryBackoffExponential AIGatewayNewParamsRetryBackoff = "exponential"
)

func (AIGatewayNewParamsRetryBackoff) IsKnown

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

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

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

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

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

type AIGatewayNewResponseGuardrailsPromptS1

type AIGatewayNewResponseGuardrailsPromptS1 string
const (
	AIGatewayNewResponseGuardrailsPromptS1Flag  AIGatewayNewResponseGuardrailsPromptS1 = "FLAG"
	AIGatewayNewResponseGuardrailsPromptS1Block AIGatewayNewResponseGuardrailsPromptS1 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsPromptS1) IsKnown

type AIGatewayNewResponseGuardrailsPromptS2

type AIGatewayNewResponseGuardrailsPromptS2 string
const (
	AIGatewayNewResponseGuardrailsPromptS2Flag  AIGatewayNewResponseGuardrailsPromptS2 = "FLAG"
	AIGatewayNewResponseGuardrailsPromptS2Block AIGatewayNewResponseGuardrailsPromptS2 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsPromptS2) IsKnown

type AIGatewayNewResponseGuardrailsPromptS3

type AIGatewayNewResponseGuardrailsPromptS3 string
const (
	AIGatewayNewResponseGuardrailsPromptS3Flag  AIGatewayNewResponseGuardrailsPromptS3 = "FLAG"
	AIGatewayNewResponseGuardrailsPromptS3Block AIGatewayNewResponseGuardrailsPromptS3 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsPromptS3) IsKnown

type AIGatewayNewResponseGuardrailsPromptS4

type AIGatewayNewResponseGuardrailsPromptS4 string
const (
	AIGatewayNewResponseGuardrailsPromptS4Flag  AIGatewayNewResponseGuardrailsPromptS4 = "FLAG"
	AIGatewayNewResponseGuardrailsPromptS4Block AIGatewayNewResponseGuardrailsPromptS4 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsPromptS4) IsKnown

type AIGatewayNewResponseGuardrailsPromptS5

type AIGatewayNewResponseGuardrailsPromptS5 string
const (
	AIGatewayNewResponseGuardrailsPromptS5Flag  AIGatewayNewResponseGuardrailsPromptS5 = "FLAG"
	AIGatewayNewResponseGuardrailsPromptS5Block AIGatewayNewResponseGuardrailsPromptS5 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsPromptS5) IsKnown

type AIGatewayNewResponseGuardrailsPromptS6

type AIGatewayNewResponseGuardrailsPromptS6 string
const (
	AIGatewayNewResponseGuardrailsPromptS6Flag  AIGatewayNewResponseGuardrailsPromptS6 = "FLAG"
	AIGatewayNewResponseGuardrailsPromptS6Block AIGatewayNewResponseGuardrailsPromptS6 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsPromptS6) IsKnown

type AIGatewayNewResponseGuardrailsPromptS7

type AIGatewayNewResponseGuardrailsPromptS7 string
const (
	AIGatewayNewResponseGuardrailsPromptS7Flag  AIGatewayNewResponseGuardrailsPromptS7 = "FLAG"
	AIGatewayNewResponseGuardrailsPromptS7Block AIGatewayNewResponseGuardrailsPromptS7 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsPromptS7) IsKnown

type AIGatewayNewResponseGuardrailsPromptS8

type AIGatewayNewResponseGuardrailsPromptS8 string
const (
	AIGatewayNewResponseGuardrailsPromptS8Flag  AIGatewayNewResponseGuardrailsPromptS8 = "FLAG"
	AIGatewayNewResponseGuardrailsPromptS8Block AIGatewayNewResponseGuardrailsPromptS8 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsPromptS8) IsKnown

type AIGatewayNewResponseGuardrailsPromptS9

type AIGatewayNewResponseGuardrailsPromptS9 string
const (
	AIGatewayNewResponseGuardrailsPromptS9Flag  AIGatewayNewResponseGuardrailsPromptS9 = "FLAG"
	AIGatewayNewResponseGuardrailsPromptS9Block AIGatewayNewResponseGuardrailsPromptS9 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsPromptS9) IsKnown

type AIGatewayNewResponseGuardrailsPromptS10

type AIGatewayNewResponseGuardrailsPromptS10 string
const (
	AIGatewayNewResponseGuardrailsPromptS10Flag  AIGatewayNewResponseGuardrailsPromptS10 = "FLAG"
	AIGatewayNewResponseGuardrailsPromptS10Block AIGatewayNewResponseGuardrailsPromptS10 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsPromptS10) IsKnown

type AIGatewayNewResponseGuardrailsPromptS11

type AIGatewayNewResponseGuardrailsPromptS11 string
const (
	AIGatewayNewResponseGuardrailsPromptS11Flag  AIGatewayNewResponseGuardrailsPromptS11 = "FLAG"
	AIGatewayNewResponseGuardrailsPromptS11Block AIGatewayNewResponseGuardrailsPromptS11 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsPromptS11) IsKnown

type AIGatewayNewResponseGuardrailsPromptS12

type AIGatewayNewResponseGuardrailsPromptS12 string
const (
	AIGatewayNewResponseGuardrailsPromptS12Flag  AIGatewayNewResponseGuardrailsPromptS12 = "FLAG"
	AIGatewayNewResponseGuardrailsPromptS12Block AIGatewayNewResponseGuardrailsPromptS12 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsPromptS12) IsKnown

type AIGatewayNewResponseGuardrailsPromptS13

type AIGatewayNewResponseGuardrailsPromptS13 string
const (
	AIGatewayNewResponseGuardrailsPromptS13Flag  AIGatewayNewResponseGuardrailsPromptS13 = "FLAG"
	AIGatewayNewResponseGuardrailsPromptS13Block AIGatewayNewResponseGuardrailsPromptS13 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsPromptS13) IsKnown

type AIGatewayNewResponseGuardrailsResponse

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

type AIGatewayNewResponseGuardrailsResponseS1

type AIGatewayNewResponseGuardrailsResponseS1 string
const (
	AIGatewayNewResponseGuardrailsResponseS1Flag  AIGatewayNewResponseGuardrailsResponseS1 = "FLAG"
	AIGatewayNewResponseGuardrailsResponseS1Block AIGatewayNewResponseGuardrailsResponseS1 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsResponseS1) IsKnown

type AIGatewayNewResponseGuardrailsResponseS2

type AIGatewayNewResponseGuardrailsResponseS2 string
const (
	AIGatewayNewResponseGuardrailsResponseS2Flag  AIGatewayNewResponseGuardrailsResponseS2 = "FLAG"
	AIGatewayNewResponseGuardrailsResponseS2Block AIGatewayNewResponseGuardrailsResponseS2 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsResponseS2) IsKnown

type AIGatewayNewResponseGuardrailsResponseS3

type AIGatewayNewResponseGuardrailsResponseS3 string
const (
	AIGatewayNewResponseGuardrailsResponseS3Flag  AIGatewayNewResponseGuardrailsResponseS3 = "FLAG"
	AIGatewayNewResponseGuardrailsResponseS3Block AIGatewayNewResponseGuardrailsResponseS3 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsResponseS3) IsKnown

type AIGatewayNewResponseGuardrailsResponseS4

type AIGatewayNewResponseGuardrailsResponseS4 string
const (
	AIGatewayNewResponseGuardrailsResponseS4Flag  AIGatewayNewResponseGuardrailsResponseS4 = "FLAG"
	AIGatewayNewResponseGuardrailsResponseS4Block AIGatewayNewResponseGuardrailsResponseS4 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsResponseS4) IsKnown

type AIGatewayNewResponseGuardrailsResponseS5

type AIGatewayNewResponseGuardrailsResponseS5 string
const (
	AIGatewayNewResponseGuardrailsResponseS5Flag  AIGatewayNewResponseGuardrailsResponseS5 = "FLAG"
	AIGatewayNewResponseGuardrailsResponseS5Block AIGatewayNewResponseGuardrailsResponseS5 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsResponseS5) IsKnown

type AIGatewayNewResponseGuardrailsResponseS6

type AIGatewayNewResponseGuardrailsResponseS6 string
const (
	AIGatewayNewResponseGuardrailsResponseS6Flag  AIGatewayNewResponseGuardrailsResponseS6 = "FLAG"
	AIGatewayNewResponseGuardrailsResponseS6Block AIGatewayNewResponseGuardrailsResponseS6 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsResponseS6) IsKnown

type AIGatewayNewResponseGuardrailsResponseS7

type AIGatewayNewResponseGuardrailsResponseS7 string
const (
	AIGatewayNewResponseGuardrailsResponseS7Flag  AIGatewayNewResponseGuardrailsResponseS7 = "FLAG"
	AIGatewayNewResponseGuardrailsResponseS7Block AIGatewayNewResponseGuardrailsResponseS7 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsResponseS7) IsKnown

type AIGatewayNewResponseGuardrailsResponseS8

type AIGatewayNewResponseGuardrailsResponseS8 string
const (
	AIGatewayNewResponseGuardrailsResponseS8Flag  AIGatewayNewResponseGuardrailsResponseS8 = "FLAG"
	AIGatewayNewResponseGuardrailsResponseS8Block AIGatewayNewResponseGuardrailsResponseS8 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsResponseS8) IsKnown

type AIGatewayNewResponseGuardrailsResponseS9

type AIGatewayNewResponseGuardrailsResponseS9 string
const (
	AIGatewayNewResponseGuardrailsResponseS9Flag  AIGatewayNewResponseGuardrailsResponseS9 = "FLAG"
	AIGatewayNewResponseGuardrailsResponseS9Block AIGatewayNewResponseGuardrailsResponseS9 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsResponseS9) IsKnown

type AIGatewayNewResponseGuardrailsResponseS10

type AIGatewayNewResponseGuardrailsResponseS10 string
const (
	AIGatewayNewResponseGuardrailsResponseS10Flag  AIGatewayNewResponseGuardrailsResponseS10 = "FLAG"
	AIGatewayNewResponseGuardrailsResponseS10Block AIGatewayNewResponseGuardrailsResponseS10 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsResponseS10) IsKnown

type AIGatewayNewResponseGuardrailsResponseS11

type AIGatewayNewResponseGuardrailsResponseS11 string
const (
	AIGatewayNewResponseGuardrailsResponseS11Flag  AIGatewayNewResponseGuardrailsResponseS11 = "FLAG"
	AIGatewayNewResponseGuardrailsResponseS11Block AIGatewayNewResponseGuardrailsResponseS11 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsResponseS11) IsKnown

type AIGatewayNewResponseGuardrailsResponseS12

type AIGatewayNewResponseGuardrailsResponseS12 string
const (
	AIGatewayNewResponseGuardrailsResponseS12Flag  AIGatewayNewResponseGuardrailsResponseS12 = "FLAG"
	AIGatewayNewResponseGuardrailsResponseS12Block AIGatewayNewResponseGuardrailsResponseS12 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsResponseS12) IsKnown

type AIGatewayNewResponseGuardrailsResponseS13

type AIGatewayNewResponseGuardrailsResponseS13 string
const (
	AIGatewayNewResponseGuardrailsResponseS13Flag  AIGatewayNewResponseGuardrailsResponseS13 = "FLAG"
	AIGatewayNewResponseGuardrailsResponseS13Block AIGatewayNewResponseGuardrailsResponseS13 = "BLOCK"
)

func (AIGatewayNewResponseGuardrailsResponseS13) IsKnown

type AIGatewayNewResponseLogManagementStrategy

type AIGatewayNewResponseLogManagementStrategy string
const (
	AIGatewayNewResponseLogManagementStrategyStopInserting AIGatewayNewResponseLogManagementStrategy = "STOP_INSERTING"
	AIGatewayNewResponseLogManagementStrategyDeleteOldest  AIGatewayNewResponseLogManagementStrategy = "DELETE_OLDEST"
)

func (AIGatewayNewResponseLogManagementStrategy) IsKnown

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

type AIGatewayNewResponseRateLimitingTechnique

type AIGatewayNewResponseRateLimitingTechnique string
const (
	AIGatewayNewResponseRateLimitingTechniqueFixed   AIGatewayNewResponseRateLimitingTechnique = "fixed"
	AIGatewayNewResponseRateLimitingTechniqueSliding AIGatewayNewResponseRateLimitingTechnique = "sliding"
)

func (AIGatewayNewResponseRateLimitingTechnique) IsKnown

type AIGatewayNewResponseRetryBackoff

type AIGatewayNewResponseRetryBackoff string

Backoff strategy for retry delays

const (
	AIGatewayNewResponseRetryBackoffConstant    AIGatewayNewResponseRetryBackoff = "constant"
	AIGatewayNewResponseRetryBackoffLinear      AIGatewayNewResponseRetryBackoff = "linear"
	AIGatewayNewResponseRetryBackoffExponential AIGatewayNewResponseRetryBackoff = "exponential"
)

func (AIGatewayNewResponseRetryBackoff) IsKnown

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

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

Deletes an AI Gateway dataset.

func (*AIGatewayService) Get

Retrieves details for a specific AI Gateway dataset.

func (*AIGatewayService) List

Lists all AI Gateway evaluator types configured for the account.

func (*AIGatewayService) ListAutoPaging

Lists all AI Gateway evaluator types configured for the account.

func (*AIGatewayService) New

Creates a new AI Gateway.

func (*AIGatewayService) Update

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

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

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 AIGatewayUpdateParamsGuardrailsPromptP1

type AIGatewayUpdateParamsGuardrailsPromptP1 string
const (
	AIGatewayUpdateParamsGuardrailsPromptP1Flag  AIGatewayUpdateParamsGuardrailsPromptP1 = "FLAG"
	AIGatewayUpdateParamsGuardrailsPromptP1Block AIGatewayUpdateParamsGuardrailsPromptP1 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsPromptP1) IsKnown

type AIGatewayUpdateParamsGuardrailsPromptS1

type AIGatewayUpdateParamsGuardrailsPromptS1 string
const (
	AIGatewayUpdateParamsGuardrailsPromptS1Flag  AIGatewayUpdateParamsGuardrailsPromptS1 = "FLAG"
	AIGatewayUpdateParamsGuardrailsPromptS1Block AIGatewayUpdateParamsGuardrailsPromptS1 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsPromptS1) IsKnown

type AIGatewayUpdateParamsGuardrailsPromptS2

type AIGatewayUpdateParamsGuardrailsPromptS2 string
const (
	AIGatewayUpdateParamsGuardrailsPromptS2Flag  AIGatewayUpdateParamsGuardrailsPromptS2 = "FLAG"
	AIGatewayUpdateParamsGuardrailsPromptS2Block AIGatewayUpdateParamsGuardrailsPromptS2 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsPromptS2) IsKnown

type AIGatewayUpdateParamsGuardrailsPromptS3

type AIGatewayUpdateParamsGuardrailsPromptS3 string
const (
	AIGatewayUpdateParamsGuardrailsPromptS3Flag  AIGatewayUpdateParamsGuardrailsPromptS3 = "FLAG"
	AIGatewayUpdateParamsGuardrailsPromptS3Block AIGatewayUpdateParamsGuardrailsPromptS3 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsPromptS3) IsKnown

type AIGatewayUpdateParamsGuardrailsPromptS4

type AIGatewayUpdateParamsGuardrailsPromptS4 string
const (
	AIGatewayUpdateParamsGuardrailsPromptS4Flag  AIGatewayUpdateParamsGuardrailsPromptS4 = "FLAG"
	AIGatewayUpdateParamsGuardrailsPromptS4Block AIGatewayUpdateParamsGuardrailsPromptS4 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsPromptS4) IsKnown

type AIGatewayUpdateParamsGuardrailsPromptS5

type AIGatewayUpdateParamsGuardrailsPromptS5 string
const (
	AIGatewayUpdateParamsGuardrailsPromptS5Flag  AIGatewayUpdateParamsGuardrailsPromptS5 = "FLAG"
	AIGatewayUpdateParamsGuardrailsPromptS5Block AIGatewayUpdateParamsGuardrailsPromptS5 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsPromptS5) IsKnown

type AIGatewayUpdateParamsGuardrailsPromptS6

type AIGatewayUpdateParamsGuardrailsPromptS6 string
const (
	AIGatewayUpdateParamsGuardrailsPromptS6Flag  AIGatewayUpdateParamsGuardrailsPromptS6 = "FLAG"
	AIGatewayUpdateParamsGuardrailsPromptS6Block AIGatewayUpdateParamsGuardrailsPromptS6 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsPromptS6) IsKnown

type AIGatewayUpdateParamsGuardrailsPromptS7

type AIGatewayUpdateParamsGuardrailsPromptS7 string
const (
	AIGatewayUpdateParamsGuardrailsPromptS7Flag  AIGatewayUpdateParamsGuardrailsPromptS7 = "FLAG"
	AIGatewayUpdateParamsGuardrailsPromptS7Block AIGatewayUpdateParamsGuardrailsPromptS7 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsPromptS7) IsKnown

type AIGatewayUpdateParamsGuardrailsPromptS8

type AIGatewayUpdateParamsGuardrailsPromptS8 string
const (
	AIGatewayUpdateParamsGuardrailsPromptS8Flag  AIGatewayUpdateParamsGuardrailsPromptS8 = "FLAG"
	AIGatewayUpdateParamsGuardrailsPromptS8Block AIGatewayUpdateParamsGuardrailsPromptS8 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsPromptS8) IsKnown

type AIGatewayUpdateParamsGuardrailsPromptS9

type AIGatewayUpdateParamsGuardrailsPromptS9 string
const (
	AIGatewayUpdateParamsGuardrailsPromptS9Flag  AIGatewayUpdateParamsGuardrailsPromptS9 = "FLAG"
	AIGatewayUpdateParamsGuardrailsPromptS9Block AIGatewayUpdateParamsGuardrailsPromptS9 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsPromptS9) IsKnown

type AIGatewayUpdateParamsGuardrailsPromptS10

type AIGatewayUpdateParamsGuardrailsPromptS10 string
const (
	AIGatewayUpdateParamsGuardrailsPromptS10Flag  AIGatewayUpdateParamsGuardrailsPromptS10 = "FLAG"
	AIGatewayUpdateParamsGuardrailsPromptS10Block AIGatewayUpdateParamsGuardrailsPromptS10 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsPromptS10) IsKnown

type AIGatewayUpdateParamsGuardrailsPromptS11

type AIGatewayUpdateParamsGuardrailsPromptS11 string
const (
	AIGatewayUpdateParamsGuardrailsPromptS11Flag  AIGatewayUpdateParamsGuardrailsPromptS11 = "FLAG"
	AIGatewayUpdateParamsGuardrailsPromptS11Block AIGatewayUpdateParamsGuardrailsPromptS11 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsPromptS11) IsKnown

type AIGatewayUpdateParamsGuardrailsPromptS12

type AIGatewayUpdateParamsGuardrailsPromptS12 string
const (
	AIGatewayUpdateParamsGuardrailsPromptS12Flag  AIGatewayUpdateParamsGuardrailsPromptS12 = "FLAG"
	AIGatewayUpdateParamsGuardrailsPromptS12Block AIGatewayUpdateParamsGuardrailsPromptS12 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsPromptS12) IsKnown

type AIGatewayUpdateParamsGuardrailsPromptS13

type AIGatewayUpdateParamsGuardrailsPromptS13 string
const (
	AIGatewayUpdateParamsGuardrailsPromptS13Flag  AIGatewayUpdateParamsGuardrailsPromptS13 = "FLAG"
	AIGatewayUpdateParamsGuardrailsPromptS13Block AIGatewayUpdateParamsGuardrailsPromptS13 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsPromptS13) IsKnown

type AIGatewayUpdateParamsGuardrailsResponseP1

type AIGatewayUpdateParamsGuardrailsResponseP1 string
const (
	AIGatewayUpdateParamsGuardrailsResponseP1Flag  AIGatewayUpdateParamsGuardrailsResponseP1 = "FLAG"
	AIGatewayUpdateParamsGuardrailsResponseP1Block AIGatewayUpdateParamsGuardrailsResponseP1 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsResponseP1) IsKnown

type AIGatewayUpdateParamsGuardrailsResponseS1

type AIGatewayUpdateParamsGuardrailsResponseS1 string
const (
	AIGatewayUpdateParamsGuardrailsResponseS1Flag  AIGatewayUpdateParamsGuardrailsResponseS1 = "FLAG"
	AIGatewayUpdateParamsGuardrailsResponseS1Block AIGatewayUpdateParamsGuardrailsResponseS1 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsResponseS1) IsKnown

type AIGatewayUpdateParamsGuardrailsResponseS2

type AIGatewayUpdateParamsGuardrailsResponseS2 string
const (
	AIGatewayUpdateParamsGuardrailsResponseS2Flag  AIGatewayUpdateParamsGuardrailsResponseS2 = "FLAG"
	AIGatewayUpdateParamsGuardrailsResponseS2Block AIGatewayUpdateParamsGuardrailsResponseS2 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsResponseS2) IsKnown

type AIGatewayUpdateParamsGuardrailsResponseS3

type AIGatewayUpdateParamsGuardrailsResponseS3 string
const (
	AIGatewayUpdateParamsGuardrailsResponseS3Flag  AIGatewayUpdateParamsGuardrailsResponseS3 = "FLAG"
	AIGatewayUpdateParamsGuardrailsResponseS3Block AIGatewayUpdateParamsGuardrailsResponseS3 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsResponseS3) IsKnown

type AIGatewayUpdateParamsGuardrailsResponseS4

type AIGatewayUpdateParamsGuardrailsResponseS4 string
const (
	AIGatewayUpdateParamsGuardrailsResponseS4Flag  AIGatewayUpdateParamsGuardrailsResponseS4 = "FLAG"
	AIGatewayUpdateParamsGuardrailsResponseS4Block AIGatewayUpdateParamsGuardrailsResponseS4 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsResponseS4) IsKnown

type AIGatewayUpdateParamsGuardrailsResponseS5

type AIGatewayUpdateParamsGuardrailsResponseS5 string
const (
	AIGatewayUpdateParamsGuardrailsResponseS5Flag  AIGatewayUpdateParamsGuardrailsResponseS5 = "FLAG"
	AIGatewayUpdateParamsGuardrailsResponseS5Block AIGatewayUpdateParamsGuardrailsResponseS5 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsResponseS5) IsKnown

type AIGatewayUpdateParamsGuardrailsResponseS6

type AIGatewayUpdateParamsGuardrailsResponseS6 string
const (
	AIGatewayUpdateParamsGuardrailsResponseS6Flag  AIGatewayUpdateParamsGuardrailsResponseS6 = "FLAG"
	AIGatewayUpdateParamsGuardrailsResponseS6Block AIGatewayUpdateParamsGuardrailsResponseS6 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsResponseS6) IsKnown

type AIGatewayUpdateParamsGuardrailsResponseS7

type AIGatewayUpdateParamsGuardrailsResponseS7 string
const (
	AIGatewayUpdateParamsGuardrailsResponseS7Flag  AIGatewayUpdateParamsGuardrailsResponseS7 = "FLAG"
	AIGatewayUpdateParamsGuardrailsResponseS7Block AIGatewayUpdateParamsGuardrailsResponseS7 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsResponseS7) IsKnown

type AIGatewayUpdateParamsGuardrailsResponseS8

type AIGatewayUpdateParamsGuardrailsResponseS8 string
const (
	AIGatewayUpdateParamsGuardrailsResponseS8Flag  AIGatewayUpdateParamsGuardrailsResponseS8 = "FLAG"
	AIGatewayUpdateParamsGuardrailsResponseS8Block AIGatewayUpdateParamsGuardrailsResponseS8 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsResponseS8) IsKnown

type AIGatewayUpdateParamsGuardrailsResponseS9

type AIGatewayUpdateParamsGuardrailsResponseS9 string
const (
	AIGatewayUpdateParamsGuardrailsResponseS9Flag  AIGatewayUpdateParamsGuardrailsResponseS9 = "FLAG"
	AIGatewayUpdateParamsGuardrailsResponseS9Block AIGatewayUpdateParamsGuardrailsResponseS9 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsResponseS9) IsKnown

type AIGatewayUpdateParamsGuardrailsResponseS10

type AIGatewayUpdateParamsGuardrailsResponseS10 string
const (
	AIGatewayUpdateParamsGuardrailsResponseS10Flag  AIGatewayUpdateParamsGuardrailsResponseS10 = "FLAG"
	AIGatewayUpdateParamsGuardrailsResponseS10Block AIGatewayUpdateParamsGuardrailsResponseS10 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsResponseS10) IsKnown

type AIGatewayUpdateParamsGuardrailsResponseS11

type AIGatewayUpdateParamsGuardrailsResponseS11 string
const (
	AIGatewayUpdateParamsGuardrailsResponseS11Flag  AIGatewayUpdateParamsGuardrailsResponseS11 = "FLAG"
	AIGatewayUpdateParamsGuardrailsResponseS11Block AIGatewayUpdateParamsGuardrailsResponseS11 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsResponseS11) IsKnown

type AIGatewayUpdateParamsGuardrailsResponseS12

type AIGatewayUpdateParamsGuardrailsResponseS12 string
const (
	AIGatewayUpdateParamsGuardrailsResponseS12Flag  AIGatewayUpdateParamsGuardrailsResponseS12 = "FLAG"
	AIGatewayUpdateParamsGuardrailsResponseS12Block AIGatewayUpdateParamsGuardrailsResponseS12 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsResponseS12) IsKnown

type AIGatewayUpdateParamsGuardrailsResponseS13

type AIGatewayUpdateParamsGuardrailsResponseS13 string
const (
	AIGatewayUpdateParamsGuardrailsResponseS13Flag  AIGatewayUpdateParamsGuardrailsResponseS13 = "FLAG"
	AIGatewayUpdateParamsGuardrailsResponseS13Block AIGatewayUpdateParamsGuardrailsResponseS13 = "BLOCK"
)

func (AIGatewayUpdateParamsGuardrailsResponseS13) IsKnown

type AIGatewayUpdateParamsLogManagementStrategy

type AIGatewayUpdateParamsLogManagementStrategy string
const (
	AIGatewayUpdateParamsLogManagementStrategyStopInserting AIGatewayUpdateParamsLogManagementStrategy = "STOP_INSERTING"
	AIGatewayUpdateParamsLogManagementStrategyDeleteOldest  AIGatewayUpdateParamsLogManagementStrategy = "DELETE_OLDEST"
)

func (AIGatewayUpdateParamsLogManagementStrategy) IsKnown

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

type AIGatewayUpdateParamsRateLimitingTechnique

type AIGatewayUpdateParamsRateLimitingTechnique string
const (
	AIGatewayUpdateParamsRateLimitingTechniqueFixed   AIGatewayUpdateParamsRateLimitingTechnique = "fixed"
	AIGatewayUpdateParamsRateLimitingTechniqueSliding AIGatewayUpdateParamsRateLimitingTechnique = "sliding"
)

func (AIGatewayUpdateParamsRateLimitingTechnique) IsKnown

type AIGatewayUpdateParamsRetryBackoff

type AIGatewayUpdateParamsRetryBackoff string

Backoff strategy for retry delays

const (
	AIGatewayUpdateParamsRetryBackoffConstant    AIGatewayUpdateParamsRetryBackoff = "constant"
	AIGatewayUpdateParamsRetryBackoffLinear      AIGatewayUpdateParamsRetryBackoff = "linear"
	AIGatewayUpdateParamsRetryBackoffExponential AIGatewayUpdateParamsRetryBackoff = "exponential"
)

func (AIGatewayUpdateParamsRetryBackoff) IsKnown

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

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

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

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

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 AIGatewayUpdateResponseGuardrailsPromptP1

type AIGatewayUpdateResponseGuardrailsPromptP1 string
const (
	AIGatewayUpdateResponseGuardrailsPromptP1Flag  AIGatewayUpdateResponseGuardrailsPromptP1 = "FLAG"
	AIGatewayUpdateResponseGuardrailsPromptP1Block AIGatewayUpdateResponseGuardrailsPromptP1 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsPromptP1) IsKnown

type AIGatewayUpdateResponseGuardrailsPromptS1

type AIGatewayUpdateResponseGuardrailsPromptS1 string
const (
	AIGatewayUpdateResponseGuardrailsPromptS1Flag  AIGatewayUpdateResponseGuardrailsPromptS1 = "FLAG"
	AIGatewayUpdateResponseGuardrailsPromptS1Block AIGatewayUpdateResponseGuardrailsPromptS1 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsPromptS1) IsKnown

type AIGatewayUpdateResponseGuardrailsPromptS2

type AIGatewayUpdateResponseGuardrailsPromptS2 string
const (
	AIGatewayUpdateResponseGuardrailsPromptS2Flag  AIGatewayUpdateResponseGuardrailsPromptS2 = "FLAG"
	AIGatewayUpdateResponseGuardrailsPromptS2Block AIGatewayUpdateResponseGuardrailsPromptS2 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsPromptS2) IsKnown

type AIGatewayUpdateResponseGuardrailsPromptS3

type AIGatewayUpdateResponseGuardrailsPromptS3 string
const (
	AIGatewayUpdateResponseGuardrailsPromptS3Flag  AIGatewayUpdateResponseGuardrailsPromptS3 = "FLAG"
	AIGatewayUpdateResponseGuardrailsPromptS3Block AIGatewayUpdateResponseGuardrailsPromptS3 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsPromptS3) IsKnown

type AIGatewayUpdateResponseGuardrailsPromptS4

type AIGatewayUpdateResponseGuardrailsPromptS4 string
const (
	AIGatewayUpdateResponseGuardrailsPromptS4Flag  AIGatewayUpdateResponseGuardrailsPromptS4 = "FLAG"
	AIGatewayUpdateResponseGuardrailsPromptS4Block AIGatewayUpdateResponseGuardrailsPromptS4 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsPromptS4) IsKnown

type AIGatewayUpdateResponseGuardrailsPromptS5

type AIGatewayUpdateResponseGuardrailsPromptS5 string
const (
	AIGatewayUpdateResponseGuardrailsPromptS5Flag  AIGatewayUpdateResponseGuardrailsPromptS5 = "FLAG"
	AIGatewayUpdateResponseGuardrailsPromptS5Block AIGatewayUpdateResponseGuardrailsPromptS5 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsPromptS5) IsKnown

type AIGatewayUpdateResponseGuardrailsPromptS6

type AIGatewayUpdateResponseGuardrailsPromptS6 string
const (
	AIGatewayUpdateResponseGuardrailsPromptS6Flag  AIGatewayUpdateResponseGuardrailsPromptS6 = "FLAG"
	AIGatewayUpdateResponseGuardrailsPromptS6Block AIGatewayUpdateResponseGuardrailsPromptS6 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsPromptS6) IsKnown

type AIGatewayUpdateResponseGuardrailsPromptS7

type AIGatewayUpdateResponseGuardrailsPromptS7 string
const (
	AIGatewayUpdateResponseGuardrailsPromptS7Flag  AIGatewayUpdateResponseGuardrailsPromptS7 = "FLAG"
	AIGatewayUpdateResponseGuardrailsPromptS7Block AIGatewayUpdateResponseGuardrailsPromptS7 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsPromptS7) IsKnown

type AIGatewayUpdateResponseGuardrailsPromptS8

type AIGatewayUpdateResponseGuardrailsPromptS8 string
const (
	AIGatewayUpdateResponseGuardrailsPromptS8Flag  AIGatewayUpdateResponseGuardrailsPromptS8 = "FLAG"
	AIGatewayUpdateResponseGuardrailsPromptS8Block AIGatewayUpdateResponseGuardrailsPromptS8 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsPromptS8) IsKnown

type AIGatewayUpdateResponseGuardrailsPromptS9

type AIGatewayUpdateResponseGuardrailsPromptS9 string
const (
	AIGatewayUpdateResponseGuardrailsPromptS9Flag  AIGatewayUpdateResponseGuardrailsPromptS9 = "FLAG"
	AIGatewayUpdateResponseGuardrailsPromptS9Block AIGatewayUpdateResponseGuardrailsPromptS9 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsPromptS9) IsKnown

type AIGatewayUpdateResponseGuardrailsPromptS10

type AIGatewayUpdateResponseGuardrailsPromptS10 string
const (
	AIGatewayUpdateResponseGuardrailsPromptS10Flag  AIGatewayUpdateResponseGuardrailsPromptS10 = "FLAG"
	AIGatewayUpdateResponseGuardrailsPromptS10Block AIGatewayUpdateResponseGuardrailsPromptS10 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsPromptS10) IsKnown

type AIGatewayUpdateResponseGuardrailsPromptS11

type AIGatewayUpdateResponseGuardrailsPromptS11 string
const (
	AIGatewayUpdateResponseGuardrailsPromptS11Flag  AIGatewayUpdateResponseGuardrailsPromptS11 = "FLAG"
	AIGatewayUpdateResponseGuardrailsPromptS11Block AIGatewayUpdateResponseGuardrailsPromptS11 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsPromptS11) IsKnown

type AIGatewayUpdateResponseGuardrailsPromptS12

type AIGatewayUpdateResponseGuardrailsPromptS12 string
const (
	AIGatewayUpdateResponseGuardrailsPromptS12Flag  AIGatewayUpdateResponseGuardrailsPromptS12 = "FLAG"
	AIGatewayUpdateResponseGuardrailsPromptS12Block AIGatewayUpdateResponseGuardrailsPromptS12 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsPromptS12) IsKnown

type AIGatewayUpdateResponseGuardrailsPromptS13

type AIGatewayUpdateResponseGuardrailsPromptS13 string
const (
	AIGatewayUpdateResponseGuardrailsPromptS13Flag  AIGatewayUpdateResponseGuardrailsPromptS13 = "FLAG"
	AIGatewayUpdateResponseGuardrailsPromptS13Block AIGatewayUpdateResponseGuardrailsPromptS13 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsPromptS13) IsKnown

type AIGatewayUpdateResponseGuardrailsResponseP1

type AIGatewayUpdateResponseGuardrailsResponseP1 string
const (
	AIGatewayUpdateResponseGuardrailsResponseP1Flag  AIGatewayUpdateResponseGuardrailsResponseP1 = "FLAG"
	AIGatewayUpdateResponseGuardrailsResponseP1Block AIGatewayUpdateResponseGuardrailsResponseP1 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsResponseP1) IsKnown

type AIGatewayUpdateResponseGuardrailsResponseS1

type AIGatewayUpdateResponseGuardrailsResponseS1 string
const (
	AIGatewayUpdateResponseGuardrailsResponseS1Flag  AIGatewayUpdateResponseGuardrailsResponseS1 = "FLAG"
	AIGatewayUpdateResponseGuardrailsResponseS1Block AIGatewayUpdateResponseGuardrailsResponseS1 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsResponseS1) IsKnown

type AIGatewayUpdateResponseGuardrailsResponseS2

type AIGatewayUpdateResponseGuardrailsResponseS2 string
const (
	AIGatewayUpdateResponseGuardrailsResponseS2Flag  AIGatewayUpdateResponseGuardrailsResponseS2 = "FLAG"
	AIGatewayUpdateResponseGuardrailsResponseS2Block AIGatewayUpdateResponseGuardrailsResponseS2 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsResponseS2) IsKnown

type AIGatewayUpdateResponseGuardrailsResponseS3

type AIGatewayUpdateResponseGuardrailsResponseS3 string
const (
	AIGatewayUpdateResponseGuardrailsResponseS3Flag  AIGatewayUpdateResponseGuardrailsResponseS3 = "FLAG"
	AIGatewayUpdateResponseGuardrailsResponseS3Block AIGatewayUpdateResponseGuardrailsResponseS3 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsResponseS3) IsKnown

type AIGatewayUpdateResponseGuardrailsResponseS4

type AIGatewayUpdateResponseGuardrailsResponseS4 string
const (
	AIGatewayUpdateResponseGuardrailsResponseS4Flag  AIGatewayUpdateResponseGuardrailsResponseS4 = "FLAG"
	AIGatewayUpdateResponseGuardrailsResponseS4Block AIGatewayUpdateResponseGuardrailsResponseS4 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsResponseS4) IsKnown

type AIGatewayUpdateResponseGuardrailsResponseS5

type AIGatewayUpdateResponseGuardrailsResponseS5 string
const (
	AIGatewayUpdateResponseGuardrailsResponseS5Flag  AIGatewayUpdateResponseGuardrailsResponseS5 = "FLAG"
	AIGatewayUpdateResponseGuardrailsResponseS5Block AIGatewayUpdateResponseGuardrailsResponseS5 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsResponseS5) IsKnown

type AIGatewayUpdateResponseGuardrailsResponseS6

type AIGatewayUpdateResponseGuardrailsResponseS6 string
const (
	AIGatewayUpdateResponseGuardrailsResponseS6Flag  AIGatewayUpdateResponseGuardrailsResponseS6 = "FLAG"
	AIGatewayUpdateResponseGuardrailsResponseS6Block AIGatewayUpdateResponseGuardrailsResponseS6 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsResponseS6) IsKnown

type AIGatewayUpdateResponseGuardrailsResponseS7

type AIGatewayUpdateResponseGuardrailsResponseS7 string
const (
	AIGatewayUpdateResponseGuardrailsResponseS7Flag  AIGatewayUpdateResponseGuardrailsResponseS7 = "FLAG"
	AIGatewayUpdateResponseGuardrailsResponseS7Block AIGatewayUpdateResponseGuardrailsResponseS7 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsResponseS7) IsKnown

type AIGatewayUpdateResponseGuardrailsResponseS8

type AIGatewayUpdateResponseGuardrailsResponseS8 string
const (
	AIGatewayUpdateResponseGuardrailsResponseS8Flag  AIGatewayUpdateResponseGuardrailsResponseS8 = "FLAG"
	AIGatewayUpdateResponseGuardrailsResponseS8Block AIGatewayUpdateResponseGuardrailsResponseS8 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsResponseS8) IsKnown

type AIGatewayUpdateResponseGuardrailsResponseS9

type AIGatewayUpdateResponseGuardrailsResponseS9 string
const (
	AIGatewayUpdateResponseGuardrailsResponseS9Flag  AIGatewayUpdateResponseGuardrailsResponseS9 = "FLAG"
	AIGatewayUpdateResponseGuardrailsResponseS9Block AIGatewayUpdateResponseGuardrailsResponseS9 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsResponseS9) IsKnown

type AIGatewayUpdateResponseGuardrailsResponseS10

type AIGatewayUpdateResponseGuardrailsResponseS10 string
const (
	AIGatewayUpdateResponseGuardrailsResponseS10Flag  AIGatewayUpdateResponseGuardrailsResponseS10 = "FLAG"
	AIGatewayUpdateResponseGuardrailsResponseS10Block AIGatewayUpdateResponseGuardrailsResponseS10 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsResponseS10) IsKnown

type AIGatewayUpdateResponseGuardrailsResponseS11

type AIGatewayUpdateResponseGuardrailsResponseS11 string
const (
	AIGatewayUpdateResponseGuardrailsResponseS11Flag  AIGatewayUpdateResponseGuardrailsResponseS11 = "FLAG"
	AIGatewayUpdateResponseGuardrailsResponseS11Block AIGatewayUpdateResponseGuardrailsResponseS11 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsResponseS11) IsKnown

type AIGatewayUpdateResponseGuardrailsResponseS12

type AIGatewayUpdateResponseGuardrailsResponseS12 string
const (
	AIGatewayUpdateResponseGuardrailsResponseS12Flag  AIGatewayUpdateResponseGuardrailsResponseS12 = "FLAG"
	AIGatewayUpdateResponseGuardrailsResponseS12Block AIGatewayUpdateResponseGuardrailsResponseS12 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsResponseS12) IsKnown

type AIGatewayUpdateResponseGuardrailsResponseS13

type AIGatewayUpdateResponseGuardrailsResponseS13 string
const (
	AIGatewayUpdateResponseGuardrailsResponseS13Flag  AIGatewayUpdateResponseGuardrailsResponseS13 = "FLAG"
	AIGatewayUpdateResponseGuardrailsResponseS13Block AIGatewayUpdateResponseGuardrailsResponseS13 = "BLOCK"
)

func (AIGatewayUpdateResponseGuardrailsResponseS13) IsKnown

type AIGatewayUpdateResponseLogManagementStrategy

type AIGatewayUpdateResponseLogManagementStrategy string
const (
	AIGatewayUpdateResponseLogManagementStrategyStopInserting AIGatewayUpdateResponseLogManagementStrategy = "STOP_INSERTING"
	AIGatewayUpdateResponseLogManagementStrategyDeleteOldest  AIGatewayUpdateResponseLogManagementStrategy = "DELETE_OLDEST"
)

func (AIGatewayUpdateResponseLogManagementStrategy) IsKnown

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

type AIGatewayUpdateResponseRateLimitingTechnique

type AIGatewayUpdateResponseRateLimitingTechnique string
const (
	AIGatewayUpdateResponseRateLimitingTechniqueFixed   AIGatewayUpdateResponseRateLimitingTechnique = "fixed"
	AIGatewayUpdateResponseRateLimitingTechniqueSliding AIGatewayUpdateResponseRateLimitingTechnique = "sliding"
)

func (AIGatewayUpdateResponseRateLimitingTechnique) IsKnown

type AIGatewayUpdateResponseRetryBackoff

type AIGatewayUpdateResponseRetryBackoff string

Backoff strategy for retry delays

const (
	AIGatewayUpdateResponseRetryBackoffConstant    AIGatewayUpdateResponseRetryBackoff = "constant"
	AIGatewayUpdateResponseRetryBackoffLinear      AIGatewayUpdateResponseRetryBackoff = "linear"
	AIGatewayUpdateResponseRetryBackoffExponential AIGatewayUpdateResponseRetryBackoff = "exponential"
)

func (AIGatewayUpdateResponseRetryBackoff) IsKnown

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

type ASN

type ASN = shared.ASN

This is an alias to an internal type.

type ASNParam

type ASNParam = shared.ASNParam

This is an alias to an internal type.

type AuditLog

type AuditLog = shared.AuditLog

This is an alias to an internal type.

type AuditLogAction

type AuditLogAction = shared.AuditLogAction

This is an alias to an internal type.

type AuditLogActor

type AuditLogActor = shared.AuditLogActor

This is an alias to an internal type.

type AuditLogActorType

type AuditLogActorType = shared.AuditLogActorType

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

This is an alias to an internal type.

type AuditLogOwner

type AuditLogOwner = shared.AuditLogOwner

This is an alias to an internal type.

type AuditLogResource

type AuditLogResource = shared.AuditLogResource

This is an alias to an internal type.

type BillingCreditBalanceParams

type BillingCreditBalanceParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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

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

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

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 BillingInvoicePreviewParams

type BillingInvoicePreviewParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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

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

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

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

Retrieve the current credit balance, payment method info, and top-up configuration.

func (*BillingService) InvoiceHistory

Retrieve a list of past invoices with pagination, optionally filtered by type.

func (*BillingService) InvoicePreview

Retrieve a preview of the upcoming invoice including line items and tax.

func (*BillingService) UsageHistory

Retrieve aggregated usage meter event summaries for the given time range.

type BillingSpendingLimitDeleteParams

type BillingSpendingLimitDeleteParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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

type BillingSpendingLimitGetParams

type BillingSpendingLimitGetParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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

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

type BillingSpendingLimitNewParamsStrategy

type BillingSpendingLimitNewParamsStrategy string

Spending limit strategy.

const (
	BillingSpendingLimitNewParamsStrategyFixed   BillingSpendingLimitNewParamsStrategy = "fixed"
	BillingSpendingLimitNewParamsStrategySliding BillingSpendingLimitNewParamsStrategy = "sliding"
)

func (BillingSpendingLimitNewParamsStrategy) IsKnown

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

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

Remove the spending limit for the account.

func (*BillingSpendingLimitService) Get

Retrieve the current spending limit configuration for the account.

func (*BillingSpendingLimitService) New

Configure a spending limit with amount, strategy, and duration.

type BillingTopupConfigDeleteParams

type BillingTopupConfigDeleteParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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

type BillingTopupConfigGetParams

type BillingTopupConfigGetParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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

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

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

Remove the auto top-up configuration for the account.

func (*BillingTopupConfigService) Get

Retrieve the current auto top-up threshold, amount, and any error state.

func (*BillingTopupConfigService) New

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

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

Create a credit top-up via Stripe PaymentIntent for the given account.

func (*BillingTopupService) Status

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

type BillingTopupStatusResponseStatus

type BillingTopupStatusResponseStatus string
const (
	BillingTopupStatusResponseStatusCompleted BillingTopupStatusResponseStatus = "completed"
	BillingTopupStatusResponseStatusPending   BillingTopupStatusResponseStatus = "pending"
)

func (BillingTopupStatusResponseStatus) IsKnown

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

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

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 DatasetDeleteParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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

type DatasetDeleteResponseFiltersOperator

type DatasetDeleteResponseFiltersOperator string
const (
	DatasetDeleteResponseFiltersOperatorEq       DatasetDeleteResponseFiltersOperator = "eq"
	DatasetDeleteResponseFiltersOperatorContains DatasetDeleteResponseFiltersOperator = "contains"
	DatasetDeleteResponseFiltersOperatorLt       DatasetDeleteResponseFiltersOperator = "lt"
	DatasetDeleteResponseFiltersOperatorGt       DatasetDeleteResponseFiltersOperator = "gt"
)

func (DatasetDeleteResponseFiltersOperator) IsKnown

type DatasetDeleteResponseFiltersValueUnion

type DatasetDeleteResponseFiltersValueUnion interface {
	ImplementsDatasetDeleteResponseFiltersValueUnion()
}

Union satisfied by shared.UnionString, shared.UnionFloat or shared.UnionBool.

type DatasetGetParams

type DatasetGetParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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

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

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

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

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

Lists all AI Gateway evaluator types configured for the account.

func (*DatasetService) ListAutoPaging

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

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

type DatasetUpdateResponseFiltersOperator

type DatasetUpdateResponseFiltersOperator string
const (
	DatasetUpdateResponseFiltersOperatorEq       DatasetUpdateResponseFiltersOperator = "eq"
	DatasetUpdateResponseFiltersOperatorContains DatasetUpdateResponseFiltersOperator = "contains"
	DatasetUpdateResponseFiltersOperatorLt       DatasetUpdateResponseFiltersOperator = "lt"
	DatasetUpdateResponseFiltersOperatorGt       DatasetUpdateResponseFiltersOperator = "gt"
)

func (DatasetUpdateResponseFiltersOperator) IsKnown

type DatasetUpdateResponseFiltersValueUnion

type DatasetUpdateResponseFiltersValueUnion interface {
	ImplementsDatasetUpdateResponseFiltersValueUnion()
}

Union satisfied by shared.UnionString, shared.UnionFloat or shared.UnionBool.

type DynamicRoutingDeleteParams

type DynamicRoutingDeleteParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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) 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

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

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 DynamicRoutingGetParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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) 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

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

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

type DynamicRoutingGetVersionParams

type DynamicRoutingGetVersionParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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

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) 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

type DynamicRoutingGetVersionResponseElementsObjectType

type DynamicRoutingGetVersionResponseElementsObjectType string
const (
	DynamicRoutingGetVersionResponseElementsObjectTypeStart DynamicRoutingGetVersionResponseElementsObjectType = "start"
)

func (DynamicRoutingGetVersionResponseElementsObjectType) IsKnown

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

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 DynamicRoutingListDeploymentsParams

type DynamicRoutingListDeploymentsParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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) 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

type DynamicRoutingListResponseDataRoutesElementsObjectOutputsNext

type DynamicRoutingListResponseDataRoutesElementsObjectOutputsNext struct {
	ElementID string                                                            `json:"elementId" api:"required"`
	JSON      dynamicRoutingListResponseDataRoutesElementsObjectOutputsNextJSON `json:"-"`
}

func (*DynamicRoutingListResponseDataRoutesElementsObjectOutputsNext) UnmarshalJSON

type DynamicRoutingListResponseDataRoutesElementsObjectType

type DynamicRoutingListResponseDataRoutesElementsObjectType string
const (
	DynamicRoutingListResponseDataRoutesElementsObjectTypeStart DynamicRoutingListResponseDataRoutesElementsObjectType = "start"
)

func (DynamicRoutingListResponseDataRoutesElementsObjectType) IsKnown

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

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

type DynamicRoutingListVersionsParams

type DynamicRoutingListVersionsParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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

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) 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

type DynamicRoutingNewDeploymentResponseElementsObjectOutputsNext

type DynamicRoutingNewDeploymentResponseElementsObjectOutputsNext struct {
	ElementID string                                                           `json:"elementId" api:"required"`
	JSON      dynamicRoutingNewDeploymentResponseElementsObjectOutputsNextJSON `json:"-"`
}

func (*DynamicRoutingNewDeploymentResponseElementsObjectOutputsNext) UnmarshalJSON

type DynamicRoutingNewDeploymentResponseElementsObjectType

type DynamicRoutingNewDeploymentResponseElementsObjectType string
const (
	DynamicRoutingNewDeploymentResponseElementsObjectTypeStart DynamicRoutingNewDeploymentResponseElementsObjectType = "start"
)

func (DynamicRoutingNewDeploymentResponseElementsObjectType) IsKnown

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

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 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

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

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) 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

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

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

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 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

type DynamicRoutingNewVersionParamsElementsObjectType

type DynamicRoutingNewVersionParamsElementsObjectType string
const (
	DynamicRoutingNewVersionParamsElementsObjectTypeStart DynamicRoutingNewVersionParamsElementsObjectType = "start"
)

func (DynamicRoutingNewVersionParamsElementsObjectType) IsKnown

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

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) 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

type DynamicRoutingNewVersionResponseElementsObjectType

type DynamicRoutingNewVersionResponseElementsObjectType string
const (
	DynamicRoutingNewVersionResponseElementsObjectTypeStart DynamicRoutingNewVersionResponseElementsObjectType = "start"
)

func (DynamicRoutingNewVersionResponseElementsObjectType) IsKnown

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

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

Delete an AI Gateway Dynamic Route.

func (*DynamicRoutingService) Get

Get an AI Gateway Dynamic Route.

func (*DynamicRoutingService) GetVersion

Get an AI Gateway Dynamic Route Version.

func (*DynamicRoutingService) List

List all AI Gateway Dynamic Routes.

func (*DynamicRoutingService) ListDeployments

List all AI Gateway Dynamic Route Deployments.

func (*DynamicRoutingService) ListVersions

List all AI Gateway Dynamic Route Versions.

func (*DynamicRoutingService) New

Create a new AI Gateway Dynamic Route.

func (*DynamicRoutingService) NewDeployment

Create a new AI Gateway Dynamic Route Deployment.

func (*DynamicRoutingService) NewVersion

Create a new AI Gateway Dynamic Route Version.

func (*DynamicRoutingService) Update

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) 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

type DynamicRoutingUpdateResponseRouteElementsObjectType

type DynamicRoutingUpdateResponseRouteElementsObjectType string
const (
	DynamicRoutingUpdateResponseRouteElementsObjectTypeStart DynamicRoutingUpdateResponseRouteElementsObjectType = "start"
)

func (DynamicRoutingUpdateResponseRouteElementsObjectType) IsKnown

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

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

type Error

type Error = apierror.Error

type ErrorData

type ErrorData = shared.ErrorData

This is an alias to an internal type.

type ErrorDataSource

type ErrorDataSource = shared.ErrorDataSource

This is an alias to an internal type.

type EvaluationDeleteParams

type EvaluationDeleteParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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

type EvaluationDeleteResponseDatasetsFiltersOperator

type EvaluationDeleteResponseDatasetsFiltersOperator string
const (
	EvaluationDeleteResponseDatasetsFiltersOperatorEq       EvaluationDeleteResponseDatasetsFiltersOperator = "eq"
	EvaluationDeleteResponseDatasetsFiltersOperatorContains EvaluationDeleteResponseDatasetsFiltersOperator = "contains"
	EvaluationDeleteResponseDatasetsFiltersOperatorLt       EvaluationDeleteResponseDatasetsFiltersOperator = "lt"
	EvaluationDeleteResponseDatasetsFiltersOperatorGt       EvaluationDeleteResponseDatasetsFiltersOperator = "gt"
)

func (EvaluationDeleteResponseDatasetsFiltersOperator) IsKnown

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 EvaluationGetParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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

type EvaluationGetResponseDatasetsFiltersOperator

type EvaluationGetResponseDatasetsFiltersOperator string
const (
	EvaluationGetResponseDatasetsFiltersOperatorEq       EvaluationGetResponseDatasetsFiltersOperator = "eq"
	EvaluationGetResponseDatasetsFiltersOperatorContains EvaluationGetResponseDatasetsFiltersOperator = "contains"
	EvaluationGetResponseDatasetsFiltersOperatorLt       EvaluationGetResponseDatasetsFiltersOperator = "lt"
	EvaluationGetResponseDatasetsFiltersOperatorGt       EvaluationGetResponseDatasetsFiltersOperator = "gt"
)

func (EvaluationGetResponseDatasetsFiltersOperator) IsKnown

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

type EvaluationListResponseDatasetsFiltersOperator

type EvaluationListResponseDatasetsFiltersOperator string
const (
	EvaluationListResponseDatasetsFiltersOperatorEq       EvaluationListResponseDatasetsFiltersOperator = "eq"
	EvaluationListResponseDatasetsFiltersOperatorContains EvaluationListResponseDatasetsFiltersOperator = "contains"
	EvaluationListResponseDatasetsFiltersOperatorLt       EvaluationListResponseDatasetsFiltersOperator = "lt"
	EvaluationListResponseDatasetsFiltersOperatorGt       EvaluationListResponseDatasetsFiltersOperator = "gt"
)

func (EvaluationListResponseDatasetsFiltersOperator) IsKnown

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

type EvaluationNewResponseDatasetsFiltersOperator

type EvaluationNewResponseDatasetsFiltersOperator string
const (
	EvaluationNewResponseDatasetsFiltersOperatorEq       EvaluationNewResponseDatasetsFiltersOperator = "eq"
	EvaluationNewResponseDatasetsFiltersOperatorContains EvaluationNewResponseDatasetsFiltersOperator = "contains"
	EvaluationNewResponseDatasetsFiltersOperatorLt       EvaluationNewResponseDatasetsFiltersOperator = "lt"
	EvaluationNewResponseDatasetsFiltersOperatorGt       EvaluationNewResponseDatasetsFiltersOperator = "gt"
)

func (EvaluationNewResponseDatasetsFiltersOperator) IsKnown

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

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

Lists all AI Gateway evaluator types configured for the account.

func (*EvaluationService) ListAutoPaging

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

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

List Evaluators

func (*EvaluationTypeService) ListAutoPaging

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

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

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 LogGetParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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 LogRequestParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type LogRequestResponse

type LogRequestResponse = interface{}

type LogResponseParams

type LogResponseParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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

List Gateway Logs

func (*LogService) ListAutoPaging

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 Member

type Member = shared.Member

This is an alias to an internal type.

type MemberPoliciesAccess

type MemberPoliciesAccess = shared.MemberPoliciesAccess

Allow or deny operations against the resources.

This is an alias to an internal type.

type MemberPoliciesPermissionGroup

type MemberPoliciesPermissionGroup = shared.MemberPoliciesPermissionGroup

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type MemberPoliciesPermissionGroupsMeta

type MemberPoliciesPermissionGroupsMeta = shared.MemberPoliciesPermissionGroupsMeta

Attributes associated to the permission group.

This is an alias to an internal type.

type MemberPoliciesResourceGroup

type MemberPoliciesResourceGroup = shared.MemberPoliciesResourceGroup

A group of scoped resources.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsMeta

type MemberPoliciesResourceGroupsMeta = shared.MemberPoliciesResourceGroupsMeta

Attributes associated to the resource group.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScope

type MemberPoliciesResourceGroupsScope = shared.MemberPoliciesResourceGroupsScope

A scope is a combination of scope objects which provides additional context.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScopeObject

type MemberPoliciesResourceGroupsScopeObject = shared.MemberPoliciesResourceGroupsScopeObject

A scope object represents any resource that can have actions applied against invite.

This is an alias to an internal type.

type MemberPolicy

type MemberPolicy = shared.MemberPolicy

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 Permission

type Permission = shared.Permission

This is an alias to an internal type.

type PermissionGrant

type PermissionGrant = shared.PermissionGrant

This is an alias to an internal type.

type PermissionGrantParam

type PermissionGrantParam = shared.PermissionGrantParam

This is an alias to an internal type.

type 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

Lists all AI Gateway evaluator types configured for the account.

func (*ProviderConfigService) ListAutoPaging

Lists all AI Gateway evaluator types configured for the account.

func (*ProviderConfigService) New

Creates a new AI Gateway.

type RatePlan

type RatePlan = shared.RatePlan

The rate plan applied to the subscription.

This is an alias to an internal type.

type RatePlanID

type RatePlanID = shared.RatePlanID

The ID of the rate plan.

This is an alias to an internal type.

type RatePlanParam

type RatePlanParam = shared.RatePlanParam

The rate plan applied to the subscription.

This is an alias to an internal type.

type ResponseInfo

type ResponseInfo = shared.ResponseInfo

This is an alias to an internal type.

type ResponseInfoSource

type ResponseInfoSource = shared.ResponseInfoSource

This is an alias to an internal type.

type Role

type Role = shared.Role

This is an alias to an internal type.

type RoleParam

type RoleParam = shared.RoleParam

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 Subscription

type Subscription = shared.Subscription

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 Token

type Token = shared.Token

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 TokenParam

type TokenParam = shared.TokenParam

This is an alias to an internal type.

type TokenPolicy

type TokenPolicy = shared.TokenPolicy

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 URLGetParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

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.

Jump to

Keyboard shortcuts

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