pipelines

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 ASN

type ASN = shared.ASN

This is an alias to an internal type.

type ASNParam

type ASNParam = shared.ASNParam

This is an alias to an internal type.

type AuditLog

type AuditLog = shared.AuditLog

This is an alias to an internal type.

type AuditLogAction

type AuditLogAction = shared.AuditLogAction

This is an alias to an internal type.

type AuditLogActor

type AuditLogActor = shared.AuditLogActor

This is an alias to an internal type.

type AuditLogActorType

type AuditLogActorType = shared.AuditLogActorType

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

This is an alias to an internal type.

type AuditLogOwner

type AuditLogOwner = shared.AuditLogOwner

This is an alias to an internal type.

type AuditLogResource

type AuditLogResource = shared.AuditLogResource

This is an alias to an internal type.

type CertificateCA

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

type PipelineDeleteParams struct {
	// Specifies the public ID of the account.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type PipelineDeleteV1Params

type PipelineDeleteV1Params struct {
	// Specifies the public ID of the account.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type PipelineDeleteV1Response

type PipelineDeleteV1Response = interface{}

type PipelineDeleteV1ResponseEnvelope

type PipelineDeleteV1ResponseEnvelope struct {
	Result PipelineDeleteV1Response `json:"result" api:"required"`
	// Indicates whether the API call was successful.
	Success bool                                 `json:"success" api:"required"`
	JSON    pipelineDeleteV1ResponseEnvelopeJSON `json:"-"`
}

func (*PipelineDeleteV1ResponseEnvelope) UnmarshalJSON

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

type PipelineGetParams

type PipelineGetParams struct {
	// Specifies the public ID of the account.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type PipelineGetResponse deprecated

type PipelineGetResponse struct {
	// Specifies the pipeline identifier.
	ID          string                         `json:"id" api:"required"`
	Destination PipelineGetResponseDestination `json:"destination" api:"required"`
	// Indicates the endpoint URL to send traffic.
	Endpoint string `json:"endpoint" api:"required"`
	// Defines the name of the pipeline.
	Name   string                      `json:"name" api:"required"`
	Source []PipelineGetResponseSource `json:"source" api:"required"`
	// Indicates the version number of last saved configuration.
	Version float64                 `json:"version" api:"required"`
	JSON    pipelineGetResponseJSON `json:"-"`
}

[DEPRECATED] Describes the configuration of a pipeline. Use the new streams/sinks/pipelines API instead.

Deprecated: deprecated

func (*PipelineGetResponse) UnmarshalJSON

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

type PipelineGetResponseDestination

type PipelineGetResponseDestination struct {
	Batch       PipelineGetResponseDestinationBatch       `json:"batch" api:"required"`
	Compression PipelineGetResponseDestinationCompression `json:"compression" api:"required"`
	// Specifies the format of data to deliver.
	Format PipelineGetResponseDestinationFormat `json:"format" api:"required"`
	Path   PipelineGetResponseDestinationPath   `json:"path" api:"required"`
	// Specifies the type of destination.
	Type PipelineGetResponseDestinationType `json:"type" api:"required"`
	JSON pipelineGetResponseDestinationJSON `json:"-"`
}

func (*PipelineGetResponseDestination) UnmarshalJSON

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

type PipelineGetResponseDestinationBatch

type PipelineGetResponseDestinationBatch struct {
	// Specifies rough maximum size of files.
	MaxBytes int64 `json:"max_bytes" api:"required"`
	// Specifies duration to wait to aggregate batches files.
	MaxDurationS float64 `json:"max_duration_s" api:"required"`
	// Specifies rough maximum number of rows per file.
	MaxRows int64                                   `json:"max_rows" api:"required"`
	JSON    pipelineGetResponseDestinationBatchJSON `json:"-"`
}

func (*PipelineGetResponseDestinationBatch) UnmarshalJSON

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

type PipelineGetResponseDestinationCompression

type PipelineGetResponseDestinationCompression struct {
	// Specifies the desired compression algorithm and format.
	Type PipelineGetResponseDestinationCompressionType `json:"type" api:"required"`
	JSON pipelineGetResponseDestinationCompressionJSON `json:"-"`
}

func (*PipelineGetResponseDestinationCompression) UnmarshalJSON

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

type PipelineGetResponseDestinationCompressionType

type PipelineGetResponseDestinationCompressionType string

Specifies the desired compression algorithm and format.

const (
	PipelineGetResponseDestinationCompressionTypeNone    PipelineGetResponseDestinationCompressionType = "none"
	PipelineGetResponseDestinationCompressionTypeGzip    PipelineGetResponseDestinationCompressionType = "gzip"
	PipelineGetResponseDestinationCompressionTypeDeflate PipelineGetResponseDestinationCompressionType = "deflate"
)

func (PipelineGetResponseDestinationCompressionType) IsKnown

type PipelineGetResponseDestinationFormat

type PipelineGetResponseDestinationFormat string

Specifies the format of data to deliver.

const (
	PipelineGetResponseDestinationFormatJson PipelineGetResponseDestinationFormat = "json"
)

func (PipelineGetResponseDestinationFormat) IsKnown

type PipelineGetResponseDestinationPath

type PipelineGetResponseDestinationPath struct {
	// Specifies the R2 Bucket to store files.
	Bucket string `json:"bucket" api:"required"`
	// Specifies the name pattern to for individual data files.
	Filename string `json:"filename"`
	// Specifies the name pattern for directory.
	Filepath string `json:"filepath"`
	// Specifies the base directory within the bucket.
	Prefix string                                 `json:"prefix"`
	JSON   pipelineGetResponseDestinationPathJSON `json:"-"`
}

func (*PipelineGetResponseDestinationPath) UnmarshalJSON

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

type PipelineGetResponseDestinationType

type PipelineGetResponseDestinationType string

Specifies the type of destination.

const (
	PipelineGetResponseDestinationTypeR2 PipelineGetResponseDestinationType = "r2"
)

func (PipelineGetResponseDestinationType) IsKnown

type PipelineGetResponseEnvelope

type PipelineGetResponseEnvelope struct {
	// [DEPRECATED] Describes the configuration of a pipeline. Use the new
	// streams/sinks/pipelines API instead.
	//
	// Deprecated: deprecated
	Result PipelineGetResponse `json:"result" api:"required"`
	// Indicates whether the API call was successful.
	Success bool                            `json:"success" api:"required"`
	JSON    pipelineGetResponseEnvelopeJSON `json:"-"`
}

func (*PipelineGetResponseEnvelope) UnmarshalJSON

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

type PipelineGetResponseSource

type PipelineGetResponseSource struct {
	// Specifies the format of source data.
	Format PipelineGetResponseSourceFormat `json:"format" api:"required"`
	Type   string                          `json:"type" api:"required"`
	// Specifies whether authentication is required to send to this pipeline via HTTP.
	Authentication bool `json:"authentication"`
	// This field can have the runtime type of
	// [PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS].
	CORS interface{}                   `json:"cors"`
	JSON pipelineGetResponseSourceJSON `json:"-"`
	// contains filtered or unexported fields
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

func (PipelineGetResponseSource) AsUnion

AsUnion returns a PipelineGetResponseSourceUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource, PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource.

func (*PipelineGetResponseSource) UnmarshalJSON

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

type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource deprecated

type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource struct {
	// Specifies the format of source data.
	Format PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat `json:"format" api:"required"`
	Type   string                                                                          `json:"type" api:"required"`
	JSON   pipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceJSON   `json:"-"`
}

[DEPRECATED] Worker binding source configuration. Use the new streams API instead.

Deprecated: deprecated

func (*PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource) UnmarshalJSON

type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat

type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat string

Specifies the format of source data.

const (
	PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormatJson PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat = "json"
)

func (PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat) IsKnown

type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource deprecated

type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource struct {
	// Specifies the format of source data.
	Format PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat `json:"format" api:"required"`
	Type   string                                                                       `json:"type" api:"required"`
	// Specifies whether authentication is required to send to this pipeline via HTTP.
	Authentication bool                                                                       `json:"authentication"`
	CORS           PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS `json:"cors"`
	JSON           pipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceJSON `json:"-"`
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

Deprecated: deprecated

func (*PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource) UnmarshalJSON

type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS

type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS struct {
	// Specifies allowed origins to allow Cross Origin HTTP Requests.
	Origins []string                                                                       `json:"origins"`
	JSON    pipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORSJSON `json:"-"`
}

func (*PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) UnmarshalJSON

type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat

type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat string

Specifies the format of source data.

const (
	PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormatJson PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat = "json"
)

func (PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat) IsKnown

type PipelineGetResponseSourceFormat

type PipelineGetResponseSourceFormat string

Specifies the format of source data.

const (
	PipelineGetResponseSourceFormatJson PipelineGetResponseSourceFormat = "json"
)

func (PipelineGetResponseSourceFormat) IsKnown

type PipelineGetResponseSourceUnion

type PipelineGetResponseSourceUnion interface {
	// contains filtered or unexported methods
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

Union satisfied by PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource or PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource.

type PipelineGetV1Params

type PipelineGetV1Params struct {
	// Specifies the public ID of the account.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type PipelineGetV1Response

type PipelineGetV1Response struct {
	// Indicates a unique identifier for this pipeline.
	ID         string `json:"id" api:"required"`
	CreatedAt  string `json:"created_at" api:"required"`
	ModifiedAt string `json:"modified_at" api:"required"`
	// Indicates the name of the Pipeline.
	Name string `json:"name" api:"required"`
	// Specifies SQL for the Pipeline processing flow.
	Sql string `json:"sql" api:"required"`
	// Indicates the current status of the Pipeline.
	Status string `json:"status" api:"required"`
	// List of streams and sinks used by this pipeline.
	Tables []PipelineGetV1ResponseTable `json:"tables" api:"required"`
	// Indicates the reason for the failure of the Pipeline.
	FailureReason string                    `json:"failure_reason"`
	JSON          pipelineGetV1ResponseJSON `json:"-"`
}

func (*PipelineGetV1Response) UnmarshalJSON

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

type PipelineGetV1ResponseEnvelope

type PipelineGetV1ResponseEnvelope struct {
	Result PipelineGetV1Response `json:"result" api:"required"`
	// Indicates whether the API call was successful.
	Success bool                              `json:"success" api:"required"`
	JSON    pipelineGetV1ResponseEnvelopeJSON `json:"-"`
}

func (*PipelineGetV1ResponseEnvelope) UnmarshalJSON

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

type PipelineGetV1ResponseTable

type PipelineGetV1ResponseTable struct {
	// Unique identifier for the connection (stream or sink).
	ID string `json:"id" api:"required"`
	// Latest available version of the connection.
	Latest int64 `json:"latest" api:"required"`
	// Name of the connection.
	Name string `json:"name" api:"required"`
	// Type of the connection.
	Type PipelineGetV1ResponseTablesType `json:"type" api:"required"`
	// Current version of the connection used by this pipeline.
	Version int64                          `json:"version" api:"required"`
	JSON    pipelineGetV1ResponseTableJSON `json:"-"`
}

func (*PipelineGetV1ResponseTable) UnmarshalJSON

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

type PipelineGetV1ResponseTablesType

type PipelineGetV1ResponseTablesType string

Type of the connection.

const (
	PipelineGetV1ResponseTablesTypeStream PipelineGetV1ResponseTablesType = "stream"
	PipelineGetV1ResponseTablesTypeSink   PipelineGetV1ResponseTablesType = "sink"
)

func (PipelineGetV1ResponseTablesType) IsKnown

type PipelineListParams

type PipelineListParams struct {
	// Specifies the public ID of the account.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Specifies which page to retrieve.
	Page param.Field[string] `query:"page"`
	// Specifies the number of pipelines per page.
	PerPage param.Field[string] `query:"per_page"`
	// Specifies the prefix of pipeline name to search.
	Search param.Field[string] `query:"search"`
}

func (PipelineListParams) URLQuery

func (r PipelineListParams) URLQuery() (v url.Values)

URLQuery serializes PipelineListParams's query parameters as `url.Values`.

type PipelineListResponse

type PipelineListResponse struct {
	ResultInfo PipelineListResponseResultInfo `json:"result_info" api:"required"`
	Results    []PipelineListResponseResult   `json:"results" api:"required"`
	// Indicates whether the API call was successful.
	Success bool                     `json:"success" api:"required"`
	JSON    pipelineListResponseJSON `json:"-"`
}

func (*PipelineListResponse) UnmarshalJSON

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

type PipelineListResponseResult deprecated

type PipelineListResponseResult struct {
	// Specifies the pipeline identifier.
	ID          string                                 `json:"id" api:"required"`
	Destination PipelineListResponseResultsDestination `json:"destination" api:"required"`
	// Indicates the endpoint URL to send traffic.
	Endpoint string `json:"endpoint" api:"required"`
	// Defines the name of the pipeline.
	Name   string                              `json:"name" api:"required"`
	Source []PipelineListResponseResultsSource `json:"source" api:"required"`
	// Indicates the version number of last saved configuration.
	Version float64                        `json:"version" api:"required"`
	JSON    pipelineListResponseResultJSON `json:"-"`
}

[DEPRECATED] Describes the configuration of a pipeline. Use the new streams/sinks/pipelines API instead.

Deprecated: deprecated

func (*PipelineListResponseResult) UnmarshalJSON

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

type PipelineListResponseResultInfo

type PipelineListResponseResultInfo struct {
	// Indicates the number of items on current page.
	Count float64 `json:"count" api:"required"`
	// Indicates the current page number.
	Page float64 `json:"page" api:"required"`
	// Indicates the number of items per page.
	PerPage float64 `json:"per_page" api:"required"`
	// Indicates the total number of items.
	TotalCount float64                            `json:"total_count" api:"required"`
	JSON       pipelineListResponseResultInfoJSON `json:"-"`
}

func (*PipelineListResponseResultInfo) UnmarshalJSON

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

type PipelineListResponseResultsDestination

type PipelineListResponseResultsDestination struct {
	Batch       PipelineListResponseResultsDestinationBatch       `json:"batch" api:"required"`
	Compression PipelineListResponseResultsDestinationCompression `json:"compression" api:"required"`
	// Specifies the format of data to deliver.
	Format PipelineListResponseResultsDestinationFormat `json:"format" api:"required"`
	Path   PipelineListResponseResultsDestinationPath   `json:"path" api:"required"`
	// Specifies the type of destination.
	Type PipelineListResponseResultsDestinationType `json:"type" api:"required"`
	JSON pipelineListResponseResultsDestinationJSON `json:"-"`
}

func (*PipelineListResponseResultsDestination) UnmarshalJSON

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

type PipelineListResponseResultsDestinationBatch

type PipelineListResponseResultsDestinationBatch struct {
	// Specifies rough maximum size of files.
	MaxBytes int64 `json:"max_bytes" api:"required"`
	// Specifies duration to wait to aggregate batches files.
	MaxDurationS float64 `json:"max_duration_s" api:"required"`
	// Specifies rough maximum number of rows per file.
	MaxRows int64                                           `json:"max_rows" api:"required"`
	JSON    pipelineListResponseResultsDestinationBatchJSON `json:"-"`
}

func (*PipelineListResponseResultsDestinationBatch) UnmarshalJSON

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

type PipelineListResponseResultsDestinationCompression

type PipelineListResponseResultsDestinationCompression struct {
	// Specifies the desired compression algorithm and format.
	Type PipelineListResponseResultsDestinationCompressionType `json:"type" api:"required"`
	JSON pipelineListResponseResultsDestinationCompressionJSON `json:"-"`
}

func (*PipelineListResponseResultsDestinationCompression) UnmarshalJSON

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

type PipelineListResponseResultsDestinationCompressionType

type PipelineListResponseResultsDestinationCompressionType string

Specifies the desired compression algorithm and format.

const (
	PipelineListResponseResultsDestinationCompressionTypeNone    PipelineListResponseResultsDestinationCompressionType = "none"
	PipelineListResponseResultsDestinationCompressionTypeGzip    PipelineListResponseResultsDestinationCompressionType = "gzip"
	PipelineListResponseResultsDestinationCompressionTypeDeflate PipelineListResponseResultsDestinationCompressionType = "deflate"
)

func (PipelineListResponseResultsDestinationCompressionType) IsKnown

type PipelineListResponseResultsDestinationFormat

type PipelineListResponseResultsDestinationFormat string

Specifies the format of data to deliver.

const (
	PipelineListResponseResultsDestinationFormatJson PipelineListResponseResultsDestinationFormat = "json"
)

func (PipelineListResponseResultsDestinationFormat) IsKnown

type PipelineListResponseResultsDestinationPath

type PipelineListResponseResultsDestinationPath struct {
	// Specifies the R2 Bucket to store files.
	Bucket string `json:"bucket" api:"required"`
	// Specifies the name pattern to for individual data files.
	Filename string `json:"filename"`
	// Specifies the name pattern for directory.
	Filepath string `json:"filepath"`
	// Specifies the base directory within the bucket.
	Prefix string                                         `json:"prefix"`
	JSON   pipelineListResponseResultsDestinationPathJSON `json:"-"`
}

func (*PipelineListResponseResultsDestinationPath) UnmarshalJSON

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

type PipelineListResponseResultsDestinationType

type PipelineListResponseResultsDestinationType string

Specifies the type of destination.

const (
	PipelineListResponseResultsDestinationTypeR2 PipelineListResponseResultsDestinationType = "r2"
)

func (PipelineListResponseResultsDestinationType) IsKnown

type PipelineListResponseResultsSource

type PipelineListResponseResultsSource struct {
	// Specifies the format of source data.
	Format PipelineListResponseResultsSourceFormat `json:"format" api:"required"`
	Type   string                                  `json:"type" api:"required"`
	// Specifies whether authentication is required to send to this pipeline via HTTP.
	Authentication bool `json:"authentication"`
	// This field can have the runtime type of
	// [PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS].
	CORS interface{}                           `json:"cors"`
	JSON pipelineListResponseResultsSourceJSON `json:"-"`
	// contains filtered or unexported fields
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

func (PipelineListResponseResultsSource) AsUnion

AsUnion returns a PipelineListResponseResultsSourceUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSource, PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSource.

func (*PipelineListResponseResultsSource) UnmarshalJSON

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

type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSource deprecated

type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSource struct {
	// Specifies the format of source data.
	Format PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat `json:"format" api:"required"`
	Type   string                                                                                  `json:"type" api:"required"`
	JSON   pipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSourceJSON   `json:"-"`
}

[DEPRECATED] Worker binding source configuration. Use the new streams API instead.

Deprecated: deprecated

func (*PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSource) UnmarshalJSON

type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat

type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat string

Specifies the format of source data.

const (
	PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormatJson PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat = "json"
)

func (PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat) IsKnown

type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSource deprecated

type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSource struct {
	// Specifies the format of source data.
	Format PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat `json:"format" api:"required"`
	Type   string                                                                               `json:"type" api:"required"`
	// Specifies whether authentication is required to send to this pipeline via HTTP.
	Authentication bool                                                                               `json:"authentication"`
	CORS           PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS `json:"cors"`
	JSON           pipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceJSON `json:"-"`
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

Deprecated: deprecated

func (*PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSource) UnmarshalJSON

type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS

type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS struct {
	// Specifies allowed origins to allow Cross Origin HTTP Requests.
	Origins []string                                                                               `json:"origins"`
	JSON    pipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORSJSON `json:"-"`
}

func (*PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) UnmarshalJSON

type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat

type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat string

Specifies the format of source data.

const (
	PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormatJson PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat = "json"
)

func (PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat) IsKnown

type PipelineListResponseResultsSourceFormat

type PipelineListResponseResultsSourceFormat string

Specifies the format of source data.

const (
	PipelineListResponseResultsSourceFormatJson PipelineListResponseResultsSourceFormat = "json"
)

func (PipelineListResponseResultsSourceFormat) IsKnown

type PipelineListResponseResultsSourceUnion

type PipelineListResponseResultsSourceUnion interface {
	// contains filtered or unexported methods
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

Union satisfied by PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSource or PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSource.

type PipelineListV1Params

type PipelineListV1Params struct {
	// Specifies the public ID of the account.
	AccountID param.Field[string]  `path:"account_id" api:"required"`
	Page      param.Field[float64] `query:"page"`
	PerPage   param.Field[float64] `query:"per_page"`
}

func (PipelineListV1Params) URLQuery

func (r PipelineListV1Params) URLQuery() (v url.Values)

URLQuery serializes PipelineListV1Params's query parameters as `url.Values`.

type PipelineListV1Response

type PipelineListV1Response struct {
	// Indicates a unique identifier for this pipeline.
	ID         string `json:"id" api:"required"`
	CreatedAt  string `json:"created_at" api:"required"`
	ModifiedAt string `json:"modified_at" api:"required"`
	// Indicates the name of the Pipeline.
	Name string `json:"name" api:"required"`
	// Specifies SQL for the Pipeline processing flow.
	Sql string `json:"sql" api:"required"`
	// Indicates the current status of the Pipeline.
	Status string                     `json:"status" api:"required"`
	JSON   pipelineListV1ResponseJSON `json:"-"`
}

func (*PipelineListV1Response) UnmarshalJSON

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

type PipelineNewParams

type PipelineNewParams struct {
	// Specifies the public ID of the account.
	AccountID   param.Field[string]                       `path:"account_id" api:"required"`
	Destination param.Field[PipelineNewParamsDestination] `json:"destination" api:"required"`
	// Defines the name of the pipeline.
	Name   param.Field[string]                         `json:"name" api:"required"`
	Source param.Field[[]PipelineNewParamsSourceUnion] `json:"source" api:"required"`
}

func (PipelineNewParams) MarshalJSON

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

type PipelineNewParamsDestination

type PipelineNewParamsDestination struct {
	Batch       param.Field[PipelineNewParamsDestinationBatch]       `json:"batch" api:"required"`
	Compression param.Field[PipelineNewParamsDestinationCompression] `json:"compression" api:"required"`
	Credentials param.Field[PipelineNewParamsDestinationCredentials] `json:"credentials" api:"required"`
	// Specifies the format of data to deliver.
	Format param.Field[PipelineNewParamsDestinationFormat] `json:"format" api:"required"`
	Path   param.Field[PipelineNewParamsDestinationPath]   `json:"path" api:"required"`
	// Specifies the type of destination.
	Type param.Field[PipelineNewParamsDestinationType] `json:"type" api:"required"`
}

func (PipelineNewParamsDestination) MarshalJSON

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

type PipelineNewParamsDestinationBatch

type PipelineNewParamsDestinationBatch struct {
	// Specifies rough maximum size of files.
	MaxBytes param.Field[int64] `json:"max_bytes"`
	// Specifies duration to wait to aggregate batches files.
	MaxDurationS param.Field[float64] `json:"max_duration_s"`
	// Specifies rough maximum number of rows per file.
	MaxRows param.Field[int64] `json:"max_rows"`
}

func (PipelineNewParamsDestinationBatch) MarshalJSON

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

type PipelineNewParamsDestinationCompression

type PipelineNewParamsDestinationCompression struct {
	// Specifies the desired compression algorithm and format.
	Type param.Field[PipelineNewParamsDestinationCompressionType] `json:"type"`
}

func (PipelineNewParamsDestinationCompression) MarshalJSON

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

type PipelineNewParamsDestinationCompressionType

type PipelineNewParamsDestinationCompressionType string

Specifies the desired compression algorithm and format.

const (
	PipelineNewParamsDestinationCompressionTypeNone    PipelineNewParamsDestinationCompressionType = "none"
	PipelineNewParamsDestinationCompressionTypeGzip    PipelineNewParamsDestinationCompressionType = "gzip"
	PipelineNewParamsDestinationCompressionTypeDeflate PipelineNewParamsDestinationCompressionType = "deflate"
)

func (PipelineNewParamsDestinationCompressionType) IsKnown

type PipelineNewParamsDestinationCredentials

type PipelineNewParamsDestinationCredentials struct {
	// Specifies the R2 Bucket Access Key Id.
	AccessKeyID param.Field[string] `json:"access_key_id" api:"required"`
	// Specifies the R2 Endpoint.
	Endpoint param.Field[string] `json:"endpoint" api:"required"`
	// Specifies the R2 Bucket Secret Access Key.
	SecretAccessKey param.Field[string] `json:"secret_access_key" api:"required"`
}

func (PipelineNewParamsDestinationCredentials) MarshalJSON

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

type PipelineNewParamsDestinationFormat

type PipelineNewParamsDestinationFormat string

Specifies the format of data to deliver.

const (
	PipelineNewParamsDestinationFormatJson PipelineNewParamsDestinationFormat = "json"
)

func (PipelineNewParamsDestinationFormat) IsKnown

type PipelineNewParamsDestinationPath

type PipelineNewParamsDestinationPath struct {
	// Specifies the R2 Bucket to store files.
	Bucket param.Field[string] `json:"bucket" api:"required"`
	// Specifies the name pattern to for individual data files.
	Filename param.Field[string] `json:"filename"`
	// Specifies the name pattern for directory.
	Filepath param.Field[string] `json:"filepath"`
	// Specifies the base directory within the bucket.
	Prefix param.Field[string] `json:"prefix"`
}

func (PipelineNewParamsDestinationPath) MarshalJSON

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

type PipelineNewParamsDestinationType

type PipelineNewParamsDestinationType string

Specifies the type of destination.

const (
	PipelineNewParamsDestinationTypeR2 PipelineNewParamsDestinationType = "r2"
)

func (PipelineNewParamsDestinationType) IsKnown

type PipelineNewParamsSource

type PipelineNewParamsSource struct {
	// Specifies the format of source data.
	Format param.Field[PipelineNewParamsSourceFormat] `json:"format" api:"required"`
	Type   param.Field[string]                        `json:"type" api:"required"`
	// Specifies whether authentication is required to send to this pipeline via HTTP.
	Authentication param.Field[bool]        `json:"authentication"`
	CORS           param.Field[interface{}] `json:"cors"`
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

func (PipelineNewParamsSource) MarshalJSON

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

type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSource deprecated

type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSource struct {
	// Specifies the format of source data.
	Format param.Field[PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat] `json:"format" api:"required"`
	Type   param.Field[string]                                                                        `json:"type" api:"required"`
}

[DEPRECATED] Worker binding source configuration. Use the new streams API instead.

Deprecated: deprecated

func (PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSource) MarshalJSON

type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat

type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat string

Specifies the format of source data.

const (
	PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormatJson PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat = "json"
)

func (PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat) IsKnown

type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSource deprecated

type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSource struct {
	// Specifies the format of source data.
	Format param.Field[PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat] `json:"format" api:"required"`
	Type   param.Field[string]                                                                     `json:"type" api:"required"`
	// Specifies whether authentication is required to send to this pipeline via HTTP.
	Authentication param.Field[bool]                                                                     `json:"authentication"`
	CORS           param.Field[PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS] `json:"cors"`
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

Deprecated: deprecated

func (PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSource) MarshalJSON

type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS

type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS struct {
	// Specifies allowed origins to allow Cross Origin HTTP Requests.
	Origins param.Field[[]string] `json:"origins"`
}

func (PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) MarshalJSON

type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat

type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat string

Specifies the format of source data.

const (
	PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormatJson PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat = "json"
)

func (PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat) IsKnown

type PipelineNewParamsSourceFormat

type PipelineNewParamsSourceFormat string

Specifies the format of source data.

const (
	PipelineNewParamsSourceFormatJson PipelineNewParamsSourceFormat = "json"
)

func (PipelineNewParamsSourceFormat) IsKnown

func (r PipelineNewParamsSourceFormat) IsKnown() bool

type PipelineNewParamsSourceUnion

type PipelineNewParamsSourceUnion interface {
	// contains filtered or unexported methods
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

Satisfied by pipelines.PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSource, pipelines.PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSource, PipelineNewParamsSource.

type PipelineNewResponse deprecated

type PipelineNewResponse struct {
	// Specifies the pipeline identifier.
	ID          string                         `json:"id" api:"required"`
	Destination PipelineNewResponseDestination `json:"destination" api:"required"`
	// Indicates the endpoint URL to send traffic.
	Endpoint string `json:"endpoint" api:"required"`
	// Defines the name of the pipeline.
	Name   string                      `json:"name" api:"required"`
	Source []PipelineNewResponseSource `json:"source" api:"required"`
	// Indicates the version number of last saved configuration.
	Version float64                 `json:"version" api:"required"`
	JSON    pipelineNewResponseJSON `json:"-"`
}

[DEPRECATED] Describes the configuration of a pipeline. Use the new streams/sinks/pipelines API instead.

Deprecated: deprecated

func (*PipelineNewResponse) UnmarshalJSON

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

type PipelineNewResponseDestination

type PipelineNewResponseDestination struct {
	Batch       PipelineNewResponseDestinationBatch       `json:"batch" api:"required"`
	Compression PipelineNewResponseDestinationCompression `json:"compression" api:"required"`
	// Specifies the format of data to deliver.
	Format PipelineNewResponseDestinationFormat `json:"format" api:"required"`
	Path   PipelineNewResponseDestinationPath   `json:"path" api:"required"`
	// Specifies the type of destination.
	Type PipelineNewResponseDestinationType `json:"type" api:"required"`
	JSON pipelineNewResponseDestinationJSON `json:"-"`
}

func (*PipelineNewResponseDestination) UnmarshalJSON

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

type PipelineNewResponseDestinationBatch

type PipelineNewResponseDestinationBatch struct {
	// Specifies rough maximum size of files.
	MaxBytes int64 `json:"max_bytes" api:"required"`
	// Specifies duration to wait to aggregate batches files.
	MaxDurationS float64 `json:"max_duration_s" api:"required"`
	// Specifies rough maximum number of rows per file.
	MaxRows int64                                   `json:"max_rows" api:"required"`
	JSON    pipelineNewResponseDestinationBatchJSON `json:"-"`
}

func (*PipelineNewResponseDestinationBatch) UnmarshalJSON

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

type PipelineNewResponseDestinationCompression

type PipelineNewResponseDestinationCompression struct {
	// Specifies the desired compression algorithm and format.
	Type PipelineNewResponseDestinationCompressionType `json:"type" api:"required"`
	JSON pipelineNewResponseDestinationCompressionJSON `json:"-"`
}

func (*PipelineNewResponseDestinationCompression) UnmarshalJSON

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

type PipelineNewResponseDestinationCompressionType

type PipelineNewResponseDestinationCompressionType string

Specifies the desired compression algorithm and format.

const (
	PipelineNewResponseDestinationCompressionTypeNone    PipelineNewResponseDestinationCompressionType = "none"
	PipelineNewResponseDestinationCompressionTypeGzip    PipelineNewResponseDestinationCompressionType = "gzip"
	PipelineNewResponseDestinationCompressionTypeDeflate PipelineNewResponseDestinationCompressionType = "deflate"
)

func (PipelineNewResponseDestinationCompressionType) IsKnown

type PipelineNewResponseDestinationFormat

type PipelineNewResponseDestinationFormat string

Specifies the format of data to deliver.

const (
	PipelineNewResponseDestinationFormatJson PipelineNewResponseDestinationFormat = "json"
)

func (PipelineNewResponseDestinationFormat) IsKnown

type PipelineNewResponseDestinationPath

type PipelineNewResponseDestinationPath struct {
	// Specifies the R2 Bucket to store files.
	Bucket string `json:"bucket" api:"required"`
	// Specifies the name pattern to for individual data files.
	Filename string `json:"filename"`
	// Specifies the name pattern for directory.
	Filepath string `json:"filepath"`
	// Specifies the base directory within the bucket.
	Prefix string                                 `json:"prefix"`
	JSON   pipelineNewResponseDestinationPathJSON `json:"-"`
}

func (*PipelineNewResponseDestinationPath) UnmarshalJSON

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

type PipelineNewResponseDestinationType

type PipelineNewResponseDestinationType string

Specifies the type of destination.

const (
	PipelineNewResponseDestinationTypeR2 PipelineNewResponseDestinationType = "r2"
)

func (PipelineNewResponseDestinationType) IsKnown

type PipelineNewResponseEnvelope

type PipelineNewResponseEnvelope struct {
	// [DEPRECATED] Describes the configuration of a pipeline. Use the new
	// streams/sinks/pipelines API instead.
	//
	// Deprecated: deprecated
	Result PipelineNewResponse `json:"result" api:"required"`
	// Indicates whether the API call was successful.
	Success bool                            `json:"success" api:"required"`
	JSON    pipelineNewResponseEnvelopeJSON `json:"-"`
}

func (*PipelineNewResponseEnvelope) UnmarshalJSON

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

type PipelineNewResponseSource

type PipelineNewResponseSource struct {
	// Specifies the format of source data.
	Format PipelineNewResponseSourceFormat `json:"format" api:"required"`
	Type   string                          `json:"type" api:"required"`
	// Specifies whether authentication is required to send to this pipeline via HTTP.
	Authentication bool `json:"authentication"`
	// This field can have the runtime type of
	// [PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS].
	CORS interface{}                   `json:"cors"`
	JSON pipelineNewResponseSourceJSON `json:"-"`
	// contains filtered or unexported fields
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

func (PipelineNewResponseSource) AsUnion

AsUnion returns a PipelineNewResponseSourceUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource, PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource.

func (*PipelineNewResponseSource) UnmarshalJSON

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

type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource deprecated

type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource struct {
	// Specifies the format of source data.
	Format PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat `json:"format" api:"required"`
	Type   string                                                                          `json:"type" api:"required"`
	JSON   pipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceJSON   `json:"-"`
}

[DEPRECATED] Worker binding source configuration. Use the new streams API instead.

Deprecated: deprecated

func (*PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource) UnmarshalJSON

type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat

type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat string

Specifies the format of source data.

const (
	PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormatJson PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat = "json"
)

func (PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat) IsKnown

type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource deprecated

type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource struct {
	// Specifies the format of source data.
	Format PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat `json:"format" api:"required"`
	Type   string                                                                       `json:"type" api:"required"`
	// Specifies whether authentication is required to send to this pipeline via HTTP.
	Authentication bool                                                                       `json:"authentication"`
	CORS           PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS `json:"cors"`
	JSON           pipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceJSON `json:"-"`
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

Deprecated: deprecated

func (*PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource) UnmarshalJSON

type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS

type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS struct {
	// Specifies allowed origins to allow Cross Origin HTTP Requests.
	Origins []string                                                                       `json:"origins"`
	JSON    pipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORSJSON `json:"-"`
}

func (*PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) UnmarshalJSON

type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat

type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat string

Specifies the format of source data.

const (
	PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormatJson PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat = "json"
)

func (PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat) IsKnown

type PipelineNewResponseSourceFormat

type PipelineNewResponseSourceFormat string

Specifies the format of source data.

const (
	PipelineNewResponseSourceFormatJson PipelineNewResponseSourceFormat = "json"
)

func (PipelineNewResponseSourceFormat) IsKnown

type PipelineNewResponseSourceUnion

type PipelineNewResponseSourceUnion interface {
	// contains filtered or unexported methods
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

Union satisfied by PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource or PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource.

type PipelineNewV1Params

type PipelineNewV1Params struct {
	// Specifies the public ID of the account.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Specifies the name of the Pipeline.
	Name param.Field[string] `json:"name" api:"required"`
	// Specifies SQL for the Pipeline processing flow.
	Sql param.Field[string] `json:"sql" api:"required"`
}

func (PipelineNewV1Params) MarshalJSON

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

type PipelineNewV1Response

type PipelineNewV1Response struct {
	// Indicates a unique identifier for this pipeline.
	ID         string `json:"id" api:"required"`
	CreatedAt  string `json:"created_at" api:"required"`
	ModifiedAt string `json:"modified_at" api:"required"`
	// Indicates the name of the Pipeline.
	Name string `json:"name" api:"required"`
	// Specifies SQL for the Pipeline processing flow.
	Sql string `json:"sql" api:"required"`
	// Indicates the current status of the Pipeline.
	Status string                    `json:"status" api:"required"`
	JSON   pipelineNewV1ResponseJSON `json:"-"`
}

func (*PipelineNewV1Response) UnmarshalJSON

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

type PipelineNewV1ResponseEnvelope

type PipelineNewV1ResponseEnvelope struct {
	Result PipelineNewV1Response `json:"result" api:"required"`
	// Indicates whether the API call was successful.
	Success bool                              `json:"success" api:"required"`
	JSON    pipelineNewV1ResponseEnvelopeJSON `json:"-"`
}

func (*PipelineNewV1ResponseEnvelope) UnmarshalJSON

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

type PipelineService

type PipelineService struct {
	Options []option.RequestOption
	Sinks   *SinkService
	Streams *StreamService
}

PipelineService 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 NewPipelineService method instead.

func NewPipelineService

func NewPipelineService(opts ...option.RequestOption) (r *PipelineService)

NewPipelineService 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 (*PipelineService) Delete deprecated

func (r *PipelineService) Delete(ctx context.Context, pipelineName string, body PipelineDeleteParams, opts ...option.RequestOption) (err error)

[DEPRECATED] Delete a pipeline. Use the new /pipelines/v1/pipelines endpoint instead.

Deprecated: Use delete_v1 instead. This endpoint will be removed in the future.

func (*PipelineService) DeleteV1

func (r *PipelineService) DeleteV1(ctx context.Context, pipelineID string, body PipelineDeleteV1Params, opts ...option.RequestOption) (res *PipelineDeleteV1Response, err error)

Delete Pipeline in Account.

func (*PipelineService) Get deprecated

func (r *PipelineService) Get(ctx context.Context, pipelineName string, query PipelineGetParams, opts ...option.RequestOption) (res *PipelineGetResponse, err error)

[DEPRECATED] Get configuration of a pipeline. Use the new /pipelines/v1/pipelines endpoint instead.

Deprecated: Use get_v1 instead. This endpoint will be removed in the future.

func (*PipelineService) GetV1

func (r *PipelineService) GetV1(ctx context.Context, pipelineID string, query PipelineGetV1Params, opts ...option.RequestOption) (res *PipelineGetV1Response, err error)

Get Pipelines Details.

func (*PipelineService) List deprecated

[DEPRECATED] List, filter, and paginate pipelines in an account. Use the new /pipelines/v1/pipelines endpoint instead.

Deprecated: Use list_v1 instead. This endpoint will be removed in the future.

func (*PipelineService) ListV1

List/Filter Pipelines in Account.

func (*PipelineService) ListV1AutoPaging

List/Filter Pipelines in Account.

func (*PipelineService) New deprecated

[DEPRECATED] Create a new pipeline. Use the new /pipelines/v1/pipelines endpoint instead.

Deprecated: Use create_v1 instead. This endpoint will be removed in the future.

func (*PipelineService) NewV1

Create a new Pipeline.

func (*PipelineService) Update deprecated

func (r *PipelineService) Update(ctx context.Context, pipelineName string, params PipelineUpdateParams, opts ...option.RequestOption) (res *PipelineUpdateResponse, err error)

[DEPRECATED] Update an existing pipeline. Use the new /pipelines/v1/pipelines endpoint instead.

Deprecated: The v1 API does not support updates. This endpoint will be removed in the future.

func (*PipelineService) ValidateSql

Validate Arroyo SQL.

type PipelineUpdateParams

type PipelineUpdateParams struct {
	// Specifies the public ID of the account.
	AccountID   param.Field[string]                          `path:"account_id" api:"required"`
	Destination param.Field[PipelineUpdateParamsDestination] `json:"destination" api:"required"`
	// Defines the name of the pipeline.
	Name   param.Field[string]                            `json:"name" api:"required"`
	Source param.Field[[]PipelineUpdateParamsSourceUnion] `json:"source" api:"required"`
}

func (PipelineUpdateParams) MarshalJSON

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

type PipelineUpdateParamsDestination

type PipelineUpdateParamsDestination struct {
	Batch       param.Field[PipelineUpdateParamsDestinationBatch]       `json:"batch" api:"required"`
	Compression param.Field[PipelineUpdateParamsDestinationCompression] `json:"compression" api:"required"`
	// Specifies the format of data to deliver.
	Format param.Field[PipelineUpdateParamsDestinationFormat] `json:"format" api:"required"`
	Path   param.Field[PipelineUpdateParamsDestinationPath]   `json:"path" api:"required"`
	// Specifies the type of destination.
	Type        param.Field[PipelineUpdateParamsDestinationType]        `json:"type" api:"required"`
	Credentials param.Field[PipelineUpdateParamsDestinationCredentials] `json:"credentials"`
}

func (PipelineUpdateParamsDestination) MarshalJSON

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

type PipelineUpdateParamsDestinationBatch

type PipelineUpdateParamsDestinationBatch struct {
	// Specifies rough maximum size of files.
	MaxBytes param.Field[int64] `json:"max_bytes"`
	// Specifies duration to wait to aggregate batches files.
	MaxDurationS param.Field[float64] `json:"max_duration_s"`
	// Specifies rough maximum number of rows per file.
	MaxRows param.Field[int64] `json:"max_rows"`
}

func (PipelineUpdateParamsDestinationBatch) MarshalJSON

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

type PipelineUpdateParamsDestinationCompression

type PipelineUpdateParamsDestinationCompression struct {
	// Specifies the desired compression algorithm and format.
	Type param.Field[PipelineUpdateParamsDestinationCompressionType] `json:"type"`
}

func (PipelineUpdateParamsDestinationCompression) MarshalJSON

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

type PipelineUpdateParamsDestinationCompressionType

type PipelineUpdateParamsDestinationCompressionType string

Specifies the desired compression algorithm and format.

const (
	PipelineUpdateParamsDestinationCompressionTypeNone    PipelineUpdateParamsDestinationCompressionType = "none"
	PipelineUpdateParamsDestinationCompressionTypeGzip    PipelineUpdateParamsDestinationCompressionType = "gzip"
	PipelineUpdateParamsDestinationCompressionTypeDeflate PipelineUpdateParamsDestinationCompressionType = "deflate"
)

func (PipelineUpdateParamsDestinationCompressionType) IsKnown

type PipelineUpdateParamsDestinationCredentials

type PipelineUpdateParamsDestinationCredentials struct {
	// Specifies the R2 Bucket Access Key Id.
	AccessKeyID param.Field[string] `json:"access_key_id" api:"required"`
	// Specifies the R2 Endpoint.
	Endpoint param.Field[string] `json:"endpoint" api:"required"`
	// Specifies the R2 Bucket Secret Access Key.
	SecretAccessKey param.Field[string] `json:"secret_access_key" api:"required"`
}

func (PipelineUpdateParamsDestinationCredentials) MarshalJSON

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

type PipelineUpdateParamsDestinationFormat

type PipelineUpdateParamsDestinationFormat string

Specifies the format of data to deliver.

const (
	PipelineUpdateParamsDestinationFormatJson PipelineUpdateParamsDestinationFormat = "json"
)

func (PipelineUpdateParamsDestinationFormat) IsKnown

type PipelineUpdateParamsDestinationPath

type PipelineUpdateParamsDestinationPath struct {
	// Specifies the R2 Bucket to store files.
	Bucket param.Field[string] `json:"bucket" api:"required"`
	// Specifies the name pattern to for individual data files.
	Filename param.Field[string] `json:"filename"`
	// Specifies the name pattern for directory.
	Filepath param.Field[string] `json:"filepath"`
	// Specifies the base directory within the bucket.
	Prefix param.Field[string] `json:"prefix"`
}

func (PipelineUpdateParamsDestinationPath) MarshalJSON

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

type PipelineUpdateParamsDestinationType

type PipelineUpdateParamsDestinationType string

Specifies the type of destination.

const (
	PipelineUpdateParamsDestinationTypeR2 PipelineUpdateParamsDestinationType = "r2"
)

func (PipelineUpdateParamsDestinationType) IsKnown

type PipelineUpdateParamsSource

type PipelineUpdateParamsSource struct {
	// Specifies the format of source data.
	Format param.Field[PipelineUpdateParamsSourceFormat] `json:"format" api:"required"`
	Type   param.Field[string]                           `json:"type" api:"required"`
	// Specifies whether authentication is required to send to this pipeline via HTTP.
	Authentication param.Field[bool]        `json:"authentication"`
	CORS           param.Field[interface{}] `json:"cors"`
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

func (PipelineUpdateParamsSource) MarshalJSON

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

type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSource deprecated

type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSource struct {
	// Specifies the format of source data.
	Format param.Field[PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat] `json:"format" api:"required"`
	Type   param.Field[string]                                                                           `json:"type" api:"required"`
}

[DEPRECATED] Worker binding source configuration. Use the new streams API instead.

Deprecated: deprecated

func (PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSource) MarshalJSON

type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat

type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat string

Specifies the format of source data.

const (
	PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormatJson PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat = "json"
)

func (PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat) IsKnown

type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSource deprecated

type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSource struct {
	// Specifies the format of source data.
	Format param.Field[PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat] `json:"format" api:"required"`
	Type   param.Field[string]                                                                        `json:"type" api:"required"`
	// Specifies whether authentication is required to send to this pipeline via HTTP.
	Authentication param.Field[bool]                                                                        `json:"authentication"`
	CORS           param.Field[PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS] `json:"cors"`
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

Deprecated: deprecated

func (PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSource) MarshalJSON

type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS

type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS struct {
	// Specifies allowed origins to allow Cross Origin HTTP Requests.
	Origins param.Field[[]string] `json:"origins"`
}

func (PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) MarshalJSON

type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat

type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat string

Specifies the format of source data.

const (
	PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormatJson PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat = "json"
)

func (PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat) IsKnown

type PipelineUpdateParamsSourceFormat

type PipelineUpdateParamsSourceFormat string

Specifies the format of source data.

const (
	PipelineUpdateParamsSourceFormatJson PipelineUpdateParamsSourceFormat = "json"
)

func (PipelineUpdateParamsSourceFormat) IsKnown

type PipelineUpdateParamsSourceUnion

type PipelineUpdateParamsSourceUnion interface {
	// contains filtered or unexported methods
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

Satisfied by pipelines.PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSource, pipelines.PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSource, PipelineUpdateParamsSource.

type PipelineUpdateResponse deprecated

type PipelineUpdateResponse struct {
	// Specifies the pipeline identifier.
	ID          string                            `json:"id" api:"required"`
	Destination PipelineUpdateResponseDestination `json:"destination" api:"required"`
	// Indicates the endpoint URL to send traffic.
	Endpoint string `json:"endpoint" api:"required"`
	// Defines the name of the pipeline.
	Name   string                         `json:"name" api:"required"`
	Source []PipelineUpdateResponseSource `json:"source" api:"required"`
	// Indicates the version number of last saved configuration.
	Version float64                    `json:"version" api:"required"`
	JSON    pipelineUpdateResponseJSON `json:"-"`
}

[DEPRECATED] Describes the configuration of a pipeline. Use the new streams/sinks/pipelines API instead.

Deprecated: deprecated

func (*PipelineUpdateResponse) UnmarshalJSON

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

type PipelineUpdateResponseDestination

type PipelineUpdateResponseDestination struct {
	Batch       PipelineUpdateResponseDestinationBatch       `json:"batch" api:"required"`
	Compression PipelineUpdateResponseDestinationCompression `json:"compression" api:"required"`
	// Specifies the format of data to deliver.
	Format PipelineUpdateResponseDestinationFormat `json:"format" api:"required"`
	Path   PipelineUpdateResponseDestinationPath   `json:"path" api:"required"`
	// Specifies the type of destination.
	Type PipelineUpdateResponseDestinationType `json:"type" api:"required"`
	JSON pipelineUpdateResponseDestinationJSON `json:"-"`
}

func (*PipelineUpdateResponseDestination) UnmarshalJSON

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

type PipelineUpdateResponseDestinationBatch

type PipelineUpdateResponseDestinationBatch struct {
	// Specifies rough maximum size of files.
	MaxBytes int64 `json:"max_bytes" api:"required"`
	// Specifies duration to wait to aggregate batches files.
	MaxDurationS float64 `json:"max_duration_s" api:"required"`
	// Specifies rough maximum number of rows per file.
	MaxRows int64                                      `json:"max_rows" api:"required"`
	JSON    pipelineUpdateResponseDestinationBatchJSON `json:"-"`
}

func (*PipelineUpdateResponseDestinationBatch) UnmarshalJSON

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

type PipelineUpdateResponseDestinationCompression

type PipelineUpdateResponseDestinationCompression struct {
	// Specifies the desired compression algorithm and format.
	Type PipelineUpdateResponseDestinationCompressionType `json:"type" api:"required"`
	JSON pipelineUpdateResponseDestinationCompressionJSON `json:"-"`
}

func (*PipelineUpdateResponseDestinationCompression) UnmarshalJSON

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

type PipelineUpdateResponseDestinationCompressionType

type PipelineUpdateResponseDestinationCompressionType string

Specifies the desired compression algorithm and format.

const (
	PipelineUpdateResponseDestinationCompressionTypeNone    PipelineUpdateResponseDestinationCompressionType = "none"
	PipelineUpdateResponseDestinationCompressionTypeGzip    PipelineUpdateResponseDestinationCompressionType = "gzip"
	PipelineUpdateResponseDestinationCompressionTypeDeflate PipelineUpdateResponseDestinationCompressionType = "deflate"
)

func (PipelineUpdateResponseDestinationCompressionType) IsKnown

type PipelineUpdateResponseDestinationFormat

type PipelineUpdateResponseDestinationFormat string

Specifies the format of data to deliver.

const (
	PipelineUpdateResponseDestinationFormatJson PipelineUpdateResponseDestinationFormat = "json"
)

func (PipelineUpdateResponseDestinationFormat) IsKnown

type PipelineUpdateResponseDestinationPath

type PipelineUpdateResponseDestinationPath struct {
	// Specifies the R2 Bucket to store files.
	Bucket string `json:"bucket" api:"required"`
	// Specifies the name pattern to for individual data files.
	Filename string `json:"filename"`
	// Specifies the name pattern for directory.
	Filepath string `json:"filepath"`
	// Specifies the base directory within the bucket.
	Prefix string                                    `json:"prefix"`
	JSON   pipelineUpdateResponseDestinationPathJSON `json:"-"`
}

func (*PipelineUpdateResponseDestinationPath) UnmarshalJSON

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

type PipelineUpdateResponseDestinationType

type PipelineUpdateResponseDestinationType string

Specifies the type of destination.

const (
	PipelineUpdateResponseDestinationTypeR2 PipelineUpdateResponseDestinationType = "r2"
)

func (PipelineUpdateResponseDestinationType) IsKnown

type PipelineUpdateResponseEnvelope

type PipelineUpdateResponseEnvelope struct {
	// [DEPRECATED] Describes the configuration of a pipeline. Use the new
	// streams/sinks/pipelines API instead.
	//
	// Deprecated: deprecated
	Result PipelineUpdateResponse `json:"result" api:"required"`
	// Indicates whether the API call was successful.
	Success bool                               `json:"success" api:"required"`
	JSON    pipelineUpdateResponseEnvelopeJSON `json:"-"`
}

func (*PipelineUpdateResponseEnvelope) UnmarshalJSON

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

type PipelineUpdateResponseSource

type PipelineUpdateResponseSource struct {
	// Specifies the format of source data.
	Format PipelineUpdateResponseSourceFormat `json:"format" api:"required"`
	Type   string                             `json:"type" api:"required"`
	// Specifies whether authentication is required to send to this pipeline via HTTP.
	Authentication bool `json:"authentication"`
	// This field can have the runtime type of
	// [PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS].
	CORS interface{}                      `json:"cors"`
	JSON pipelineUpdateResponseSourceJSON `json:"-"`
	// contains filtered or unexported fields
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

func (PipelineUpdateResponseSource) AsUnion

AsUnion returns a PipelineUpdateResponseSourceUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource, PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource.

func (*PipelineUpdateResponseSource) UnmarshalJSON

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

type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource deprecated

type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource struct {
	// Specifies the format of source data.
	Format PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat `json:"format" api:"required"`
	Type   string                                                                             `json:"type" api:"required"`
	JSON   pipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceJSON   `json:"-"`
}

[DEPRECATED] Worker binding source configuration. Use the new streams API instead.

Deprecated: deprecated

func (*PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource) UnmarshalJSON

type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat

type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat string

Specifies the format of source data.

const (
	PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormatJson PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat = "json"
)

func (PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat) IsKnown

type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource deprecated

type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource struct {
	// Specifies the format of source data.
	Format PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat `json:"format" api:"required"`
	Type   string                                                                          `json:"type" api:"required"`
	// Specifies whether authentication is required to send to this pipeline via HTTP.
	Authentication bool                                                                          `json:"authentication"`
	CORS           PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS `json:"cors"`
	JSON           pipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceJSON `json:"-"`
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

Deprecated: deprecated

func (*PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource) UnmarshalJSON

type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS

type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS struct {
	// Specifies allowed origins to allow Cross Origin HTTP Requests.
	Origins []string                                                                          `json:"origins"`
	JSON    pipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORSJSON `json:"-"`
}

func (*PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) UnmarshalJSON

type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat

type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat string

Specifies the format of source data.

const (
	PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormatJson PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat = "json"
)

func (PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat) IsKnown

type PipelineUpdateResponseSourceFormat

type PipelineUpdateResponseSourceFormat string

Specifies the format of source data.

const (
	PipelineUpdateResponseSourceFormatJson PipelineUpdateResponseSourceFormat = "json"
)

func (PipelineUpdateResponseSourceFormat) IsKnown

type PipelineUpdateResponseSourceUnion

type PipelineUpdateResponseSourceUnion interface {
	// contains filtered or unexported methods
}

[DEPRECATED] HTTP source configuration. Use the new streams API instead.

Union satisfied by PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource or PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource.

type PipelineValidateSqlParams

type PipelineValidateSqlParams struct {
	// Specifies the public ID of the account.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Specifies SQL to validate.
	Sql param.Field[string] `json:"sql" api:"required"`
}

func (PipelineValidateSqlParams) MarshalJSON

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

type PipelineValidateSqlResponse

type PipelineValidateSqlResponse struct {
	// Indicates tables involved in the processing.
	Tables map[string]PipelineValidateSqlResponseTable `json:"tables" api:"required"`
	Graph  PipelineValidateSqlResponseGraph            `json:"graph"`
	JSON   pipelineValidateSqlResponseJSON             `json:"-"`
}

func (*PipelineValidateSqlResponse) UnmarshalJSON

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

type PipelineValidateSqlResponseEnvelope

type PipelineValidateSqlResponseEnvelope struct {
	Result PipelineValidateSqlResponse `json:"result" api:"required"`
	// Indicates whether the API call was successful.
	Success bool                                    `json:"success" api:"required"`
	JSON    pipelineValidateSqlResponseEnvelopeJSON `json:"-"`
}

func (*PipelineValidateSqlResponseEnvelope) UnmarshalJSON

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

type PipelineValidateSqlResponseGraph

type PipelineValidateSqlResponseGraph struct {
	Edges []PipelineValidateSqlResponseGraphEdge `json:"edges" api:"required"`
	Nodes []PipelineValidateSqlResponseGraphNode `json:"nodes" api:"required"`
	JSON  pipelineValidateSqlResponseGraphJSON   `json:"-"`
}

func (*PipelineValidateSqlResponseGraph) UnmarshalJSON

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

type PipelineValidateSqlResponseGraphEdge

type PipelineValidateSqlResponseGraphEdge struct {
	DestID    int64                                    `json:"dest_id" api:"required"`
	EdgeType  string                                   `json:"edge_type" api:"required"`
	KeyType   string                                   `json:"key_type" api:"required"`
	SrcID     int64                                    `json:"src_id" api:"required"`
	ValueType string                                   `json:"value_type" api:"required"`
	JSON      pipelineValidateSqlResponseGraphEdgeJSON `json:"-"`
}

func (*PipelineValidateSqlResponseGraphEdge) UnmarshalJSON

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

type PipelineValidateSqlResponseGraphNode

type PipelineValidateSqlResponseGraphNode struct {
	Description string                                   `json:"description" api:"required"`
	NodeID      int64                                    `json:"node_id" api:"required"`
	Operator    string                                   `json:"operator" api:"required"`
	Parallelism int64                                    `json:"parallelism" api:"required"`
	JSON        pipelineValidateSqlResponseGraphNodeJSON `json:"-"`
}

func (*PipelineValidateSqlResponseGraphNode) UnmarshalJSON

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

type PipelineValidateSqlResponseTable

type PipelineValidateSqlResponseTable struct {
	ID      string                               `json:"id" api:"required"`
	Name    string                               `json:"name" api:"required"`
	Type    string                               `json:"type" api:"required"`
	Version float64                              `json:"version" api:"required"`
	JSON    pipelineValidateSqlResponseTableJSON `json:"-"`
}

func (*PipelineValidateSqlResponseTable) UnmarshalJSON

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

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 SinkDeleteParams

type SinkDeleteParams struct {
	// Specifies the public ID of the account.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Delete sink forcefully, including deleting any dependent pipelines.
	Force param.Field[string] `query:"force"`
}

func (SinkDeleteParams) URLQuery

func (r SinkDeleteParams) URLQuery() (v url.Values)

URLQuery serializes SinkDeleteParams's query parameters as `url.Values`.

type SinkDeleteResponse

type SinkDeleteResponse = interface{}

type SinkDeleteResponseEnvelope

type SinkDeleteResponseEnvelope struct {
	Result SinkDeleteResponse `json:"result" api:"required"`
	// Indicates whether the API call was successful.
	Success bool                           `json:"success" api:"required"`
	JSON    sinkDeleteResponseEnvelopeJSON `json:"-"`
}

func (*SinkDeleteResponseEnvelope) UnmarshalJSON

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

type SinkGetParams

type SinkGetParams struct {
	// Specifies the public ID of the account.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type SinkGetResponse

type SinkGetResponse struct {
	// Indicates a unique identifier for this sink.
	ID         string    `json:"id" api:"required"`
	CreatedAt  time.Time `json:"created_at" api:"required" format:"date-time"`
	ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
	// Defines the name of the Sink.
	Name string `json:"name" api:"required"`
	// Specifies the type of sink.
	Type SinkGetResponseType `json:"type" api:"required"`
	// Defines the configuration of the R2 Sink.
	Config SinkGetResponseConfig `json:"config"`
	Format SinkGetResponseFormat `json:"format"`
	Schema SinkGetResponseSchema `json:"schema"`
	JSON   sinkGetResponseJSON   `json:"-"`
}

func (*SinkGetResponse) UnmarshalJSON

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

type SinkGetResponseConfig

type SinkGetResponseConfig struct {
	// Cloudflare Account ID for the bucket
	AccountID string `json:"account_id" api:"required"`
	// R2 Bucket to write to
	Bucket string `json:"bucket" api:"required"`
	// This field can have the runtime type of
	// [SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNaming].
	FileNaming interface{} `json:"file_naming"`
	// Jurisdiction this bucket is hosted in
	Jurisdiction string `json:"jurisdiction"`
	// Table namespace
	Namespace string `json:"namespace"`
	// This field can have the runtime type of
	// [SinkGetResponseConfigCloudflarePipelinesR2TablePublicPartitioning].
	Partitioning interface{} `json:"partitioning"`
	// Subpath within the bucket to write to
	Path string `json:"path"`
	// This field can have the runtime type of
	// [SinkGetResponseConfigCloudflarePipelinesR2TablePublicRollingPolicy],
	// [SinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicy].
	RollingPolicy interface{} `json:"rolling_policy"`
	// Table name
	TableName string                    `json:"table_name"`
	JSON      sinkGetResponseConfigJSON `json:"-"`
	// contains filtered or unexported fields
}

Defines the configuration of the R2 Sink.

func (SinkGetResponseConfig) AsUnion

AsUnion returns a SinkGetResponseConfigUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are SinkGetResponseConfigCloudflarePipelinesR2TablePublic, SinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublic.

func (*SinkGetResponseConfig) UnmarshalJSON

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

type SinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublic

type SinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublic struct {
	// Cloudflare Account ID
	AccountID string `json:"account_id" api:"required" format:"uri"`
	// The R2 Bucket that hosts this catalog
	Bucket string `json:"bucket" api:"required"`
	// Table name
	TableName string `json:"table_name" api:"required"`
	// Table namespace
	Namespace string `json:"namespace"`
	// Rolling policy for file sinks (when & why to close a file and open a new one).
	RollingPolicy SinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicy `json:"rolling_policy"`
	JSON          sinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublicJSON          `json:"-"`
}

R2 Data Catalog Sink public configuration.

func (*SinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublic) UnmarshalJSON

type SinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicy

type SinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicy struct {
	// Files will be rolled after reaching this number of bytes
	FileSizeBytes int64 `json:"file_size_bytes"`
	// Number of seconds of inactivity to wait before rolling over to a new file
	InactivitySeconds int64 `json:"inactivity_seconds"`
	// Number of seconds to wait before rolling over to a new file
	IntervalSeconds int64                                                                             `json:"interval_seconds"`
	JSON            sinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicyJSON `json:"-"`
}

Rolling policy for file sinks (when & why to close a file and open a new one).

func (*SinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicy) UnmarshalJSON

type SinkGetResponseConfigCloudflarePipelinesR2TablePublic

type SinkGetResponseConfigCloudflarePipelinesR2TablePublic struct {
	// Cloudflare Account ID for the bucket
	AccountID string `json:"account_id" api:"required"`
	// R2 Bucket to write to
	Bucket string `json:"bucket" api:"required"`
	// Controls filename prefix/suffix and strategy.
	FileNaming SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNaming `json:"file_naming"`
	// Jurisdiction this bucket is hosted in
	Jurisdiction string `json:"jurisdiction"`
	// Data-layout partitioning for sinks.
	Partitioning SinkGetResponseConfigCloudflarePipelinesR2TablePublicPartitioning `json:"partitioning"`
	// Subpath within the bucket to write to
	Path string `json:"path"`
	// Rolling policy for file sinks (when & why to close a file and open a new one).
	RollingPolicy SinkGetResponseConfigCloudflarePipelinesR2TablePublicRollingPolicy `json:"rolling_policy"`
	JSON          sinkGetResponseConfigCloudflarePipelinesR2TablePublicJSON          `json:"-"`
}

R2 Sink public configuration.

func (*SinkGetResponseConfigCloudflarePipelinesR2TablePublic) UnmarshalJSON

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

type SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNaming

type SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNaming struct {
	// The prefix to use in file name. i.e prefix-<uuid>.parquet
	Prefix string `json:"prefix"`
	// Filename generation strategy.
	Strategy SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy `json:"strategy"`
	// This will overwrite the default file suffix. i.e .parquet, use with caution
	Suffix string                                                              `json:"suffix"`
	JSON   sinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNamingJSON `json:"-"`
}

Controls filename prefix/suffix and strategy.

func (*SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNaming) UnmarshalJSON

type SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy

type SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy string

Filename generation strategy.

const (
	SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategySerial SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy = "serial"
	SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategyUUID   SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy = "uuid"
	SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategyUUIDV7 SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy = "uuid_v7"
	SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategyUlid   SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy = "ulid"
)

func (SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy) IsKnown

type SinkGetResponseConfigCloudflarePipelinesR2TablePublicPartitioning

type SinkGetResponseConfigCloudflarePipelinesR2TablePublicPartitioning struct {
	// The pattern of the date string
	TimePattern string                                                                `json:"time_pattern"`
	JSON        sinkGetResponseConfigCloudflarePipelinesR2TablePublicPartitioningJSON `json:"-"`
}

Data-layout partitioning for sinks.

func (*SinkGetResponseConfigCloudflarePipelinesR2TablePublicPartitioning) UnmarshalJSON

type SinkGetResponseConfigCloudflarePipelinesR2TablePublicRollingPolicy

type SinkGetResponseConfigCloudflarePipelinesR2TablePublicRollingPolicy struct {
	// Files will be rolled after reaching this number of bytes
	FileSizeBytes int64 `json:"file_size_bytes"`
	// Number of seconds of inactivity to wait before rolling over to a new file
	InactivitySeconds int64 `json:"inactivity_seconds"`
	// Number of seconds to wait before rolling over to a new file
	IntervalSeconds int64                                                                  `json:"interval_seconds"`
	JSON            sinkGetResponseConfigCloudflarePipelinesR2TablePublicRollingPolicyJSON `json:"-"`
}

Rolling policy for file sinks (when & why to close a file and open a new one).

func (*SinkGetResponseConfigCloudflarePipelinesR2TablePublicRollingPolicy) UnmarshalJSON

type SinkGetResponseConfigUnion

type SinkGetResponseConfigUnion interface {
	// contains filtered or unexported methods
}

Defines the configuration of the R2 Sink.

Union satisfied by SinkGetResponseConfigCloudflarePipelinesR2TablePublic or SinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublic.

type SinkGetResponseEnvelope

type SinkGetResponseEnvelope struct {
	Result SinkGetResponse `json:"result" api:"required"`
	// Indicates whether the API call was successful.
	Success bool                        `json:"success" api:"required"`
	JSON    sinkGetResponseEnvelopeJSON `json:"-"`
}

func (*SinkGetResponseEnvelope) UnmarshalJSON

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

type SinkGetResponseFormat

type SinkGetResponseFormat struct {
	Type            SinkGetResponseFormatType            `json:"type" api:"required"`
	Compression     SinkGetResponseFormatCompression     `json:"compression"`
	DecimalEncoding SinkGetResponseFormatDecimalEncoding `json:"decimal_encoding"`
	RowGroupBytes   int64                                `json:"row_group_bytes" api:"nullable"`
	TimestampFormat SinkGetResponseFormatTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                 `json:"unstructured"`
	JSON            sinkGetResponseFormatJSON            `json:"-"`
	// contains filtered or unexported fields
}

func (SinkGetResponseFormat) AsUnion

AsUnion returns a SinkGetResponseFormatUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are SinkGetResponseFormatJson, SinkGetResponseFormatParquet.

func (*SinkGetResponseFormat) UnmarshalJSON

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

type SinkGetResponseFormatCompression

type SinkGetResponseFormatCompression string
const (
	SinkGetResponseFormatCompressionUncompressed SinkGetResponseFormatCompression = "uncompressed"
	SinkGetResponseFormatCompressionSnappy       SinkGetResponseFormatCompression = "snappy"
	SinkGetResponseFormatCompressionGzip         SinkGetResponseFormatCompression = "gzip"
	SinkGetResponseFormatCompressionZstd         SinkGetResponseFormatCompression = "zstd"
	SinkGetResponseFormatCompressionLz4          SinkGetResponseFormatCompression = "lz4"
)

func (SinkGetResponseFormatCompression) IsKnown

type SinkGetResponseFormatDecimalEncoding

type SinkGetResponseFormatDecimalEncoding string
const (
	SinkGetResponseFormatDecimalEncodingNumber SinkGetResponseFormatDecimalEncoding = "number"
	SinkGetResponseFormatDecimalEncodingString SinkGetResponseFormatDecimalEncoding = "string"
	SinkGetResponseFormatDecimalEncodingBytes  SinkGetResponseFormatDecimalEncoding = "bytes"
)

func (SinkGetResponseFormatDecimalEncoding) IsKnown

type SinkGetResponseFormatJson

type SinkGetResponseFormatJson struct {
	Type            SinkGetResponseFormatJsonType            `json:"type" api:"required"`
	DecimalEncoding SinkGetResponseFormatJsonDecimalEncoding `json:"decimal_encoding"`
	TimestampFormat SinkGetResponseFormatJsonTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                     `json:"unstructured"`
	JSON            sinkGetResponseFormatJsonJSON            `json:"-"`
}

func (*SinkGetResponseFormatJson) UnmarshalJSON

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

type SinkGetResponseFormatJsonDecimalEncoding

type SinkGetResponseFormatJsonDecimalEncoding string
const (
	SinkGetResponseFormatJsonDecimalEncodingNumber SinkGetResponseFormatJsonDecimalEncoding = "number"
	SinkGetResponseFormatJsonDecimalEncodingString SinkGetResponseFormatJsonDecimalEncoding = "string"
	SinkGetResponseFormatJsonDecimalEncodingBytes  SinkGetResponseFormatJsonDecimalEncoding = "bytes"
)

func (SinkGetResponseFormatJsonDecimalEncoding) IsKnown

type SinkGetResponseFormatJsonTimestampFormat

type SinkGetResponseFormatJsonTimestampFormat string
const (
	SinkGetResponseFormatJsonTimestampFormatRfc3339    SinkGetResponseFormatJsonTimestampFormat = "rfc3339"
	SinkGetResponseFormatJsonTimestampFormatUnixMillis SinkGetResponseFormatJsonTimestampFormat = "unix_millis"
)

func (SinkGetResponseFormatJsonTimestampFormat) IsKnown

type SinkGetResponseFormatJsonType

type SinkGetResponseFormatJsonType string
const (
	SinkGetResponseFormatJsonTypeJson SinkGetResponseFormatJsonType = "json"
)

func (SinkGetResponseFormatJsonType) IsKnown

func (r SinkGetResponseFormatJsonType) IsKnown() bool

type SinkGetResponseFormatParquet

type SinkGetResponseFormatParquet struct {
	Type          SinkGetResponseFormatParquetType        `json:"type" api:"required"`
	Compression   SinkGetResponseFormatParquetCompression `json:"compression"`
	RowGroupBytes int64                                   `json:"row_group_bytes" api:"nullable"`
	JSON          sinkGetResponseFormatParquetJSON        `json:"-"`
}

func (*SinkGetResponseFormatParquet) UnmarshalJSON

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

type SinkGetResponseFormatParquetCompression

type SinkGetResponseFormatParquetCompression string
const (
	SinkGetResponseFormatParquetCompressionUncompressed SinkGetResponseFormatParquetCompression = "uncompressed"
	SinkGetResponseFormatParquetCompressionSnappy       SinkGetResponseFormatParquetCompression = "snappy"
	SinkGetResponseFormatParquetCompressionGzip         SinkGetResponseFormatParquetCompression = "gzip"
	SinkGetResponseFormatParquetCompressionZstd         SinkGetResponseFormatParquetCompression = "zstd"
	SinkGetResponseFormatParquetCompressionLz4          SinkGetResponseFormatParquetCompression = "lz4"
)

func (SinkGetResponseFormatParquetCompression) IsKnown

type SinkGetResponseFormatParquetType

type SinkGetResponseFormatParquetType string
const (
	SinkGetResponseFormatParquetTypeParquet SinkGetResponseFormatParquetType = "parquet"
)

func (SinkGetResponseFormatParquetType) IsKnown

type SinkGetResponseFormatTimestampFormat

type SinkGetResponseFormatTimestampFormat string
const (
	SinkGetResponseFormatTimestampFormatRfc3339    SinkGetResponseFormatTimestampFormat = "rfc3339"
	SinkGetResponseFormatTimestampFormatUnixMillis SinkGetResponseFormatTimestampFormat = "unix_millis"
)

func (SinkGetResponseFormatTimestampFormat) IsKnown

type SinkGetResponseFormatType

type SinkGetResponseFormatType string
const (
	SinkGetResponseFormatTypeJson    SinkGetResponseFormatType = "json"
	SinkGetResponseFormatTypeParquet SinkGetResponseFormatType = "parquet"
)

func (SinkGetResponseFormatType) IsKnown

func (r SinkGetResponseFormatType) IsKnown() bool

type SinkGetResponseFormatUnion

type SinkGetResponseFormatUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by SinkGetResponseFormatJson or SinkGetResponseFormatParquet.

type SinkGetResponseSchema

type SinkGetResponseSchema struct {
	Fields   []SinkGetResponseSchemaField `json:"fields"`
	Format   SinkGetResponseSchemaFormat  `json:"format"`
	Inferred bool                         `json:"inferred" api:"nullable"`
	JSON     sinkGetResponseSchemaJSON    `json:"-"`
}

func (*SinkGetResponseSchema) UnmarshalJSON

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

type SinkGetResponseSchemaField

type SinkGetResponseSchemaField struct {
	Type        SinkGetResponseSchemaFieldsType `json:"type" api:"required"`
	MetadataKey string                          `json:"metadata_key" api:"nullable"`
	Name        string                          `json:"name"`
	Required    bool                            `json:"required"`
	SqlName     string                          `json:"sql_name"`
	Unit        SinkGetResponseSchemaFieldsUnit `json:"unit"`
	JSON        sinkGetResponseSchemaFieldJSON  `json:"-"`
	// contains filtered or unexported fields
}

func (*SinkGetResponseSchemaField) UnmarshalJSON

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

type SinkGetResponseSchemaFieldsBinary

type SinkGetResponseSchemaFieldsBinary struct {
	Type        SinkGetResponseSchemaFieldsBinaryType `json:"type" api:"required"`
	MetadataKey string                                `json:"metadata_key" api:"nullable"`
	Name        string                                `json:"name"`
	Required    bool                                  `json:"required"`
	SqlName     string                                `json:"sql_name"`
	JSON        sinkGetResponseSchemaFieldsBinaryJSON `json:"-"`
}

func (*SinkGetResponseSchemaFieldsBinary) UnmarshalJSON

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

type SinkGetResponseSchemaFieldsBinaryType

type SinkGetResponseSchemaFieldsBinaryType string
const (
	SinkGetResponseSchemaFieldsBinaryTypeBinary SinkGetResponseSchemaFieldsBinaryType = "binary"
)

func (SinkGetResponseSchemaFieldsBinaryType) IsKnown

type SinkGetResponseSchemaFieldsBool

type SinkGetResponseSchemaFieldsBool struct {
	Type        SinkGetResponseSchemaFieldsBoolType `json:"type" api:"required"`
	MetadataKey string                              `json:"metadata_key" api:"nullable"`
	Name        string                              `json:"name"`
	Required    bool                                `json:"required"`
	SqlName     string                              `json:"sql_name"`
	JSON        sinkGetResponseSchemaFieldsBoolJSON `json:"-"`
}

func (*SinkGetResponseSchemaFieldsBool) UnmarshalJSON

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

type SinkGetResponseSchemaFieldsBoolType

type SinkGetResponseSchemaFieldsBoolType string
const (
	SinkGetResponseSchemaFieldsBoolTypeBool SinkGetResponseSchemaFieldsBoolType = "bool"
)

func (SinkGetResponseSchemaFieldsBoolType) IsKnown

type SinkGetResponseSchemaFieldsFloat32

type SinkGetResponseSchemaFieldsFloat32 struct {
	Type        SinkGetResponseSchemaFieldsFloat32Type `json:"type" api:"required"`
	MetadataKey string                                 `json:"metadata_key" api:"nullable"`
	Name        string                                 `json:"name"`
	Required    bool                                   `json:"required"`
	SqlName     string                                 `json:"sql_name"`
	JSON        sinkGetResponseSchemaFieldsFloat32JSON `json:"-"`
}

func (*SinkGetResponseSchemaFieldsFloat32) UnmarshalJSON

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

type SinkGetResponseSchemaFieldsFloat32Type

type SinkGetResponseSchemaFieldsFloat32Type string
const (
	SinkGetResponseSchemaFieldsFloat32TypeFloat32 SinkGetResponseSchemaFieldsFloat32Type = "float32"
)

func (SinkGetResponseSchemaFieldsFloat32Type) IsKnown

type SinkGetResponseSchemaFieldsFloat64

type SinkGetResponseSchemaFieldsFloat64 struct {
	Type        SinkGetResponseSchemaFieldsFloat64Type `json:"type" api:"required"`
	MetadataKey string                                 `json:"metadata_key" api:"nullable"`
	Name        string                                 `json:"name"`
	Required    bool                                   `json:"required"`
	SqlName     string                                 `json:"sql_name"`
	JSON        sinkGetResponseSchemaFieldsFloat64JSON `json:"-"`
}

func (*SinkGetResponseSchemaFieldsFloat64) UnmarshalJSON

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

type SinkGetResponseSchemaFieldsFloat64Type

type SinkGetResponseSchemaFieldsFloat64Type string
const (
	SinkGetResponseSchemaFieldsFloat64TypeFloat64 SinkGetResponseSchemaFieldsFloat64Type = "float64"
)

func (SinkGetResponseSchemaFieldsFloat64Type) IsKnown

type SinkGetResponseSchemaFieldsInt32

type SinkGetResponseSchemaFieldsInt32 struct {
	Type        SinkGetResponseSchemaFieldsInt32Type `json:"type" api:"required"`
	MetadataKey string                               `json:"metadata_key" api:"nullable"`
	Name        string                               `json:"name"`
	Required    bool                                 `json:"required"`
	SqlName     string                               `json:"sql_name"`
	JSON        sinkGetResponseSchemaFieldsInt32JSON `json:"-"`
}

func (*SinkGetResponseSchemaFieldsInt32) UnmarshalJSON

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

type SinkGetResponseSchemaFieldsInt32Type

type SinkGetResponseSchemaFieldsInt32Type string
const (
	SinkGetResponseSchemaFieldsInt32TypeInt32 SinkGetResponseSchemaFieldsInt32Type = "int32"
)

func (SinkGetResponseSchemaFieldsInt32Type) IsKnown

type SinkGetResponseSchemaFieldsInt64

type SinkGetResponseSchemaFieldsInt64 struct {
	Type        SinkGetResponseSchemaFieldsInt64Type `json:"type" api:"required"`
	MetadataKey string                               `json:"metadata_key" api:"nullable"`
	Name        string                               `json:"name"`
	Required    bool                                 `json:"required"`
	SqlName     string                               `json:"sql_name"`
	JSON        sinkGetResponseSchemaFieldsInt64JSON `json:"-"`
}

func (*SinkGetResponseSchemaFieldsInt64) UnmarshalJSON

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

type SinkGetResponseSchemaFieldsInt64Type

type SinkGetResponseSchemaFieldsInt64Type string
const (
	SinkGetResponseSchemaFieldsInt64TypeInt64 SinkGetResponseSchemaFieldsInt64Type = "int64"
)

func (SinkGetResponseSchemaFieldsInt64Type) IsKnown

type SinkGetResponseSchemaFieldsJson

type SinkGetResponseSchemaFieldsJson struct {
	Type        SinkGetResponseSchemaFieldsJsonType `json:"type" api:"required"`
	MetadataKey string                              `json:"metadata_key" api:"nullable"`
	Name        string                              `json:"name"`
	Required    bool                                `json:"required"`
	SqlName     string                              `json:"sql_name"`
	JSON        sinkGetResponseSchemaFieldsJsonJSON `json:"-"`
}

func (*SinkGetResponseSchemaFieldsJson) UnmarshalJSON

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

type SinkGetResponseSchemaFieldsJsonType

type SinkGetResponseSchemaFieldsJsonType string
const (
	SinkGetResponseSchemaFieldsJsonTypeJson SinkGetResponseSchemaFieldsJsonType = "json"
)

func (SinkGetResponseSchemaFieldsJsonType) IsKnown

type SinkGetResponseSchemaFieldsList

type SinkGetResponseSchemaFieldsList struct {
	JSON sinkGetResponseSchemaFieldsListJSON `json:"-"`
}

func (*SinkGetResponseSchemaFieldsList) UnmarshalJSON

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

type SinkGetResponseSchemaFieldsString

type SinkGetResponseSchemaFieldsString struct {
	Type        SinkGetResponseSchemaFieldsStringType `json:"type" api:"required"`
	MetadataKey string                                `json:"metadata_key" api:"nullable"`
	Name        string                                `json:"name"`
	Required    bool                                  `json:"required"`
	SqlName     string                                `json:"sql_name"`
	JSON        sinkGetResponseSchemaFieldsStringJSON `json:"-"`
}

func (*SinkGetResponseSchemaFieldsString) UnmarshalJSON

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

type SinkGetResponseSchemaFieldsStringType

type SinkGetResponseSchemaFieldsStringType string
const (
	SinkGetResponseSchemaFieldsStringTypeString SinkGetResponseSchemaFieldsStringType = "string"
)

func (SinkGetResponseSchemaFieldsStringType) IsKnown

type SinkGetResponseSchemaFieldsStruct

type SinkGetResponseSchemaFieldsStruct struct {
	JSON sinkGetResponseSchemaFieldsStructJSON `json:"-"`
}

func (*SinkGetResponseSchemaFieldsStruct) UnmarshalJSON

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

type SinkGetResponseSchemaFieldsTimestamp

type SinkGetResponseSchemaFieldsTimestamp struct {
	Type        SinkGetResponseSchemaFieldsTimestampType `json:"type" api:"required"`
	MetadataKey string                                   `json:"metadata_key" api:"nullable"`
	Name        string                                   `json:"name"`
	Required    bool                                     `json:"required"`
	SqlName     string                                   `json:"sql_name"`
	Unit        SinkGetResponseSchemaFieldsTimestampUnit `json:"unit"`
	JSON        sinkGetResponseSchemaFieldsTimestampJSON `json:"-"`
}

func (*SinkGetResponseSchemaFieldsTimestamp) UnmarshalJSON

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

type SinkGetResponseSchemaFieldsTimestampType

type SinkGetResponseSchemaFieldsTimestampType string
const (
	SinkGetResponseSchemaFieldsTimestampTypeTimestamp SinkGetResponseSchemaFieldsTimestampType = "timestamp"
)

func (SinkGetResponseSchemaFieldsTimestampType) IsKnown

type SinkGetResponseSchemaFieldsTimestampUnit

type SinkGetResponseSchemaFieldsTimestampUnit string
const (
	SinkGetResponseSchemaFieldsTimestampUnitSecond      SinkGetResponseSchemaFieldsTimestampUnit = "second"
	SinkGetResponseSchemaFieldsTimestampUnitMillisecond SinkGetResponseSchemaFieldsTimestampUnit = "millisecond"
	SinkGetResponseSchemaFieldsTimestampUnitMicrosecond SinkGetResponseSchemaFieldsTimestampUnit = "microsecond"
	SinkGetResponseSchemaFieldsTimestampUnitNanosecond  SinkGetResponseSchemaFieldsTimestampUnit = "nanosecond"
)

func (SinkGetResponseSchemaFieldsTimestampUnit) IsKnown

type SinkGetResponseSchemaFieldsType

type SinkGetResponseSchemaFieldsType string
const (
	SinkGetResponseSchemaFieldsTypeInt32     SinkGetResponseSchemaFieldsType = "int32"
	SinkGetResponseSchemaFieldsTypeInt64     SinkGetResponseSchemaFieldsType = "int64"
	SinkGetResponseSchemaFieldsTypeFloat32   SinkGetResponseSchemaFieldsType = "float32"
	SinkGetResponseSchemaFieldsTypeFloat64   SinkGetResponseSchemaFieldsType = "float64"
	SinkGetResponseSchemaFieldsTypeBool      SinkGetResponseSchemaFieldsType = "bool"
	SinkGetResponseSchemaFieldsTypeString    SinkGetResponseSchemaFieldsType = "string"
	SinkGetResponseSchemaFieldsTypeBinary    SinkGetResponseSchemaFieldsType = "binary"
	SinkGetResponseSchemaFieldsTypeTimestamp SinkGetResponseSchemaFieldsType = "timestamp"
	SinkGetResponseSchemaFieldsTypeJson      SinkGetResponseSchemaFieldsType = "json"
	SinkGetResponseSchemaFieldsTypeStruct    SinkGetResponseSchemaFieldsType = "struct"
	SinkGetResponseSchemaFieldsTypeList      SinkGetResponseSchemaFieldsType = "list"
)

func (SinkGetResponseSchemaFieldsType) IsKnown

type SinkGetResponseSchemaFieldsUnit

type SinkGetResponseSchemaFieldsUnit string
const (
	SinkGetResponseSchemaFieldsUnitSecond      SinkGetResponseSchemaFieldsUnit = "second"
	SinkGetResponseSchemaFieldsUnitMillisecond SinkGetResponseSchemaFieldsUnit = "millisecond"
	SinkGetResponseSchemaFieldsUnitMicrosecond SinkGetResponseSchemaFieldsUnit = "microsecond"
	SinkGetResponseSchemaFieldsUnitNanosecond  SinkGetResponseSchemaFieldsUnit = "nanosecond"
)

func (SinkGetResponseSchemaFieldsUnit) IsKnown

type SinkGetResponseSchemaFormat

type SinkGetResponseSchemaFormat struct {
	Type            SinkGetResponseSchemaFormatType            `json:"type" api:"required"`
	Compression     SinkGetResponseSchemaFormatCompression     `json:"compression"`
	DecimalEncoding SinkGetResponseSchemaFormatDecimalEncoding `json:"decimal_encoding"`
	RowGroupBytes   int64                                      `json:"row_group_bytes" api:"nullable"`
	TimestampFormat SinkGetResponseSchemaFormatTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                       `json:"unstructured"`
	JSON            sinkGetResponseSchemaFormatJSON            `json:"-"`
	// contains filtered or unexported fields
}

func (SinkGetResponseSchemaFormat) AsUnion

AsUnion returns a SinkGetResponseSchemaFormatUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are SinkGetResponseSchemaFormatJson, SinkGetResponseSchemaFormatParquet.

func (*SinkGetResponseSchemaFormat) UnmarshalJSON

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

type SinkGetResponseSchemaFormatCompression

type SinkGetResponseSchemaFormatCompression string
const (
	SinkGetResponseSchemaFormatCompressionUncompressed SinkGetResponseSchemaFormatCompression = "uncompressed"
	SinkGetResponseSchemaFormatCompressionSnappy       SinkGetResponseSchemaFormatCompression = "snappy"
	SinkGetResponseSchemaFormatCompressionGzip         SinkGetResponseSchemaFormatCompression = "gzip"
	SinkGetResponseSchemaFormatCompressionZstd         SinkGetResponseSchemaFormatCompression = "zstd"
	SinkGetResponseSchemaFormatCompressionLz4          SinkGetResponseSchemaFormatCompression = "lz4"
)

func (SinkGetResponseSchemaFormatCompression) IsKnown

type SinkGetResponseSchemaFormatDecimalEncoding

type SinkGetResponseSchemaFormatDecimalEncoding string
const (
	SinkGetResponseSchemaFormatDecimalEncodingNumber SinkGetResponseSchemaFormatDecimalEncoding = "number"
	SinkGetResponseSchemaFormatDecimalEncodingString SinkGetResponseSchemaFormatDecimalEncoding = "string"
	SinkGetResponseSchemaFormatDecimalEncodingBytes  SinkGetResponseSchemaFormatDecimalEncoding = "bytes"
)

func (SinkGetResponseSchemaFormatDecimalEncoding) IsKnown

type SinkGetResponseSchemaFormatJson

type SinkGetResponseSchemaFormatJson struct {
	Type            SinkGetResponseSchemaFormatJsonType            `json:"type" api:"required"`
	DecimalEncoding SinkGetResponseSchemaFormatJsonDecimalEncoding `json:"decimal_encoding"`
	TimestampFormat SinkGetResponseSchemaFormatJsonTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                           `json:"unstructured"`
	JSON            sinkGetResponseSchemaFormatJsonJSON            `json:"-"`
}

func (*SinkGetResponseSchemaFormatJson) UnmarshalJSON

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

type SinkGetResponseSchemaFormatJsonDecimalEncoding

type SinkGetResponseSchemaFormatJsonDecimalEncoding string
const (
	SinkGetResponseSchemaFormatJsonDecimalEncodingNumber SinkGetResponseSchemaFormatJsonDecimalEncoding = "number"
	SinkGetResponseSchemaFormatJsonDecimalEncodingString SinkGetResponseSchemaFormatJsonDecimalEncoding = "string"
	SinkGetResponseSchemaFormatJsonDecimalEncodingBytes  SinkGetResponseSchemaFormatJsonDecimalEncoding = "bytes"
)

func (SinkGetResponseSchemaFormatJsonDecimalEncoding) IsKnown

type SinkGetResponseSchemaFormatJsonTimestampFormat

type SinkGetResponseSchemaFormatJsonTimestampFormat string
const (
	SinkGetResponseSchemaFormatJsonTimestampFormatRfc3339    SinkGetResponseSchemaFormatJsonTimestampFormat = "rfc3339"
	SinkGetResponseSchemaFormatJsonTimestampFormatUnixMillis SinkGetResponseSchemaFormatJsonTimestampFormat = "unix_millis"
)

func (SinkGetResponseSchemaFormatJsonTimestampFormat) IsKnown

type SinkGetResponseSchemaFormatJsonType

type SinkGetResponseSchemaFormatJsonType string
const (
	SinkGetResponseSchemaFormatJsonTypeJson SinkGetResponseSchemaFormatJsonType = "json"
)

func (SinkGetResponseSchemaFormatJsonType) IsKnown

type SinkGetResponseSchemaFormatParquet

type SinkGetResponseSchemaFormatParquet struct {
	Type          SinkGetResponseSchemaFormatParquetType        `json:"type" api:"required"`
	Compression   SinkGetResponseSchemaFormatParquetCompression `json:"compression"`
	RowGroupBytes int64                                         `json:"row_group_bytes" api:"nullable"`
	JSON          sinkGetResponseSchemaFormatParquetJSON        `json:"-"`
}

func (*SinkGetResponseSchemaFormatParquet) UnmarshalJSON

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

type SinkGetResponseSchemaFormatParquetCompression

type SinkGetResponseSchemaFormatParquetCompression string
const (
	SinkGetResponseSchemaFormatParquetCompressionUncompressed SinkGetResponseSchemaFormatParquetCompression = "uncompressed"
	SinkGetResponseSchemaFormatParquetCompressionSnappy       SinkGetResponseSchemaFormatParquetCompression = "snappy"
	SinkGetResponseSchemaFormatParquetCompressionGzip         SinkGetResponseSchemaFormatParquetCompression = "gzip"
	SinkGetResponseSchemaFormatParquetCompressionZstd         SinkGetResponseSchemaFormatParquetCompression = "zstd"
	SinkGetResponseSchemaFormatParquetCompressionLz4          SinkGetResponseSchemaFormatParquetCompression = "lz4"
)

func (SinkGetResponseSchemaFormatParquetCompression) IsKnown

type SinkGetResponseSchemaFormatParquetType

type SinkGetResponseSchemaFormatParquetType string
const (
	SinkGetResponseSchemaFormatParquetTypeParquet SinkGetResponseSchemaFormatParquetType = "parquet"
)

func (SinkGetResponseSchemaFormatParquetType) IsKnown

type SinkGetResponseSchemaFormatTimestampFormat

type SinkGetResponseSchemaFormatTimestampFormat string
const (
	SinkGetResponseSchemaFormatTimestampFormatRfc3339    SinkGetResponseSchemaFormatTimestampFormat = "rfc3339"
	SinkGetResponseSchemaFormatTimestampFormatUnixMillis SinkGetResponseSchemaFormatTimestampFormat = "unix_millis"
)

func (SinkGetResponseSchemaFormatTimestampFormat) IsKnown

type SinkGetResponseSchemaFormatType

type SinkGetResponseSchemaFormatType string
const (
	SinkGetResponseSchemaFormatTypeJson    SinkGetResponseSchemaFormatType = "json"
	SinkGetResponseSchemaFormatTypeParquet SinkGetResponseSchemaFormatType = "parquet"
)

func (SinkGetResponseSchemaFormatType) IsKnown

type SinkGetResponseSchemaFormatUnion

type SinkGetResponseSchemaFormatUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by SinkGetResponseSchemaFormatJson or SinkGetResponseSchemaFormatParquet.

type SinkGetResponseType

type SinkGetResponseType string

Specifies the type of sink.

const (
	SinkGetResponseTypeR2            SinkGetResponseType = "r2"
	SinkGetResponseTypeR2DataCatalog SinkGetResponseType = "r2_data_catalog"
)

func (SinkGetResponseType) IsKnown

func (r SinkGetResponseType) IsKnown() bool

type SinkListParams

type SinkListParams struct {
	// Specifies the public ID of the account.
	AccountID  param.Field[string]  `path:"account_id" api:"required"`
	Page       param.Field[float64] `query:"page"`
	PerPage    param.Field[float64] `query:"per_page"`
	PipelineID param.Field[string]  `query:"pipeline_id"`
}

func (SinkListParams) URLQuery

func (r SinkListParams) URLQuery() (v url.Values)

URLQuery serializes SinkListParams's query parameters as `url.Values`.

type SinkListResponse

type SinkListResponse struct {
	// Indicates a unique identifier for this sink.
	ID         string    `json:"id" api:"required"`
	CreatedAt  time.Time `json:"created_at" api:"required" format:"date-time"`
	ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
	// Defines the name of the Sink.
	Name string `json:"name" api:"required"`
	// Specifies the type of sink.
	Type SinkListResponseType `json:"type" api:"required"`
	// Defines the configuration of the R2 Sink.
	Config SinkListResponseConfig `json:"config"`
	Format SinkListResponseFormat `json:"format"`
	Schema SinkListResponseSchema `json:"schema"`
	JSON   sinkListResponseJSON   `json:"-"`
}

func (*SinkListResponse) UnmarshalJSON

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

type SinkListResponseConfig

type SinkListResponseConfig struct {
	// Cloudflare Account ID for the bucket
	AccountID string `json:"account_id" api:"required"`
	// R2 Bucket to write to
	Bucket string `json:"bucket" api:"required"`
	// This field can have the runtime type of
	// [SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNaming].
	FileNaming interface{} `json:"file_naming"`
	// Jurisdiction this bucket is hosted in
	Jurisdiction string `json:"jurisdiction"`
	// Table namespace
	Namespace string `json:"namespace"`
	// This field can have the runtime type of
	// [SinkListResponseConfigCloudflarePipelinesR2TablePublicPartitioning].
	Partitioning interface{} `json:"partitioning"`
	// Subpath within the bucket to write to
	Path string `json:"path"`
	// This field can have the runtime type of
	// [SinkListResponseConfigCloudflarePipelinesR2TablePublicRollingPolicy],
	// [SinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicy].
	RollingPolicy interface{} `json:"rolling_policy"`
	// Table name
	TableName string                     `json:"table_name"`
	JSON      sinkListResponseConfigJSON `json:"-"`
	// contains filtered or unexported fields
}

Defines the configuration of the R2 Sink.

func (SinkListResponseConfig) AsUnion

AsUnion returns a SinkListResponseConfigUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are SinkListResponseConfigCloudflarePipelinesR2TablePublic, SinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublic.

func (*SinkListResponseConfig) UnmarshalJSON

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

type SinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublic

type SinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublic struct {
	// Cloudflare Account ID
	AccountID string `json:"account_id" api:"required" format:"uri"`
	// The R2 Bucket that hosts this catalog
	Bucket string `json:"bucket" api:"required"`
	// Table name
	TableName string `json:"table_name" api:"required"`
	// Table namespace
	Namespace string `json:"namespace"`
	// Rolling policy for file sinks (when & why to close a file and open a new one).
	RollingPolicy SinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicy `json:"rolling_policy"`
	JSON          sinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublicJSON          `json:"-"`
}

R2 Data Catalog Sink public configuration.

func (*SinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublic) UnmarshalJSON

type SinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicy

type SinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicy struct {
	// Files will be rolled after reaching this number of bytes
	FileSizeBytes int64 `json:"file_size_bytes"`
	// Number of seconds of inactivity to wait before rolling over to a new file
	InactivitySeconds int64 `json:"inactivity_seconds"`
	// Number of seconds to wait before rolling over to a new file
	IntervalSeconds int64                                                                              `json:"interval_seconds"`
	JSON            sinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicyJSON `json:"-"`
}

Rolling policy for file sinks (when & why to close a file and open a new one).

func (*SinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicy) UnmarshalJSON

type SinkListResponseConfigCloudflarePipelinesR2TablePublic

type SinkListResponseConfigCloudflarePipelinesR2TablePublic struct {
	// Cloudflare Account ID for the bucket
	AccountID string `json:"account_id" api:"required"`
	// R2 Bucket to write to
	Bucket string `json:"bucket" api:"required"`
	// Controls filename prefix/suffix and strategy.
	FileNaming SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNaming `json:"file_naming"`
	// Jurisdiction this bucket is hosted in
	Jurisdiction string `json:"jurisdiction"`
	// Data-layout partitioning for sinks.
	Partitioning SinkListResponseConfigCloudflarePipelinesR2TablePublicPartitioning `json:"partitioning"`
	// Subpath within the bucket to write to
	Path string `json:"path"`
	// Rolling policy for file sinks (when & why to close a file and open a new one).
	RollingPolicy SinkListResponseConfigCloudflarePipelinesR2TablePublicRollingPolicy `json:"rolling_policy"`
	JSON          sinkListResponseConfigCloudflarePipelinesR2TablePublicJSON          `json:"-"`
}

R2 Sink public configuration.

func (*SinkListResponseConfigCloudflarePipelinesR2TablePublic) UnmarshalJSON

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

type SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNaming

type SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNaming struct {
	// The prefix to use in file name. i.e prefix-<uuid>.parquet
	Prefix string `json:"prefix"`
	// Filename generation strategy.
	Strategy SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy `json:"strategy"`
	// This will overwrite the default file suffix. i.e .parquet, use with caution
	Suffix string                                                               `json:"suffix"`
	JSON   sinkListResponseConfigCloudflarePipelinesR2TablePublicFileNamingJSON `json:"-"`
}

Controls filename prefix/suffix and strategy.

func (*SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNaming) UnmarshalJSON

type SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy

type SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy string

Filename generation strategy.

const (
	SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategySerial SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy = "serial"
	SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategyUUID   SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy = "uuid"
	SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategyUUIDV7 SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy = "uuid_v7"
	SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategyUlid   SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy = "ulid"
)

func (SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy) IsKnown

type SinkListResponseConfigCloudflarePipelinesR2TablePublicPartitioning

type SinkListResponseConfigCloudflarePipelinesR2TablePublicPartitioning struct {
	// The pattern of the date string
	TimePattern string                                                                 `json:"time_pattern"`
	JSON        sinkListResponseConfigCloudflarePipelinesR2TablePublicPartitioningJSON `json:"-"`
}

Data-layout partitioning for sinks.

func (*SinkListResponseConfigCloudflarePipelinesR2TablePublicPartitioning) UnmarshalJSON

type SinkListResponseConfigCloudflarePipelinesR2TablePublicRollingPolicy

type SinkListResponseConfigCloudflarePipelinesR2TablePublicRollingPolicy struct {
	// Files will be rolled after reaching this number of bytes
	FileSizeBytes int64 `json:"file_size_bytes"`
	// Number of seconds of inactivity to wait before rolling over to a new file
	InactivitySeconds int64 `json:"inactivity_seconds"`
	// Number of seconds to wait before rolling over to a new file
	IntervalSeconds int64                                                                   `json:"interval_seconds"`
	JSON            sinkListResponseConfigCloudflarePipelinesR2TablePublicRollingPolicyJSON `json:"-"`
}

Rolling policy for file sinks (when & why to close a file and open a new one).

func (*SinkListResponseConfigCloudflarePipelinesR2TablePublicRollingPolicy) UnmarshalJSON

type SinkListResponseConfigUnion

type SinkListResponseConfigUnion interface {
	// contains filtered or unexported methods
}

Defines the configuration of the R2 Sink.

Union satisfied by SinkListResponseConfigCloudflarePipelinesR2TablePublic or SinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublic.

type SinkListResponseFormat

type SinkListResponseFormat struct {
	Type            SinkListResponseFormatType            `json:"type" api:"required"`
	Compression     SinkListResponseFormatCompression     `json:"compression"`
	DecimalEncoding SinkListResponseFormatDecimalEncoding `json:"decimal_encoding"`
	RowGroupBytes   int64                                 `json:"row_group_bytes" api:"nullable"`
	TimestampFormat SinkListResponseFormatTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                  `json:"unstructured"`
	JSON            sinkListResponseFormatJSON            `json:"-"`
	// contains filtered or unexported fields
}

func (SinkListResponseFormat) AsUnion

AsUnion returns a SinkListResponseFormatUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are SinkListResponseFormatJson, SinkListResponseFormatParquet.

func (*SinkListResponseFormat) UnmarshalJSON

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

type SinkListResponseFormatCompression

type SinkListResponseFormatCompression string
const (
	SinkListResponseFormatCompressionUncompressed SinkListResponseFormatCompression = "uncompressed"
	SinkListResponseFormatCompressionSnappy       SinkListResponseFormatCompression = "snappy"
	SinkListResponseFormatCompressionGzip         SinkListResponseFormatCompression = "gzip"
	SinkListResponseFormatCompressionZstd         SinkListResponseFormatCompression = "zstd"
	SinkListResponseFormatCompressionLz4          SinkListResponseFormatCompression = "lz4"
)

func (SinkListResponseFormatCompression) IsKnown

type SinkListResponseFormatDecimalEncoding

type SinkListResponseFormatDecimalEncoding string
const (
	SinkListResponseFormatDecimalEncodingNumber SinkListResponseFormatDecimalEncoding = "number"
	SinkListResponseFormatDecimalEncodingString SinkListResponseFormatDecimalEncoding = "string"
	SinkListResponseFormatDecimalEncodingBytes  SinkListResponseFormatDecimalEncoding = "bytes"
)

func (SinkListResponseFormatDecimalEncoding) IsKnown

type SinkListResponseFormatJson

type SinkListResponseFormatJson struct {
	Type            SinkListResponseFormatJsonType            `json:"type" api:"required"`
	DecimalEncoding SinkListResponseFormatJsonDecimalEncoding `json:"decimal_encoding"`
	TimestampFormat SinkListResponseFormatJsonTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                      `json:"unstructured"`
	JSON            sinkListResponseFormatJsonJSON            `json:"-"`
}

func (*SinkListResponseFormatJson) UnmarshalJSON

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

type SinkListResponseFormatJsonDecimalEncoding

type SinkListResponseFormatJsonDecimalEncoding string
const (
	SinkListResponseFormatJsonDecimalEncodingNumber SinkListResponseFormatJsonDecimalEncoding = "number"
	SinkListResponseFormatJsonDecimalEncodingString SinkListResponseFormatJsonDecimalEncoding = "string"
	SinkListResponseFormatJsonDecimalEncodingBytes  SinkListResponseFormatJsonDecimalEncoding = "bytes"
)

func (SinkListResponseFormatJsonDecimalEncoding) IsKnown

type SinkListResponseFormatJsonTimestampFormat

type SinkListResponseFormatJsonTimestampFormat string
const (
	SinkListResponseFormatJsonTimestampFormatRfc3339    SinkListResponseFormatJsonTimestampFormat = "rfc3339"
	SinkListResponseFormatJsonTimestampFormatUnixMillis SinkListResponseFormatJsonTimestampFormat = "unix_millis"
)

func (SinkListResponseFormatJsonTimestampFormat) IsKnown

type SinkListResponseFormatJsonType

type SinkListResponseFormatJsonType string
const (
	SinkListResponseFormatJsonTypeJson SinkListResponseFormatJsonType = "json"
)

func (SinkListResponseFormatJsonType) IsKnown

type SinkListResponseFormatParquet

type SinkListResponseFormatParquet struct {
	Type          SinkListResponseFormatParquetType        `json:"type" api:"required"`
	Compression   SinkListResponseFormatParquetCompression `json:"compression"`
	RowGroupBytes int64                                    `json:"row_group_bytes" api:"nullable"`
	JSON          sinkListResponseFormatParquetJSON        `json:"-"`
}

func (*SinkListResponseFormatParquet) UnmarshalJSON

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

type SinkListResponseFormatParquetCompression

type SinkListResponseFormatParquetCompression string
const (
	SinkListResponseFormatParquetCompressionUncompressed SinkListResponseFormatParquetCompression = "uncompressed"
	SinkListResponseFormatParquetCompressionSnappy       SinkListResponseFormatParquetCompression = "snappy"
	SinkListResponseFormatParquetCompressionGzip         SinkListResponseFormatParquetCompression = "gzip"
	SinkListResponseFormatParquetCompressionZstd         SinkListResponseFormatParquetCompression = "zstd"
	SinkListResponseFormatParquetCompressionLz4          SinkListResponseFormatParquetCompression = "lz4"
)

func (SinkListResponseFormatParquetCompression) IsKnown

type SinkListResponseFormatParquetType

type SinkListResponseFormatParquetType string
const (
	SinkListResponseFormatParquetTypeParquet SinkListResponseFormatParquetType = "parquet"
)

func (SinkListResponseFormatParquetType) IsKnown

type SinkListResponseFormatTimestampFormat

type SinkListResponseFormatTimestampFormat string
const (
	SinkListResponseFormatTimestampFormatRfc3339    SinkListResponseFormatTimestampFormat = "rfc3339"
	SinkListResponseFormatTimestampFormatUnixMillis SinkListResponseFormatTimestampFormat = "unix_millis"
)

func (SinkListResponseFormatTimestampFormat) IsKnown

type SinkListResponseFormatType

type SinkListResponseFormatType string
const (
	SinkListResponseFormatTypeJson    SinkListResponseFormatType = "json"
	SinkListResponseFormatTypeParquet SinkListResponseFormatType = "parquet"
)

func (SinkListResponseFormatType) IsKnown

func (r SinkListResponseFormatType) IsKnown() bool

type SinkListResponseFormatUnion

type SinkListResponseFormatUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by SinkListResponseFormatJson or SinkListResponseFormatParquet.

type SinkListResponseSchema

type SinkListResponseSchema struct {
	Fields   []SinkListResponseSchemaField `json:"fields"`
	Format   SinkListResponseSchemaFormat  `json:"format"`
	Inferred bool                          `json:"inferred" api:"nullable"`
	JSON     sinkListResponseSchemaJSON    `json:"-"`
}

func (*SinkListResponseSchema) UnmarshalJSON

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

type SinkListResponseSchemaField

type SinkListResponseSchemaField struct {
	Type        SinkListResponseSchemaFieldsType `json:"type" api:"required"`
	MetadataKey string                           `json:"metadata_key" api:"nullable"`
	Name        string                           `json:"name"`
	Required    bool                             `json:"required"`
	SqlName     string                           `json:"sql_name"`
	Unit        SinkListResponseSchemaFieldsUnit `json:"unit"`
	JSON        sinkListResponseSchemaFieldJSON  `json:"-"`
	// contains filtered or unexported fields
}

func (*SinkListResponseSchemaField) UnmarshalJSON

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

type SinkListResponseSchemaFieldsBinary

type SinkListResponseSchemaFieldsBinary struct {
	Type        SinkListResponseSchemaFieldsBinaryType `json:"type" api:"required"`
	MetadataKey string                                 `json:"metadata_key" api:"nullable"`
	Name        string                                 `json:"name"`
	Required    bool                                   `json:"required"`
	SqlName     string                                 `json:"sql_name"`
	JSON        sinkListResponseSchemaFieldsBinaryJSON `json:"-"`
}

func (*SinkListResponseSchemaFieldsBinary) UnmarshalJSON

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

type SinkListResponseSchemaFieldsBinaryType

type SinkListResponseSchemaFieldsBinaryType string
const (
	SinkListResponseSchemaFieldsBinaryTypeBinary SinkListResponseSchemaFieldsBinaryType = "binary"
)

func (SinkListResponseSchemaFieldsBinaryType) IsKnown

type SinkListResponseSchemaFieldsBool

type SinkListResponseSchemaFieldsBool struct {
	Type        SinkListResponseSchemaFieldsBoolType `json:"type" api:"required"`
	MetadataKey string                               `json:"metadata_key" api:"nullable"`
	Name        string                               `json:"name"`
	Required    bool                                 `json:"required"`
	SqlName     string                               `json:"sql_name"`
	JSON        sinkListResponseSchemaFieldsBoolJSON `json:"-"`
}

func (*SinkListResponseSchemaFieldsBool) UnmarshalJSON

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

type SinkListResponseSchemaFieldsBoolType

type SinkListResponseSchemaFieldsBoolType string
const (
	SinkListResponseSchemaFieldsBoolTypeBool SinkListResponseSchemaFieldsBoolType = "bool"
)

func (SinkListResponseSchemaFieldsBoolType) IsKnown

type SinkListResponseSchemaFieldsFloat32

type SinkListResponseSchemaFieldsFloat32 struct {
	Type        SinkListResponseSchemaFieldsFloat32Type `json:"type" api:"required"`
	MetadataKey string                                  `json:"metadata_key" api:"nullable"`
	Name        string                                  `json:"name"`
	Required    bool                                    `json:"required"`
	SqlName     string                                  `json:"sql_name"`
	JSON        sinkListResponseSchemaFieldsFloat32JSON `json:"-"`
}

func (*SinkListResponseSchemaFieldsFloat32) UnmarshalJSON

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

type SinkListResponseSchemaFieldsFloat32Type

type SinkListResponseSchemaFieldsFloat32Type string
const (
	SinkListResponseSchemaFieldsFloat32TypeFloat32 SinkListResponseSchemaFieldsFloat32Type = "float32"
)

func (SinkListResponseSchemaFieldsFloat32Type) IsKnown

type SinkListResponseSchemaFieldsFloat64

type SinkListResponseSchemaFieldsFloat64 struct {
	Type        SinkListResponseSchemaFieldsFloat64Type `json:"type" api:"required"`
	MetadataKey string                                  `json:"metadata_key" api:"nullable"`
	Name        string                                  `json:"name"`
	Required    bool                                    `json:"required"`
	SqlName     string                                  `json:"sql_name"`
	JSON        sinkListResponseSchemaFieldsFloat64JSON `json:"-"`
}

func (*SinkListResponseSchemaFieldsFloat64) UnmarshalJSON

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

type SinkListResponseSchemaFieldsFloat64Type

type SinkListResponseSchemaFieldsFloat64Type string
const (
	SinkListResponseSchemaFieldsFloat64TypeFloat64 SinkListResponseSchemaFieldsFloat64Type = "float64"
)

func (SinkListResponseSchemaFieldsFloat64Type) IsKnown

type SinkListResponseSchemaFieldsInt32

type SinkListResponseSchemaFieldsInt32 struct {
	Type        SinkListResponseSchemaFieldsInt32Type `json:"type" api:"required"`
	MetadataKey string                                `json:"metadata_key" api:"nullable"`
	Name        string                                `json:"name"`
	Required    bool                                  `json:"required"`
	SqlName     string                                `json:"sql_name"`
	JSON        sinkListResponseSchemaFieldsInt32JSON `json:"-"`
}

func (*SinkListResponseSchemaFieldsInt32) UnmarshalJSON

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

type SinkListResponseSchemaFieldsInt32Type

type SinkListResponseSchemaFieldsInt32Type string
const (
	SinkListResponseSchemaFieldsInt32TypeInt32 SinkListResponseSchemaFieldsInt32Type = "int32"
)

func (SinkListResponseSchemaFieldsInt32Type) IsKnown

type SinkListResponseSchemaFieldsInt64

type SinkListResponseSchemaFieldsInt64 struct {
	Type        SinkListResponseSchemaFieldsInt64Type `json:"type" api:"required"`
	MetadataKey string                                `json:"metadata_key" api:"nullable"`
	Name        string                                `json:"name"`
	Required    bool                                  `json:"required"`
	SqlName     string                                `json:"sql_name"`
	JSON        sinkListResponseSchemaFieldsInt64JSON `json:"-"`
}

func (*SinkListResponseSchemaFieldsInt64) UnmarshalJSON

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

type SinkListResponseSchemaFieldsInt64Type

type SinkListResponseSchemaFieldsInt64Type string
const (
	SinkListResponseSchemaFieldsInt64TypeInt64 SinkListResponseSchemaFieldsInt64Type = "int64"
)

func (SinkListResponseSchemaFieldsInt64Type) IsKnown

type SinkListResponseSchemaFieldsJson

type SinkListResponseSchemaFieldsJson struct {
	Type        SinkListResponseSchemaFieldsJsonType `json:"type" api:"required"`
	MetadataKey string                               `json:"metadata_key" api:"nullable"`
	Name        string                               `json:"name"`
	Required    bool                                 `json:"required"`
	SqlName     string                               `json:"sql_name"`
	JSON        sinkListResponseSchemaFieldsJsonJSON `json:"-"`
}

func (*SinkListResponseSchemaFieldsJson) UnmarshalJSON

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

type SinkListResponseSchemaFieldsJsonType

type SinkListResponseSchemaFieldsJsonType string
const (
	SinkListResponseSchemaFieldsJsonTypeJson SinkListResponseSchemaFieldsJsonType = "json"
)

func (SinkListResponseSchemaFieldsJsonType) IsKnown

type SinkListResponseSchemaFieldsList

type SinkListResponseSchemaFieldsList struct {
	JSON sinkListResponseSchemaFieldsListJSON `json:"-"`
}

func (*SinkListResponseSchemaFieldsList) UnmarshalJSON

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

type SinkListResponseSchemaFieldsString

type SinkListResponseSchemaFieldsString struct {
	Type        SinkListResponseSchemaFieldsStringType `json:"type" api:"required"`
	MetadataKey string                                 `json:"metadata_key" api:"nullable"`
	Name        string                                 `json:"name"`
	Required    bool                                   `json:"required"`
	SqlName     string                                 `json:"sql_name"`
	JSON        sinkListResponseSchemaFieldsStringJSON `json:"-"`
}

func (*SinkListResponseSchemaFieldsString) UnmarshalJSON

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

type SinkListResponseSchemaFieldsStringType

type SinkListResponseSchemaFieldsStringType string
const (
	SinkListResponseSchemaFieldsStringTypeString SinkListResponseSchemaFieldsStringType = "string"
)

func (SinkListResponseSchemaFieldsStringType) IsKnown

type SinkListResponseSchemaFieldsStruct

type SinkListResponseSchemaFieldsStruct struct {
	JSON sinkListResponseSchemaFieldsStructJSON `json:"-"`
}

func (*SinkListResponseSchemaFieldsStruct) UnmarshalJSON

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

type SinkListResponseSchemaFieldsTimestamp

type SinkListResponseSchemaFieldsTimestamp struct {
	Type        SinkListResponseSchemaFieldsTimestampType `json:"type" api:"required"`
	MetadataKey string                                    `json:"metadata_key" api:"nullable"`
	Name        string                                    `json:"name"`
	Required    bool                                      `json:"required"`
	SqlName     string                                    `json:"sql_name"`
	Unit        SinkListResponseSchemaFieldsTimestampUnit `json:"unit"`
	JSON        sinkListResponseSchemaFieldsTimestampJSON `json:"-"`
}

func (*SinkListResponseSchemaFieldsTimestamp) UnmarshalJSON

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

type SinkListResponseSchemaFieldsTimestampType

type SinkListResponseSchemaFieldsTimestampType string
const (
	SinkListResponseSchemaFieldsTimestampTypeTimestamp SinkListResponseSchemaFieldsTimestampType = "timestamp"
)

func (SinkListResponseSchemaFieldsTimestampType) IsKnown

type SinkListResponseSchemaFieldsTimestampUnit

type SinkListResponseSchemaFieldsTimestampUnit string
const (
	SinkListResponseSchemaFieldsTimestampUnitSecond      SinkListResponseSchemaFieldsTimestampUnit = "second"
	SinkListResponseSchemaFieldsTimestampUnitMillisecond SinkListResponseSchemaFieldsTimestampUnit = "millisecond"
	SinkListResponseSchemaFieldsTimestampUnitMicrosecond SinkListResponseSchemaFieldsTimestampUnit = "microsecond"
	SinkListResponseSchemaFieldsTimestampUnitNanosecond  SinkListResponseSchemaFieldsTimestampUnit = "nanosecond"
)

func (SinkListResponseSchemaFieldsTimestampUnit) IsKnown

type SinkListResponseSchemaFieldsType

type SinkListResponseSchemaFieldsType string
const (
	SinkListResponseSchemaFieldsTypeInt32     SinkListResponseSchemaFieldsType = "int32"
	SinkListResponseSchemaFieldsTypeInt64     SinkListResponseSchemaFieldsType = "int64"
	SinkListResponseSchemaFieldsTypeFloat32   SinkListResponseSchemaFieldsType = "float32"
	SinkListResponseSchemaFieldsTypeFloat64   SinkListResponseSchemaFieldsType = "float64"
	SinkListResponseSchemaFieldsTypeBool      SinkListResponseSchemaFieldsType = "bool"
	SinkListResponseSchemaFieldsTypeString    SinkListResponseSchemaFieldsType = "string"
	SinkListResponseSchemaFieldsTypeBinary    SinkListResponseSchemaFieldsType = "binary"
	SinkListResponseSchemaFieldsTypeTimestamp SinkListResponseSchemaFieldsType = "timestamp"
	SinkListResponseSchemaFieldsTypeJson      SinkListResponseSchemaFieldsType = "json"
	SinkListResponseSchemaFieldsTypeStruct    SinkListResponseSchemaFieldsType = "struct"
	SinkListResponseSchemaFieldsTypeList      SinkListResponseSchemaFieldsType = "list"
)

func (SinkListResponseSchemaFieldsType) IsKnown

type SinkListResponseSchemaFieldsUnit

type SinkListResponseSchemaFieldsUnit string
const (
	SinkListResponseSchemaFieldsUnitSecond      SinkListResponseSchemaFieldsUnit = "second"
	SinkListResponseSchemaFieldsUnitMillisecond SinkListResponseSchemaFieldsUnit = "millisecond"
	SinkListResponseSchemaFieldsUnitMicrosecond SinkListResponseSchemaFieldsUnit = "microsecond"
	SinkListResponseSchemaFieldsUnitNanosecond  SinkListResponseSchemaFieldsUnit = "nanosecond"
)

func (SinkListResponseSchemaFieldsUnit) IsKnown

type SinkListResponseSchemaFormat

type SinkListResponseSchemaFormat struct {
	Type            SinkListResponseSchemaFormatType            `json:"type" api:"required"`
	Compression     SinkListResponseSchemaFormatCompression     `json:"compression"`
	DecimalEncoding SinkListResponseSchemaFormatDecimalEncoding `json:"decimal_encoding"`
	RowGroupBytes   int64                                       `json:"row_group_bytes" api:"nullable"`
	TimestampFormat SinkListResponseSchemaFormatTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                        `json:"unstructured"`
	JSON            sinkListResponseSchemaFormatJSON            `json:"-"`
	// contains filtered or unexported fields
}

func (SinkListResponseSchemaFormat) AsUnion

AsUnion returns a SinkListResponseSchemaFormatUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are SinkListResponseSchemaFormatJson, SinkListResponseSchemaFormatParquet.

func (*SinkListResponseSchemaFormat) UnmarshalJSON

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

type SinkListResponseSchemaFormatCompression

type SinkListResponseSchemaFormatCompression string
const (
	SinkListResponseSchemaFormatCompressionUncompressed SinkListResponseSchemaFormatCompression = "uncompressed"
	SinkListResponseSchemaFormatCompressionSnappy       SinkListResponseSchemaFormatCompression = "snappy"
	SinkListResponseSchemaFormatCompressionGzip         SinkListResponseSchemaFormatCompression = "gzip"
	SinkListResponseSchemaFormatCompressionZstd         SinkListResponseSchemaFormatCompression = "zstd"
	SinkListResponseSchemaFormatCompressionLz4          SinkListResponseSchemaFormatCompression = "lz4"
)

func (SinkListResponseSchemaFormatCompression) IsKnown

type SinkListResponseSchemaFormatDecimalEncoding

type SinkListResponseSchemaFormatDecimalEncoding string
const (
	SinkListResponseSchemaFormatDecimalEncodingNumber SinkListResponseSchemaFormatDecimalEncoding = "number"
	SinkListResponseSchemaFormatDecimalEncodingString SinkListResponseSchemaFormatDecimalEncoding = "string"
	SinkListResponseSchemaFormatDecimalEncodingBytes  SinkListResponseSchemaFormatDecimalEncoding = "bytes"
)

func (SinkListResponseSchemaFormatDecimalEncoding) IsKnown

type SinkListResponseSchemaFormatJson

type SinkListResponseSchemaFormatJson struct {
	Type            SinkListResponseSchemaFormatJsonType            `json:"type" api:"required"`
	DecimalEncoding SinkListResponseSchemaFormatJsonDecimalEncoding `json:"decimal_encoding"`
	TimestampFormat SinkListResponseSchemaFormatJsonTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                            `json:"unstructured"`
	JSON            sinkListResponseSchemaFormatJsonJSON            `json:"-"`
}

func (*SinkListResponseSchemaFormatJson) UnmarshalJSON

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

type SinkListResponseSchemaFormatJsonDecimalEncoding

type SinkListResponseSchemaFormatJsonDecimalEncoding string
const (
	SinkListResponseSchemaFormatJsonDecimalEncodingNumber SinkListResponseSchemaFormatJsonDecimalEncoding = "number"
	SinkListResponseSchemaFormatJsonDecimalEncodingString SinkListResponseSchemaFormatJsonDecimalEncoding = "string"
	SinkListResponseSchemaFormatJsonDecimalEncodingBytes  SinkListResponseSchemaFormatJsonDecimalEncoding = "bytes"
)

func (SinkListResponseSchemaFormatJsonDecimalEncoding) IsKnown

type SinkListResponseSchemaFormatJsonTimestampFormat

type SinkListResponseSchemaFormatJsonTimestampFormat string
const (
	SinkListResponseSchemaFormatJsonTimestampFormatRfc3339    SinkListResponseSchemaFormatJsonTimestampFormat = "rfc3339"
	SinkListResponseSchemaFormatJsonTimestampFormatUnixMillis SinkListResponseSchemaFormatJsonTimestampFormat = "unix_millis"
)

func (SinkListResponseSchemaFormatJsonTimestampFormat) IsKnown

type SinkListResponseSchemaFormatJsonType

type SinkListResponseSchemaFormatJsonType string
const (
	SinkListResponseSchemaFormatJsonTypeJson SinkListResponseSchemaFormatJsonType = "json"
)

func (SinkListResponseSchemaFormatJsonType) IsKnown

type SinkListResponseSchemaFormatParquet

type SinkListResponseSchemaFormatParquet struct {
	Type          SinkListResponseSchemaFormatParquetType        `json:"type" api:"required"`
	Compression   SinkListResponseSchemaFormatParquetCompression `json:"compression"`
	RowGroupBytes int64                                          `json:"row_group_bytes" api:"nullable"`
	JSON          sinkListResponseSchemaFormatParquetJSON        `json:"-"`
}

func (*SinkListResponseSchemaFormatParquet) UnmarshalJSON

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

type SinkListResponseSchemaFormatParquetCompression

type SinkListResponseSchemaFormatParquetCompression string
const (
	SinkListResponseSchemaFormatParquetCompressionUncompressed SinkListResponseSchemaFormatParquetCompression = "uncompressed"
	SinkListResponseSchemaFormatParquetCompressionSnappy       SinkListResponseSchemaFormatParquetCompression = "snappy"
	SinkListResponseSchemaFormatParquetCompressionGzip         SinkListResponseSchemaFormatParquetCompression = "gzip"
	SinkListResponseSchemaFormatParquetCompressionZstd         SinkListResponseSchemaFormatParquetCompression = "zstd"
	SinkListResponseSchemaFormatParquetCompressionLz4          SinkListResponseSchemaFormatParquetCompression = "lz4"
)

func (SinkListResponseSchemaFormatParquetCompression) IsKnown

type SinkListResponseSchemaFormatParquetType

type SinkListResponseSchemaFormatParquetType string
const (
	SinkListResponseSchemaFormatParquetTypeParquet SinkListResponseSchemaFormatParquetType = "parquet"
)

func (SinkListResponseSchemaFormatParquetType) IsKnown

type SinkListResponseSchemaFormatTimestampFormat

type SinkListResponseSchemaFormatTimestampFormat string
const (
	SinkListResponseSchemaFormatTimestampFormatRfc3339    SinkListResponseSchemaFormatTimestampFormat = "rfc3339"
	SinkListResponseSchemaFormatTimestampFormatUnixMillis SinkListResponseSchemaFormatTimestampFormat = "unix_millis"
)

func (SinkListResponseSchemaFormatTimestampFormat) IsKnown

type SinkListResponseSchemaFormatType

type SinkListResponseSchemaFormatType string
const (
	SinkListResponseSchemaFormatTypeJson    SinkListResponseSchemaFormatType = "json"
	SinkListResponseSchemaFormatTypeParquet SinkListResponseSchemaFormatType = "parquet"
)

func (SinkListResponseSchemaFormatType) IsKnown

type SinkListResponseSchemaFormatUnion

type SinkListResponseSchemaFormatUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by SinkListResponseSchemaFormatJson or SinkListResponseSchemaFormatParquet.

type SinkListResponseType

type SinkListResponseType string

Specifies the type of sink.

const (
	SinkListResponseTypeR2            SinkListResponseType = "r2"
	SinkListResponseTypeR2DataCatalog SinkListResponseType = "r2_data_catalog"
)

func (SinkListResponseType) IsKnown

func (r SinkListResponseType) IsKnown() bool

type SinkNewParams

type SinkNewParams struct {
	// Specifies the public ID of the account.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Defines the name of the Sink.
	Name param.Field[string] `json:"name" api:"required"`
	// Specifies the type of sink.
	Type param.Field[SinkNewParamsType] `json:"type" api:"required"`
	// Defines the configuration of the R2 Sink.
	Config param.Field[SinkNewParamsConfigUnion] `json:"config"`
	Format param.Field[SinkNewParamsFormatUnion] `json:"format"`
	Schema param.Field[SinkNewParamsSchema]      `json:"schema"`
}

func (SinkNewParams) MarshalJSON

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

type SinkNewParamsConfig

type SinkNewParamsConfig struct {
	// Cloudflare Account ID for the bucket
	AccountID param.Field[string] `json:"account_id" api:"required"`
	// R2 Bucket to write to
	Bucket param.Field[string] `json:"bucket" api:"required"`
	// Authentication token
	Token       param.Field[string]      `json:"token" format:"var-str"`
	Credentials param.Field[interface{}] `json:"credentials"`
	FileNaming  param.Field[interface{}] `json:"file_naming"`
	// Jurisdiction this bucket is hosted in
	Jurisdiction param.Field[string] `json:"jurisdiction"`
	// Table namespace
	Namespace    param.Field[string]      `json:"namespace"`
	Partitioning param.Field[interface{}] `json:"partitioning"`
	// Subpath within the bucket to write to
	Path          param.Field[string]      `json:"path"`
	RollingPolicy param.Field[interface{}] `json:"rolling_policy"`
	// Table name
	TableName param.Field[string] `json:"table_name"`
}

Defines the configuration of the R2 Sink.

func (SinkNewParamsConfig) MarshalJSON

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

type SinkNewParamsConfigCloudflarePipelinesR2DataCatalogTable

type SinkNewParamsConfigCloudflarePipelinesR2DataCatalogTable struct {
	// Authentication token
	Token param.Field[string] `json:"token" api:"required" format:"var-str"`
	// Cloudflare Account ID
	AccountID param.Field[string] `json:"account_id" api:"required" format:"uri"`
	// The R2 Bucket that hosts this catalog
	Bucket param.Field[string] `json:"bucket" api:"required"`
	// Table name
	TableName param.Field[string] `json:"table_name" api:"required"`
	// Table namespace
	Namespace param.Field[string] `json:"namespace"`
	// Rolling policy for file sinks (when & why to close a file and open a new one).
	RollingPolicy param.Field[SinkNewParamsConfigCloudflarePipelinesR2DataCatalogTableRollingPolicy] `json:"rolling_policy"`
}

R2 Data Catalog Sink

func (SinkNewParamsConfigCloudflarePipelinesR2DataCatalogTable) MarshalJSON

type SinkNewParamsConfigCloudflarePipelinesR2DataCatalogTableRollingPolicy

type SinkNewParamsConfigCloudflarePipelinesR2DataCatalogTableRollingPolicy struct {
	// Files will be rolled after reaching this number of bytes
	FileSizeBytes param.Field[int64] `json:"file_size_bytes"`
	// Number of seconds of inactivity to wait before rolling over to a new file
	InactivitySeconds param.Field[int64] `json:"inactivity_seconds"`
	// Number of seconds to wait before rolling over to a new file
	IntervalSeconds param.Field[int64] `json:"interval_seconds"`
}

Rolling policy for file sinks (when & why to close a file and open a new one).

func (SinkNewParamsConfigCloudflarePipelinesR2DataCatalogTableRollingPolicy) MarshalJSON

type SinkNewParamsConfigCloudflarePipelinesR2Table

type SinkNewParamsConfigCloudflarePipelinesR2Table struct {
	// Cloudflare Account ID for the bucket
	AccountID param.Field[string] `json:"account_id" api:"required"`
	// R2 Bucket to write to
	Bucket      param.Field[string]                                                   `json:"bucket" api:"required"`
	Credentials param.Field[SinkNewParamsConfigCloudflarePipelinesR2TableCredentials] `json:"credentials" api:"required"`
	// Controls filename prefix/suffix and strategy.
	FileNaming param.Field[SinkNewParamsConfigCloudflarePipelinesR2TableFileNaming] `json:"file_naming"`
	// Jurisdiction this bucket is hosted in
	Jurisdiction param.Field[string] `json:"jurisdiction"`
	// Data-layout partitioning for sinks.
	Partitioning param.Field[SinkNewParamsConfigCloudflarePipelinesR2TablePartitioning] `json:"partitioning"`
	// Subpath within the bucket to write to
	Path param.Field[string] `json:"path"`
	// Rolling policy for file sinks (when & why to close a file and open a new one).
	RollingPolicy param.Field[SinkNewParamsConfigCloudflarePipelinesR2TableRollingPolicy] `json:"rolling_policy"`
}

func (SinkNewParamsConfigCloudflarePipelinesR2Table) MarshalJSON

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

type SinkNewParamsConfigCloudflarePipelinesR2TableCredentials

type SinkNewParamsConfigCloudflarePipelinesR2TableCredentials struct {
	// Cloudflare Account ID for the bucket
	AccessKeyID param.Field[string] `json:"access_key_id" api:"required" format:"var-str"`
	// Cloudflare Account ID for the bucket
	SecretAccessKey param.Field[string] `json:"secret_access_key" api:"required" format:"var-str"`
}

func (SinkNewParamsConfigCloudflarePipelinesR2TableCredentials) MarshalJSON

type SinkNewParamsConfigCloudflarePipelinesR2TableFileNaming

type SinkNewParamsConfigCloudflarePipelinesR2TableFileNaming struct {
	// The prefix to use in file name. i.e prefix-<uuid>.parquet
	Prefix param.Field[string] `json:"prefix"`
	// Filename generation strategy.
	Strategy param.Field[SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategy] `json:"strategy"`
	// This will overwrite the default file suffix. i.e .parquet, use with caution
	Suffix param.Field[string] `json:"suffix"`
}

Controls filename prefix/suffix and strategy.

func (SinkNewParamsConfigCloudflarePipelinesR2TableFileNaming) MarshalJSON

type SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategy

type SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategy string

Filename generation strategy.

const (
	SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategySerial SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategy = "serial"
	SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategyUUID   SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategy = "uuid"
	SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategyUUIDV7 SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategy = "uuid_v7"
	SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategyUlid   SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategy = "ulid"
)

func (SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategy) IsKnown

type SinkNewParamsConfigCloudflarePipelinesR2TablePartitioning

type SinkNewParamsConfigCloudflarePipelinesR2TablePartitioning struct {
	// The pattern of the date string
	TimePattern param.Field[string] `json:"time_pattern"`
}

Data-layout partitioning for sinks.

func (SinkNewParamsConfigCloudflarePipelinesR2TablePartitioning) MarshalJSON

type SinkNewParamsConfigCloudflarePipelinesR2TableRollingPolicy

type SinkNewParamsConfigCloudflarePipelinesR2TableRollingPolicy struct {
	// Files will be rolled after reaching this number of bytes
	FileSizeBytes param.Field[int64] `json:"file_size_bytes"`
	// Number of seconds of inactivity to wait before rolling over to a new file
	InactivitySeconds param.Field[int64] `json:"inactivity_seconds"`
	// Number of seconds to wait before rolling over to a new file
	IntervalSeconds param.Field[int64] `json:"interval_seconds"`
}

Rolling policy for file sinks (when & why to close a file and open a new one).

func (SinkNewParamsConfigCloudflarePipelinesR2TableRollingPolicy) MarshalJSON

type SinkNewParamsConfigUnion

type SinkNewParamsConfigUnion interface {
	// contains filtered or unexported methods
}

Defines the configuration of the R2 Sink.

Satisfied by pipelines.SinkNewParamsConfigCloudflarePipelinesR2Table, pipelines.SinkNewParamsConfigCloudflarePipelinesR2DataCatalogTable, SinkNewParamsConfig.

type SinkNewParamsFormat

type SinkNewParamsFormat struct {
	Type            param.Field[SinkNewParamsFormatType]            `json:"type" api:"required"`
	Compression     param.Field[SinkNewParamsFormatCompression]     `json:"compression"`
	DecimalEncoding param.Field[SinkNewParamsFormatDecimalEncoding] `json:"decimal_encoding"`
	RowGroupBytes   param.Field[int64]                              `json:"row_group_bytes"`
	TimestampFormat param.Field[SinkNewParamsFormatTimestampFormat] `json:"timestamp_format"`
	Unstructured    param.Field[bool]                               `json:"unstructured"`
}

func (SinkNewParamsFormat) MarshalJSON

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

type SinkNewParamsFormatCompression

type SinkNewParamsFormatCompression string
const (
	SinkNewParamsFormatCompressionUncompressed SinkNewParamsFormatCompression = "uncompressed"
	SinkNewParamsFormatCompressionSnappy       SinkNewParamsFormatCompression = "snappy"
	SinkNewParamsFormatCompressionGzip         SinkNewParamsFormatCompression = "gzip"
	SinkNewParamsFormatCompressionZstd         SinkNewParamsFormatCompression = "zstd"
	SinkNewParamsFormatCompressionLz4          SinkNewParamsFormatCompression = "lz4"
)

func (SinkNewParamsFormatCompression) IsKnown

type SinkNewParamsFormatDecimalEncoding

type SinkNewParamsFormatDecimalEncoding string
const (
	SinkNewParamsFormatDecimalEncodingNumber SinkNewParamsFormatDecimalEncoding = "number"
	SinkNewParamsFormatDecimalEncodingString SinkNewParamsFormatDecimalEncoding = "string"
	SinkNewParamsFormatDecimalEncodingBytes  SinkNewParamsFormatDecimalEncoding = "bytes"
)

func (SinkNewParamsFormatDecimalEncoding) IsKnown

type SinkNewParamsFormatJson

type SinkNewParamsFormatJson struct {
	Type            param.Field[SinkNewParamsFormatJsonType]            `json:"type" api:"required"`
	DecimalEncoding param.Field[SinkNewParamsFormatJsonDecimalEncoding] `json:"decimal_encoding"`
	TimestampFormat param.Field[SinkNewParamsFormatJsonTimestampFormat] `json:"timestamp_format"`
	Unstructured    param.Field[bool]                                   `json:"unstructured"`
}

func (SinkNewParamsFormatJson) MarshalJSON

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

type SinkNewParamsFormatJsonDecimalEncoding

type SinkNewParamsFormatJsonDecimalEncoding string
const (
	SinkNewParamsFormatJsonDecimalEncodingNumber SinkNewParamsFormatJsonDecimalEncoding = "number"
	SinkNewParamsFormatJsonDecimalEncodingString SinkNewParamsFormatJsonDecimalEncoding = "string"
	SinkNewParamsFormatJsonDecimalEncodingBytes  SinkNewParamsFormatJsonDecimalEncoding = "bytes"
)

func (SinkNewParamsFormatJsonDecimalEncoding) IsKnown

type SinkNewParamsFormatJsonTimestampFormat

type SinkNewParamsFormatJsonTimestampFormat string
const (
	SinkNewParamsFormatJsonTimestampFormatRfc3339    SinkNewParamsFormatJsonTimestampFormat = "rfc3339"
	SinkNewParamsFormatJsonTimestampFormatUnixMillis SinkNewParamsFormatJsonTimestampFormat = "unix_millis"
)

func (SinkNewParamsFormatJsonTimestampFormat) IsKnown

type SinkNewParamsFormatJsonType

type SinkNewParamsFormatJsonType string
const (
	SinkNewParamsFormatJsonTypeJson SinkNewParamsFormatJsonType = "json"
)

func (SinkNewParamsFormatJsonType) IsKnown

func (r SinkNewParamsFormatJsonType) IsKnown() bool

type SinkNewParamsFormatParquet

type SinkNewParamsFormatParquet struct {
	Type          param.Field[SinkNewParamsFormatParquetType]        `json:"type" api:"required"`
	Compression   param.Field[SinkNewParamsFormatParquetCompression] `json:"compression"`
	RowGroupBytes param.Field[int64]                                 `json:"row_group_bytes"`
}

func (SinkNewParamsFormatParquet) MarshalJSON

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

type SinkNewParamsFormatParquetCompression

type SinkNewParamsFormatParquetCompression string
const (
	SinkNewParamsFormatParquetCompressionUncompressed SinkNewParamsFormatParquetCompression = "uncompressed"
	SinkNewParamsFormatParquetCompressionSnappy       SinkNewParamsFormatParquetCompression = "snappy"
	SinkNewParamsFormatParquetCompressionGzip         SinkNewParamsFormatParquetCompression = "gzip"
	SinkNewParamsFormatParquetCompressionZstd         SinkNewParamsFormatParquetCompression = "zstd"
	SinkNewParamsFormatParquetCompressionLz4          SinkNewParamsFormatParquetCompression = "lz4"
)

func (SinkNewParamsFormatParquetCompression) IsKnown

type SinkNewParamsFormatParquetType

type SinkNewParamsFormatParquetType string
const (
	SinkNewParamsFormatParquetTypeParquet SinkNewParamsFormatParquetType = "parquet"
)

func (SinkNewParamsFormatParquetType) IsKnown

type SinkNewParamsFormatTimestampFormat

type SinkNewParamsFormatTimestampFormat string
const (
	SinkNewParamsFormatTimestampFormatRfc3339    SinkNewParamsFormatTimestampFormat = "rfc3339"
	SinkNewParamsFormatTimestampFormatUnixMillis SinkNewParamsFormatTimestampFormat = "unix_millis"
)

func (SinkNewParamsFormatTimestampFormat) IsKnown

type SinkNewParamsFormatType

type SinkNewParamsFormatType string
const (
	SinkNewParamsFormatTypeJson    SinkNewParamsFormatType = "json"
	SinkNewParamsFormatTypeParquet SinkNewParamsFormatType = "parquet"
)

func (SinkNewParamsFormatType) IsKnown

func (r SinkNewParamsFormatType) IsKnown() bool

type SinkNewParamsFormatUnion

type SinkNewParamsFormatUnion interface {
	// contains filtered or unexported methods
}

Satisfied by pipelines.SinkNewParamsFormatJson, pipelines.SinkNewParamsFormatParquet, SinkNewParamsFormat.

type SinkNewParamsSchema

type SinkNewParamsSchema struct {
	Fields   param.Field[[]SinkNewParamsSchemaFieldUnion] `json:"fields"`
	Format   param.Field[SinkNewParamsSchemaFormatUnion]  `json:"format"`
	Inferred param.Field[bool]                            `json:"inferred"`
}

func (SinkNewParamsSchema) MarshalJSON

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

type SinkNewParamsSchemaField

type SinkNewParamsSchemaField struct {
	Type        param.Field[SinkNewParamsSchemaFieldsType] `json:"type" api:"required"`
	MetadataKey param.Field[string]                        `json:"metadata_key"`
	Name        param.Field[string]                        `json:"name"`
	Required    param.Field[bool]                          `json:"required"`
	SqlName     param.Field[string]                        `json:"sql_name"`
	Unit        param.Field[SinkNewParamsSchemaFieldsUnit] `json:"unit"`
}

func (SinkNewParamsSchemaField) MarshalJSON

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

type SinkNewParamsSchemaFieldsBinary

type SinkNewParamsSchemaFieldsBinary struct {
	Type        param.Field[SinkNewParamsSchemaFieldsBinaryType] `json:"type" api:"required"`
	MetadataKey param.Field[string]                              `json:"metadata_key"`
	Name        param.Field[string]                              `json:"name"`
	Required    param.Field[bool]                                `json:"required"`
	SqlName     param.Field[string]                              `json:"sql_name"`
}

func (SinkNewParamsSchemaFieldsBinary) MarshalJSON

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

type SinkNewParamsSchemaFieldsBinaryType

type SinkNewParamsSchemaFieldsBinaryType string
const (
	SinkNewParamsSchemaFieldsBinaryTypeBinary SinkNewParamsSchemaFieldsBinaryType = "binary"
)

func (SinkNewParamsSchemaFieldsBinaryType) IsKnown

type SinkNewParamsSchemaFieldsBool

type SinkNewParamsSchemaFieldsBool struct {
	Type        param.Field[SinkNewParamsSchemaFieldsBoolType] `json:"type" api:"required"`
	MetadataKey param.Field[string]                            `json:"metadata_key"`
	Name        param.Field[string]                            `json:"name"`
	Required    param.Field[bool]                              `json:"required"`
	SqlName     param.Field[string]                            `json:"sql_name"`
}

func (SinkNewParamsSchemaFieldsBool) MarshalJSON

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

type SinkNewParamsSchemaFieldsBoolType

type SinkNewParamsSchemaFieldsBoolType string
const (
	SinkNewParamsSchemaFieldsBoolTypeBool SinkNewParamsSchemaFieldsBoolType = "bool"
)

func (SinkNewParamsSchemaFieldsBoolType) IsKnown

type SinkNewParamsSchemaFieldsFloat32

type SinkNewParamsSchemaFieldsFloat32 struct {
	Type        param.Field[SinkNewParamsSchemaFieldsFloat32Type] `json:"type" api:"required"`
	MetadataKey param.Field[string]                               `json:"metadata_key"`
	Name        param.Field[string]                               `json:"name"`
	Required    param.Field[bool]                                 `json:"required"`
	SqlName     param.Field[string]                               `json:"sql_name"`
}

func (SinkNewParamsSchemaFieldsFloat32) MarshalJSON

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

type SinkNewParamsSchemaFieldsFloat32Type

type SinkNewParamsSchemaFieldsFloat32Type string
const (
	SinkNewParamsSchemaFieldsFloat32TypeFloat32 SinkNewParamsSchemaFieldsFloat32Type = "float32"
)

func (SinkNewParamsSchemaFieldsFloat32Type) IsKnown

type SinkNewParamsSchemaFieldsFloat64

type SinkNewParamsSchemaFieldsFloat64 struct {
	Type        param.Field[SinkNewParamsSchemaFieldsFloat64Type] `json:"type" api:"required"`
	MetadataKey param.Field[string]                               `json:"metadata_key"`
	Name        param.Field[string]                               `json:"name"`
	Required    param.Field[bool]                                 `json:"required"`
	SqlName     param.Field[string]                               `json:"sql_name"`
}

func (SinkNewParamsSchemaFieldsFloat64) MarshalJSON

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

type SinkNewParamsSchemaFieldsFloat64Type

type SinkNewParamsSchemaFieldsFloat64Type string
const (
	SinkNewParamsSchemaFieldsFloat64TypeFloat64 SinkNewParamsSchemaFieldsFloat64Type = "float64"
)

func (SinkNewParamsSchemaFieldsFloat64Type) IsKnown

type SinkNewParamsSchemaFieldsInt32

type SinkNewParamsSchemaFieldsInt32 struct {
	Type        param.Field[SinkNewParamsSchemaFieldsInt32Type] `json:"type" api:"required"`
	MetadataKey param.Field[string]                             `json:"metadata_key"`
	Name        param.Field[string]                             `json:"name"`
	Required    param.Field[bool]                               `json:"required"`
	SqlName     param.Field[string]                             `json:"sql_name"`
}

func (SinkNewParamsSchemaFieldsInt32) MarshalJSON

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

type SinkNewParamsSchemaFieldsInt32Type

type SinkNewParamsSchemaFieldsInt32Type string
const (
	SinkNewParamsSchemaFieldsInt32TypeInt32 SinkNewParamsSchemaFieldsInt32Type = "int32"
)

func (SinkNewParamsSchemaFieldsInt32Type) IsKnown

type SinkNewParamsSchemaFieldsInt64

type SinkNewParamsSchemaFieldsInt64 struct {
	Type        param.Field[SinkNewParamsSchemaFieldsInt64Type] `json:"type" api:"required"`
	MetadataKey param.Field[string]                             `json:"metadata_key"`
	Name        param.Field[string]                             `json:"name"`
	Required    param.Field[bool]                               `json:"required"`
	SqlName     param.Field[string]                             `json:"sql_name"`
}

func (SinkNewParamsSchemaFieldsInt64) MarshalJSON

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

type SinkNewParamsSchemaFieldsInt64Type

type SinkNewParamsSchemaFieldsInt64Type string
const (
	SinkNewParamsSchemaFieldsInt64TypeInt64 SinkNewParamsSchemaFieldsInt64Type = "int64"
)

func (SinkNewParamsSchemaFieldsInt64Type) IsKnown

type SinkNewParamsSchemaFieldsJson

type SinkNewParamsSchemaFieldsJson struct {
	Type        param.Field[SinkNewParamsSchemaFieldsJsonType] `json:"type" api:"required"`
	MetadataKey param.Field[string]                            `json:"metadata_key"`
	Name        param.Field[string]                            `json:"name"`
	Required    param.Field[bool]                              `json:"required"`
	SqlName     param.Field[string]                            `json:"sql_name"`
}

func (SinkNewParamsSchemaFieldsJson) MarshalJSON

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

type SinkNewParamsSchemaFieldsJsonType

type SinkNewParamsSchemaFieldsJsonType string
const (
	SinkNewParamsSchemaFieldsJsonTypeJson SinkNewParamsSchemaFieldsJsonType = "json"
)

func (SinkNewParamsSchemaFieldsJsonType) IsKnown

type SinkNewParamsSchemaFieldsList

type SinkNewParamsSchemaFieldsList struct {
}

func (SinkNewParamsSchemaFieldsList) MarshalJSON

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

type SinkNewParamsSchemaFieldsString

type SinkNewParamsSchemaFieldsString struct {
	Type        param.Field[SinkNewParamsSchemaFieldsStringType] `json:"type" api:"required"`
	MetadataKey param.Field[string]                              `json:"metadata_key"`
	Name        param.Field[string]                              `json:"name"`
	Required    param.Field[bool]                                `json:"required"`
	SqlName     param.Field[string]                              `json:"sql_name"`
}

func (SinkNewParamsSchemaFieldsString) MarshalJSON

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

type SinkNewParamsSchemaFieldsStringType

type SinkNewParamsSchemaFieldsStringType string
const (
	SinkNewParamsSchemaFieldsStringTypeString SinkNewParamsSchemaFieldsStringType = "string"
)

func (SinkNewParamsSchemaFieldsStringType) IsKnown

type SinkNewParamsSchemaFieldsStruct

type SinkNewParamsSchemaFieldsStruct struct {
}

func (SinkNewParamsSchemaFieldsStruct) MarshalJSON

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

type SinkNewParamsSchemaFieldsTimestamp

type SinkNewParamsSchemaFieldsTimestamp struct {
	Type        param.Field[SinkNewParamsSchemaFieldsTimestampType] `json:"type" api:"required"`
	MetadataKey param.Field[string]                                 `json:"metadata_key"`
	Name        param.Field[string]                                 `json:"name"`
	Required    param.Field[bool]                                   `json:"required"`
	SqlName     param.Field[string]                                 `json:"sql_name"`
	Unit        param.Field[SinkNewParamsSchemaFieldsTimestampUnit] `json:"unit"`
}

func (SinkNewParamsSchemaFieldsTimestamp) MarshalJSON

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

type SinkNewParamsSchemaFieldsTimestampType

type SinkNewParamsSchemaFieldsTimestampType string
const (
	SinkNewParamsSchemaFieldsTimestampTypeTimestamp SinkNewParamsSchemaFieldsTimestampType = "timestamp"
)

func (SinkNewParamsSchemaFieldsTimestampType) IsKnown

type SinkNewParamsSchemaFieldsTimestampUnit

type SinkNewParamsSchemaFieldsTimestampUnit string
const (
	SinkNewParamsSchemaFieldsTimestampUnitSecond      SinkNewParamsSchemaFieldsTimestampUnit = "second"
	SinkNewParamsSchemaFieldsTimestampUnitMillisecond SinkNewParamsSchemaFieldsTimestampUnit = "millisecond"
	SinkNewParamsSchemaFieldsTimestampUnitMicrosecond SinkNewParamsSchemaFieldsTimestampUnit = "microsecond"
	SinkNewParamsSchemaFieldsTimestampUnitNanosecond  SinkNewParamsSchemaFieldsTimestampUnit = "nanosecond"
)

func (SinkNewParamsSchemaFieldsTimestampUnit) IsKnown

type SinkNewParamsSchemaFieldsType

type SinkNewParamsSchemaFieldsType string
const (
	SinkNewParamsSchemaFieldsTypeInt32     SinkNewParamsSchemaFieldsType = "int32"
	SinkNewParamsSchemaFieldsTypeInt64     SinkNewParamsSchemaFieldsType = "int64"
	SinkNewParamsSchemaFieldsTypeFloat32   SinkNewParamsSchemaFieldsType = "float32"
	SinkNewParamsSchemaFieldsTypeFloat64   SinkNewParamsSchemaFieldsType = "float64"
	SinkNewParamsSchemaFieldsTypeBool      SinkNewParamsSchemaFieldsType = "bool"
	SinkNewParamsSchemaFieldsTypeString    SinkNewParamsSchemaFieldsType = "string"
	SinkNewParamsSchemaFieldsTypeBinary    SinkNewParamsSchemaFieldsType = "binary"
	SinkNewParamsSchemaFieldsTypeTimestamp SinkNewParamsSchemaFieldsType = "timestamp"
	SinkNewParamsSchemaFieldsTypeJson      SinkNewParamsSchemaFieldsType = "json"
	SinkNewParamsSchemaFieldsTypeStruct    SinkNewParamsSchemaFieldsType = "struct"
	SinkNewParamsSchemaFieldsTypeList      SinkNewParamsSchemaFieldsType = "list"
)

func (SinkNewParamsSchemaFieldsType) IsKnown

func (r SinkNewParamsSchemaFieldsType) IsKnown() bool

type SinkNewParamsSchemaFieldsUnit

type SinkNewParamsSchemaFieldsUnit string
const (
	SinkNewParamsSchemaFieldsUnitSecond      SinkNewParamsSchemaFieldsUnit = "second"
	SinkNewParamsSchemaFieldsUnitMillisecond SinkNewParamsSchemaFieldsUnit = "millisecond"
	SinkNewParamsSchemaFieldsUnitMicrosecond SinkNewParamsSchemaFieldsUnit = "microsecond"
	SinkNewParamsSchemaFieldsUnitNanosecond  SinkNewParamsSchemaFieldsUnit = "nanosecond"
)

func (SinkNewParamsSchemaFieldsUnit) IsKnown

func (r SinkNewParamsSchemaFieldsUnit) IsKnown() bool

type SinkNewParamsSchemaFormat

type SinkNewParamsSchemaFormat struct {
	Type            param.Field[SinkNewParamsSchemaFormatType]            `json:"type" api:"required"`
	Compression     param.Field[SinkNewParamsSchemaFormatCompression]     `json:"compression"`
	DecimalEncoding param.Field[SinkNewParamsSchemaFormatDecimalEncoding] `json:"decimal_encoding"`
	RowGroupBytes   param.Field[int64]                                    `json:"row_group_bytes"`
	TimestampFormat param.Field[SinkNewParamsSchemaFormatTimestampFormat] `json:"timestamp_format"`
	Unstructured    param.Field[bool]                                     `json:"unstructured"`
}

func (SinkNewParamsSchemaFormat) MarshalJSON

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

type SinkNewParamsSchemaFormatCompression

type SinkNewParamsSchemaFormatCompression string
const (
	SinkNewParamsSchemaFormatCompressionUncompressed SinkNewParamsSchemaFormatCompression = "uncompressed"
	SinkNewParamsSchemaFormatCompressionSnappy       SinkNewParamsSchemaFormatCompression = "snappy"
	SinkNewParamsSchemaFormatCompressionGzip         SinkNewParamsSchemaFormatCompression = "gzip"
	SinkNewParamsSchemaFormatCompressionZstd         SinkNewParamsSchemaFormatCompression = "zstd"
	SinkNewParamsSchemaFormatCompressionLz4          SinkNewParamsSchemaFormatCompression = "lz4"
)

func (SinkNewParamsSchemaFormatCompression) IsKnown

type SinkNewParamsSchemaFormatDecimalEncoding

type SinkNewParamsSchemaFormatDecimalEncoding string
const (
	SinkNewParamsSchemaFormatDecimalEncodingNumber SinkNewParamsSchemaFormatDecimalEncoding = "number"
	SinkNewParamsSchemaFormatDecimalEncodingString SinkNewParamsSchemaFormatDecimalEncoding = "string"
	SinkNewParamsSchemaFormatDecimalEncodingBytes  SinkNewParamsSchemaFormatDecimalEncoding = "bytes"
)

func (SinkNewParamsSchemaFormatDecimalEncoding) IsKnown

type SinkNewParamsSchemaFormatJson

type SinkNewParamsSchemaFormatJson struct {
	Type            param.Field[SinkNewParamsSchemaFormatJsonType]            `json:"type" api:"required"`
	DecimalEncoding param.Field[SinkNewParamsSchemaFormatJsonDecimalEncoding] `json:"decimal_encoding"`
	TimestampFormat param.Field[SinkNewParamsSchemaFormatJsonTimestampFormat] `json:"timestamp_format"`
	Unstructured    param.Field[bool]                                         `json:"unstructured"`
}

func (SinkNewParamsSchemaFormatJson) MarshalJSON

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

type SinkNewParamsSchemaFormatJsonDecimalEncoding

type SinkNewParamsSchemaFormatJsonDecimalEncoding string
const (
	SinkNewParamsSchemaFormatJsonDecimalEncodingNumber SinkNewParamsSchemaFormatJsonDecimalEncoding = "number"
	SinkNewParamsSchemaFormatJsonDecimalEncodingString SinkNewParamsSchemaFormatJsonDecimalEncoding = "string"
	SinkNewParamsSchemaFormatJsonDecimalEncodingBytes  SinkNewParamsSchemaFormatJsonDecimalEncoding = "bytes"
)

func (SinkNewParamsSchemaFormatJsonDecimalEncoding) IsKnown

type SinkNewParamsSchemaFormatJsonTimestampFormat

type SinkNewParamsSchemaFormatJsonTimestampFormat string
const (
	SinkNewParamsSchemaFormatJsonTimestampFormatRfc3339    SinkNewParamsSchemaFormatJsonTimestampFormat = "rfc3339"
	SinkNewParamsSchemaFormatJsonTimestampFormatUnixMillis SinkNewParamsSchemaFormatJsonTimestampFormat = "unix_millis"
)

func (SinkNewParamsSchemaFormatJsonTimestampFormat) IsKnown

type SinkNewParamsSchemaFormatJsonType

type SinkNewParamsSchemaFormatJsonType string
const (
	SinkNewParamsSchemaFormatJsonTypeJson SinkNewParamsSchemaFormatJsonType = "json"
)

func (SinkNewParamsSchemaFormatJsonType) IsKnown

type SinkNewParamsSchemaFormatParquet

type SinkNewParamsSchemaFormatParquet struct {
	Type          param.Field[SinkNewParamsSchemaFormatParquetType]        `json:"type" api:"required"`
	Compression   param.Field[SinkNewParamsSchemaFormatParquetCompression] `json:"compression"`
	RowGroupBytes param.Field[int64]                                       `json:"row_group_bytes"`
}

func (SinkNewParamsSchemaFormatParquet) MarshalJSON

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

type SinkNewParamsSchemaFormatParquetCompression

type SinkNewParamsSchemaFormatParquetCompression string
const (
	SinkNewParamsSchemaFormatParquetCompressionUncompressed SinkNewParamsSchemaFormatParquetCompression = "uncompressed"
	SinkNewParamsSchemaFormatParquetCompressionSnappy       SinkNewParamsSchemaFormatParquetCompression = "snappy"
	SinkNewParamsSchemaFormatParquetCompressionGzip         SinkNewParamsSchemaFormatParquetCompression = "gzip"
	SinkNewParamsSchemaFormatParquetCompressionZstd         SinkNewParamsSchemaFormatParquetCompression = "zstd"
	SinkNewParamsSchemaFormatParquetCompressionLz4          SinkNewParamsSchemaFormatParquetCompression = "lz4"
)

func (SinkNewParamsSchemaFormatParquetCompression) IsKnown

type SinkNewParamsSchemaFormatParquetType

type SinkNewParamsSchemaFormatParquetType string
const (
	SinkNewParamsSchemaFormatParquetTypeParquet SinkNewParamsSchemaFormatParquetType = "parquet"
)

func (SinkNewParamsSchemaFormatParquetType) IsKnown

type SinkNewParamsSchemaFormatTimestampFormat

type SinkNewParamsSchemaFormatTimestampFormat string
const (
	SinkNewParamsSchemaFormatTimestampFormatRfc3339    SinkNewParamsSchemaFormatTimestampFormat = "rfc3339"
	SinkNewParamsSchemaFormatTimestampFormatUnixMillis SinkNewParamsSchemaFormatTimestampFormat = "unix_millis"
)

func (SinkNewParamsSchemaFormatTimestampFormat) IsKnown

type SinkNewParamsSchemaFormatType

type SinkNewParamsSchemaFormatType string
const (
	SinkNewParamsSchemaFormatTypeJson    SinkNewParamsSchemaFormatType = "json"
	SinkNewParamsSchemaFormatTypeParquet SinkNewParamsSchemaFormatType = "parquet"
)

func (SinkNewParamsSchemaFormatType) IsKnown

func (r SinkNewParamsSchemaFormatType) IsKnown() bool

type SinkNewParamsSchemaFormatUnion

type SinkNewParamsSchemaFormatUnion interface {
	// contains filtered or unexported methods
}

Satisfied by pipelines.SinkNewParamsSchemaFormatJson, pipelines.SinkNewParamsSchemaFormatParquet, SinkNewParamsSchemaFormat.

type SinkNewParamsType

type SinkNewParamsType string

Specifies the type of sink.

const (
	SinkNewParamsTypeR2            SinkNewParamsType = "r2"
	SinkNewParamsTypeR2DataCatalog SinkNewParamsType = "r2_data_catalog"
)

func (SinkNewParamsType) IsKnown

func (r SinkNewParamsType) IsKnown() bool

type SinkNewResponse

type SinkNewResponse struct {
	// Indicates a unique identifier for this sink.
	ID         string    `json:"id" api:"required"`
	CreatedAt  time.Time `json:"created_at" api:"required" format:"date-time"`
	ModifiedAt time.Time `json:"modified_at" api:"required" format:"date-time"`
	// Defines the name of the Sink.
	Name string `json:"name" api:"required"`
	// Specifies the type of sink.
	Type SinkNewResponseType `json:"type" api:"required"`
	// R2 Data Catalog Sink
	Config SinkNewResponseConfig `json:"config"`
	Format SinkNewResponseFormat `json:"format"`
	Schema SinkNewResponseSchema `json:"schema"`
	JSON   sinkNewResponseJSON   `json:"-"`
}

func (*SinkNewResponse) UnmarshalJSON

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

type SinkNewResponseConfig

type SinkNewResponseConfig struct {
	// Cloudflare Account ID for the bucket
	AccountID string `json:"account_id" api:"required"`
	// R2 Bucket to write to
	Bucket string `json:"bucket" api:"required"`
	// Authentication token
	Token string `json:"token" format:"var-str"`
	// This field can have the runtime type of
	// [SinkNewResponseConfigCloudflarePipelinesR2TableCredentials].
	Credentials interface{} `json:"credentials"`
	// This field can have the runtime type of
	// [SinkNewResponseConfigCloudflarePipelinesR2TableFileNaming].
	FileNaming interface{} `json:"file_naming"`
	// Jurisdiction this bucket is hosted in
	Jurisdiction string `json:"jurisdiction"`
	// Table namespace
	Namespace string `json:"namespace"`
	// This field can have the runtime type of
	// [SinkNewResponseConfigCloudflarePipelinesR2TablePartitioning].
	Partitioning interface{} `json:"partitioning"`
	// Subpath within the bucket to write to
	Path string `json:"path"`
	// This field can have the runtime type of
	// [SinkNewResponseConfigCloudflarePipelinesR2TableRollingPolicy],
	// [SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTableRollingPolicy].
	RollingPolicy interface{} `json:"rolling_policy"`
	// Table name
	TableName string                    `json:"table_name"`
	JSON      sinkNewResponseConfigJSON `json:"-"`
	// contains filtered or unexported fields
}

R2 Data Catalog Sink

func (SinkNewResponseConfig) AsUnion

AsUnion returns a SinkNewResponseConfigUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are SinkNewResponseConfigCloudflarePipelinesR2Table, SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTable.

func (*SinkNewResponseConfig) UnmarshalJSON

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

type SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTable

type SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTable struct {
	// Authentication token
	Token string `json:"token" api:"required" format:"var-str"`
	// Cloudflare Account ID
	AccountID string `json:"account_id" api:"required" format:"uri"`
	// The R2 Bucket that hosts this catalog
	Bucket string `json:"bucket" api:"required"`
	// Table name
	TableName string `json:"table_name" api:"required"`
	// Table namespace
	Namespace string `json:"namespace"`
	// Rolling policy for file sinks (when & why to close a file and open a new one).
	RollingPolicy SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTableRollingPolicy `json:"rolling_policy"`
	JSON          sinkNewResponseConfigCloudflarePipelinesR2DataCatalogTableJSON          `json:"-"`
}

R2 Data Catalog Sink

func (*SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTable) UnmarshalJSON

type SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTableRollingPolicy

type SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTableRollingPolicy struct {
	// Files will be rolled after reaching this number of bytes
	FileSizeBytes int64 `json:"file_size_bytes"`
	// Number of seconds of inactivity to wait before rolling over to a new file
	InactivitySeconds int64 `json:"inactivity_seconds"`
	// Number of seconds to wait before rolling over to a new file
	IntervalSeconds int64                                                                       `json:"interval_seconds"`
	JSON            sinkNewResponseConfigCloudflarePipelinesR2DataCatalogTableRollingPolicyJSON `json:"-"`
}

Rolling policy for file sinks (when & why to close a file and open a new one).

func (*SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTableRollingPolicy) UnmarshalJSON

type SinkNewResponseConfigCloudflarePipelinesR2Table

type SinkNewResponseConfigCloudflarePipelinesR2Table struct {
	// Cloudflare Account ID for the bucket
	AccountID string `json:"account_id" api:"required"`
	// R2 Bucket to write to
	Bucket      string                                                     `json:"bucket" api:"required"`
	Credentials SinkNewResponseConfigCloudflarePipelinesR2TableCredentials `json:"credentials" api:"required"`
	// Controls filename prefix/suffix and strategy.
	FileNaming SinkNewResponseConfigCloudflarePipelinesR2TableFileNaming `json:"file_naming"`
	// Jurisdiction this bucket is hosted in
	Jurisdiction string `json:"jurisdiction"`
	// Data-layout partitioning for sinks.
	Partitioning SinkNewResponseConfigCloudflarePipelinesR2TablePartitioning `json:"partitioning"`
	// Subpath within the bucket to write to
	Path string `json:"path"`
	// Rolling policy for file sinks (when & why to close a file and open a new one).
	RollingPolicy SinkNewResponseConfigCloudflarePipelinesR2TableRollingPolicy `json:"rolling_policy"`
	JSON          sinkNewResponseConfigCloudflarePipelinesR2TableJSON          `json:"-"`
}

func (*SinkNewResponseConfigCloudflarePipelinesR2Table) UnmarshalJSON

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

type SinkNewResponseConfigCloudflarePipelinesR2TableCredentials

type SinkNewResponseConfigCloudflarePipelinesR2TableCredentials struct {
	// Cloudflare Account ID for the bucket
	AccessKeyID string `json:"access_key_id" api:"required" format:"var-str"`
	// Cloudflare Account ID for the bucket
	SecretAccessKey string                                                         `json:"secret_access_key" api:"required" format:"var-str"`
	JSON            sinkNewResponseConfigCloudflarePipelinesR2TableCredentialsJSON `json:"-"`
}

func (*SinkNewResponseConfigCloudflarePipelinesR2TableCredentials) UnmarshalJSON

type SinkNewResponseConfigCloudflarePipelinesR2TableFileNaming

type SinkNewResponseConfigCloudflarePipelinesR2TableFileNaming struct {
	// The prefix to use in file name. i.e prefix-<uuid>.parquet
	Prefix string `json:"prefix"`
	// Filename generation strategy.
	Strategy SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategy `json:"strategy"`
	// This will overwrite the default file suffix. i.e .parquet, use with caution
	Suffix string                                                        `json:"suffix"`
	JSON   sinkNewResponseConfigCloudflarePipelinesR2TableFileNamingJSON `json:"-"`
}

Controls filename prefix/suffix and strategy.

func (*SinkNewResponseConfigCloudflarePipelinesR2TableFileNaming) UnmarshalJSON

type SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategy

type SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategy string

Filename generation strategy.

const (
	SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategySerial SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategy = "serial"
	SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategyUUID   SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategy = "uuid"
	SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategyUUIDV7 SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategy = "uuid_v7"
	SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategyUlid   SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategy = "ulid"
)

func (SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategy) IsKnown

type SinkNewResponseConfigCloudflarePipelinesR2TablePartitioning

type SinkNewResponseConfigCloudflarePipelinesR2TablePartitioning struct {
	// The pattern of the date string
	TimePattern string                                                          `json:"time_pattern"`
	JSON        sinkNewResponseConfigCloudflarePipelinesR2TablePartitioningJSON `json:"-"`
}

Data-layout partitioning for sinks.

func (*SinkNewResponseConfigCloudflarePipelinesR2TablePartitioning) UnmarshalJSON

type SinkNewResponseConfigCloudflarePipelinesR2TableRollingPolicy

type SinkNewResponseConfigCloudflarePipelinesR2TableRollingPolicy struct {
	// Files will be rolled after reaching this number of bytes
	FileSizeBytes int64 `json:"file_size_bytes"`
	// Number of seconds of inactivity to wait before rolling over to a new file
	InactivitySeconds int64 `json:"inactivity_seconds"`
	// Number of seconds to wait before rolling over to a new file
	IntervalSeconds int64                                                            `json:"interval_seconds"`
	JSON            sinkNewResponseConfigCloudflarePipelinesR2TableRollingPolicyJSON `json:"-"`
}

Rolling policy for file sinks (when & why to close a file and open a new one).

func (*SinkNewResponseConfigCloudflarePipelinesR2TableRollingPolicy) UnmarshalJSON

type SinkNewResponseConfigUnion

type SinkNewResponseConfigUnion interface {
	// contains filtered or unexported methods
}

R2 Data Catalog Sink

Union satisfied by SinkNewResponseConfigCloudflarePipelinesR2Table or SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTable.

type SinkNewResponseEnvelope

type SinkNewResponseEnvelope struct {
	Result SinkNewResponse `json:"result" api:"required"`
	// Indicates whether the API call was successful.
	Success bool                        `json:"success" api:"required"`
	JSON    sinkNewResponseEnvelopeJSON `json:"-"`
}

func (*SinkNewResponseEnvelope) UnmarshalJSON

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

type SinkNewResponseFormat

type SinkNewResponseFormat struct {
	Type            SinkNewResponseFormatType            `json:"type" api:"required"`
	Compression     SinkNewResponseFormatCompression     `json:"compression"`
	DecimalEncoding SinkNewResponseFormatDecimalEncoding `json:"decimal_encoding"`
	RowGroupBytes   int64                                `json:"row_group_bytes" api:"nullable"`
	TimestampFormat SinkNewResponseFormatTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                 `json:"unstructured"`
	JSON            sinkNewResponseFormatJSON            `json:"-"`
	// contains filtered or unexported fields
}

func (SinkNewResponseFormat) AsUnion

AsUnion returns a SinkNewResponseFormatUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are SinkNewResponseFormatJson, SinkNewResponseFormatParquet.

func (*SinkNewResponseFormat) UnmarshalJSON

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

type SinkNewResponseFormatCompression

type SinkNewResponseFormatCompression string
const (
	SinkNewResponseFormatCompressionUncompressed SinkNewResponseFormatCompression = "uncompressed"
	SinkNewResponseFormatCompressionSnappy       SinkNewResponseFormatCompression = "snappy"
	SinkNewResponseFormatCompressionGzip         SinkNewResponseFormatCompression = "gzip"
	SinkNewResponseFormatCompressionZstd         SinkNewResponseFormatCompression = "zstd"
	SinkNewResponseFormatCompressionLz4          SinkNewResponseFormatCompression = "lz4"
)

func (SinkNewResponseFormatCompression) IsKnown

type SinkNewResponseFormatDecimalEncoding

type SinkNewResponseFormatDecimalEncoding string
const (
	SinkNewResponseFormatDecimalEncodingNumber SinkNewResponseFormatDecimalEncoding = "number"
	SinkNewResponseFormatDecimalEncodingString SinkNewResponseFormatDecimalEncoding = "string"
	SinkNewResponseFormatDecimalEncodingBytes  SinkNewResponseFormatDecimalEncoding = "bytes"
)

func (SinkNewResponseFormatDecimalEncoding) IsKnown

type SinkNewResponseFormatJson

type SinkNewResponseFormatJson struct {
	Type            SinkNewResponseFormatJsonType            `json:"type" api:"required"`
	DecimalEncoding SinkNewResponseFormatJsonDecimalEncoding `json:"decimal_encoding"`
	TimestampFormat SinkNewResponseFormatJsonTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                     `json:"unstructured"`
	JSON            sinkNewResponseFormatJsonJSON            `json:"-"`
}

func (*SinkNewResponseFormatJson) UnmarshalJSON

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

type SinkNewResponseFormatJsonDecimalEncoding

type SinkNewResponseFormatJsonDecimalEncoding string
const (
	SinkNewResponseFormatJsonDecimalEncodingNumber SinkNewResponseFormatJsonDecimalEncoding = "number"
	SinkNewResponseFormatJsonDecimalEncodingString SinkNewResponseFormatJsonDecimalEncoding = "string"
	SinkNewResponseFormatJsonDecimalEncodingBytes  SinkNewResponseFormatJsonDecimalEncoding = "bytes"
)

func (SinkNewResponseFormatJsonDecimalEncoding) IsKnown

type SinkNewResponseFormatJsonTimestampFormat

type SinkNewResponseFormatJsonTimestampFormat string
const (
	SinkNewResponseFormatJsonTimestampFormatRfc3339    SinkNewResponseFormatJsonTimestampFormat = "rfc3339"
	SinkNewResponseFormatJsonTimestampFormatUnixMillis SinkNewResponseFormatJsonTimestampFormat = "unix_millis"
)

func (SinkNewResponseFormatJsonTimestampFormat) IsKnown

type SinkNewResponseFormatJsonType

type SinkNewResponseFormatJsonType string
const (
	SinkNewResponseFormatJsonTypeJson SinkNewResponseFormatJsonType = "json"
)

func (SinkNewResponseFormatJsonType) IsKnown

func (r SinkNewResponseFormatJsonType) IsKnown() bool

type SinkNewResponseFormatParquet

type SinkNewResponseFormatParquet struct {
	Type          SinkNewResponseFormatParquetType        `json:"type" api:"required"`
	Compression   SinkNewResponseFormatParquetCompression `json:"compression"`
	RowGroupBytes int64                                   `json:"row_group_bytes" api:"nullable"`
	JSON          sinkNewResponseFormatParquetJSON        `json:"-"`
}

func (*SinkNewResponseFormatParquet) UnmarshalJSON

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

type SinkNewResponseFormatParquetCompression

type SinkNewResponseFormatParquetCompression string
const (
	SinkNewResponseFormatParquetCompressionUncompressed SinkNewResponseFormatParquetCompression = "uncompressed"
	SinkNewResponseFormatParquetCompressionSnappy       SinkNewResponseFormatParquetCompression = "snappy"
	SinkNewResponseFormatParquetCompressionGzip         SinkNewResponseFormatParquetCompression = "gzip"
	SinkNewResponseFormatParquetCompressionZstd         SinkNewResponseFormatParquetCompression = "zstd"
	SinkNewResponseFormatParquetCompressionLz4          SinkNewResponseFormatParquetCompression = "lz4"
)

func (SinkNewResponseFormatParquetCompression) IsKnown

type SinkNewResponseFormatParquetType

type SinkNewResponseFormatParquetType string
const (
	SinkNewResponseFormatParquetTypeParquet SinkNewResponseFormatParquetType = "parquet"
)

func (SinkNewResponseFormatParquetType) IsKnown

type SinkNewResponseFormatTimestampFormat

type SinkNewResponseFormatTimestampFormat string
const (
	SinkNewResponseFormatTimestampFormatRfc3339    SinkNewResponseFormatTimestampFormat = "rfc3339"
	SinkNewResponseFormatTimestampFormatUnixMillis SinkNewResponseFormatTimestampFormat = "unix_millis"
)

func (SinkNewResponseFormatTimestampFormat) IsKnown

type SinkNewResponseFormatType

type SinkNewResponseFormatType string
const (
	SinkNewResponseFormatTypeJson    SinkNewResponseFormatType = "json"
	SinkNewResponseFormatTypeParquet SinkNewResponseFormatType = "parquet"
)

func (SinkNewResponseFormatType) IsKnown

func (r SinkNewResponseFormatType) IsKnown() bool

type SinkNewResponseFormatUnion

type SinkNewResponseFormatUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by SinkNewResponseFormatJson or SinkNewResponseFormatParquet.

type SinkNewResponseSchema

type SinkNewResponseSchema struct {
	Fields   []SinkNewResponseSchemaField `json:"fields"`
	Format   SinkNewResponseSchemaFormat  `json:"format"`
	Inferred bool                         `json:"inferred" api:"nullable"`
	JSON     sinkNewResponseSchemaJSON    `json:"-"`
}

func (*SinkNewResponseSchema) UnmarshalJSON

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

type SinkNewResponseSchemaField

type SinkNewResponseSchemaField struct {
	Type        SinkNewResponseSchemaFieldsType `json:"type" api:"required"`
	MetadataKey string                          `json:"metadata_key" api:"nullable"`
	Name        string                          `json:"name"`
	Required    bool                            `json:"required"`
	SqlName     string                          `json:"sql_name"`
	Unit        SinkNewResponseSchemaFieldsUnit `json:"unit"`
	JSON        sinkNewResponseSchemaFieldJSON  `json:"-"`
	// contains filtered or unexported fields
}

func (*SinkNewResponseSchemaField) UnmarshalJSON

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

type SinkNewResponseSchemaFieldsBinary

type SinkNewResponseSchemaFieldsBinary struct {
	Type        SinkNewResponseSchemaFieldsBinaryType `json:"type" api:"required"`
	MetadataKey string                                `json:"metadata_key" api:"nullable"`
	Name        string                                `json:"name"`
	Required    bool                                  `json:"required"`
	SqlName     string                                `json:"sql_name"`
	JSON        sinkNewResponseSchemaFieldsBinaryJSON `json:"-"`
}

func (*SinkNewResponseSchemaFieldsBinary) UnmarshalJSON

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

type SinkNewResponseSchemaFieldsBinaryType

type SinkNewResponseSchemaFieldsBinaryType string
const (
	SinkNewResponseSchemaFieldsBinaryTypeBinary SinkNewResponseSchemaFieldsBinaryType = "binary"
)

func (SinkNewResponseSchemaFieldsBinaryType) IsKnown

type SinkNewResponseSchemaFieldsBool

type SinkNewResponseSchemaFieldsBool struct {
	Type        SinkNewResponseSchemaFieldsBoolType `json:"type" api:"required"`
	MetadataKey string                              `json:"metadata_key" api:"nullable"`
	Name        string                              `json:"name"`
	Required    bool                                `json:"required"`
	SqlName     string                              `json:"sql_name"`
	JSON        sinkNewResponseSchemaFieldsBoolJSON `json:"-"`
}

func (*SinkNewResponseSchemaFieldsBool) UnmarshalJSON

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

type SinkNewResponseSchemaFieldsBoolType

type SinkNewResponseSchemaFieldsBoolType string
const (
	SinkNewResponseSchemaFieldsBoolTypeBool SinkNewResponseSchemaFieldsBoolType = "bool"
)

func (SinkNewResponseSchemaFieldsBoolType) IsKnown

type SinkNewResponseSchemaFieldsFloat32

type SinkNewResponseSchemaFieldsFloat32 struct {
	Type        SinkNewResponseSchemaFieldsFloat32Type `json:"type" api:"required"`
	MetadataKey string                                 `json:"metadata_key" api:"nullable"`
	Name        string                                 `json:"name"`
	Required    bool                                   `json:"required"`
	SqlName     string                                 `json:"sql_name"`
	JSON        sinkNewResponseSchemaFieldsFloat32JSON `json:"-"`
}

func (*SinkNewResponseSchemaFieldsFloat32) UnmarshalJSON

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

type SinkNewResponseSchemaFieldsFloat32Type

type SinkNewResponseSchemaFieldsFloat32Type string
const (
	SinkNewResponseSchemaFieldsFloat32TypeFloat32 SinkNewResponseSchemaFieldsFloat32Type = "float32"
)

func (SinkNewResponseSchemaFieldsFloat32Type) IsKnown

type SinkNewResponseSchemaFieldsFloat64

type SinkNewResponseSchemaFieldsFloat64 struct {
	Type        SinkNewResponseSchemaFieldsFloat64Type `json:"type" api:"required"`
	MetadataKey string                                 `json:"metadata_key" api:"nullable"`
	Name        string                                 `json:"name"`
	Required    bool                                   `json:"required"`
	SqlName     string                                 `json:"sql_name"`
	JSON        sinkNewResponseSchemaFieldsFloat64JSON `json:"-"`
}

func (*SinkNewResponseSchemaFieldsFloat64) UnmarshalJSON

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

type SinkNewResponseSchemaFieldsFloat64Type

type SinkNewResponseSchemaFieldsFloat64Type string
const (
	SinkNewResponseSchemaFieldsFloat64TypeFloat64 SinkNewResponseSchemaFieldsFloat64Type = "float64"
)

func (SinkNewResponseSchemaFieldsFloat64Type) IsKnown

type SinkNewResponseSchemaFieldsInt32

type SinkNewResponseSchemaFieldsInt32 struct {
	Type        SinkNewResponseSchemaFieldsInt32Type `json:"type" api:"required"`
	MetadataKey string                               `json:"metadata_key" api:"nullable"`
	Name        string                               `json:"name"`
	Required    bool                                 `json:"required"`
	SqlName     string                               `json:"sql_name"`
	JSON        sinkNewResponseSchemaFieldsInt32JSON `json:"-"`
}

func (*SinkNewResponseSchemaFieldsInt32) UnmarshalJSON

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

type SinkNewResponseSchemaFieldsInt32Type

type SinkNewResponseSchemaFieldsInt32Type string
const (
	SinkNewResponseSchemaFieldsInt32TypeInt32 SinkNewResponseSchemaFieldsInt32Type = "int32"
)

func (SinkNewResponseSchemaFieldsInt32Type) IsKnown

type SinkNewResponseSchemaFieldsInt64

type SinkNewResponseSchemaFieldsInt64 struct {
	Type        SinkNewResponseSchemaFieldsInt64Type `json:"type" api:"required"`
	MetadataKey string                               `json:"metadata_key" api:"nullable"`
	Name        string                               `json:"name"`
	Required    bool                                 `json:"required"`
	SqlName     string                               `json:"sql_name"`
	JSON        sinkNewResponseSchemaFieldsInt64JSON `json:"-"`
}

func (*SinkNewResponseSchemaFieldsInt64) UnmarshalJSON

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

type SinkNewResponseSchemaFieldsInt64Type

type SinkNewResponseSchemaFieldsInt64Type string
const (
	SinkNewResponseSchemaFieldsInt64TypeInt64 SinkNewResponseSchemaFieldsInt64Type = "int64"
)

func (SinkNewResponseSchemaFieldsInt64Type) IsKnown

type SinkNewResponseSchemaFieldsJson

type SinkNewResponseSchemaFieldsJson struct {
	Type        SinkNewResponseSchemaFieldsJsonType `json:"type" api:"required"`
	MetadataKey string                              `json:"metadata_key" api:"nullable"`
	Name        string                              `json:"name"`
	Required    bool                                `json:"required"`
	SqlName     string                              `json:"sql_name"`
	JSON        sinkNewResponseSchemaFieldsJsonJSON `json:"-"`
}

func (*SinkNewResponseSchemaFieldsJson) UnmarshalJSON

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

type SinkNewResponseSchemaFieldsJsonType

type SinkNewResponseSchemaFieldsJsonType string
const (
	SinkNewResponseSchemaFieldsJsonTypeJson SinkNewResponseSchemaFieldsJsonType = "json"
)

func (SinkNewResponseSchemaFieldsJsonType) IsKnown

type SinkNewResponseSchemaFieldsList

type SinkNewResponseSchemaFieldsList struct {
	JSON sinkNewResponseSchemaFieldsListJSON `json:"-"`
}

func (*SinkNewResponseSchemaFieldsList) UnmarshalJSON

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

type SinkNewResponseSchemaFieldsString

type SinkNewResponseSchemaFieldsString struct {
	Type        SinkNewResponseSchemaFieldsStringType `json:"type" api:"required"`
	MetadataKey string                                `json:"metadata_key" api:"nullable"`
	Name        string                                `json:"name"`
	Required    bool                                  `json:"required"`
	SqlName     string                                `json:"sql_name"`
	JSON        sinkNewResponseSchemaFieldsStringJSON `json:"-"`
}

func (*SinkNewResponseSchemaFieldsString) UnmarshalJSON

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

type SinkNewResponseSchemaFieldsStringType

type SinkNewResponseSchemaFieldsStringType string
const (
	SinkNewResponseSchemaFieldsStringTypeString SinkNewResponseSchemaFieldsStringType = "string"
)

func (SinkNewResponseSchemaFieldsStringType) IsKnown

type SinkNewResponseSchemaFieldsStruct

type SinkNewResponseSchemaFieldsStruct struct {
	JSON sinkNewResponseSchemaFieldsStructJSON `json:"-"`
}

func (*SinkNewResponseSchemaFieldsStruct) UnmarshalJSON

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

type SinkNewResponseSchemaFieldsTimestamp

type SinkNewResponseSchemaFieldsTimestamp struct {
	Type        SinkNewResponseSchemaFieldsTimestampType `json:"type" api:"required"`
	MetadataKey string                                   `json:"metadata_key" api:"nullable"`
	Name        string                                   `json:"name"`
	Required    bool                                     `json:"required"`
	SqlName     string                                   `json:"sql_name"`
	Unit        SinkNewResponseSchemaFieldsTimestampUnit `json:"unit"`
	JSON        sinkNewResponseSchemaFieldsTimestampJSON `json:"-"`
}

func (*SinkNewResponseSchemaFieldsTimestamp) UnmarshalJSON

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

type SinkNewResponseSchemaFieldsTimestampType

type SinkNewResponseSchemaFieldsTimestampType string
const (
	SinkNewResponseSchemaFieldsTimestampTypeTimestamp SinkNewResponseSchemaFieldsTimestampType = "timestamp"
)

func (SinkNewResponseSchemaFieldsTimestampType) IsKnown

type SinkNewResponseSchemaFieldsTimestampUnit

type SinkNewResponseSchemaFieldsTimestampUnit string
const (
	SinkNewResponseSchemaFieldsTimestampUnitSecond      SinkNewResponseSchemaFieldsTimestampUnit = "second"
	SinkNewResponseSchemaFieldsTimestampUnitMillisecond SinkNewResponseSchemaFieldsTimestampUnit = "millisecond"
	SinkNewResponseSchemaFieldsTimestampUnitMicrosecond SinkNewResponseSchemaFieldsTimestampUnit = "microsecond"
	SinkNewResponseSchemaFieldsTimestampUnitNanosecond  SinkNewResponseSchemaFieldsTimestampUnit = "nanosecond"
)

func (SinkNewResponseSchemaFieldsTimestampUnit) IsKnown

type SinkNewResponseSchemaFieldsType

type SinkNewResponseSchemaFieldsType string
const (
	SinkNewResponseSchemaFieldsTypeInt32     SinkNewResponseSchemaFieldsType = "int32"
	SinkNewResponseSchemaFieldsTypeInt64     SinkNewResponseSchemaFieldsType = "int64"
	SinkNewResponseSchemaFieldsTypeFloat32   SinkNewResponseSchemaFieldsType = "float32"
	SinkNewResponseSchemaFieldsTypeFloat64   SinkNewResponseSchemaFieldsType = "float64"
	SinkNewResponseSchemaFieldsTypeBool      SinkNewResponseSchemaFieldsType = "bool"
	SinkNewResponseSchemaFieldsTypeString    SinkNewResponseSchemaFieldsType = "string"
	SinkNewResponseSchemaFieldsTypeBinary    SinkNewResponseSchemaFieldsType = "binary"
	SinkNewResponseSchemaFieldsTypeTimestamp SinkNewResponseSchemaFieldsType = "timestamp"
	SinkNewResponseSchemaFieldsTypeJson      SinkNewResponseSchemaFieldsType = "json"
	SinkNewResponseSchemaFieldsTypeStruct    SinkNewResponseSchemaFieldsType = "struct"
	SinkNewResponseSchemaFieldsTypeList      SinkNewResponseSchemaFieldsType = "list"
)

func (SinkNewResponseSchemaFieldsType) IsKnown

type SinkNewResponseSchemaFieldsUnit

type SinkNewResponseSchemaFieldsUnit string
const (
	SinkNewResponseSchemaFieldsUnitSecond      SinkNewResponseSchemaFieldsUnit = "second"
	SinkNewResponseSchemaFieldsUnitMillisecond SinkNewResponseSchemaFieldsUnit = "millisecond"
	SinkNewResponseSchemaFieldsUnitMicrosecond SinkNewResponseSchemaFieldsUnit = "microsecond"
	SinkNewResponseSchemaFieldsUnitNanosecond  SinkNewResponseSchemaFieldsUnit = "nanosecond"
)

func (SinkNewResponseSchemaFieldsUnit) IsKnown

type SinkNewResponseSchemaFormat

type SinkNewResponseSchemaFormat struct {
	Type            SinkNewResponseSchemaFormatType            `json:"type" api:"required"`
	Compression     SinkNewResponseSchemaFormatCompression     `json:"compression"`
	DecimalEncoding SinkNewResponseSchemaFormatDecimalEncoding `json:"decimal_encoding"`
	RowGroupBytes   int64                                      `json:"row_group_bytes" api:"nullable"`
	TimestampFormat SinkNewResponseSchemaFormatTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                       `json:"unstructured"`
	JSON            sinkNewResponseSchemaFormatJSON            `json:"-"`
	// contains filtered or unexported fields
}

func (SinkNewResponseSchemaFormat) AsUnion

AsUnion returns a SinkNewResponseSchemaFormatUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are SinkNewResponseSchemaFormatJson, SinkNewResponseSchemaFormatParquet.

func (*SinkNewResponseSchemaFormat) UnmarshalJSON

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

type SinkNewResponseSchemaFormatCompression

type SinkNewResponseSchemaFormatCompression string
const (
	SinkNewResponseSchemaFormatCompressionUncompressed SinkNewResponseSchemaFormatCompression = "uncompressed"
	SinkNewResponseSchemaFormatCompressionSnappy       SinkNewResponseSchemaFormatCompression = "snappy"
	SinkNewResponseSchemaFormatCompressionGzip         SinkNewResponseSchemaFormatCompression = "gzip"
	SinkNewResponseSchemaFormatCompressionZstd         SinkNewResponseSchemaFormatCompression = "zstd"
	SinkNewResponseSchemaFormatCompressionLz4          SinkNewResponseSchemaFormatCompression = "lz4"
)

func (SinkNewResponseSchemaFormatCompression) IsKnown

type SinkNewResponseSchemaFormatDecimalEncoding

type SinkNewResponseSchemaFormatDecimalEncoding string
const (
	SinkNewResponseSchemaFormatDecimalEncodingNumber SinkNewResponseSchemaFormatDecimalEncoding = "number"
	SinkNewResponseSchemaFormatDecimalEncodingString SinkNewResponseSchemaFormatDecimalEncoding = "string"
	SinkNewResponseSchemaFormatDecimalEncodingBytes  SinkNewResponseSchemaFormatDecimalEncoding = "bytes"
)

func (SinkNewResponseSchemaFormatDecimalEncoding) IsKnown

type SinkNewResponseSchemaFormatJson

type SinkNewResponseSchemaFormatJson struct {
	Type            SinkNewResponseSchemaFormatJsonType            `json:"type" api:"required"`
	DecimalEncoding SinkNewResponseSchemaFormatJsonDecimalEncoding `json:"decimal_encoding"`
	TimestampFormat SinkNewResponseSchemaFormatJsonTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                           `json:"unstructured"`
	JSON            sinkNewResponseSchemaFormatJsonJSON            `json:"-"`
}

func (*SinkNewResponseSchemaFormatJson) UnmarshalJSON

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

type SinkNewResponseSchemaFormatJsonDecimalEncoding

type SinkNewResponseSchemaFormatJsonDecimalEncoding string
const (
	SinkNewResponseSchemaFormatJsonDecimalEncodingNumber SinkNewResponseSchemaFormatJsonDecimalEncoding = "number"
	SinkNewResponseSchemaFormatJsonDecimalEncodingString SinkNewResponseSchemaFormatJsonDecimalEncoding = "string"
	SinkNewResponseSchemaFormatJsonDecimalEncodingBytes  SinkNewResponseSchemaFormatJsonDecimalEncoding = "bytes"
)

func (SinkNewResponseSchemaFormatJsonDecimalEncoding) IsKnown

type SinkNewResponseSchemaFormatJsonTimestampFormat

type SinkNewResponseSchemaFormatJsonTimestampFormat string
const (
	SinkNewResponseSchemaFormatJsonTimestampFormatRfc3339    SinkNewResponseSchemaFormatJsonTimestampFormat = "rfc3339"
	SinkNewResponseSchemaFormatJsonTimestampFormatUnixMillis SinkNewResponseSchemaFormatJsonTimestampFormat = "unix_millis"
)

func (SinkNewResponseSchemaFormatJsonTimestampFormat) IsKnown

type SinkNewResponseSchemaFormatJsonType

type SinkNewResponseSchemaFormatJsonType string
const (
	SinkNewResponseSchemaFormatJsonTypeJson SinkNewResponseSchemaFormatJsonType = "json"
)

func (SinkNewResponseSchemaFormatJsonType) IsKnown

type SinkNewResponseSchemaFormatParquet

type SinkNewResponseSchemaFormatParquet struct {
	Type          SinkNewResponseSchemaFormatParquetType        `json:"type" api:"required"`
	Compression   SinkNewResponseSchemaFormatParquetCompression `json:"compression"`
	RowGroupBytes int64                                         `json:"row_group_bytes" api:"nullable"`
	JSON          sinkNewResponseSchemaFormatParquetJSON        `json:"-"`
}

func (*SinkNewResponseSchemaFormatParquet) UnmarshalJSON

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

type SinkNewResponseSchemaFormatParquetCompression

type SinkNewResponseSchemaFormatParquetCompression string
const (
	SinkNewResponseSchemaFormatParquetCompressionUncompressed SinkNewResponseSchemaFormatParquetCompression = "uncompressed"
	SinkNewResponseSchemaFormatParquetCompressionSnappy       SinkNewResponseSchemaFormatParquetCompression = "snappy"
	SinkNewResponseSchemaFormatParquetCompressionGzip         SinkNewResponseSchemaFormatParquetCompression = "gzip"
	SinkNewResponseSchemaFormatParquetCompressionZstd         SinkNewResponseSchemaFormatParquetCompression = "zstd"
	SinkNewResponseSchemaFormatParquetCompressionLz4          SinkNewResponseSchemaFormatParquetCompression = "lz4"
)

func (SinkNewResponseSchemaFormatParquetCompression) IsKnown

type SinkNewResponseSchemaFormatParquetType

type SinkNewResponseSchemaFormatParquetType string
const (
	SinkNewResponseSchemaFormatParquetTypeParquet SinkNewResponseSchemaFormatParquetType = "parquet"
)

func (SinkNewResponseSchemaFormatParquetType) IsKnown

type SinkNewResponseSchemaFormatTimestampFormat

type SinkNewResponseSchemaFormatTimestampFormat string
const (
	SinkNewResponseSchemaFormatTimestampFormatRfc3339    SinkNewResponseSchemaFormatTimestampFormat = "rfc3339"
	SinkNewResponseSchemaFormatTimestampFormatUnixMillis SinkNewResponseSchemaFormatTimestampFormat = "unix_millis"
)

func (SinkNewResponseSchemaFormatTimestampFormat) IsKnown

type SinkNewResponseSchemaFormatType

type SinkNewResponseSchemaFormatType string
const (
	SinkNewResponseSchemaFormatTypeJson    SinkNewResponseSchemaFormatType = "json"
	SinkNewResponseSchemaFormatTypeParquet SinkNewResponseSchemaFormatType = "parquet"
)

func (SinkNewResponseSchemaFormatType) IsKnown

type SinkNewResponseSchemaFormatUnion

type SinkNewResponseSchemaFormatUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by SinkNewResponseSchemaFormatJson or SinkNewResponseSchemaFormatParquet.

type SinkNewResponseType

type SinkNewResponseType string

Specifies the type of sink.

const (
	SinkNewResponseTypeR2            SinkNewResponseType = "r2"
	SinkNewResponseTypeR2DataCatalog SinkNewResponseType = "r2_data_catalog"
)

func (SinkNewResponseType) IsKnown

func (r SinkNewResponseType) IsKnown() bool

type SinkService

type SinkService struct {
	Options []option.RequestOption
}

SinkService 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 NewSinkService method instead.

func NewSinkService

func NewSinkService(opts ...option.RequestOption) (r *SinkService)

NewSinkService 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 (*SinkService) Delete

func (r *SinkService) Delete(ctx context.Context, sinkID string, params SinkDeleteParams, opts ...option.RequestOption) (res *SinkDeleteResponse, err error)

Delete Pipeline in Account.

func (*SinkService) Get

func (r *SinkService) Get(ctx context.Context, sinkID string, query SinkGetParams, opts ...option.RequestOption) (res *SinkGetResponse, err error)

Get Sink Details.

func (*SinkService) List

List/Filter Sinks in Account.

func (*SinkService) ListAutoPaging

List/Filter Sinks in Account.

func (*SinkService) New

func (r *SinkService) New(ctx context.Context, params SinkNewParams, opts ...option.RequestOption) (res *SinkNewResponse, err error)

Create a new Sink.

type SortDirection

type SortDirection = shared.SortDirection

Direction to order DNS records in.

This is an alias to an internal type.

type StreamDeleteParams

type StreamDeleteParams struct {
	// Specifies the public ID of the account.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Delete stream forcefully, including deleting any dependent pipelines.
	Force param.Field[string] `query:"force"`
}

func (StreamDeleteParams) URLQuery

func (r StreamDeleteParams) URLQuery() (v url.Values)

URLQuery serializes StreamDeleteParams's query parameters as `url.Values`.

type StreamDeleteResponse

type StreamDeleteResponse = interface{}

type StreamDeleteResponseEnvelope

type StreamDeleteResponseEnvelope struct {
	Result StreamDeleteResponse `json:"result" api:"required"`
	// Indicates whether the API call was successful.
	Success bool                             `json:"success" api:"required"`
	JSON    streamDeleteResponseEnvelopeJSON `json:"-"`
}

func (*StreamDeleteResponseEnvelope) UnmarshalJSON

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

type StreamGetParams

type StreamGetParams struct {
	// Specifies the public ID of the account.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type StreamGetResponse

type StreamGetResponse struct {
	// Indicates a unique identifier for this stream.
	ID         string                `json:"id" api:"required"`
	CreatedAt  time.Time             `json:"created_at" api:"required" format:"date-time"`
	HTTP       StreamGetResponseHTTP `json:"http" api:"required"`
	ModifiedAt time.Time             `json:"modified_at" api:"required" format:"date-time"`
	// Indicates the name of the Stream.
	Name string `json:"name" api:"required"`
	// Indicates the current version of this stream.
	Version       int64                          `json:"version" api:"required"`
	WorkerBinding StreamGetResponseWorkerBinding `json:"worker_binding" api:"required"`
	// Indicates the endpoint URL of this stream.
	Endpoint string                  `json:"endpoint" format:"uri"`
	Format   StreamGetResponseFormat `json:"format"`
	Schema   StreamGetResponseSchema `json:"schema"`
	JSON     streamGetResponseJSON   `json:"-"`
}

func (*StreamGetResponse) UnmarshalJSON

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

type StreamGetResponseEnvelope

type StreamGetResponseEnvelope struct {
	Result StreamGetResponse `json:"result" api:"required"`
	// Indicates whether the API call was successful.
	Success bool                          `json:"success" api:"required"`
	JSON    streamGetResponseEnvelopeJSON `json:"-"`
}

func (*StreamGetResponseEnvelope) UnmarshalJSON

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

type StreamGetResponseFormat

type StreamGetResponseFormat struct {
	Type            StreamGetResponseFormatType            `json:"type" api:"required"`
	Compression     StreamGetResponseFormatCompression     `json:"compression"`
	DecimalEncoding StreamGetResponseFormatDecimalEncoding `json:"decimal_encoding"`
	RowGroupBytes   int64                                  `json:"row_group_bytes" api:"nullable"`
	TimestampFormat StreamGetResponseFormatTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                   `json:"unstructured"`
	JSON            streamGetResponseFormatJSON            `json:"-"`
	// contains filtered or unexported fields
}

func (StreamGetResponseFormat) AsUnion

AsUnion returns a StreamGetResponseFormatUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are StreamGetResponseFormatJson, StreamGetResponseFormatParquet.

func (*StreamGetResponseFormat) UnmarshalJSON

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

type StreamGetResponseFormatCompression

type StreamGetResponseFormatCompression string
const (
	StreamGetResponseFormatCompressionUncompressed StreamGetResponseFormatCompression = "uncompressed"
	StreamGetResponseFormatCompressionSnappy       StreamGetResponseFormatCompression = "snappy"
	StreamGetResponseFormatCompressionGzip         StreamGetResponseFormatCompression = "gzip"
	StreamGetResponseFormatCompressionZstd         StreamGetResponseFormatCompression = "zstd"
	StreamGetResponseFormatCompressionLz4          StreamGetResponseFormatCompression = "lz4"
)

func (StreamGetResponseFormatCompression) IsKnown

type StreamGetResponseFormatDecimalEncoding

type StreamGetResponseFormatDecimalEncoding string
const (
	StreamGetResponseFormatDecimalEncodingNumber StreamGetResponseFormatDecimalEncoding = "number"
	StreamGetResponseFormatDecimalEncodingString StreamGetResponseFormatDecimalEncoding = "string"
	StreamGetResponseFormatDecimalEncodingBytes  StreamGetResponseFormatDecimalEncoding = "bytes"
)

func (StreamGetResponseFormatDecimalEncoding) IsKnown

type StreamGetResponseFormatJson

type StreamGetResponseFormatJson struct {
	Type            StreamGetResponseFormatJsonType            `json:"type" api:"required"`
	DecimalEncoding StreamGetResponseFormatJsonDecimalEncoding `json:"decimal_encoding"`
	TimestampFormat StreamGetResponseFormatJsonTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                       `json:"unstructured"`
	JSON            streamGetResponseFormatJsonJSON            `json:"-"`
}

func (*StreamGetResponseFormatJson) UnmarshalJSON

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

type StreamGetResponseFormatJsonDecimalEncoding

type StreamGetResponseFormatJsonDecimalEncoding string
const (
	StreamGetResponseFormatJsonDecimalEncodingNumber StreamGetResponseFormatJsonDecimalEncoding = "number"
	StreamGetResponseFormatJsonDecimalEncodingString StreamGetResponseFormatJsonDecimalEncoding = "string"
	StreamGetResponseFormatJsonDecimalEncodingBytes  StreamGetResponseFormatJsonDecimalEncoding = "bytes"
)

func (StreamGetResponseFormatJsonDecimalEncoding) IsKnown

type StreamGetResponseFormatJsonTimestampFormat

type StreamGetResponseFormatJsonTimestampFormat string
const (
	StreamGetResponseFormatJsonTimestampFormatRfc3339    StreamGetResponseFormatJsonTimestampFormat = "rfc3339"
	StreamGetResponseFormatJsonTimestampFormatUnixMillis StreamGetResponseFormatJsonTimestampFormat = "unix_millis"
)

func (StreamGetResponseFormatJsonTimestampFormat) IsKnown

type StreamGetResponseFormatJsonType

type StreamGetResponseFormatJsonType string
const (
	StreamGetResponseFormatJsonTypeJson StreamGetResponseFormatJsonType = "json"
)

func (StreamGetResponseFormatJsonType) IsKnown

type StreamGetResponseFormatParquet

type StreamGetResponseFormatParquet struct {
	Type          StreamGetResponseFormatParquetType        `json:"type" api:"required"`
	Compression   StreamGetResponseFormatParquetCompression `json:"compression"`
	RowGroupBytes int64                                     `json:"row_group_bytes" api:"nullable"`
	JSON          streamGetResponseFormatParquetJSON        `json:"-"`
}

func (*StreamGetResponseFormatParquet) UnmarshalJSON

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

type StreamGetResponseFormatParquetCompression

type StreamGetResponseFormatParquetCompression string
const (
	StreamGetResponseFormatParquetCompressionUncompressed StreamGetResponseFormatParquetCompression = "uncompressed"
	StreamGetResponseFormatParquetCompressionSnappy       StreamGetResponseFormatParquetCompression = "snappy"
	StreamGetResponseFormatParquetCompressionGzip         StreamGetResponseFormatParquetCompression = "gzip"
	StreamGetResponseFormatParquetCompressionZstd         StreamGetResponseFormatParquetCompression = "zstd"
	StreamGetResponseFormatParquetCompressionLz4          StreamGetResponseFormatParquetCompression = "lz4"
)

func (StreamGetResponseFormatParquetCompression) IsKnown

type StreamGetResponseFormatParquetType

type StreamGetResponseFormatParquetType string
const (
	StreamGetResponseFormatParquetTypeParquet StreamGetResponseFormatParquetType = "parquet"
)

func (StreamGetResponseFormatParquetType) IsKnown

type StreamGetResponseFormatTimestampFormat

type StreamGetResponseFormatTimestampFormat string
const (
	StreamGetResponseFormatTimestampFormatRfc3339    StreamGetResponseFormatTimestampFormat = "rfc3339"
	StreamGetResponseFormatTimestampFormatUnixMillis StreamGetResponseFormatTimestampFormat = "unix_millis"
)

func (StreamGetResponseFormatTimestampFormat) IsKnown

type StreamGetResponseFormatType

type StreamGetResponseFormatType string
const (
	StreamGetResponseFormatTypeJson    StreamGetResponseFormatType = "json"
	StreamGetResponseFormatTypeParquet StreamGetResponseFormatType = "parquet"
)

func (StreamGetResponseFormatType) IsKnown

func (r StreamGetResponseFormatType) IsKnown() bool

type StreamGetResponseFormatUnion

type StreamGetResponseFormatUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by StreamGetResponseFormatJson or StreamGetResponseFormatParquet.

type StreamGetResponseHTTP

type StreamGetResponseHTTP struct {
	// Indicates that authentication is required for the HTTP endpoint.
	Authentication bool `json:"authentication" api:"required"`
	// Indicates that the HTTP endpoint is enabled.
	Enabled bool `json:"enabled" api:"required"`
	// Specifies the CORS options for the HTTP endpoint.
	CORS StreamGetResponseHTTPCORS `json:"cors"`
	JSON streamGetResponseHTTPJSON `json:"-"`
}

func (*StreamGetResponseHTTP) UnmarshalJSON

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

type StreamGetResponseHTTPCORS

type StreamGetResponseHTTPCORS struct {
	Origins []string                      `json:"origins"`
	JSON    streamGetResponseHttpcorsJSON `json:"-"`
}

Specifies the CORS options for the HTTP endpoint.

func (*StreamGetResponseHTTPCORS) UnmarshalJSON

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

type StreamGetResponseSchema

type StreamGetResponseSchema struct {
	Fields   []StreamGetResponseSchemaField `json:"fields"`
	Format   StreamGetResponseSchemaFormat  `json:"format"`
	Inferred bool                           `json:"inferred" api:"nullable"`
	JSON     streamGetResponseSchemaJSON    `json:"-"`
}

func (*StreamGetResponseSchema) UnmarshalJSON

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

type StreamGetResponseSchemaField

type StreamGetResponseSchemaField struct {
	Type        StreamGetResponseSchemaFieldsType `json:"type" api:"required"`
	MetadataKey string                            `json:"metadata_key" api:"nullable"`
	Name        string                            `json:"name"`
	Required    bool                              `json:"required"`
	SqlName     string                            `json:"sql_name"`
	Unit        StreamGetResponseSchemaFieldsUnit `json:"unit"`
	JSON        streamGetResponseSchemaFieldJSON  `json:"-"`
	// contains filtered or unexported fields
}

func (*StreamGetResponseSchemaField) UnmarshalJSON

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

type StreamGetResponseSchemaFieldsBinary

type StreamGetResponseSchemaFieldsBinary struct {
	Type        StreamGetResponseSchemaFieldsBinaryType `json:"type" api:"required"`
	MetadataKey string                                  `json:"metadata_key" api:"nullable"`
	Name        string                                  `json:"name"`
	Required    bool                                    `json:"required"`
	SqlName     string                                  `json:"sql_name"`
	JSON        streamGetResponseSchemaFieldsBinaryJSON `json:"-"`
}

func (*StreamGetResponseSchemaFieldsBinary) UnmarshalJSON

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

type StreamGetResponseSchemaFieldsBinaryType

type StreamGetResponseSchemaFieldsBinaryType string
const (
	StreamGetResponseSchemaFieldsBinaryTypeBinary StreamGetResponseSchemaFieldsBinaryType = "binary"
)

func (StreamGetResponseSchemaFieldsBinaryType) IsKnown

type StreamGetResponseSchemaFieldsBool

type StreamGetResponseSchemaFieldsBool struct {
	Type        StreamGetResponseSchemaFieldsBoolType `json:"type" api:"required"`
	MetadataKey string                                `json:"metadata_key" api:"nullable"`
	Name        string                                `json:"name"`
	Required    bool                                  `json:"required"`
	SqlName     string                                `json:"sql_name"`
	JSON        streamGetResponseSchemaFieldsBoolJSON `json:"-"`
}

func (*StreamGetResponseSchemaFieldsBool) UnmarshalJSON

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

type StreamGetResponseSchemaFieldsBoolType

type StreamGetResponseSchemaFieldsBoolType string
const (
	StreamGetResponseSchemaFieldsBoolTypeBool StreamGetResponseSchemaFieldsBoolType = "bool"
)

func (StreamGetResponseSchemaFieldsBoolType) IsKnown

type StreamGetResponseSchemaFieldsFloat32

type StreamGetResponseSchemaFieldsFloat32 struct {
	Type        StreamGetResponseSchemaFieldsFloat32Type `json:"type" api:"required"`
	MetadataKey string                                   `json:"metadata_key" api:"nullable"`
	Name        string                                   `json:"name"`
	Required    bool                                     `json:"required"`
	SqlName     string                                   `json:"sql_name"`
	JSON        streamGetResponseSchemaFieldsFloat32JSON `json:"-"`
}

func (*StreamGetResponseSchemaFieldsFloat32) UnmarshalJSON

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

type StreamGetResponseSchemaFieldsFloat32Type

type StreamGetResponseSchemaFieldsFloat32Type string
const (
	StreamGetResponseSchemaFieldsFloat32TypeFloat32 StreamGetResponseSchemaFieldsFloat32Type = "float32"
)

func (StreamGetResponseSchemaFieldsFloat32Type) IsKnown

type StreamGetResponseSchemaFieldsFloat64

type StreamGetResponseSchemaFieldsFloat64 struct {
	Type        StreamGetResponseSchemaFieldsFloat64Type `json:"type" api:"required"`
	MetadataKey string                                   `json:"metadata_key" api:"nullable"`
	Name        string                                   `json:"name"`
	Required    bool                                     `json:"required"`
	SqlName     string                                   `json:"sql_name"`
	JSON        streamGetResponseSchemaFieldsFloat64JSON `json:"-"`
}

func (*StreamGetResponseSchemaFieldsFloat64) UnmarshalJSON

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

type StreamGetResponseSchemaFieldsFloat64Type

type StreamGetResponseSchemaFieldsFloat64Type string
const (
	StreamGetResponseSchemaFieldsFloat64TypeFloat64 StreamGetResponseSchemaFieldsFloat64Type = "float64"
)

func (StreamGetResponseSchemaFieldsFloat64Type) IsKnown

type StreamGetResponseSchemaFieldsInt32

type StreamGetResponseSchemaFieldsInt32 struct {
	Type        StreamGetResponseSchemaFieldsInt32Type `json:"type" api:"required"`
	MetadataKey string                                 `json:"metadata_key" api:"nullable"`
	Name        string                                 `json:"name"`
	Required    bool                                   `json:"required"`
	SqlName     string                                 `json:"sql_name"`
	JSON        streamGetResponseSchemaFieldsInt32JSON `json:"-"`
}

func (*StreamGetResponseSchemaFieldsInt32) UnmarshalJSON

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

type StreamGetResponseSchemaFieldsInt32Type

type StreamGetResponseSchemaFieldsInt32Type string
const (
	StreamGetResponseSchemaFieldsInt32TypeInt32 StreamGetResponseSchemaFieldsInt32Type = "int32"
)

func (StreamGetResponseSchemaFieldsInt32Type) IsKnown

type StreamGetResponseSchemaFieldsInt64

type StreamGetResponseSchemaFieldsInt64 struct {
	Type        StreamGetResponseSchemaFieldsInt64Type `json:"type" api:"required"`
	MetadataKey string                                 `json:"metadata_key" api:"nullable"`
	Name        string                                 `json:"name"`
	Required    bool                                   `json:"required"`
	SqlName     string                                 `json:"sql_name"`
	JSON        streamGetResponseSchemaFieldsInt64JSON `json:"-"`
}

func (*StreamGetResponseSchemaFieldsInt64) UnmarshalJSON

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

type StreamGetResponseSchemaFieldsInt64Type

type StreamGetResponseSchemaFieldsInt64Type string
const (
	StreamGetResponseSchemaFieldsInt64TypeInt64 StreamGetResponseSchemaFieldsInt64Type = "int64"
)

func (StreamGetResponseSchemaFieldsInt64Type) IsKnown

type StreamGetResponseSchemaFieldsJson

type StreamGetResponseSchemaFieldsJson struct {
	Type        StreamGetResponseSchemaFieldsJsonType `json:"type" api:"required"`
	MetadataKey string                                `json:"metadata_key" api:"nullable"`
	Name        string                                `json:"name"`
	Required    bool                                  `json:"required"`
	SqlName     string                                `json:"sql_name"`
	JSON        streamGetResponseSchemaFieldsJsonJSON `json:"-"`
}

func (*StreamGetResponseSchemaFieldsJson) UnmarshalJSON

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

type StreamGetResponseSchemaFieldsJsonType

type StreamGetResponseSchemaFieldsJsonType string
const (
	StreamGetResponseSchemaFieldsJsonTypeJson StreamGetResponseSchemaFieldsJsonType = "json"
)

func (StreamGetResponseSchemaFieldsJsonType) IsKnown

type StreamGetResponseSchemaFieldsList

type StreamGetResponseSchemaFieldsList struct {
	JSON streamGetResponseSchemaFieldsListJSON `json:"-"`
}

func (*StreamGetResponseSchemaFieldsList) UnmarshalJSON

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

type StreamGetResponseSchemaFieldsString

type StreamGetResponseSchemaFieldsString struct {
	Type        StreamGetResponseSchemaFieldsStringType `json:"type" api:"required"`
	MetadataKey string                                  `json:"metadata_key" api:"nullable"`
	Name        string                                  `json:"name"`
	Required    bool                                    `json:"required"`
	SqlName     string                                  `json:"sql_name"`
	JSON        streamGetResponseSchemaFieldsStringJSON `json:"-"`
}

func (*StreamGetResponseSchemaFieldsString) UnmarshalJSON

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

type StreamGetResponseSchemaFieldsStringType

type StreamGetResponseSchemaFieldsStringType string
const (
	StreamGetResponseSchemaFieldsStringTypeString StreamGetResponseSchemaFieldsStringType = "string"
)

func (StreamGetResponseSchemaFieldsStringType) IsKnown

type StreamGetResponseSchemaFieldsStruct

type StreamGetResponseSchemaFieldsStruct struct {
	JSON streamGetResponseSchemaFieldsStructJSON `json:"-"`
}

func (*StreamGetResponseSchemaFieldsStruct) UnmarshalJSON

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

type StreamGetResponseSchemaFieldsTimestamp

type StreamGetResponseSchemaFieldsTimestamp struct {
	Type        StreamGetResponseSchemaFieldsTimestampType `json:"type" api:"required"`
	MetadataKey string                                     `json:"metadata_key" api:"nullable"`
	Name        string                                     `json:"name"`
	Required    bool                                       `json:"required"`
	SqlName     string                                     `json:"sql_name"`
	Unit        StreamGetResponseSchemaFieldsTimestampUnit `json:"unit"`
	JSON        streamGetResponseSchemaFieldsTimestampJSON `json:"-"`
}

func (*StreamGetResponseSchemaFieldsTimestamp) UnmarshalJSON

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

type StreamGetResponseSchemaFieldsTimestampType

type StreamGetResponseSchemaFieldsTimestampType string
const (
	StreamGetResponseSchemaFieldsTimestampTypeTimestamp StreamGetResponseSchemaFieldsTimestampType = "timestamp"
)

func (StreamGetResponseSchemaFieldsTimestampType) IsKnown

type StreamGetResponseSchemaFieldsTimestampUnit

type StreamGetResponseSchemaFieldsTimestampUnit string
const (
	StreamGetResponseSchemaFieldsTimestampUnitSecond      StreamGetResponseSchemaFieldsTimestampUnit = "second"
	StreamGetResponseSchemaFieldsTimestampUnitMillisecond StreamGetResponseSchemaFieldsTimestampUnit = "millisecond"
	StreamGetResponseSchemaFieldsTimestampUnitMicrosecond StreamGetResponseSchemaFieldsTimestampUnit = "microsecond"
	StreamGetResponseSchemaFieldsTimestampUnitNanosecond  StreamGetResponseSchemaFieldsTimestampUnit = "nanosecond"
)

func (StreamGetResponseSchemaFieldsTimestampUnit) IsKnown

type StreamGetResponseSchemaFieldsType

type StreamGetResponseSchemaFieldsType string
const (
	StreamGetResponseSchemaFieldsTypeInt32     StreamGetResponseSchemaFieldsType = "int32"
	StreamGetResponseSchemaFieldsTypeInt64     StreamGetResponseSchemaFieldsType = "int64"
	StreamGetResponseSchemaFieldsTypeFloat32   StreamGetResponseSchemaFieldsType = "float32"
	StreamGetResponseSchemaFieldsTypeFloat64   StreamGetResponseSchemaFieldsType = "float64"
	StreamGetResponseSchemaFieldsTypeBool      StreamGetResponseSchemaFieldsType = "bool"
	StreamGetResponseSchemaFieldsTypeString    StreamGetResponseSchemaFieldsType = "string"
	StreamGetResponseSchemaFieldsTypeBinary    StreamGetResponseSchemaFieldsType = "binary"
	StreamGetResponseSchemaFieldsTypeTimestamp StreamGetResponseSchemaFieldsType = "timestamp"
	StreamGetResponseSchemaFieldsTypeJson      StreamGetResponseSchemaFieldsType = "json"
	StreamGetResponseSchemaFieldsTypeStruct    StreamGetResponseSchemaFieldsType = "struct"
	StreamGetResponseSchemaFieldsTypeList      StreamGetResponseSchemaFieldsType = "list"
)

func (StreamGetResponseSchemaFieldsType) IsKnown

type StreamGetResponseSchemaFieldsUnit

type StreamGetResponseSchemaFieldsUnit string
const (
	StreamGetResponseSchemaFieldsUnitSecond      StreamGetResponseSchemaFieldsUnit = "second"
	StreamGetResponseSchemaFieldsUnitMillisecond StreamGetResponseSchemaFieldsUnit = "millisecond"
	StreamGetResponseSchemaFieldsUnitMicrosecond StreamGetResponseSchemaFieldsUnit = "microsecond"
	StreamGetResponseSchemaFieldsUnitNanosecond  StreamGetResponseSchemaFieldsUnit = "nanosecond"
)

func (StreamGetResponseSchemaFieldsUnit) IsKnown

type StreamGetResponseSchemaFormat

type StreamGetResponseSchemaFormat struct {
	Type            StreamGetResponseSchemaFormatType            `json:"type" api:"required"`
	Compression     StreamGetResponseSchemaFormatCompression     `json:"compression"`
	DecimalEncoding StreamGetResponseSchemaFormatDecimalEncoding `json:"decimal_encoding"`
	RowGroupBytes   int64                                        `json:"row_group_bytes" api:"nullable"`
	TimestampFormat StreamGetResponseSchemaFormatTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                         `json:"unstructured"`
	JSON            streamGetResponseSchemaFormatJSON            `json:"-"`
	// contains filtered or unexported fields
}

func (StreamGetResponseSchemaFormat) AsUnion

AsUnion returns a StreamGetResponseSchemaFormatUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are StreamGetResponseSchemaFormatJson, StreamGetResponseSchemaFormatParquet.

func (*StreamGetResponseSchemaFormat) UnmarshalJSON

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

type StreamGetResponseSchemaFormatCompression

type StreamGetResponseSchemaFormatCompression string
const (
	StreamGetResponseSchemaFormatCompressionUncompressed StreamGetResponseSchemaFormatCompression = "uncompressed"
	StreamGetResponseSchemaFormatCompressionSnappy       StreamGetResponseSchemaFormatCompression = "snappy"
	StreamGetResponseSchemaFormatCompressionGzip         StreamGetResponseSchemaFormatCompression = "gzip"
	StreamGetResponseSchemaFormatCompressionZstd         StreamGetResponseSchemaFormatCompression = "zstd"
	StreamGetResponseSchemaFormatCompressionLz4          StreamGetResponseSchemaFormatCompression = "lz4"
)

func (StreamGetResponseSchemaFormatCompression) IsKnown

type StreamGetResponseSchemaFormatDecimalEncoding

type StreamGetResponseSchemaFormatDecimalEncoding string
const (
	StreamGetResponseSchemaFormatDecimalEncodingNumber StreamGetResponseSchemaFormatDecimalEncoding = "number"
	StreamGetResponseSchemaFormatDecimalEncodingString StreamGetResponseSchemaFormatDecimalEncoding = "string"
	StreamGetResponseSchemaFormatDecimalEncodingBytes  StreamGetResponseSchemaFormatDecimalEncoding = "bytes"
)

func (StreamGetResponseSchemaFormatDecimalEncoding) IsKnown

type StreamGetResponseSchemaFormatJson

type StreamGetResponseSchemaFormatJson struct {
	Type            StreamGetResponseSchemaFormatJsonType            `json:"type" api:"required"`
	DecimalEncoding StreamGetResponseSchemaFormatJsonDecimalEncoding `json:"decimal_encoding"`
	TimestampFormat StreamGetResponseSchemaFormatJsonTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                             `json:"unstructured"`
	JSON            streamGetResponseSchemaFormatJsonJSON            `json:"-"`
}

func (*StreamGetResponseSchemaFormatJson) UnmarshalJSON

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

type StreamGetResponseSchemaFormatJsonDecimalEncoding

type StreamGetResponseSchemaFormatJsonDecimalEncoding string
const (
	StreamGetResponseSchemaFormatJsonDecimalEncodingNumber StreamGetResponseSchemaFormatJsonDecimalEncoding = "number"
	StreamGetResponseSchemaFormatJsonDecimalEncodingString StreamGetResponseSchemaFormatJsonDecimalEncoding = "string"
	StreamGetResponseSchemaFormatJsonDecimalEncodingBytes  StreamGetResponseSchemaFormatJsonDecimalEncoding = "bytes"
)

func (StreamGetResponseSchemaFormatJsonDecimalEncoding) IsKnown

type StreamGetResponseSchemaFormatJsonTimestampFormat

type StreamGetResponseSchemaFormatJsonTimestampFormat string
const (
	StreamGetResponseSchemaFormatJsonTimestampFormatRfc3339    StreamGetResponseSchemaFormatJsonTimestampFormat = "rfc3339"
	StreamGetResponseSchemaFormatJsonTimestampFormatUnixMillis StreamGetResponseSchemaFormatJsonTimestampFormat = "unix_millis"
)

func (StreamGetResponseSchemaFormatJsonTimestampFormat) IsKnown

type StreamGetResponseSchemaFormatJsonType

type StreamGetResponseSchemaFormatJsonType string
const (
	StreamGetResponseSchemaFormatJsonTypeJson StreamGetResponseSchemaFormatJsonType = "json"
)

func (StreamGetResponseSchemaFormatJsonType) IsKnown

type StreamGetResponseSchemaFormatParquet

type StreamGetResponseSchemaFormatParquet struct {
	Type          StreamGetResponseSchemaFormatParquetType        `json:"type" api:"required"`
	Compression   StreamGetResponseSchemaFormatParquetCompression `json:"compression"`
	RowGroupBytes int64                                           `json:"row_group_bytes" api:"nullable"`
	JSON          streamGetResponseSchemaFormatParquetJSON        `json:"-"`
}

func (*StreamGetResponseSchemaFormatParquet) UnmarshalJSON

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

type StreamGetResponseSchemaFormatParquetCompression

type StreamGetResponseSchemaFormatParquetCompression string
const (
	StreamGetResponseSchemaFormatParquetCompressionUncompressed StreamGetResponseSchemaFormatParquetCompression = "uncompressed"
	StreamGetResponseSchemaFormatParquetCompressionSnappy       StreamGetResponseSchemaFormatParquetCompression = "snappy"
	StreamGetResponseSchemaFormatParquetCompressionGzip         StreamGetResponseSchemaFormatParquetCompression = "gzip"
	StreamGetResponseSchemaFormatParquetCompressionZstd         StreamGetResponseSchemaFormatParquetCompression = "zstd"
	StreamGetResponseSchemaFormatParquetCompressionLz4          StreamGetResponseSchemaFormatParquetCompression = "lz4"
)

func (StreamGetResponseSchemaFormatParquetCompression) IsKnown

type StreamGetResponseSchemaFormatParquetType

type StreamGetResponseSchemaFormatParquetType string
const (
	StreamGetResponseSchemaFormatParquetTypeParquet StreamGetResponseSchemaFormatParquetType = "parquet"
)

func (StreamGetResponseSchemaFormatParquetType) IsKnown

type StreamGetResponseSchemaFormatTimestampFormat

type StreamGetResponseSchemaFormatTimestampFormat string
const (
	StreamGetResponseSchemaFormatTimestampFormatRfc3339    StreamGetResponseSchemaFormatTimestampFormat = "rfc3339"
	StreamGetResponseSchemaFormatTimestampFormatUnixMillis StreamGetResponseSchemaFormatTimestampFormat = "unix_millis"
)

func (StreamGetResponseSchemaFormatTimestampFormat) IsKnown

type StreamGetResponseSchemaFormatType

type StreamGetResponseSchemaFormatType string
const (
	StreamGetResponseSchemaFormatTypeJson    StreamGetResponseSchemaFormatType = "json"
	StreamGetResponseSchemaFormatTypeParquet StreamGetResponseSchemaFormatType = "parquet"
)

func (StreamGetResponseSchemaFormatType) IsKnown

type StreamGetResponseSchemaFormatUnion

type StreamGetResponseSchemaFormatUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by StreamGetResponseSchemaFormatJson or StreamGetResponseSchemaFormatParquet.

type StreamGetResponseWorkerBinding

type StreamGetResponseWorkerBinding struct {
	// Indicates that the worker binding is enabled.
	Enabled bool                               `json:"enabled" api:"required"`
	JSON    streamGetResponseWorkerBindingJSON `json:"-"`
}

func (*StreamGetResponseWorkerBinding) UnmarshalJSON

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

type StreamListParams

type StreamListParams struct {
	// Specifies the public ID of the account.
	AccountID param.Field[string]  `path:"account_id" api:"required"`
	Page      param.Field[float64] `query:"page"`
	PerPage   param.Field[float64] `query:"per_page"`
	// Specifies the public ID of the pipeline.
	PipelineID param.Field[string] `query:"pipeline_id"`
}

func (StreamListParams) URLQuery

func (r StreamListParams) URLQuery() (v url.Values)

URLQuery serializes StreamListParams's query parameters as `url.Values`.

type StreamListResponse

type StreamListResponse struct {
	// Indicates a unique identifier for this stream.
	ID         string                 `json:"id" api:"required"`
	CreatedAt  time.Time              `json:"created_at" api:"required" format:"date-time"`
	HTTP       StreamListResponseHTTP `json:"http" api:"required"`
	ModifiedAt time.Time              `json:"modified_at" api:"required" format:"date-time"`
	// Indicates the name of the Stream.
	Name string `json:"name" api:"required"`
	// Indicates the current version of this stream.
	Version       int64                           `json:"version" api:"required"`
	WorkerBinding StreamListResponseWorkerBinding `json:"worker_binding" api:"required"`
	// Indicates the endpoint URL of this stream.
	Endpoint string                   `json:"endpoint" format:"uri"`
	Format   StreamListResponseFormat `json:"format"`
	Schema   StreamListResponseSchema `json:"schema"`
	JSON     streamListResponseJSON   `json:"-"`
}

func (*StreamListResponse) UnmarshalJSON

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

type StreamListResponseFormat

type StreamListResponseFormat struct {
	Type            StreamListResponseFormatType            `json:"type" api:"required"`
	Compression     StreamListResponseFormatCompression     `json:"compression"`
	DecimalEncoding StreamListResponseFormatDecimalEncoding `json:"decimal_encoding"`
	RowGroupBytes   int64                                   `json:"row_group_bytes" api:"nullable"`
	TimestampFormat StreamListResponseFormatTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                    `json:"unstructured"`
	JSON            streamListResponseFormatJSON            `json:"-"`
	// contains filtered or unexported fields
}

func (StreamListResponseFormat) AsUnion

AsUnion returns a StreamListResponseFormatUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are StreamListResponseFormatJson, StreamListResponseFormatParquet.

func (*StreamListResponseFormat) UnmarshalJSON

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

type StreamListResponseFormatCompression

type StreamListResponseFormatCompression string
const (
	StreamListResponseFormatCompressionUncompressed StreamListResponseFormatCompression = "uncompressed"
	StreamListResponseFormatCompressionSnappy       StreamListResponseFormatCompression = "snappy"
	StreamListResponseFormatCompressionGzip         StreamListResponseFormatCompression = "gzip"
	StreamListResponseFormatCompressionZstd         StreamListResponseFormatCompression = "zstd"
	StreamListResponseFormatCompressionLz4          StreamListResponseFormatCompression = "lz4"
)

func (StreamListResponseFormatCompression) IsKnown

type StreamListResponseFormatDecimalEncoding

type StreamListResponseFormatDecimalEncoding string
const (
	StreamListResponseFormatDecimalEncodingNumber StreamListResponseFormatDecimalEncoding = "number"
	StreamListResponseFormatDecimalEncodingString StreamListResponseFormatDecimalEncoding = "string"
	StreamListResponseFormatDecimalEncodingBytes  StreamListResponseFormatDecimalEncoding = "bytes"
)

func (StreamListResponseFormatDecimalEncoding) IsKnown

type StreamListResponseFormatJson

type StreamListResponseFormatJson struct {
	Type            StreamListResponseFormatJsonType            `json:"type" api:"required"`
	DecimalEncoding StreamListResponseFormatJsonDecimalEncoding `json:"decimal_encoding"`
	TimestampFormat StreamListResponseFormatJsonTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                        `json:"unstructured"`
	JSON            streamListResponseFormatJsonJSON            `json:"-"`
}

func (*StreamListResponseFormatJson) UnmarshalJSON

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

type StreamListResponseFormatJsonDecimalEncoding

type StreamListResponseFormatJsonDecimalEncoding string
const (
	StreamListResponseFormatJsonDecimalEncodingNumber StreamListResponseFormatJsonDecimalEncoding = "number"
	StreamListResponseFormatJsonDecimalEncodingString StreamListResponseFormatJsonDecimalEncoding = "string"
	StreamListResponseFormatJsonDecimalEncodingBytes  StreamListResponseFormatJsonDecimalEncoding = "bytes"
)

func (StreamListResponseFormatJsonDecimalEncoding) IsKnown

type StreamListResponseFormatJsonTimestampFormat

type StreamListResponseFormatJsonTimestampFormat string
const (
	StreamListResponseFormatJsonTimestampFormatRfc3339    StreamListResponseFormatJsonTimestampFormat = "rfc3339"
	StreamListResponseFormatJsonTimestampFormatUnixMillis StreamListResponseFormatJsonTimestampFormat = "unix_millis"
)

func (StreamListResponseFormatJsonTimestampFormat) IsKnown

type StreamListResponseFormatJsonType

type StreamListResponseFormatJsonType string
const (
	StreamListResponseFormatJsonTypeJson StreamListResponseFormatJsonType = "json"
)

func (StreamListResponseFormatJsonType) IsKnown

type StreamListResponseFormatParquet

type StreamListResponseFormatParquet struct {
	Type          StreamListResponseFormatParquetType        `json:"type" api:"required"`
	Compression   StreamListResponseFormatParquetCompression `json:"compression"`
	RowGroupBytes int64                                      `json:"row_group_bytes" api:"nullable"`
	JSON          streamListResponseFormatParquetJSON        `json:"-"`
}

func (*StreamListResponseFormatParquet) UnmarshalJSON

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

type StreamListResponseFormatParquetCompression

type StreamListResponseFormatParquetCompression string
const (
	StreamListResponseFormatParquetCompressionUncompressed StreamListResponseFormatParquetCompression = "uncompressed"
	StreamListResponseFormatParquetCompressionSnappy       StreamListResponseFormatParquetCompression = "snappy"
	StreamListResponseFormatParquetCompressionGzip         StreamListResponseFormatParquetCompression = "gzip"
	StreamListResponseFormatParquetCompressionZstd         StreamListResponseFormatParquetCompression = "zstd"
	StreamListResponseFormatParquetCompressionLz4          StreamListResponseFormatParquetCompression = "lz4"
)

func (StreamListResponseFormatParquetCompression) IsKnown

type StreamListResponseFormatParquetType

type StreamListResponseFormatParquetType string
const (
	StreamListResponseFormatParquetTypeParquet StreamListResponseFormatParquetType = "parquet"
)

func (StreamListResponseFormatParquetType) IsKnown

type StreamListResponseFormatTimestampFormat

type StreamListResponseFormatTimestampFormat string
const (
	StreamListResponseFormatTimestampFormatRfc3339    StreamListResponseFormatTimestampFormat = "rfc3339"
	StreamListResponseFormatTimestampFormatUnixMillis StreamListResponseFormatTimestampFormat = "unix_millis"
)

func (StreamListResponseFormatTimestampFormat) IsKnown

type StreamListResponseFormatType

type StreamListResponseFormatType string
const (
	StreamListResponseFormatTypeJson    StreamListResponseFormatType = "json"
	StreamListResponseFormatTypeParquet StreamListResponseFormatType = "parquet"
)

func (StreamListResponseFormatType) IsKnown

func (r StreamListResponseFormatType) IsKnown() bool

type StreamListResponseFormatUnion

type StreamListResponseFormatUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by StreamListResponseFormatJson or StreamListResponseFormatParquet.

type StreamListResponseHTTP

type StreamListResponseHTTP struct {
	// Indicates that authentication is required for the HTTP endpoint.
	Authentication bool `json:"authentication" api:"required"`
	// Indicates that the HTTP endpoint is enabled.
	Enabled bool `json:"enabled" api:"required"`
	// Specifies the CORS options for the HTTP endpoint.
	CORS StreamListResponseHTTPCORS `json:"cors"`
	JSON streamListResponseHTTPJSON `json:"-"`
}

func (*StreamListResponseHTTP) UnmarshalJSON

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

type StreamListResponseHTTPCORS

type StreamListResponseHTTPCORS struct {
	Origins []string                       `json:"origins"`
	JSON    streamListResponseHttpcorsJSON `json:"-"`
}

Specifies the CORS options for the HTTP endpoint.

func (*StreamListResponseHTTPCORS) UnmarshalJSON

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

type StreamListResponseSchema

type StreamListResponseSchema struct {
	Fields   []StreamListResponseSchemaField `json:"fields"`
	Format   StreamListResponseSchemaFormat  `json:"format"`
	Inferred bool                            `json:"inferred" api:"nullable"`
	JSON     streamListResponseSchemaJSON    `json:"-"`
}

func (*StreamListResponseSchema) UnmarshalJSON

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

type StreamListResponseSchemaField

type StreamListResponseSchemaField struct {
	Type        StreamListResponseSchemaFieldsType `json:"type" api:"required"`
	MetadataKey string                             `json:"metadata_key" api:"nullable"`
	Name        string                             `json:"name"`
	Required    bool                               `json:"required"`
	SqlName     string                             `json:"sql_name"`
	Unit        StreamListResponseSchemaFieldsUnit `json:"unit"`
	JSON        streamListResponseSchemaFieldJSON  `json:"-"`
	// contains filtered or unexported fields
}

func (*StreamListResponseSchemaField) UnmarshalJSON

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

type StreamListResponseSchemaFieldsBinary

type StreamListResponseSchemaFieldsBinary struct {
	Type        StreamListResponseSchemaFieldsBinaryType `json:"type" api:"required"`
	MetadataKey string                                   `json:"metadata_key" api:"nullable"`
	Name        string                                   `json:"name"`
	Required    bool                                     `json:"required"`
	SqlName     string                                   `json:"sql_name"`
	JSON        streamListResponseSchemaFieldsBinaryJSON `json:"-"`
}

func (*StreamListResponseSchemaFieldsBinary) UnmarshalJSON

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

type StreamListResponseSchemaFieldsBinaryType

type StreamListResponseSchemaFieldsBinaryType string
const (
	StreamListResponseSchemaFieldsBinaryTypeBinary StreamListResponseSchemaFieldsBinaryType = "binary"
)

func (StreamListResponseSchemaFieldsBinaryType) IsKnown

type StreamListResponseSchemaFieldsBool

type StreamListResponseSchemaFieldsBool struct {
	Type        StreamListResponseSchemaFieldsBoolType `json:"type" api:"required"`
	MetadataKey string                                 `json:"metadata_key" api:"nullable"`
	Name        string                                 `json:"name"`
	Required    bool                                   `json:"required"`
	SqlName     string                                 `json:"sql_name"`
	JSON        streamListResponseSchemaFieldsBoolJSON `json:"-"`
}

func (*StreamListResponseSchemaFieldsBool) UnmarshalJSON

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

type StreamListResponseSchemaFieldsBoolType

type StreamListResponseSchemaFieldsBoolType string
const (
	StreamListResponseSchemaFieldsBoolTypeBool StreamListResponseSchemaFieldsBoolType = "bool"
)

func (StreamListResponseSchemaFieldsBoolType) IsKnown

type StreamListResponseSchemaFieldsFloat32

type StreamListResponseSchemaFieldsFloat32 struct {
	Type        StreamListResponseSchemaFieldsFloat32Type `json:"type" api:"required"`
	MetadataKey string                                    `json:"metadata_key" api:"nullable"`
	Name        string                                    `json:"name"`
	Required    bool                                      `json:"required"`
	SqlName     string                                    `json:"sql_name"`
	JSON        streamListResponseSchemaFieldsFloat32JSON `json:"-"`
}

func (*StreamListResponseSchemaFieldsFloat32) UnmarshalJSON

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

type StreamListResponseSchemaFieldsFloat32Type

type StreamListResponseSchemaFieldsFloat32Type string
const (
	StreamListResponseSchemaFieldsFloat32TypeFloat32 StreamListResponseSchemaFieldsFloat32Type = "float32"
)

func (StreamListResponseSchemaFieldsFloat32Type) IsKnown

type StreamListResponseSchemaFieldsFloat64

type StreamListResponseSchemaFieldsFloat64 struct {
	Type        StreamListResponseSchemaFieldsFloat64Type `json:"type" api:"required"`
	MetadataKey string                                    `json:"metadata_key" api:"nullable"`
	Name        string                                    `json:"name"`
	Required    bool                                      `json:"required"`
	SqlName     string                                    `json:"sql_name"`
	JSON        streamListResponseSchemaFieldsFloat64JSON `json:"-"`
}

func (*StreamListResponseSchemaFieldsFloat64) UnmarshalJSON

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

type StreamListResponseSchemaFieldsFloat64Type

type StreamListResponseSchemaFieldsFloat64Type string
const (
	StreamListResponseSchemaFieldsFloat64TypeFloat64 StreamListResponseSchemaFieldsFloat64Type = "float64"
)

func (StreamListResponseSchemaFieldsFloat64Type) IsKnown

type StreamListResponseSchemaFieldsInt32

type StreamListResponseSchemaFieldsInt32 struct {
	Type        StreamListResponseSchemaFieldsInt32Type `json:"type" api:"required"`
	MetadataKey string                                  `json:"metadata_key" api:"nullable"`
	Name        string                                  `json:"name"`
	Required    bool                                    `json:"required"`
	SqlName     string                                  `json:"sql_name"`
	JSON        streamListResponseSchemaFieldsInt32JSON `json:"-"`
}

func (*StreamListResponseSchemaFieldsInt32) UnmarshalJSON

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

type StreamListResponseSchemaFieldsInt32Type

type StreamListResponseSchemaFieldsInt32Type string
const (
	StreamListResponseSchemaFieldsInt32TypeInt32 StreamListResponseSchemaFieldsInt32Type = "int32"
)

func (StreamListResponseSchemaFieldsInt32Type) IsKnown

type StreamListResponseSchemaFieldsInt64

type StreamListResponseSchemaFieldsInt64 struct {
	Type        StreamListResponseSchemaFieldsInt64Type `json:"type" api:"required"`
	MetadataKey string                                  `json:"metadata_key" api:"nullable"`
	Name        string                                  `json:"name"`
	Required    bool                                    `json:"required"`
	SqlName     string                                  `json:"sql_name"`
	JSON        streamListResponseSchemaFieldsInt64JSON `json:"-"`
}

func (*StreamListResponseSchemaFieldsInt64) UnmarshalJSON

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

type StreamListResponseSchemaFieldsInt64Type

type StreamListResponseSchemaFieldsInt64Type string
const (
	StreamListResponseSchemaFieldsInt64TypeInt64 StreamListResponseSchemaFieldsInt64Type = "int64"
)

func (StreamListResponseSchemaFieldsInt64Type) IsKnown

type StreamListResponseSchemaFieldsJson

type StreamListResponseSchemaFieldsJson struct {
	Type        StreamListResponseSchemaFieldsJsonType `json:"type" api:"required"`
	MetadataKey string                                 `json:"metadata_key" api:"nullable"`
	Name        string                                 `json:"name"`
	Required    bool                                   `json:"required"`
	SqlName     string                                 `json:"sql_name"`
	JSON        streamListResponseSchemaFieldsJsonJSON `json:"-"`
}

func (*StreamListResponseSchemaFieldsJson) UnmarshalJSON

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

type StreamListResponseSchemaFieldsJsonType

type StreamListResponseSchemaFieldsJsonType string
const (
	StreamListResponseSchemaFieldsJsonTypeJson StreamListResponseSchemaFieldsJsonType = "json"
)

func (StreamListResponseSchemaFieldsJsonType) IsKnown

type StreamListResponseSchemaFieldsList

type StreamListResponseSchemaFieldsList struct {
	JSON streamListResponseSchemaFieldsListJSON `json:"-"`
}

func (*StreamListResponseSchemaFieldsList) UnmarshalJSON

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

type StreamListResponseSchemaFieldsString

type StreamListResponseSchemaFieldsString struct {
	Type        StreamListResponseSchemaFieldsStringType `json:"type" api:"required"`
	MetadataKey string                                   `json:"metadata_key" api:"nullable"`
	Name        string                                   `json:"name"`
	Required    bool                                     `json:"required"`
	SqlName     string                                   `json:"sql_name"`
	JSON        streamListResponseSchemaFieldsStringJSON `json:"-"`
}

func (*StreamListResponseSchemaFieldsString) UnmarshalJSON

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

type StreamListResponseSchemaFieldsStringType

type StreamListResponseSchemaFieldsStringType string
const (
	StreamListResponseSchemaFieldsStringTypeString StreamListResponseSchemaFieldsStringType = "string"
)

func (StreamListResponseSchemaFieldsStringType) IsKnown

type StreamListResponseSchemaFieldsStruct

type StreamListResponseSchemaFieldsStruct struct {
	JSON streamListResponseSchemaFieldsStructJSON `json:"-"`
}

func (*StreamListResponseSchemaFieldsStruct) UnmarshalJSON

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

type StreamListResponseSchemaFieldsTimestamp

type StreamListResponseSchemaFieldsTimestamp struct {
	Type        StreamListResponseSchemaFieldsTimestampType `json:"type" api:"required"`
	MetadataKey string                                      `json:"metadata_key" api:"nullable"`
	Name        string                                      `json:"name"`
	Required    bool                                        `json:"required"`
	SqlName     string                                      `json:"sql_name"`
	Unit        StreamListResponseSchemaFieldsTimestampUnit `json:"unit"`
	JSON        streamListResponseSchemaFieldsTimestampJSON `json:"-"`
}

func (*StreamListResponseSchemaFieldsTimestamp) UnmarshalJSON

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

type StreamListResponseSchemaFieldsTimestampType

type StreamListResponseSchemaFieldsTimestampType string
const (
	StreamListResponseSchemaFieldsTimestampTypeTimestamp StreamListResponseSchemaFieldsTimestampType = "timestamp"
)

func (StreamListResponseSchemaFieldsTimestampType) IsKnown

type StreamListResponseSchemaFieldsTimestampUnit

type StreamListResponseSchemaFieldsTimestampUnit string
const (
	StreamListResponseSchemaFieldsTimestampUnitSecond      StreamListResponseSchemaFieldsTimestampUnit = "second"
	StreamListResponseSchemaFieldsTimestampUnitMillisecond StreamListResponseSchemaFieldsTimestampUnit = "millisecond"
	StreamListResponseSchemaFieldsTimestampUnitMicrosecond StreamListResponseSchemaFieldsTimestampUnit = "microsecond"
	StreamListResponseSchemaFieldsTimestampUnitNanosecond  StreamListResponseSchemaFieldsTimestampUnit = "nanosecond"
)

func (StreamListResponseSchemaFieldsTimestampUnit) IsKnown

type StreamListResponseSchemaFieldsType

type StreamListResponseSchemaFieldsType string
const (
	StreamListResponseSchemaFieldsTypeInt32     StreamListResponseSchemaFieldsType = "int32"
	StreamListResponseSchemaFieldsTypeInt64     StreamListResponseSchemaFieldsType = "int64"
	StreamListResponseSchemaFieldsTypeFloat32   StreamListResponseSchemaFieldsType = "float32"
	StreamListResponseSchemaFieldsTypeFloat64   StreamListResponseSchemaFieldsType = "float64"
	StreamListResponseSchemaFieldsTypeBool      StreamListResponseSchemaFieldsType = "bool"
	StreamListResponseSchemaFieldsTypeString    StreamListResponseSchemaFieldsType = "string"
	StreamListResponseSchemaFieldsTypeBinary    StreamListResponseSchemaFieldsType = "binary"
	StreamListResponseSchemaFieldsTypeTimestamp StreamListResponseSchemaFieldsType = "timestamp"
	StreamListResponseSchemaFieldsTypeJson      StreamListResponseSchemaFieldsType = "json"
	StreamListResponseSchemaFieldsTypeStruct    StreamListResponseSchemaFieldsType = "struct"
	StreamListResponseSchemaFieldsTypeList      StreamListResponseSchemaFieldsType = "list"
)

func (StreamListResponseSchemaFieldsType) IsKnown

type StreamListResponseSchemaFieldsUnit

type StreamListResponseSchemaFieldsUnit string
const (
	StreamListResponseSchemaFieldsUnitSecond      StreamListResponseSchemaFieldsUnit = "second"
	StreamListResponseSchemaFieldsUnitMillisecond StreamListResponseSchemaFieldsUnit = "millisecond"
	StreamListResponseSchemaFieldsUnitMicrosecond StreamListResponseSchemaFieldsUnit = "microsecond"
	StreamListResponseSchemaFieldsUnitNanosecond  StreamListResponseSchemaFieldsUnit = "nanosecond"
)

func (StreamListResponseSchemaFieldsUnit) IsKnown

type StreamListResponseSchemaFormat

type StreamListResponseSchemaFormat struct {
	Type            StreamListResponseSchemaFormatType            `json:"type" api:"required"`
	Compression     StreamListResponseSchemaFormatCompression     `json:"compression"`
	DecimalEncoding StreamListResponseSchemaFormatDecimalEncoding `json:"decimal_encoding"`
	RowGroupBytes   int64                                         `json:"row_group_bytes" api:"nullable"`
	TimestampFormat StreamListResponseSchemaFormatTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                          `json:"unstructured"`
	JSON            streamListResponseSchemaFormatJSON            `json:"-"`
	// contains filtered or unexported fields
}

func (StreamListResponseSchemaFormat) AsUnion

AsUnion returns a StreamListResponseSchemaFormatUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are StreamListResponseSchemaFormatJson, StreamListResponseSchemaFormatParquet.

func (*StreamListResponseSchemaFormat) UnmarshalJSON

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

type StreamListResponseSchemaFormatCompression

type StreamListResponseSchemaFormatCompression string
const (
	StreamListResponseSchemaFormatCompressionUncompressed StreamListResponseSchemaFormatCompression = "uncompressed"
	StreamListResponseSchemaFormatCompressionSnappy       StreamListResponseSchemaFormatCompression = "snappy"
	StreamListResponseSchemaFormatCompressionGzip         StreamListResponseSchemaFormatCompression = "gzip"
	StreamListResponseSchemaFormatCompressionZstd         StreamListResponseSchemaFormatCompression = "zstd"
	StreamListResponseSchemaFormatCompressionLz4          StreamListResponseSchemaFormatCompression = "lz4"
)

func (StreamListResponseSchemaFormatCompression) IsKnown

type StreamListResponseSchemaFormatDecimalEncoding

type StreamListResponseSchemaFormatDecimalEncoding string
const (
	StreamListResponseSchemaFormatDecimalEncodingNumber StreamListResponseSchemaFormatDecimalEncoding = "number"
	StreamListResponseSchemaFormatDecimalEncodingString StreamListResponseSchemaFormatDecimalEncoding = "string"
	StreamListResponseSchemaFormatDecimalEncodingBytes  StreamListResponseSchemaFormatDecimalEncoding = "bytes"
)

func (StreamListResponseSchemaFormatDecimalEncoding) IsKnown

type StreamListResponseSchemaFormatJson

type StreamListResponseSchemaFormatJson struct {
	Type            StreamListResponseSchemaFormatJsonType            `json:"type" api:"required"`
	DecimalEncoding StreamListResponseSchemaFormatJsonDecimalEncoding `json:"decimal_encoding"`
	TimestampFormat StreamListResponseSchemaFormatJsonTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                              `json:"unstructured"`
	JSON            streamListResponseSchemaFormatJsonJSON            `json:"-"`
}

func (*StreamListResponseSchemaFormatJson) UnmarshalJSON

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

type StreamListResponseSchemaFormatJsonDecimalEncoding

type StreamListResponseSchemaFormatJsonDecimalEncoding string
const (
	StreamListResponseSchemaFormatJsonDecimalEncodingNumber StreamListResponseSchemaFormatJsonDecimalEncoding = "number"
	StreamListResponseSchemaFormatJsonDecimalEncodingString StreamListResponseSchemaFormatJsonDecimalEncoding = "string"
	StreamListResponseSchemaFormatJsonDecimalEncodingBytes  StreamListResponseSchemaFormatJsonDecimalEncoding = "bytes"
)

func (StreamListResponseSchemaFormatJsonDecimalEncoding) IsKnown

type StreamListResponseSchemaFormatJsonTimestampFormat

type StreamListResponseSchemaFormatJsonTimestampFormat string
const (
	StreamListResponseSchemaFormatJsonTimestampFormatRfc3339    StreamListResponseSchemaFormatJsonTimestampFormat = "rfc3339"
	StreamListResponseSchemaFormatJsonTimestampFormatUnixMillis StreamListResponseSchemaFormatJsonTimestampFormat = "unix_millis"
)

func (StreamListResponseSchemaFormatJsonTimestampFormat) IsKnown

type StreamListResponseSchemaFormatJsonType

type StreamListResponseSchemaFormatJsonType string
const (
	StreamListResponseSchemaFormatJsonTypeJson StreamListResponseSchemaFormatJsonType = "json"
)

func (StreamListResponseSchemaFormatJsonType) IsKnown

type StreamListResponseSchemaFormatParquet

type StreamListResponseSchemaFormatParquet struct {
	Type          StreamListResponseSchemaFormatParquetType        `json:"type" api:"required"`
	Compression   StreamListResponseSchemaFormatParquetCompression `json:"compression"`
	RowGroupBytes int64                                            `json:"row_group_bytes" api:"nullable"`
	JSON          streamListResponseSchemaFormatParquetJSON        `json:"-"`
}

func (*StreamListResponseSchemaFormatParquet) UnmarshalJSON

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

type StreamListResponseSchemaFormatParquetCompression

type StreamListResponseSchemaFormatParquetCompression string
const (
	StreamListResponseSchemaFormatParquetCompressionUncompressed StreamListResponseSchemaFormatParquetCompression = "uncompressed"
	StreamListResponseSchemaFormatParquetCompressionSnappy       StreamListResponseSchemaFormatParquetCompression = "snappy"
	StreamListResponseSchemaFormatParquetCompressionGzip         StreamListResponseSchemaFormatParquetCompression = "gzip"
	StreamListResponseSchemaFormatParquetCompressionZstd         StreamListResponseSchemaFormatParquetCompression = "zstd"
	StreamListResponseSchemaFormatParquetCompressionLz4          StreamListResponseSchemaFormatParquetCompression = "lz4"
)

func (StreamListResponseSchemaFormatParquetCompression) IsKnown

type StreamListResponseSchemaFormatParquetType

type StreamListResponseSchemaFormatParquetType string
const (
	StreamListResponseSchemaFormatParquetTypeParquet StreamListResponseSchemaFormatParquetType = "parquet"
)

func (StreamListResponseSchemaFormatParquetType) IsKnown

type StreamListResponseSchemaFormatTimestampFormat

type StreamListResponseSchemaFormatTimestampFormat string
const (
	StreamListResponseSchemaFormatTimestampFormatRfc3339    StreamListResponseSchemaFormatTimestampFormat = "rfc3339"
	StreamListResponseSchemaFormatTimestampFormatUnixMillis StreamListResponseSchemaFormatTimestampFormat = "unix_millis"
)

func (StreamListResponseSchemaFormatTimestampFormat) IsKnown

type StreamListResponseSchemaFormatType

type StreamListResponseSchemaFormatType string
const (
	StreamListResponseSchemaFormatTypeJson    StreamListResponseSchemaFormatType = "json"
	StreamListResponseSchemaFormatTypeParquet StreamListResponseSchemaFormatType = "parquet"
)

func (StreamListResponseSchemaFormatType) IsKnown

type StreamListResponseSchemaFormatUnion

type StreamListResponseSchemaFormatUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by StreamListResponseSchemaFormatJson or StreamListResponseSchemaFormatParquet.

type StreamListResponseWorkerBinding

type StreamListResponseWorkerBinding struct {
	// Indicates that the worker binding is enabled.
	Enabled bool                                `json:"enabled" api:"required"`
	JSON    streamListResponseWorkerBindingJSON `json:"-"`
}

func (*StreamListResponseWorkerBinding) UnmarshalJSON

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

type StreamNewParams

type StreamNewParams struct {
	// Specifies the public ID of the account.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Specifies the name of the Stream.
	Name          param.Field[string]                       `json:"name" api:"required"`
	Format        param.Field[StreamNewParamsFormatUnion]   `json:"format"`
	HTTP          param.Field[StreamNewParamsHTTP]          `json:"http"`
	Schema        param.Field[StreamNewParamsSchema]        `json:"schema"`
	WorkerBinding param.Field[StreamNewParamsWorkerBinding] `json:"worker_binding"`
}

func (StreamNewParams) MarshalJSON

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

type StreamNewParamsFormat

type StreamNewParamsFormat struct {
	Type            param.Field[StreamNewParamsFormatType]            `json:"type" api:"required"`
	Compression     param.Field[StreamNewParamsFormatCompression]     `json:"compression"`
	DecimalEncoding param.Field[StreamNewParamsFormatDecimalEncoding] `json:"decimal_encoding"`
	RowGroupBytes   param.Field[int64]                                `json:"row_group_bytes"`
	TimestampFormat param.Field[StreamNewParamsFormatTimestampFormat] `json:"timestamp_format"`
	Unstructured    param.Field[bool]                                 `json:"unstructured"`
}

func (StreamNewParamsFormat) MarshalJSON

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

type StreamNewParamsFormatCompression

type StreamNewParamsFormatCompression string
const (
	StreamNewParamsFormatCompressionUncompressed StreamNewParamsFormatCompression = "uncompressed"
	StreamNewParamsFormatCompressionSnappy       StreamNewParamsFormatCompression = "snappy"
	StreamNewParamsFormatCompressionGzip         StreamNewParamsFormatCompression = "gzip"
	StreamNewParamsFormatCompressionZstd         StreamNewParamsFormatCompression = "zstd"
	StreamNewParamsFormatCompressionLz4          StreamNewParamsFormatCompression = "lz4"
)

func (StreamNewParamsFormatCompression) IsKnown

type StreamNewParamsFormatDecimalEncoding

type StreamNewParamsFormatDecimalEncoding string
const (
	StreamNewParamsFormatDecimalEncodingNumber StreamNewParamsFormatDecimalEncoding = "number"
	StreamNewParamsFormatDecimalEncodingString StreamNewParamsFormatDecimalEncoding = "string"
	StreamNewParamsFormatDecimalEncodingBytes  StreamNewParamsFormatDecimalEncoding = "bytes"
)

func (StreamNewParamsFormatDecimalEncoding) IsKnown

type StreamNewParamsFormatJson

type StreamNewParamsFormatJson struct {
	Type            param.Field[StreamNewParamsFormatJsonType]            `json:"type" api:"required"`
	DecimalEncoding param.Field[StreamNewParamsFormatJsonDecimalEncoding] `json:"decimal_encoding"`
	TimestampFormat param.Field[StreamNewParamsFormatJsonTimestampFormat] `json:"timestamp_format"`
	Unstructured    param.Field[bool]                                     `json:"unstructured"`
}

func (StreamNewParamsFormatJson) MarshalJSON

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

type StreamNewParamsFormatJsonDecimalEncoding

type StreamNewParamsFormatJsonDecimalEncoding string
const (
	StreamNewParamsFormatJsonDecimalEncodingNumber StreamNewParamsFormatJsonDecimalEncoding = "number"
	StreamNewParamsFormatJsonDecimalEncodingString StreamNewParamsFormatJsonDecimalEncoding = "string"
	StreamNewParamsFormatJsonDecimalEncodingBytes  StreamNewParamsFormatJsonDecimalEncoding = "bytes"
)

func (StreamNewParamsFormatJsonDecimalEncoding) IsKnown

type StreamNewParamsFormatJsonTimestampFormat

type StreamNewParamsFormatJsonTimestampFormat string
const (
	StreamNewParamsFormatJsonTimestampFormatRfc3339    StreamNewParamsFormatJsonTimestampFormat = "rfc3339"
	StreamNewParamsFormatJsonTimestampFormatUnixMillis StreamNewParamsFormatJsonTimestampFormat = "unix_millis"
)

func (StreamNewParamsFormatJsonTimestampFormat) IsKnown

type StreamNewParamsFormatJsonType

type StreamNewParamsFormatJsonType string
const (
	StreamNewParamsFormatJsonTypeJson StreamNewParamsFormatJsonType = "json"
)

func (StreamNewParamsFormatJsonType) IsKnown

func (r StreamNewParamsFormatJsonType) IsKnown() bool

type StreamNewParamsFormatParquet

type StreamNewParamsFormatParquet struct {
	Type          param.Field[StreamNewParamsFormatParquetType]        `json:"type" api:"required"`
	Compression   param.Field[StreamNewParamsFormatParquetCompression] `json:"compression"`
	RowGroupBytes param.Field[int64]                                   `json:"row_group_bytes"`
}

func (StreamNewParamsFormatParquet) MarshalJSON

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

type StreamNewParamsFormatParquetCompression

type StreamNewParamsFormatParquetCompression string
const (
	StreamNewParamsFormatParquetCompressionUncompressed StreamNewParamsFormatParquetCompression = "uncompressed"
	StreamNewParamsFormatParquetCompressionSnappy       StreamNewParamsFormatParquetCompression = "snappy"
	StreamNewParamsFormatParquetCompressionGzip         StreamNewParamsFormatParquetCompression = "gzip"
	StreamNewParamsFormatParquetCompressionZstd         StreamNewParamsFormatParquetCompression = "zstd"
	StreamNewParamsFormatParquetCompressionLz4          StreamNewParamsFormatParquetCompression = "lz4"
)

func (StreamNewParamsFormatParquetCompression) IsKnown

type StreamNewParamsFormatParquetType

type StreamNewParamsFormatParquetType string
const (
	StreamNewParamsFormatParquetTypeParquet StreamNewParamsFormatParquetType = "parquet"
)

func (StreamNewParamsFormatParquetType) IsKnown

type StreamNewParamsFormatTimestampFormat

type StreamNewParamsFormatTimestampFormat string
const (
	StreamNewParamsFormatTimestampFormatRfc3339    StreamNewParamsFormatTimestampFormat = "rfc3339"
	StreamNewParamsFormatTimestampFormatUnixMillis StreamNewParamsFormatTimestampFormat = "unix_millis"
)

func (StreamNewParamsFormatTimestampFormat) IsKnown

type StreamNewParamsFormatType

type StreamNewParamsFormatType string
const (
	StreamNewParamsFormatTypeJson    StreamNewParamsFormatType = "json"
	StreamNewParamsFormatTypeParquet StreamNewParamsFormatType = "parquet"
)

func (StreamNewParamsFormatType) IsKnown

func (r StreamNewParamsFormatType) IsKnown() bool

type StreamNewParamsFormatUnion

type StreamNewParamsFormatUnion interface {
	// contains filtered or unexported methods
}

Satisfied by pipelines.StreamNewParamsFormatJson, pipelines.StreamNewParamsFormatParquet, StreamNewParamsFormat.

type StreamNewParamsHTTP

type StreamNewParamsHTTP struct {
	// Indicates that authentication is required for the HTTP endpoint.
	Authentication param.Field[bool] `json:"authentication" api:"required"`
	// Indicates that the HTTP endpoint is enabled.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
	// Specifies the CORS options for the HTTP endpoint.
	CORS param.Field[StreamNewParamsHTTPCORS] `json:"cors"`
}

func (StreamNewParamsHTTP) MarshalJSON

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

type StreamNewParamsHTTPCORS

type StreamNewParamsHTTPCORS struct {
	Origins param.Field[[]string] `json:"origins"`
}

Specifies the CORS options for the HTTP endpoint.

func (StreamNewParamsHTTPCORS) MarshalJSON

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

type StreamNewParamsSchema

type StreamNewParamsSchema struct {
	Fields   param.Field[[]StreamNewParamsSchemaFieldUnion] `json:"fields"`
	Format   param.Field[StreamNewParamsSchemaFormatUnion]  `json:"format"`
	Inferred param.Field[bool]                              `json:"inferred"`
}

func (StreamNewParamsSchema) MarshalJSON

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

type StreamNewParamsSchemaField

type StreamNewParamsSchemaField struct {
	Type        param.Field[StreamNewParamsSchemaFieldsType] `json:"type" api:"required"`
	MetadataKey param.Field[string]                          `json:"metadata_key"`
	Name        param.Field[string]                          `json:"name"`
	Required    param.Field[bool]                            `json:"required"`
	SqlName     param.Field[string]                          `json:"sql_name"`
	Unit        param.Field[StreamNewParamsSchemaFieldsUnit] `json:"unit"`
}

func (StreamNewParamsSchemaField) MarshalJSON

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

type StreamNewParamsSchemaFieldsBinary

type StreamNewParamsSchemaFieldsBinary struct {
	Type        param.Field[StreamNewParamsSchemaFieldsBinaryType] `json:"type" api:"required"`
	MetadataKey param.Field[string]                                `json:"metadata_key"`
	Name        param.Field[string]                                `json:"name"`
	Required    param.Field[bool]                                  `json:"required"`
	SqlName     param.Field[string]                                `json:"sql_name"`
}

func (StreamNewParamsSchemaFieldsBinary) MarshalJSON

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

type StreamNewParamsSchemaFieldsBinaryType

type StreamNewParamsSchemaFieldsBinaryType string
const (
	StreamNewParamsSchemaFieldsBinaryTypeBinary StreamNewParamsSchemaFieldsBinaryType = "binary"
)

func (StreamNewParamsSchemaFieldsBinaryType) IsKnown

type StreamNewParamsSchemaFieldsBool

type StreamNewParamsSchemaFieldsBool struct {
	Type        param.Field[StreamNewParamsSchemaFieldsBoolType] `json:"type" api:"required"`
	MetadataKey param.Field[string]                              `json:"metadata_key"`
	Name        param.Field[string]                              `json:"name"`
	Required    param.Field[bool]                                `json:"required"`
	SqlName     param.Field[string]                              `json:"sql_name"`
}

func (StreamNewParamsSchemaFieldsBool) MarshalJSON

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

type StreamNewParamsSchemaFieldsBoolType

type StreamNewParamsSchemaFieldsBoolType string
const (
	StreamNewParamsSchemaFieldsBoolTypeBool StreamNewParamsSchemaFieldsBoolType = "bool"
)

func (StreamNewParamsSchemaFieldsBoolType) IsKnown

type StreamNewParamsSchemaFieldsFloat32

type StreamNewParamsSchemaFieldsFloat32 struct {
	Type        param.Field[StreamNewParamsSchemaFieldsFloat32Type] `json:"type" api:"required"`
	MetadataKey param.Field[string]                                 `json:"metadata_key"`
	Name        param.Field[string]                                 `json:"name"`
	Required    param.Field[bool]                                   `json:"required"`
	SqlName     param.Field[string]                                 `json:"sql_name"`
}

func (StreamNewParamsSchemaFieldsFloat32) MarshalJSON

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

type StreamNewParamsSchemaFieldsFloat32Type

type StreamNewParamsSchemaFieldsFloat32Type string
const (
	StreamNewParamsSchemaFieldsFloat32TypeFloat32 StreamNewParamsSchemaFieldsFloat32Type = "float32"
)

func (StreamNewParamsSchemaFieldsFloat32Type) IsKnown

type StreamNewParamsSchemaFieldsFloat64

type StreamNewParamsSchemaFieldsFloat64 struct {
	Type        param.Field[StreamNewParamsSchemaFieldsFloat64Type] `json:"type" api:"required"`
	MetadataKey param.Field[string]                                 `json:"metadata_key"`
	Name        param.Field[string]                                 `json:"name"`
	Required    param.Field[bool]                                   `json:"required"`
	SqlName     param.Field[string]                                 `json:"sql_name"`
}

func (StreamNewParamsSchemaFieldsFloat64) MarshalJSON

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

type StreamNewParamsSchemaFieldsFloat64Type

type StreamNewParamsSchemaFieldsFloat64Type string
const (
	StreamNewParamsSchemaFieldsFloat64TypeFloat64 StreamNewParamsSchemaFieldsFloat64Type = "float64"
)

func (StreamNewParamsSchemaFieldsFloat64Type) IsKnown

type StreamNewParamsSchemaFieldsInt32

type StreamNewParamsSchemaFieldsInt32 struct {
	Type        param.Field[StreamNewParamsSchemaFieldsInt32Type] `json:"type" api:"required"`
	MetadataKey param.Field[string]                               `json:"metadata_key"`
	Name        param.Field[string]                               `json:"name"`
	Required    param.Field[bool]                                 `json:"required"`
	SqlName     param.Field[string]                               `json:"sql_name"`
}

func (StreamNewParamsSchemaFieldsInt32) MarshalJSON

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

type StreamNewParamsSchemaFieldsInt32Type

type StreamNewParamsSchemaFieldsInt32Type string
const (
	StreamNewParamsSchemaFieldsInt32TypeInt32 StreamNewParamsSchemaFieldsInt32Type = "int32"
)

func (StreamNewParamsSchemaFieldsInt32Type) IsKnown

type StreamNewParamsSchemaFieldsInt64

type StreamNewParamsSchemaFieldsInt64 struct {
	Type        param.Field[StreamNewParamsSchemaFieldsInt64Type] `json:"type" api:"required"`
	MetadataKey param.Field[string]                               `json:"metadata_key"`
	Name        param.Field[string]                               `json:"name"`
	Required    param.Field[bool]                                 `json:"required"`
	SqlName     param.Field[string]                               `json:"sql_name"`
}

func (StreamNewParamsSchemaFieldsInt64) MarshalJSON

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

type StreamNewParamsSchemaFieldsInt64Type

type StreamNewParamsSchemaFieldsInt64Type string
const (
	StreamNewParamsSchemaFieldsInt64TypeInt64 StreamNewParamsSchemaFieldsInt64Type = "int64"
)

func (StreamNewParamsSchemaFieldsInt64Type) IsKnown

type StreamNewParamsSchemaFieldsJson

type StreamNewParamsSchemaFieldsJson struct {
	Type        param.Field[StreamNewParamsSchemaFieldsJsonType] `json:"type" api:"required"`
	MetadataKey param.Field[string]                              `json:"metadata_key"`
	Name        param.Field[string]                              `json:"name"`
	Required    param.Field[bool]                                `json:"required"`
	SqlName     param.Field[string]                              `json:"sql_name"`
}

func (StreamNewParamsSchemaFieldsJson) MarshalJSON

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

type StreamNewParamsSchemaFieldsJsonType

type StreamNewParamsSchemaFieldsJsonType string
const (
	StreamNewParamsSchemaFieldsJsonTypeJson StreamNewParamsSchemaFieldsJsonType = "json"
)

func (StreamNewParamsSchemaFieldsJsonType) IsKnown

type StreamNewParamsSchemaFieldsList

type StreamNewParamsSchemaFieldsList struct {
}

func (StreamNewParamsSchemaFieldsList) MarshalJSON

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

type StreamNewParamsSchemaFieldsString

type StreamNewParamsSchemaFieldsString struct {
	Type        param.Field[StreamNewParamsSchemaFieldsStringType] `json:"type" api:"required"`
	MetadataKey param.Field[string]                                `json:"metadata_key"`
	Name        param.Field[string]                                `json:"name"`
	Required    param.Field[bool]                                  `json:"required"`
	SqlName     param.Field[string]                                `json:"sql_name"`
}

func (StreamNewParamsSchemaFieldsString) MarshalJSON

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

type StreamNewParamsSchemaFieldsStringType

type StreamNewParamsSchemaFieldsStringType string
const (
	StreamNewParamsSchemaFieldsStringTypeString StreamNewParamsSchemaFieldsStringType = "string"
)

func (StreamNewParamsSchemaFieldsStringType) IsKnown

type StreamNewParamsSchemaFieldsStruct

type StreamNewParamsSchemaFieldsStruct struct {
}

func (StreamNewParamsSchemaFieldsStruct) MarshalJSON

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

type StreamNewParamsSchemaFieldsTimestamp

type StreamNewParamsSchemaFieldsTimestamp struct {
	Type        param.Field[StreamNewParamsSchemaFieldsTimestampType] `json:"type" api:"required"`
	MetadataKey param.Field[string]                                   `json:"metadata_key"`
	Name        param.Field[string]                                   `json:"name"`
	Required    param.Field[bool]                                     `json:"required"`
	SqlName     param.Field[string]                                   `json:"sql_name"`
	Unit        param.Field[StreamNewParamsSchemaFieldsTimestampUnit] `json:"unit"`
}

func (StreamNewParamsSchemaFieldsTimestamp) MarshalJSON

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

type StreamNewParamsSchemaFieldsTimestampType

type StreamNewParamsSchemaFieldsTimestampType string
const (
	StreamNewParamsSchemaFieldsTimestampTypeTimestamp StreamNewParamsSchemaFieldsTimestampType = "timestamp"
)

func (StreamNewParamsSchemaFieldsTimestampType) IsKnown

type StreamNewParamsSchemaFieldsTimestampUnit

type StreamNewParamsSchemaFieldsTimestampUnit string
const (
	StreamNewParamsSchemaFieldsTimestampUnitSecond      StreamNewParamsSchemaFieldsTimestampUnit = "second"
	StreamNewParamsSchemaFieldsTimestampUnitMillisecond StreamNewParamsSchemaFieldsTimestampUnit = "millisecond"
	StreamNewParamsSchemaFieldsTimestampUnitMicrosecond StreamNewParamsSchemaFieldsTimestampUnit = "microsecond"
	StreamNewParamsSchemaFieldsTimestampUnitNanosecond  StreamNewParamsSchemaFieldsTimestampUnit = "nanosecond"
)

func (StreamNewParamsSchemaFieldsTimestampUnit) IsKnown

type StreamNewParamsSchemaFieldsType

type StreamNewParamsSchemaFieldsType string
const (
	StreamNewParamsSchemaFieldsTypeInt32     StreamNewParamsSchemaFieldsType = "int32"
	StreamNewParamsSchemaFieldsTypeInt64     StreamNewParamsSchemaFieldsType = "int64"
	StreamNewParamsSchemaFieldsTypeFloat32   StreamNewParamsSchemaFieldsType = "float32"
	StreamNewParamsSchemaFieldsTypeFloat64   StreamNewParamsSchemaFieldsType = "float64"
	StreamNewParamsSchemaFieldsTypeBool      StreamNewParamsSchemaFieldsType = "bool"
	StreamNewParamsSchemaFieldsTypeString    StreamNewParamsSchemaFieldsType = "string"
	StreamNewParamsSchemaFieldsTypeBinary    StreamNewParamsSchemaFieldsType = "binary"
	StreamNewParamsSchemaFieldsTypeTimestamp StreamNewParamsSchemaFieldsType = "timestamp"
	StreamNewParamsSchemaFieldsTypeJson      StreamNewParamsSchemaFieldsType = "json"
	StreamNewParamsSchemaFieldsTypeStruct    StreamNewParamsSchemaFieldsType = "struct"
	StreamNewParamsSchemaFieldsTypeList      StreamNewParamsSchemaFieldsType = "list"
)

func (StreamNewParamsSchemaFieldsType) IsKnown

type StreamNewParamsSchemaFieldsUnit

type StreamNewParamsSchemaFieldsUnit string
const (
	StreamNewParamsSchemaFieldsUnitSecond      StreamNewParamsSchemaFieldsUnit = "second"
	StreamNewParamsSchemaFieldsUnitMillisecond StreamNewParamsSchemaFieldsUnit = "millisecond"
	StreamNewParamsSchemaFieldsUnitMicrosecond StreamNewParamsSchemaFieldsUnit = "microsecond"
	StreamNewParamsSchemaFieldsUnitNanosecond  StreamNewParamsSchemaFieldsUnit = "nanosecond"
)

func (StreamNewParamsSchemaFieldsUnit) IsKnown

type StreamNewParamsSchemaFormat

type StreamNewParamsSchemaFormat struct {
	Type            param.Field[StreamNewParamsSchemaFormatType]            `json:"type" api:"required"`
	Compression     param.Field[StreamNewParamsSchemaFormatCompression]     `json:"compression"`
	DecimalEncoding param.Field[StreamNewParamsSchemaFormatDecimalEncoding] `json:"decimal_encoding"`
	RowGroupBytes   param.Field[int64]                                      `json:"row_group_bytes"`
	TimestampFormat param.Field[StreamNewParamsSchemaFormatTimestampFormat] `json:"timestamp_format"`
	Unstructured    param.Field[bool]                                       `json:"unstructured"`
}

func (StreamNewParamsSchemaFormat) MarshalJSON

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

type StreamNewParamsSchemaFormatCompression

type StreamNewParamsSchemaFormatCompression string
const (
	StreamNewParamsSchemaFormatCompressionUncompressed StreamNewParamsSchemaFormatCompression = "uncompressed"
	StreamNewParamsSchemaFormatCompressionSnappy       StreamNewParamsSchemaFormatCompression = "snappy"
	StreamNewParamsSchemaFormatCompressionGzip         StreamNewParamsSchemaFormatCompression = "gzip"
	StreamNewParamsSchemaFormatCompressionZstd         StreamNewParamsSchemaFormatCompression = "zstd"
	StreamNewParamsSchemaFormatCompressionLz4          StreamNewParamsSchemaFormatCompression = "lz4"
)

func (StreamNewParamsSchemaFormatCompression) IsKnown

type StreamNewParamsSchemaFormatDecimalEncoding

type StreamNewParamsSchemaFormatDecimalEncoding string
const (
	StreamNewParamsSchemaFormatDecimalEncodingNumber StreamNewParamsSchemaFormatDecimalEncoding = "number"
	StreamNewParamsSchemaFormatDecimalEncodingString StreamNewParamsSchemaFormatDecimalEncoding = "string"
	StreamNewParamsSchemaFormatDecimalEncodingBytes  StreamNewParamsSchemaFormatDecimalEncoding = "bytes"
)

func (StreamNewParamsSchemaFormatDecimalEncoding) IsKnown

type StreamNewParamsSchemaFormatJson

type StreamNewParamsSchemaFormatJson struct {
	Type            param.Field[StreamNewParamsSchemaFormatJsonType]            `json:"type" api:"required"`
	DecimalEncoding param.Field[StreamNewParamsSchemaFormatJsonDecimalEncoding] `json:"decimal_encoding"`
	TimestampFormat param.Field[StreamNewParamsSchemaFormatJsonTimestampFormat] `json:"timestamp_format"`
	Unstructured    param.Field[bool]                                           `json:"unstructured"`
}

func (StreamNewParamsSchemaFormatJson) MarshalJSON

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

type StreamNewParamsSchemaFormatJsonDecimalEncoding

type StreamNewParamsSchemaFormatJsonDecimalEncoding string
const (
	StreamNewParamsSchemaFormatJsonDecimalEncodingNumber StreamNewParamsSchemaFormatJsonDecimalEncoding = "number"
	StreamNewParamsSchemaFormatJsonDecimalEncodingString StreamNewParamsSchemaFormatJsonDecimalEncoding = "string"
	StreamNewParamsSchemaFormatJsonDecimalEncodingBytes  StreamNewParamsSchemaFormatJsonDecimalEncoding = "bytes"
)

func (StreamNewParamsSchemaFormatJsonDecimalEncoding) IsKnown

type StreamNewParamsSchemaFormatJsonTimestampFormat

type StreamNewParamsSchemaFormatJsonTimestampFormat string
const (
	StreamNewParamsSchemaFormatJsonTimestampFormatRfc3339    StreamNewParamsSchemaFormatJsonTimestampFormat = "rfc3339"
	StreamNewParamsSchemaFormatJsonTimestampFormatUnixMillis StreamNewParamsSchemaFormatJsonTimestampFormat = "unix_millis"
)

func (StreamNewParamsSchemaFormatJsonTimestampFormat) IsKnown

type StreamNewParamsSchemaFormatJsonType

type StreamNewParamsSchemaFormatJsonType string
const (
	StreamNewParamsSchemaFormatJsonTypeJson StreamNewParamsSchemaFormatJsonType = "json"
)

func (StreamNewParamsSchemaFormatJsonType) IsKnown

type StreamNewParamsSchemaFormatParquet

type StreamNewParamsSchemaFormatParquet struct {
	Type          param.Field[StreamNewParamsSchemaFormatParquetType]        `json:"type" api:"required"`
	Compression   param.Field[StreamNewParamsSchemaFormatParquetCompression] `json:"compression"`
	RowGroupBytes param.Field[int64]                                         `json:"row_group_bytes"`
}

func (StreamNewParamsSchemaFormatParquet) MarshalJSON

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

type StreamNewParamsSchemaFormatParquetCompression

type StreamNewParamsSchemaFormatParquetCompression string
const (
	StreamNewParamsSchemaFormatParquetCompressionUncompressed StreamNewParamsSchemaFormatParquetCompression = "uncompressed"
	StreamNewParamsSchemaFormatParquetCompressionSnappy       StreamNewParamsSchemaFormatParquetCompression = "snappy"
	StreamNewParamsSchemaFormatParquetCompressionGzip         StreamNewParamsSchemaFormatParquetCompression = "gzip"
	StreamNewParamsSchemaFormatParquetCompressionZstd         StreamNewParamsSchemaFormatParquetCompression = "zstd"
	StreamNewParamsSchemaFormatParquetCompressionLz4          StreamNewParamsSchemaFormatParquetCompression = "lz4"
)

func (StreamNewParamsSchemaFormatParquetCompression) IsKnown

type StreamNewParamsSchemaFormatParquetType

type StreamNewParamsSchemaFormatParquetType string
const (
	StreamNewParamsSchemaFormatParquetTypeParquet StreamNewParamsSchemaFormatParquetType = "parquet"
)

func (StreamNewParamsSchemaFormatParquetType) IsKnown

type StreamNewParamsSchemaFormatTimestampFormat

type StreamNewParamsSchemaFormatTimestampFormat string
const (
	StreamNewParamsSchemaFormatTimestampFormatRfc3339    StreamNewParamsSchemaFormatTimestampFormat = "rfc3339"
	StreamNewParamsSchemaFormatTimestampFormatUnixMillis StreamNewParamsSchemaFormatTimestampFormat = "unix_millis"
)

func (StreamNewParamsSchemaFormatTimestampFormat) IsKnown

type StreamNewParamsSchemaFormatType

type StreamNewParamsSchemaFormatType string
const (
	StreamNewParamsSchemaFormatTypeJson    StreamNewParamsSchemaFormatType = "json"
	StreamNewParamsSchemaFormatTypeParquet StreamNewParamsSchemaFormatType = "parquet"
)

func (StreamNewParamsSchemaFormatType) IsKnown

type StreamNewParamsSchemaFormatUnion

type StreamNewParamsSchemaFormatUnion interface {
	// contains filtered or unexported methods
}

Satisfied by pipelines.StreamNewParamsSchemaFormatJson, pipelines.StreamNewParamsSchemaFormatParquet, StreamNewParamsSchemaFormat.

type StreamNewParamsWorkerBinding

type StreamNewParamsWorkerBinding struct {
	// Indicates that the worker binding is enabled.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
}

func (StreamNewParamsWorkerBinding) MarshalJSON

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

type StreamNewResponse

type StreamNewResponse struct {
	// Indicates a unique identifier for this stream.
	ID         string                `json:"id" api:"required"`
	CreatedAt  time.Time             `json:"created_at" api:"required" format:"date-time"`
	HTTP       StreamNewResponseHTTP `json:"http" api:"required"`
	ModifiedAt time.Time             `json:"modified_at" api:"required" format:"date-time"`
	// Indicates the name of the Stream.
	Name string `json:"name" api:"required"`
	// Indicates the current version of this stream.
	Version       int64                          `json:"version" api:"required"`
	WorkerBinding StreamNewResponseWorkerBinding `json:"worker_binding" api:"required"`
	// Indicates the endpoint URL of this stream.
	Endpoint string                  `json:"endpoint" format:"uri"`
	Format   StreamNewResponseFormat `json:"format"`
	Schema   StreamNewResponseSchema `json:"schema"`
	JSON     streamNewResponseJSON   `json:"-"`
}

func (*StreamNewResponse) UnmarshalJSON

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

type StreamNewResponseEnvelope

type StreamNewResponseEnvelope struct {
	Result StreamNewResponse `json:"result" api:"required"`
	// Indicates whether the API call was successful.
	Success bool                          `json:"success" api:"required"`
	JSON    streamNewResponseEnvelopeJSON `json:"-"`
}

func (*StreamNewResponseEnvelope) UnmarshalJSON

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

type StreamNewResponseFormat

type StreamNewResponseFormat struct {
	Type            StreamNewResponseFormatType            `json:"type" api:"required"`
	Compression     StreamNewResponseFormatCompression     `json:"compression"`
	DecimalEncoding StreamNewResponseFormatDecimalEncoding `json:"decimal_encoding"`
	RowGroupBytes   int64                                  `json:"row_group_bytes" api:"nullable"`
	TimestampFormat StreamNewResponseFormatTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                   `json:"unstructured"`
	JSON            streamNewResponseFormatJSON            `json:"-"`
	// contains filtered or unexported fields
}

func (StreamNewResponseFormat) AsUnion

AsUnion returns a StreamNewResponseFormatUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are StreamNewResponseFormatJson, StreamNewResponseFormatParquet.

func (*StreamNewResponseFormat) UnmarshalJSON

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

type StreamNewResponseFormatCompression

type StreamNewResponseFormatCompression string
const (
	StreamNewResponseFormatCompressionUncompressed StreamNewResponseFormatCompression = "uncompressed"
	StreamNewResponseFormatCompressionSnappy       StreamNewResponseFormatCompression = "snappy"
	StreamNewResponseFormatCompressionGzip         StreamNewResponseFormatCompression = "gzip"
	StreamNewResponseFormatCompressionZstd         StreamNewResponseFormatCompression = "zstd"
	StreamNewResponseFormatCompressionLz4          StreamNewResponseFormatCompression = "lz4"
)

func (StreamNewResponseFormatCompression) IsKnown

type StreamNewResponseFormatDecimalEncoding

type StreamNewResponseFormatDecimalEncoding string
const (
	StreamNewResponseFormatDecimalEncodingNumber StreamNewResponseFormatDecimalEncoding = "number"
	StreamNewResponseFormatDecimalEncodingString StreamNewResponseFormatDecimalEncoding = "string"
	StreamNewResponseFormatDecimalEncodingBytes  StreamNewResponseFormatDecimalEncoding = "bytes"
)

func (StreamNewResponseFormatDecimalEncoding) IsKnown

type StreamNewResponseFormatJson

type StreamNewResponseFormatJson struct {
	Type            StreamNewResponseFormatJsonType            `json:"type" api:"required"`
	DecimalEncoding StreamNewResponseFormatJsonDecimalEncoding `json:"decimal_encoding"`
	TimestampFormat StreamNewResponseFormatJsonTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                       `json:"unstructured"`
	JSON            streamNewResponseFormatJsonJSON            `json:"-"`
}

func (*StreamNewResponseFormatJson) UnmarshalJSON

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

type StreamNewResponseFormatJsonDecimalEncoding

type StreamNewResponseFormatJsonDecimalEncoding string
const (
	StreamNewResponseFormatJsonDecimalEncodingNumber StreamNewResponseFormatJsonDecimalEncoding = "number"
	StreamNewResponseFormatJsonDecimalEncodingString StreamNewResponseFormatJsonDecimalEncoding = "string"
	StreamNewResponseFormatJsonDecimalEncodingBytes  StreamNewResponseFormatJsonDecimalEncoding = "bytes"
)

func (StreamNewResponseFormatJsonDecimalEncoding) IsKnown

type StreamNewResponseFormatJsonTimestampFormat

type StreamNewResponseFormatJsonTimestampFormat string
const (
	StreamNewResponseFormatJsonTimestampFormatRfc3339    StreamNewResponseFormatJsonTimestampFormat = "rfc3339"
	StreamNewResponseFormatJsonTimestampFormatUnixMillis StreamNewResponseFormatJsonTimestampFormat = "unix_millis"
)

func (StreamNewResponseFormatJsonTimestampFormat) IsKnown

type StreamNewResponseFormatJsonType

type StreamNewResponseFormatJsonType string
const (
	StreamNewResponseFormatJsonTypeJson StreamNewResponseFormatJsonType = "json"
)

func (StreamNewResponseFormatJsonType) IsKnown

type StreamNewResponseFormatParquet

type StreamNewResponseFormatParquet struct {
	Type          StreamNewResponseFormatParquetType        `json:"type" api:"required"`
	Compression   StreamNewResponseFormatParquetCompression `json:"compression"`
	RowGroupBytes int64                                     `json:"row_group_bytes" api:"nullable"`
	JSON          streamNewResponseFormatParquetJSON        `json:"-"`
}

func (*StreamNewResponseFormatParquet) UnmarshalJSON

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

type StreamNewResponseFormatParquetCompression

type StreamNewResponseFormatParquetCompression string
const (
	StreamNewResponseFormatParquetCompressionUncompressed StreamNewResponseFormatParquetCompression = "uncompressed"
	StreamNewResponseFormatParquetCompressionSnappy       StreamNewResponseFormatParquetCompression = "snappy"
	StreamNewResponseFormatParquetCompressionGzip         StreamNewResponseFormatParquetCompression = "gzip"
	StreamNewResponseFormatParquetCompressionZstd         StreamNewResponseFormatParquetCompression = "zstd"
	StreamNewResponseFormatParquetCompressionLz4          StreamNewResponseFormatParquetCompression = "lz4"
)

func (StreamNewResponseFormatParquetCompression) IsKnown

type StreamNewResponseFormatParquetType

type StreamNewResponseFormatParquetType string
const (
	StreamNewResponseFormatParquetTypeParquet StreamNewResponseFormatParquetType = "parquet"
)

func (StreamNewResponseFormatParquetType) IsKnown

type StreamNewResponseFormatTimestampFormat

type StreamNewResponseFormatTimestampFormat string
const (
	StreamNewResponseFormatTimestampFormatRfc3339    StreamNewResponseFormatTimestampFormat = "rfc3339"
	StreamNewResponseFormatTimestampFormatUnixMillis StreamNewResponseFormatTimestampFormat = "unix_millis"
)

func (StreamNewResponseFormatTimestampFormat) IsKnown

type StreamNewResponseFormatType

type StreamNewResponseFormatType string
const (
	StreamNewResponseFormatTypeJson    StreamNewResponseFormatType = "json"
	StreamNewResponseFormatTypeParquet StreamNewResponseFormatType = "parquet"
)

func (StreamNewResponseFormatType) IsKnown

func (r StreamNewResponseFormatType) IsKnown() bool

type StreamNewResponseFormatUnion

type StreamNewResponseFormatUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by StreamNewResponseFormatJson or StreamNewResponseFormatParquet.

type StreamNewResponseHTTP

type StreamNewResponseHTTP struct {
	// Indicates that authentication is required for the HTTP endpoint.
	Authentication bool `json:"authentication" api:"required"`
	// Indicates that the HTTP endpoint is enabled.
	Enabled bool `json:"enabled" api:"required"`
	// Specifies the CORS options for the HTTP endpoint.
	CORS StreamNewResponseHTTPCORS `json:"cors"`
	JSON streamNewResponseHTTPJSON `json:"-"`
}

func (*StreamNewResponseHTTP) UnmarshalJSON

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

type StreamNewResponseHTTPCORS

type StreamNewResponseHTTPCORS struct {
	Origins []string                      `json:"origins"`
	JSON    streamNewResponseHttpcorsJSON `json:"-"`
}

Specifies the CORS options for the HTTP endpoint.

func (*StreamNewResponseHTTPCORS) UnmarshalJSON

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

type StreamNewResponseSchema

type StreamNewResponseSchema struct {
	Fields   []StreamNewResponseSchemaField `json:"fields"`
	Format   StreamNewResponseSchemaFormat  `json:"format"`
	Inferred bool                           `json:"inferred" api:"nullable"`
	JSON     streamNewResponseSchemaJSON    `json:"-"`
}

func (*StreamNewResponseSchema) UnmarshalJSON

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

type StreamNewResponseSchemaField

type StreamNewResponseSchemaField struct {
	Type        StreamNewResponseSchemaFieldsType `json:"type" api:"required"`
	MetadataKey string                            `json:"metadata_key" api:"nullable"`
	Name        string                            `json:"name"`
	Required    bool                              `json:"required"`
	SqlName     string                            `json:"sql_name"`
	Unit        StreamNewResponseSchemaFieldsUnit `json:"unit"`
	JSON        streamNewResponseSchemaFieldJSON  `json:"-"`
	// contains filtered or unexported fields
}

func (*StreamNewResponseSchemaField) UnmarshalJSON

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

type StreamNewResponseSchemaFieldsBinary

type StreamNewResponseSchemaFieldsBinary struct {
	Type        StreamNewResponseSchemaFieldsBinaryType `json:"type" api:"required"`
	MetadataKey string                                  `json:"metadata_key" api:"nullable"`
	Name        string                                  `json:"name"`
	Required    bool                                    `json:"required"`
	SqlName     string                                  `json:"sql_name"`
	JSON        streamNewResponseSchemaFieldsBinaryJSON `json:"-"`
}

func (*StreamNewResponseSchemaFieldsBinary) UnmarshalJSON

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

type StreamNewResponseSchemaFieldsBinaryType

type StreamNewResponseSchemaFieldsBinaryType string
const (
	StreamNewResponseSchemaFieldsBinaryTypeBinary StreamNewResponseSchemaFieldsBinaryType = "binary"
)

func (StreamNewResponseSchemaFieldsBinaryType) IsKnown

type StreamNewResponseSchemaFieldsBool

type StreamNewResponseSchemaFieldsBool struct {
	Type        StreamNewResponseSchemaFieldsBoolType `json:"type" api:"required"`
	MetadataKey string                                `json:"metadata_key" api:"nullable"`
	Name        string                                `json:"name"`
	Required    bool                                  `json:"required"`
	SqlName     string                                `json:"sql_name"`
	JSON        streamNewResponseSchemaFieldsBoolJSON `json:"-"`
}

func (*StreamNewResponseSchemaFieldsBool) UnmarshalJSON

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

type StreamNewResponseSchemaFieldsBoolType

type StreamNewResponseSchemaFieldsBoolType string
const (
	StreamNewResponseSchemaFieldsBoolTypeBool StreamNewResponseSchemaFieldsBoolType = "bool"
)

func (StreamNewResponseSchemaFieldsBoolType) IsKnown

type StreamNewResponseSchemaFieldsFloat32

type StreamNewResponseSchemaFieldsFloat32 struct {
	Type        StreamNewResponseSchemaFieldsFloat32Type `json:"type" api:"required"`
	MetadataKey string                                   `json:"metadata_key" api:"nullable"`
	Name        string                                   `json:"name"`
	Required    bool                                     `json:"required"`
	SqlName     string                                   `json:"sql_name"`
	JSON        streamNewResponseSchemaFieldsFloat32JSON `json:"-"`
}

func (*StreamNewResponseSchemaFieldsFloat32) UnmarshalJSON

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

type StreamNewResponseSchemaFieldsFloat32Type

type StreamNewResponseSchemaFieldsFloat32Type string
const (
	StreamNewResponseSchemaFieldsFloat32TypeFloat32 StreamNewResponseSchemaFieldsFloat32Type = "float32"
)

func (StreamNewResponseSchemaFieldsFloat32Type) IsKnown

type StreamNewResponseSchemaFieldsFloat64

type StreamNewResponseSchemaFieldsFloat64 struct {
	Type        StreamNewResponseSchemaFieldsFloat64Type `json:"type" api:"required"`
	MetadataKey string                                   `json:"metadata_key" api:"nullable"`
	Name        string                                   `json:"name"`
	Required    bool                                     `json:"required"`
	SqlName     string                                   `json:"sql_name"`
	JSON        streamNewResponseSchemaFieldsFloat64JSON `json:"-"`
}

func (*StreamNewResponseSchemaFieldsFloat64) UnmarshalJSON

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

type StreamNewResponseSchemaFieldsFloat64Type

type StreamNewResponseSchemaFieldsFloat64Type string
const (
	StreamNewResponseSchemaFieldsFloat64TypeFloat64 StreamNewResponseSchemaFieldsFloat64Type = "float64"
)

func (StreamNewResponseSchemaFieldsFloat64Type) IsKnown

type StreamNewResponseSchemaFieldsInt32

type StreamNewResponseSchemaFieldsInt32 struct {
	Type        StreamNewResponseSchemaFieldsInt32Type `json:"type" api:"required"`
	MetadataKey string                                 `json:"metadata_key" api:"nullable"`
	Name        string                                 `json:"name"`
	Required    bool                                   `json:"required"`
	SqlName     string                                 `json:"sql_name"`
	JSON        streamNewResponseSchemaFieldsInt32JSON `json:"-"`
}

func (*StreamNewResponseSchemaFieldsInt32) UnmarshalJSON

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

type StreamNewResponseSchemaFieldsInt32Type

type StreamNewResponseSchemaFieldsInt32Type string
const (
	StreamNewResponseSchemaFieldsInt32TypeInt32 StreamNewResponseSchemaFieldsInt32Type = "int32"
)

func (StreamNewResponseSchemaFieldsInt32Type) IsKnown

type StreamNewResponseSchemaFieldsInt64

type StreamNewResponseSchemaFieldsInt64 struct {
	Type        StreamNewResponseSchemaFieldsInt64Type `json:"type" api:"required"`
	MetadataKey string                                 `json:"metadata_key" api:"nullable"`
	Name        string                                 `json:"name"`
	Required    bool                                   `json:"required"`
	SqlName     string                                 `json:"sql_name"`
	JSON        streamNewResponseSchemaFieldsInt64JSON `json:"-"`
}

func (*StreamNewResponseSchemaFieldsInt64) UnmarshalJSON

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

type StreamNewResponseSchemaFieldsInt64Type

type StreamNewResponseSchemaFieldsInt64Type string
const (
	StreamNewResponseSchemaFieldsInt64TypeInt64 StreamNewResponseSchemaFieldsInt64Type = "int64"
)

func (StreamNewResponseSchemaFieldsInt64Type) IsKnown

type StreamNewResponseSchemaFieldsJson

type StreamNewResponseSchemaFieldsJson struct {
	Type        StreamNewResponseSchemaFieldsJsonType `json:"type" api:"required"`
	MetadataKey string                                `json:"metadata_key" api:"nullable"`
	Name        string                                `json:"name"`
	Required    bool                                  `json:"required"`
	SqlName     string                                `json:"sql_name"`
	JSON        streamNewResponseSchemaFieldsJsonJSON `json:"-"`
}

func (*StreamNewResponseSchemaFieldsJson) UnmarshalJSON

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

type StreamNewResponseSchemaFieldsJsonType

type StreamNewResponseSchemaFieldsJsonType string
const (
	StreamNewResponseSchemaFieldsJsonTypeJson StreamNewResponseSchemaFieldsJsonType = "json"
)

func (StreamNewResponseSchemaFieldsJsonType) IsKnown

type StreamNewResponseSchemaFieldsList

type StreamNewResponseSchemaFieldsList struct {
	JSON streamNewResponseSchemaFieldsListJSON `json:"-"`
}

func (*StreamNewResponseSchemaFieldsList) UnmarshalJSON

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

type StreamNewResponseSchemaFieldsString

type StreamNewResponseSchemaFieldsString struct {
	Type        StreamNewResponseSchemaFieldsStringType `json:"type" api:"required"`
	MetadataKey string                                  `json:"metadata_key" api:"nullable"`
	Name        string                                  `json:"name"`
	Required    bool                                    `json:"required"`
	SqlName     string                                  `json:"sql_name"`
	JSON        streamNewResponseSchemaFieldsStringJSON `json:"-"`
}

func (*StreamNewResponseSchemaFieldsString) UnmarshalJSON

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

type StreamNewResponseSchemaFieldsStringType

type StreamNewResponseSchemaFieldsStringType string
const (
	StreamNewResponseSchemaFieldsStringTypeString StreamNewResponseSchemaFieldsStringType = "string"
)

func (StreamNewResponseSchemaFieldsStringType) IsKnown

type StreamNewResponseSchemaFieldsStruct

type StreamNewResponseSchemaFieldsStruct struct {
	JSON streamNewResponseSchemaFieldsStructJSON `json:"-"`
}

func (*StreamNewResponseSchemaFieldsStruct) UnmarshalJSON

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

type StreamNewResponseSchemaFieldsTimestamp

type StreamNewResponseSchemaFieldsTimestamp struct {
	Type        StreamNewResponseSchemaFieldsTimestampType `json:"type" api:"required"`
	MetadataKey string                                     `json:"metadata_key" api:"nullable"`
	Name        string                                     `json:"name"`
	Required    bool                                       `json:"required"`
	SqlName     string                                     `json:"sql_name"`
	Unit        StreamNewResponseSchemaFieldsTimestampUnit `json:"unit"`
	JSON        streamNewResponseSchemaFieldsTimestampJSON `json:"-"`
}

func (*StreamNewResponseSchemaFieldsTimestamp) UnmarshalJSON

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

type StreamNewResponseSchemaFieldsTimestampType

type StreamNewResponseSchemaFieldsTimestampType string
const (
	StreamNewResponseSchemaFieldsTimestampTypeTimestamp StreamNewResponseSchemaFieldsTimestampType = "timestamp"
)

func (StreamNewResponseSchemaFieldsTimestampType) IsKnown

type StreamNewResponseSchemaFieldsTimestampUnit

type StreamNewResponseSchemaFieldsTimestampUnit string
const (
	StreamNewResponseSchemaFieldsTimestampUnitSecond      StreamNewResponseSchemaFieldsTimestampUnit = "second"
	StreamNewResponseSchemaFieldsTimestampUnitMillisecond StreamNewResponseSchemaFieldsTimestampUnit = "millisecond"
	StreamNewResponseSchemaFieldsTimestampUnitMicrosecond StreamNewResponseSchemaFieldsTimestampUnit = "microsecond"
	StreamNewResponseSchemaFieldsTimestampUnitNanosecond  StreamNewResponseSchemaFieldsTimestampUnit = "nanosecond"
)

func (StreamNewResponseSchemaFieldsTimestampUnit) IsKnown

type StreamNewResponseSchemaFieldsType

type StreamNewResponseSchemaFieldsType string
const (
	StreamNewResponseSchemaFieldsTypeInt32     StreamNewResponseSchemaFieldsType = "int32"
	StreamNewResponseSchemaFieldsTypeInt64     StreamNewResponseSchemaFieldsType = "int64"
	StreamNewResponseSchemaFieldsTypeFloat32   StreamNewResponseSchemaFieldsType = "float32"
	StreamNewResponseSchemaFieldsTypeFloat64   StreamNewResponseSchemaFieldsType = "float64"
	StreamNewResponseSchemaFieldsTypeBool      StreamNewResponseSchemaFieldsType = "bool"
	StreamNewResponseSchemaFieldsTypeString    StreamNewResponseSchemaFieldsType = "string"
	StreamNewResponseSchemaFieldsTypeBinary    StreamNewResponseSchemaFieldsType = "binary"
	StreamNewResponseSchemaFieldsTypeTimestamp StreamNewResponseSchemaFieldsType = "timestamp"
	StreamNewResponseSchemaFieldsTypeJson      StreamNewResponseSchemaFieldsType = "json"
	StreamNewResponseSchemaFieldsTypeStruct    StreamNewResponseSchemaFieldsType = "struct"
	StreamNewResponseSchemaFieldsTypeList      StreamNewResponseSchemaFieldsType = "list"
)

func (StreamNewResponseSchemaFieldsType) IsKnown

type StreamNewResponseSchemaFieldsUnit

type StreamNewResponseSchemaFieldsUnit string
const (
	StreamNewResponseSchemaFieldsUnitSecond      StreamNewResponseSchemaFieldsUnit = "second"
	StreamNewResponseSchemaFieldsUnitMillisecond StreamNewResponseSchemaFieldsUnit = "millisecond"
	StreamNewResponseSchemaFieldsUnitMicrosecond StreamNewResponseSchemaFieldsUnit = "microsecond"
	StreamNewResponseSchemaFieldsUnitNanosecond  StreamNewResponseSchemaFieldsUnit = "nanosecond"
)

func (StreamNewResponseSchemaFieldsUnit) IsKnown

type StreamNewResponseSchemaFormat

type StreamNewResponseSchemaFormat struct {
	Type            StreamNewResponseSchemaFormatType            `json:"type" api:"required"`
	Compression     StreamNewResponseSchemaFormatCompression     `json:"compression"`
	DecimalEncoding StreamNewResponseSchemaFormatDecimalEncoding `json:"decimal_encoding"`
	RowGroupBytes   int64                                        `json:"row_group_bytes" api:"nullable"`
	TimestampFormat StreamNewResponseSchemaFormatTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                         `json:"unstructured"`
	JSON            streamNewResponseSchemaFormatJSON            `json:"-"`
	// contains filtered or unexported fields
}

func (StreamNewResponseSchemaFormat) AsUnion

AsUnion returns a StreamNewResponseSchemaFormatUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are StreamNewResponseSchemaFormatJson, StreamNewResponseSchemaFormatParquet.

func (*StreamNewResponseSchemaFormat) UnmarshalJSON

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

type StreamNewResponseSchemaFormatCompression

type StreamNewResponseSchemaFormatCompression string
const (
	StreamNewResponseSchemaFormatCompressionUncompressed StreamNewResponseSchemaFormatCompression = "uncompressed"
	StreamNewResponseSchemaFormatCompressionSnappy       StreamNewResponseSchemaFormatCompression = "snappy"
	StreamNewResponseSchemaFormatCompressionGzip         StreamNewResponseSchemaFormatCompression = "gzip"
	StreamNewResponseSchemaFormatCompressionZstd         StreamNewResponseSchemaFormatCompression = "zstd"
	StreamNewResponseSchemaFormatCompressionLz4          StreamNewResponseSchemaFormatCompression = "lz4"
)

func (StreamNewResponseSchemaFormatCompression) IsKnown

type StreamNewResponseSchemaFormatDecimalEncoding

type StreamNewResponseSchemaFormatDecimalEncoding string
const (
	StreamNewResponseSchemaFormatDecimalEncodingNumber StreamNewResponseSchemaFormatDecimalEncoding = "number"
	StreamNewResponseSchemaFormatDecimalEncodingString StreamNewResponseSchemaFormatDecimalEncoding = "string"
	StreamNewResponseSchemaFormatDecimalEncodingBytes  StreamNewResponseSchemaFormatDecimalEncoding = "bytes"
)

func (StreamNewResponseSchemaFormatDecimalEncoding) IsKnown

type StreamNewResponseSchemaFormatJson

type StreamNewResponseSchemaFormatJson struct {
	Type            StreamNewResponseSchemaFormatJsonType            `json:"type" api:"required"`
	DecimalEncoding StreamNewResponseSchemaFormatJsonDecimalEncoding `json:"decimal_encoding"`
	TimestampFormat StreamNewResponseSchemaFormatJsonTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                             `json:"unstructured"`
	JSON            streamNewResponseSchemaFormatJsonJSON            `json:"-"`
}

func (*StreamNewResponseSchemaFormatJson) UnmarshalJSON

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

type StreamNewResponseSchemaFormatJsonDecimalEncoding

type StreamNewResponseSchemaFormatJsonDecimalEncoding string
const (
	StreamNewResponseSchemaFormatJsonDecimalEncodingNumber StreamNewResponseSchemaFormatJsonDecimalEncoding = "number"
	StreamNewResponseSchemaFormatJsonDecimalEncodingString StreamNewResponseSchemaFormatJsonDecimalEncoding = "string"
	StreamNewResponseSchemaFormatJsonDecimalEncodingBytes  StreamNewResponseSchemaFormatJsonDecimalEncoding = "bytes"
)

func (StreamNewResponseSchemaFormatJsonDecimalEncoding) IsKnown

type StreamNewResponseSchemaFormatJsonTimestampFormat

type StreamNewResponseSchemaFormatJsonTimestampFormat string
const (
	StreamNewResponseSchemaFormatJsonTimestampFormatRfc3339    StreamNewResponseSchemaFormatJsonTimestampFormat = "rfc3339"
	StreamNewResponseSchemaFormatJsonTimestampFormatUnixMillis StreamNewResponseSchemaFormatJsonTimestampFormat = "unix_millis"
)

func (StreamNewResponseSchemaFormatJsonTimestampFormat) IsKnown

type StreamNewResponseSchemaFormatJsonType

type StreamNewResponseSchemaFormatJsonType string
const (
	StreamNewResponseSchemaFormatJsonTypeJson StreamNewResponseSchemaFormatJsonType = "json"
)

func (StreamNewResponseSchemaFormatJsonType) IsKnown

type StreamNewResponseSchemaFormatParquet

type StreamNewResponseSchemaFormatParquet struct {
	Type          StreamNewResponseSchemaFormatParquetType        `json:"type" api:"required"`
	Compression   StreamNewResponseSchemaFormatParquetCompression `json:"compression"`
	RowGroupBytes int64                                           `json:"row_group_bytes" api:"nullable"`
	JSON          streamNewResponseSchemaFormatParquetJSON        `json:"-"`
}

func (*StreamNewResponseSchemaFormatParquet) UnmarshalJSON

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

type StreamNewResponseSchemaFormatParquetCompression

type StreamNewResponseSchemaFormatParquetCompression string
const (
	StreamNewResponseSchemaFormatParquetCompressionUncompressed StreamNewResponseSchemaFormatParquetCompression = "uncompressed"
	StreamNewResponseSchemaFormatParquetCompressionSnappy       StreamNewResponseSchemaFormatParquetCompression = "snappy"
	StreamNewResponseSchemaFormatParquetCompressionGzip         StreamNewResponseSchemaFormatParquetCompression = "gzip"
	StreamNewResponseSchemaFormatParquetCompressionZstd         StreamNewResponseSchemaFormatParquetCompression = "zstd"
	StreamNewResponseSchemaFormatParquetCompressionLz4          StreamNewResponseSchemaFormatParquetCompression = "lz4"
)

func (StreamNewResponseSchemaFormatParquetCompression) IsKnown

type StreamNewResponseSchemaFormatParquetType

type StreamNewResponseSchemaFormatParquetType string
const (
	StreamNewResponseSchemaFormatParquetTypeParquet StreamNewResponseSchemaFormatParquetType = "parquet"
)

func (StreamNewResponseSchemaFormatParquetType) IsKnown

type StreamNewResponseSchemaFormatTimestampFormat

type StreamNewResponseSchemaFormatTimestampFormat string
const (
	StreamNewResponseSchemaFormatTimestampFormatRfc3339    StreamNewResponseSchemaFormatTimestampFormat = "rfc3339"
	StreamNewResponseSchemaFormatTimestampFormatUnixMillis StreamNewResponseSchemaFormatTimestampFormat = "unix_millis"
)

func (StreamNewResponseSchemaFormatTimestampFormat) IsKnown

type StreamNewResponseSchemaFormatType

type StreamNewResponseSchemaFormatType string
const (
	StreamNewResponseSchemaFormatTypeJson    StreamNewResponseSchemaFormatType = "json"
	StreamNewResponseSchemaFormatTypeParquet StreamNewResponseSchemaFormatType = "parquet"
)

func (StreamNewResponseSchemaFormatType) IsKnown

type StreamNewResponseSchemaFormatUnion

type StreamNewResponseSchemaFormatUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by StreamNewResponseSchemaFormatJson or StreamNewResponseSchemaFormatParquet.

type StreamNewResponseWorkerBinding

type StreamNewResponseWorkerBinding struct {
	// Indicates that the worker binding is enabled.
	Enabled bool                               `json:"enabled" api:"required"`
	JSON    streamNewResponseWorkerBindingJSON `json:"-"`
}

func (*StreamNewResponseWorkerBinding) UnmarshalJSON

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

type StreamService

type StreamService struct {
	Options []option.RequestOption
}

StreamService 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 NewStreamService method instead.

func NewStreamService

func NewStreamService(opts ...option.RequestOption) (r *StreamService)

NewStreamService 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 (*StreamService) Delete

func (r *StreamService) Delete(ctx context.Context, streamID string, params StreamDeleteParams, opts ...option.RequestOption) (res *StreamDeleteResponse, err error)

Delete Stream in Account.

func (*StreamService) Get

func (r *StreamService) Get(ctx context.Context, streamID string, query StreamGetParams, opts ...option.RequestOption) (res *StreamGetResponse, err error)

Get Stream Details.

func (*StreamService) List

List/Filter Streams in Account.

func (*StreamService) ListAutoPaging

List/Filter Streams in Account.

func (*StreamService) New

func (r *StreamService) New(ctx context.Context, params StreamNewParams, opts ...option.RequestOption) (res *StreamNewResponse, err error)

Create a new Stream.

func (*StreamService) Update

func (r *StreamService) Update(ctx context.Context, streamID string, params StreamUpdateParams, opts ...option.RequestOption) (res *StreamUpdateResponse, err error)

Update a Stream.

type StreamUpdateParams

type StreamUpdateParams struct {
	// Specifies the public ID of the account.
	AccountID     param.Field[string]                          `path:"account_id" api:"required"`
	HTTP          param.Field[StreamUpdateParamsHTTP]          `json:"http"`
	WorkerBinding param.Field[StreamUpdateParamsWorkerBinding] `json:"worker_binding"`
}

func (StreamUpdateParams) MarshalJSON

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

type StreamUpdateParamsHTTP

type StreamUpdateParamsHTTP struct {
	// Indicates that authentication is required for the HTTP endpoint.
	Authentication param.Field[bool] `json:"authentication" api:"required"`
	// Indicates that the HTTP endpoint is enabled.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
	// Specifies the CORS options for the HTTP endpoint.
	CORS param.Field[StreamUpdateParamsHTTPCORS] `json:"cors"`
}

func (StreamUpdateParamsHTTP) MarshalJSON

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

type StreamUpdateParamsHTTPCORS

type StreamUpdateParamsHTTPCORS struct {
	Origins param.Field[[]string] `json:"origins"`
}

Specifies the CORS options for the HTTP endpoint.

func (StreamUpdateParamsHTTPCORS) MarshalJSON

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

type StreamUpdateParamsWorkerBinding

type StreamUpdateParamsWorkerBinding struct {
	// Indicates that the worker binding is enabled.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
}

func (StreamUpdateParamsWorkerBinding) MarshalJSON

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

type StreamUpdateResponse

type StreamUpdateResponse struct {
	// Indicates a unique identifier for this stream.
	ID         string                   `json:"id" api:"required"`
	CreatedAt  time.Time                `json:"created_at" api:"required" format:"date-time"`
	HTTP       StreamUpdateResponseHTTP `json:"http" api:"required"`
	ModifiedAt time.Time                `json:"modified_at" api:"required" format:"date-time"`
	// Indicates the name of the Stream.
	Name string `json:"name" api:"required"`
	// Indicates the current version of this stream.
	Version       int64                             `json:"version" api:"required"`
	WorkerBinding StreamUpdateResponseWorkerBinding `json:"worker_binding" api:"required"`
	// Indicates the endpoint URL of this stream.
	Endpoint string                     `json:"endpoint" format:"uri"`
	Format   StreamUpdateResponseFormat `json:"format"`
	JSON     streamUpdateResponseJSON   `json:"-"`
}

func (*StreamUpdateResponse) UnmarshalJSON

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

type StreamUpdateResponseEnvelope

type StreamUpdateResponseEnvelope struct {
	Result StreamUpdateResponse `json:"result" api:"required"`
	// Indicates whether the API call was successful.
	Success bool                             `json:"success" api:"required"`
	JSON    streamUpdateResponseEnvelopeJSON `json:"-"`
}

func (*StreamUpdateResponseEnvelope) UnmarshalJSON

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

type StreamUpdateResponseFormat

type StreamUpdateResponseFormat struct {
	Type            StreamUpdateResponseFormatType            `json:"type" api:"required"`
	Compression     StreamUpdateResponseFormatCompression     `json:"compression"`
	DecimalEncoding StreamUpdateResponseFormatDecimalEncoding `json:"decimal_encoding"`
	RowGroupBytes   int64                                     `json:"row_group_bytes" api:"nullable"`
	TimestampFormat StreamUpdateResponseFormatTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                      `json:"unstructured"`
	JSON            streamUpdateResponseFormatJSON            `json:"-"`
	// contains filtered or unexported fields
}

func (StreamUpdateResponseFormat) AsUnion

AsUnion returns a StreamUpdateResponseFormatUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are StreamUpdateResponseFormatJson, StreamUpdateResponseFormatParquet.

func (*StreamUpdateResponseFormat) UnmarshalJSON

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

type StreamUpdateResponseFormatCompression

type StreamUpdateResponseFormatCompression string
const (
	StreamUpdateResponseFormatCompressionUncompressed StreamUpdateResponseFormatCompression = "uncompressed"
	StreamUpdateResponseFormatCompressionSnappy       StreamUpdateResponseFormatCompression = "snappy"
	StreamUpdateResponseFormatCompressionGzip         StreamUpdateResponseFormatCompression = "gzip"
	StreamUpdateResponseFormatCompressionZstd         StreamUpdateResponseFormatCompression = "zstd"
	StreamUpdateResponseFormatCompressionLz4          StreamUpdateResponseFormatCompression = "lz4"
)

func (StreamUpdateResponseFormatCompression) IsKnown

type StreamUpdateResponseFormatDecimalEncoding

type StreamUpdateResponseFormatDecimalEncoding string
const (
	StreamUpdateResponseFormatDecimalEncodingNumber StreamUpdateResponseFormatDecimalEncoding = "number"
	StreamUpdateResponseFormatDecimalEncodingString StreamUpdateResponseFormatDecimalEncoding = "string"
	StreamUpdateResponseFormatDecimalEncodingBytes  StreamUpdateResponseFormatDecimalEncoding = "bytes"
)

func (StreamUpdateResponseFormatDecimalEncoding) IsKnown

type StreamUpdateResponseFormatJson

type StreamUpdateResponseFormatJson struct {
	Type            StreamUpdateResponseFormatJsonType            `json:"type" api:"required"`
	DecimalEncoding StreamUpdateResponseFormatJsonDecimalEncoding `json:"decimal_encoding"`
	TimestampFormat StreamUpdateResponseFormatJsonTimestampFormat `json:"timestamp_format"`
	Unstructured    bool                                          `json:"unstructured"`
	JSON            streamUpdateResponseFormatJsonJSON            `json:"-"`
}

func (*StreamUpdateResponseFormatJson) UnmarshalJSON

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

type StreamUpdateResponseFormatJsonDecimalEncoding

type StreamUpdateResponseFormatJsonDecimalEncoding string
const (
	StreamUpdateResponseFormatJsonDecimalEncodingNumber StreamUpdateResponseFormatJsonDecimalEncoding = "number"
	StreamUpdateResponseFormatJsonDecimalEncodingString StreamUpdateResponseFormatJsonDecimalEncoding = "string"
	StreamUpdateResponseFormatJsonDecimalEncodingBytes  StreamUpdateResponseFormatJsonDecimalEncoding = "bytes"
)

func (StreamUpdateResponseFormatJsonDecimalEncoding) IsKnown

type StreamUpdateResponseFormatJsonTimestampFormat

type StreamUpdateResponseFormatJsonTimestampFormat string
const (
	StreamUpdateResponseFormatJsonTimestampFormatRfc3339    StreamUpdateResponseFormatJsonTimestampFormat = "rfc3339"
	StreamUpdateResponseFormatJsonTimestampFormatUnixMillis StreamUpdateResponseFormatJsonTimestampFormat = "unix_millis"
)

func (StreamUpdateResponseFormatJsonTimestampFormat) IsKnown

type StreamUpdateResponseFormatJsonType

type StreamUpdateResponseFormatJsonType string
const (
	StreamUpdateResponseFormatJsonTypeJson StreamUpdateResponseFormatJsonType = "json"
)

func (StreamUpdateResponseFormatJsonType) IsKnown

type StreamUpdateResponseFormatParquet

type StreamUpdateResponseFormatParquet struct {
	Type          StreamUpdateResponseFormatParquetType        `json:"type" api:"required"`
	Compression   StreamUpdateResponseFormatParquetCompression `json:"compression"`
	RowGroupBytes int64                                        `json:"row_group_bytes" api:"nullable"`
	JSON          streamUpdateResponseFormatParquetJSON        `json:"-"`
}

func (*StreamUpdateResponseFormatParquet) UnmarshalJSON

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

type StreamUpdateResponseFormatParquetCompression

type StreamUpdateResponseFormatParquetCompression string
const (
	StreamUpdateResponseFormatParquetCompressionUncompressed StreamUpdateResponseFormatParquetCompression = "uncompressed"
	StreamUpdateResponseFormatParquetCompressionSnappy       StreamUpdateResponseFormatParquetCompression = "snappy"
	StreamUpdateResponseFormatParquetCompressionGzip         StreamUpdateResponseFormatParquetCompression = "gzip"
	StreamUpdateResponseFormatParquetCompressionZstd         StreamUpdateResponseFormatParquetCompression = "zstd"
	StreamUpdateResponseFormatParquetCompressionLz4          StreamUpdateResponseFormatParquetCompression = "lz4"
)

func (StreamUpdateResponseFormatParquetCompression) IsKnown

type StreamUpdateResponseFormatParquetType

type StreamUpdateResponseFormatParquetType string
const (
	StreamUpdateResponseFormatParquetTypeParquet StreamUpdateResponseFormatParquetType = "parquet"
)

func (StreamUpdateResponseFormatParquetType) IsKnown

type StreamUpdateResponseFormatTimestampFormat

type StreamUpdateResponseFormatTimestampFormat string
const (
	StreamUpdateResponseFormatTimestampFormatRfc3339    StreamUpdateResponseFormatTimestampFormat = "rfc3339"
	StreamUpdateResponseFormatTimestampFormatUnixMillis StreamUpdateResponseFormatTimestampFormat = "unix_millis"
)

func (StreamUpdateResponseFormatTimestampFormat) IsKnown

type StreamUpdateResponseFormatType

type StreamUpdateResponseFormatType string
const (
	StreamUpdateResponseFormatTypeJson    StreamUpdateResponseFormatType = "json"
	StreamUpdateResponseFormatTypeParquet StreamUpdateResponseFormatType = "parquet"
)

func (StreamUpdateResponseFormatType) IsKnown

type StreamUpdateResponseFormatUnion

type StreamUpdateResponseFormatUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by StreamUpdateResponseFormatJson or StreamUpdateResponseFormatParquet.

type StreamUpdateResponseHTTP

type StreamUpdateResponseHTTP struct {
	// Indicates that authentication is required for the HTTP endpoint.
	Authentication bool `json:"authentication" api:"required"`
	// Indicates that the HTTP endpoint is enabled.
	Enabled bool `json:"enabled" api:"required"`
	// Specifies the CORS options for the HTTP endpoint.
	CORS StreamUpdateResponseHTTPCORS `json:"cors"`
	JSON streamUpdateResponseHTTPJSON `json:"-"`
}

func (*StreamUpdateResponseHTTP) UnmarshalJSON

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

type StreamUpdateResponseHTTPCORS

type StreamUpdateResponseHTTPCORS struct {
	Origins []string                         `json:"origins"`
	JSON    streamUpdateResponseHttpcorsJSON `json:"-"`
}

Specifies the CORS options for the HTTP endpoint.

func (*StreamUpdateResponseHTTPCORS) UnmarshalJSON

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

type StreamUpdateResponseWorkerBinding

type StreamUpdateResponseWorkerBinding struct {
	// Indicates that the worker binding is enabled.
	Enabled bool                                  `json:"enabled" api:"required"`
	JSON    streamUpdateResponseWorkerBindingJSON `json:"-"`
}

func (*StreamUpdateResponseWorkerBinding) UnmarshalJSON

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

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.

Jump to

Keyboard shortcuts

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