Documentation
¶
Index ¶
- Constants
- type ASN
- type ASNParam
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type CertificateCA
- type CertificateRequestType
- type CloudflareTunnel
- type CloudflareTunnelConfigSrc
- type CloudflareTunnelConnection
- type CloudflareTunnelStatus
- type CloudflareTunnelTunType
- type Error
- type ErrorData
- type ErrorDataSource
- type Member
- type MemberPoliciesAccess
- type MemberPoliciesPermissionGroup
- type MemberPoliciesPermissionGroupsMeta
- type MemberPoliciesResourceGroup
- type MemberPoliciesResourceGroupsMeta
- type MemberPoliciesResourceGroupsScope
- type MemberPoliciesResourceGroupsScopeObject
- type MemberPolicy
- type MemberStatus
- type MemberUser
- type Permission
- type PermissionGrant
- type PermissionGrantParam
- type PipelineDeleteParams
- type PipelineDeleteV1Params
- type PipelineDeleteV1Response
- type PipelineDeleteV1ResponseEnvelope
- type PipelineGetParams
- type PipelineGetResponsedeprecated
- type PipelineGetResponseDestination
- type PipelineGetResponseDestinationBatch
- type PipelineGetResponseDestinationCompression
- type PipelineGetResponseDestinationCompressionType
- type PipelineGetResponseDestinationFormat
- type PipelineGetResponseDestinationPath
- type PipelineGetResponseDestinationType
- type PipelineGetResponseEnvelope
- type PipelineGetResponseSource
- type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourcedeprecated
- type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat
- type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourcedeprecated
- type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS
- type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat
- type PipelineGetResponseSourceFormat
- type PipelineGetResponseSourceUnion
- type PipelineGetV1Params
- type PipelineGetV1Response
- type PipelineGetV1ResponseEnvelope
- type PipelineGetV1ResponseTable
- type PipelineGetV1ResponseTablesType
- type PipelineListParams
- type PipelineListResponse
- type PipelineListResponseResultdeprecated
- type PipelineListResponseResultInfo
- type PipelineListResponseResultsDestination
- type PipelineListResponseResultsDestinationBatch
- type PipelineListResponseResultsDestinationCompression
- type PipelineListResponseResultsDestinationCompressionType
- type PipelineListResponseResultsDestinationFormat
- type PipelineListResponseResultsDestinationPath
- type PipelineListResponseResultsDestinationType
- type PipelineListResponseResultsSource
- type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSourcedeprecated
- type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat
- type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourcedeprecated
- type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS
- type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat
- type PipelineListResponseResultsSourceFormat
- type PipelineListResponseResultsSourceUnion
- type PipelineListV1Params
- type PipelineListV1Response
- type PipelineNewParams
- type PipelineNewParamsDestination
- type PipelineNewParamsDestinationBatch
- type PipelineNewParamsDestinationCompression
- type PipelineNewParamsDestinationCompressionType
- type PipelineNewParamsDestinationCredentials
- type PipelineNewParamsDestinationFormat
- type PipelineNewParamsDestinationPath
- type PipelineNewParamsDestinationType
- type PipelineNewParamsSource
- type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourcedeprecated
- type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat
- type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourcedeprecated
- type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS
- type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat
- type PipelineNewParamsSourceFormat
- type PipelineNewParamsSourceUnion
- type PipelineNewResponsedeprecated
- type PipelineNewResponseDestination
- type PipelineNewResponseDestinationBatch
- type PipelineNewResponseDestinationCompression
- type PipelineNewResponseDestinationCompressionType
- type PipelineNewResponseDestinationFormat
- type PipelineNewResponseDestinationPath
- type PipelineNewResponseDestinationType
- type PipelineNewResponseEnvelope
- type PipelineNewResponseSource
- type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourcedeprecated
- type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat
- type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourcedeprecated
- type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS
- type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat
- type PipelineNewResponseSourceFormat
- type PipelineNewResponseSourceUnion
- type PipelineNewV1Params
- type PipelineNewV1Response
- type PipelineNewV1ResponseEnvelope
- type PipelineService
- func (r *PipelineService) Delete(ctx context.Context, pipelineName string, body PipelineDeleteParams, ...) (err error)deprecated
- func (r *PipelineService) DeleteV1(ctx context.Context, pipelineID string, body PipelineDeleteV1Params, ...) (res *PipelineDeleteV1Response, err error)
- func (r *PipelineService) Get(ctx context.Context, pipelineName string, query PipelineGetParams, ...) (res *PipelineGetResponse, err error)deprecated
- func (r *PipelineService) GetV1(ctx context.Context, pipelineID string, query PipelineGetV1Params, ...) (res *PipelineGetV1Response, err error)
- func (r *PipelineService) List(ctx context.Context, params PipelineListParams, opts ...option.RequestOption) (res *PipelineListResponse, err error)deprecated
- func (r *PipelineService) ListV1(ctx context.Context, params PipelineListV1Params, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[PipelineListV1Response], err error)
- func (r *PipelineService) ListV1AutoPaging(ctx context.Context, params PipelineListV1Params, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[PipelineListV1Response]
- func (r *PipelineService) New(ctx context.Context, params PipelineNewParams, opts ...option.RequestOption) (res *PipelineNewResponse, err error)deprecated
- func (r *PipelineService) NewV1(ctx context.Context, params PipelineNewV1Params, opts ...option.RequestOption) (res *PipelineNewV1Response, err error)
- func (r *PipelineService) Update(ctx context.Context, pipelineName string, params PipelineUpdateParams, ...) (res *PipelineUpdateResponse, err error)deprecated
- func (r *PipelineService) ValidateSql(ctx context.Context, params PipelineValidateSqlParams, ...) (res *PipelineValidateSqlResponse, err error)
- type PipelineUpdateParams
- type PipelineUpdateParamsDestination
- type PipelineUpdateParamsDestinationBatch
- type PipelineUpdateParamsDestinationCompression
- type PipelineUpdateParamsDestinationCompressionType
- type PipelineUpdateParamsDestinationCredentials
- type PipelineUpdateParamsDestinationFormat
- type PipelineUpdateParamsDestinationPath
- type PipelineUpdateParamsDestinationType
- type PipelineUpdateParamsSource
- type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourcedeprecated
- type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat
- type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourcedeprecated
- type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS
- type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat
- type PipelineUpdateParamsSourceFormat
- type PipelineUpdateParamsSourceUnion
- type PipelineUpdateResponsedeprecated
- type PipelineUpdateResponseDestination
- type PipelineUpdateResponseDestinationBatch
- type PipelineUpdateResponseDestinationCompression
- type PipelineUpdateResponseDestinationCompressionType
- type PipelineUpdateResponseDestinationFormat
- type PipelineUpdateResponseDestinationPath
- type PipelineUpdateResponseDestinationType
- type PipelineUpdateResponseEnvelope
- type PipelineUpdateResponseSource
- type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourcedeprecated
- type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat
- type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourcedeprecated
- type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS
- type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat
- type PipelineUpdateResponseSourceFormat
- type PipelineUpdateResponseSourceUnion
- type PipelineValidateSqlParams
- type PipelineValidateSqlResponse
- type PipelineValidateSqlResponseEnvelope
- type PipelineValidateSqlResponseGraph
- type PipelineValidateSqlResponseGraphEdge
- type PipelineValidateSqlResponseGraphNode
- type PipelineValidateSqlResponseTable
- type RatePlan
- type RatePlanID
- type RatePlanParam
- type ResponseInfo
- type ResponseInfoSource
- type Role
- type RoleParam
- type RolePermissions
- type RolePermissionsParam
- type SinkDeleteParams
- type SinkDeleteResponse
- type SinkDeleteResponseEnvelope
- type SinkGetParams
- type SinkGetResponse
- type SinkGetResponseConfig
- type SinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublic
- type SinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicy
- type SinkGetResponseConfigCloudflarePipelinesR2TablePublic
- type SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNaming
- type SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy
- type SinkGetResponseConfigCloudflarePipelinesR2TablePublicPartitioning
- type SinkGetResponseConfigCloudflarePipelinesR2TablePublicRollingPolicy
- type SinkGetResponseConfigUnion
- type SinkGetResponseEnvelope
- type SinkGetResponseFormat
- type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormat
- type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatCompression
- type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding
- type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat
- type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatType
- type SinkGetResponseFormatCloudflarePipelinesSinkParquetFormat
- type SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompression
- type SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatType
- type SinkGetResponseFormatCompression
- type SinkGetResponseFormatDecimalEncoding
- type SinkGetResponseFormatTimestampFormat
- type SinkGetResponseFormatType
- type SinkGetResponseFormatUnion
- type SinkGetResponseSchema
- type SinkGetResponseSchemaField
- type SinkGetResponseSchemaFieldsBinary
- type SinkGetResponseSchemaFieldsBinaryType
- type SinkGetResponseSchemaFieldsBool
- type SinkGetResponseSchemaFieldsBoolType
- type SinkGetResponseSchemaFieldsFloat32
- type SinkGetResponseSchemaFieldsFloat32Type
- type SinkGetResponseSchemaFieldsFloat64
- type SinkGetResponseSchemaFieldsFloat64Type
- type SinkGetResponseSchemaFieldsInt32
- type SinkGetResponseSchemaFieldsInt32Type
- type SinkGetResponseSchemaFieldsInt64
- type SinkGetResponseSchemaFieldsInt64Type
- type SinkGetResponseSchemaFieldsJson
- type SinkGetResponseSchemaFieldsJsonType
- type SinkGetResponseSchemaFieldsList
- type SinkGetResponseSchemaFieldsString
- type SinkGetResponseSchemaFieldsStringType
- type SinkGetResponseSchemaFieldsStruct
- type SinkGetResponseSchemaFieldsTimestamp
- type SinkGetResponseSchemaFieldsTimestampType
- type SinkGetResponseSchemaFieldsTimestampUnit
- type SinkGetResponseSchemaFieldsType
- type SinkGetResponseSchemaFieldsUnion
- type SinkGetResponseSchemaFieldsUnit
- type SinkGetResponseType
- type SinkListParams
- type SinkListResponse
- type SinkListResponseConfig
- type SinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublic
- type SinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicy
- type SinkListResponseConfigCloudflarePipelinesR2TablePublic
- type SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNaming
- type SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy
- type SinkListResponseConfigCloudflarePipelinesR2TablePublicPartitioning
- type SinkListResponseConfigCloudflarePipelinesR2TablePublicRollingPolicy
- type SinkListResponseConfigUnion
- type SinkListResponseFormat
- type SinkListResponseFormatCloudflarePipelinesSinkJsonFormat
- type SinkListResponseFormatCloudflarePipelinesSinkJsonFormatCompression
- type SinkListResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding
- type SinkListResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat
- type SinkListResponseFormatCloudflarePipelinesSinkJsonFormatType
- type SinkListResponseFormatCloudflarePipelinesSinkParquetFormat
- type SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompression
- type SinkListResponseFormatCloudflarePipelinesSinkParquetFormatType
- type SinkListResponseFormatCompression
- type SinkListResponseFormatDecimalEncoding
- type SinkListResponseFormatTimestampFormat
- type SinkListResponseFormatType
- type SinkListResponseFormatUnion
- type SinkListResponseSchema
- type SinkListResponseSchemaField
- type SinkListResponseSchemaFieldsBinary
- type SinkListResponseSchemaFieldsBinaryType
- type SinkListResponseSchemaFieldsBool
- type SinkListResponseSchemaFieldsBoolType
- type SinkListResponseSchemaFieldsFloat32
- type SinkListResponseSchemaFieldsFloat32Type
- type SinkListResponseSchemaFieldsFloat64
- type SinkListResponseSchemaFieldsFloat64Type
- type SinkListResponseSchemaFieldsInt32
- type SinkListResponseSchemaFieldsInt32Type
- type SinkListResponseSchemaFieldsInt64
- type SinkListResponseSchemaFieldsInt64Type
- type SinkListResponseSchemaFieldsJson
- type SinkListResponseSchemaFieldsJsonType
- type SinkListResponseSchemaFieldsList
- type SinkListResponseSchemaFieldsString
- type SinkListResponseSchemaFieldsStringType
- type SinkListResponseSchemaFieldsStruct
- type SinkListResponseSchemaFieldsTimestamp
- type SinkListResponseSchemaFieldsTimestampType
- type SinkListResponseSchemaFieldsTimestampUnit
- type SinkListResponseSchemaFieldsType
- type SinkListResponseSchemaFieldsUnion
- type SinkListResponseSchemaFieldsUnit
- type SinkListResponseType
- type SinkNewParams
- type SinkNewParamsConfig
- type SinkNewParamsConfigCloudflarePipelinesR2DataCatalogTable
- type SinkNewParamsConfigCloudflarePipelinesR2DataCatalogTableRollingPolicy
- type SinkNewParamsConfigCloudflarePipelinesR2Table
- type SinkNewParamsConfigCloudflarePipelinesR2TableCredentials
- type SinkNewParamsConfigCloudflarePipelinesR2TableFileNaming
- type SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategy
- type SinkNewParamsConfigCloudflarePipelinesR2TablePartitioning
- type SinkNewParamsConfigCloudflarePipelinesR2TableRollingPolicy
- type SinkNewParamsConfigUnion
- type SinkNewParamsFormat
- type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormat
- type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatCompression
- type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding
- type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTimestampFormat
- type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatType
- type SinkNewParamsFormatCloudflarePipelinesSinkParquetFormat
- type SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression
- type SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatType
- type SinkNewParamsFormatCompression
- type SinkNewParamsFormatDecimalEncoding
- type SinkNewParamsFormatTimestampFormat
- type SinkNewParamsFormatType
- type SinkNewParamsFormatUnion
- type SinkNewParamsSchema
- type SinkNewParamsSchemaField
- type SinkNewParamsSchemaFieldUnion
- type SinkNewParamsSchemaFieldsBinary
- type SinkNewParamsSchemaFieldsBinaryType
- type SinkNewParamsSchemaFieldsBool
- type SinkNewParamsSchemaFieldsBoolType
- type SinkNewParamsSchemaFieldsFloat32
- type SinkNewParamsSchemaFieldsFloat32Type
- type SinkNewParamsSchemaFieldsFloat64
- type SinkNewParamsSchemaFieldsFloat64Type
- type SinkNewParamsSchemaFieldsInt32
- type SinkNewParamsSchemaFieldsInt32Type
- type SinkNewParamsSchemaFieldsInt64
- type SinkNewParamsSchemaFieldsInt64Type
- type SinkNewParamsSchemaFieldsJson
- type SinkNewParamsSchemaFieldsJsonType
- type SinkNewParamsSchemaFieldsList
- type SinkNewParamsSchemaFieldsString
- type SinkNewParamsSchemaFieldsStringType
- type SinkNewParamsSchemaFieldsStruct
- type SinkNewParamsSchemaFieldsTimestamp
- type SinkNewParamsSchemaFieldsTimestampType
- type SinkNewParamsSchemaFieldsTimestampUnit
- type SinkNewParamsSchemaFieldsType
- type SinkNewParamsSchemaFieldsUnit
- type SinkNewParamsType
- type SinkNewResponse
- type SinkNewResponseConfig
- type SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTable
- type SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTableRollingPolicy
- type SinkNewResponseConfigCloudflarePipelinesR2Table
- type SinkNewResponseConfigCloudflarePipelinesR2TableCredentials
- type SinkNewResponseConfigCloudflarePipelinesR2TableFileNaming
- type SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategy
- type SinkNewResponseConfigCloudflarePipelinesR2TablePartitioning
- type SinkNewResponseConfigCloudflarePipelinesR2TableRollingPolicy
- type SinkNewResponseConfigUnion
- type SinkNewResponseEnvelope
- type SinkNewResponseFormat
- type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormat
- type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatCompression
- type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding
- type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat
- type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatType
- type SinkNewResponseFormatCloudflarePipelinesSinkParquetFormat
- type SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression
- type SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatType
- type SinkNewResponseFormatCompression
- type SinkNewResponseFormatDecimalEncoding
- type SinkNewResponseFormatTimestampFormat
- type SinkNewResponseFormatType
- type SinkNewResponseFormatUnion
- type SinkNewResponseSchema
- type SinkNewResponseSchemaField
- type SinkNewResponseSchemaFieldsBinary
- type SinkNewResponseSchemaFieldsBinaryType
- type SinkNewResponseSchemaFieldsBool
- type SinkNewResponseSchemaFieldsBoolType
- type SinkNewResponseSchemaFieldsFloat32
- type SinkNewResponseSchemaFieldsFloat32Type
- type SinkNewResponseSchemaFieldsFloat64
- type SinkNewResponseSchemaFieldsFloat64Type
- type SinkNewResponseSchemaFieldsInt32
- type SinkNewResponseSchemaFieldsInt32Type
- type SinkNewResponseSchemaFieldsInt64
- type SinkNewResponseSchemaFieldsInt64Type
- type SinkNewResponseSchemaFieldsJson
- type SinkNewResponseSchemaFieldsJsonType
- type SinkNewResponseSchemaFieldsList
- type SinkNewResponseSchemaFieldsString
- type SinkNewResponseSchemaFieldsStringType
- type SinkNewResponseSchemaFieldsStruct
- type SinkNewResponseSchemaFieldsTimestamp
- type SinkNewResponseSchemaFieldsTimestampType
- type SinkNewResponseSchemaFieldsTimestampUnit
- type SinkNewResponseSchemaFieldsType
- type SinkNewResponseSchemaFieldsUnion
- type SinkNewResponseSchemaFieldsUnit
- type SinkNewResponseType
- type SinkService
- func (r *SinkService) Delete(ctx context.Context, sinkID string, body SinkDeleteParams, ...) (res *SinkDeleteResponse, err error)
- func (r *SinkService) Get(ctx context.Context, sinkID string, query SinkGetParams, ...) (res *SinkGetResponse, err error)
- func (r *SinkService) List(ctx context.Context, params SinkListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[SinkListResponse], err error)
- func (r *SinkService) ListAutoPaging(ctx context.Context, params SinkListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[SinkListResponse]
- func (r *SinkService) New(ctx context.Context, params SinkNewParams, opts ...option.RequestOption) (res *SinkNewResponse, err error)
- type SortDirection
- type StreamDeleteParams
- type StreamDeleteResponse
- type StreamDeleteResponseEnvelope
- type StreamGetParams
- type StreamGetResponse
- type StreamGetResponseEnvelope
- type StreamGetResponseFormat
- type StreamGetResponseFormatCompression
- type StreamGetResponseFormatDecimalEncoding
- type StreamGetResponseFormatJson
- type StreamGetResponseFormatJsonDecimalEncoding
- type StreamGetResponseFormatJsonTimestampFormat
- type StreamGetResponseFormatJsonType
- type StreamGetResponseFormatParquet
- type StreamGetResponseFormatParquetCompression
- type StreamGetResponseFormatParquetType
- type StreamGetResponseFormatTimestampFormat
- type StreamGetResponseFormatType
- type StreamGetResponseFormatUnion
- type StreamGetResponseHTTP
- type StreamGetResponseHTTPCORS
- type StreamGetResponseSchema
- type StreamGetResponseSchemaField
- type StreamGetResponseSchemaFieldsBinary
- type StreamGetResponseSchemaFieldsBinaryType
- type StreamGetResponseSchemaFieldsBool
- type StreamGetResponseSchemaFieldsBoolType
- type StreamGetResponseSchemaFieldsFloat32
- type StreamGetResponseSchemaFieldsFloat32Type
- type StreamGetResponseSchemaFieldsFloat64
- type StreamGetResponseSchemaFieldsFloat64Type
- type StreamGetResponseSchemaFieldsInt32
- type StreamGetResponseSchemaFieldsInt32Type
- type StreamGetResponseSchemaFieldsInt64
- type StreamGetResponseSchemaFieldsInt64Type
- type StreamGetResponseSchemaFieldsJson
- type StreamGetResponseSchemaFieldsJsonType
- type StreamGetResponseSchemaFieldsList
- type StreamGetResponseSchemaFieldsString
- type StreamGetResponseSchemaFieldsStringType
- type StreamGetResponseSchemaFieldsStruct
- type StreamGetResponseSchemaFieldsTimestamp
- type StreamGetResponseSchemaFieldsTimestampType
- type StreamGetResponseSchemaFieldsTimestampUnit
- type StreamGetResponseSchemaFieldsType
- type StreamGetResponseSchemaFieldsUnion
- type StreamGetResponseSchemaFieldsUnit
- type StreamGetResponseWorkerBinding
- type StreamListParams
- type StreamListResponse
- type StreamListResponseFormat
- type StreamListResponseFormatCompression
- type StreamListResponseFormatDecimalEncoding
- type StreamListResponseFormatJson
- type StreamListResponseFormatJsonDecimalEncoding
- type StreamListResponseFormatJsonTimestampFormat
- type StreamListResponseFormatJsonType
- type StreamListResponseFormatParquet
- type StreamListResponseFormatParquetCompression
- type StreamListResponseFormatParquetType
- type StreamListResponseFormatTimestampFormat
- type StreamListResponseFormatType
- type StreamListResponseFormatUnion
- type StreamListResponseHTTP
- type StreamListResponseHTTPCORS
- type StreamListResponseSchema
- type StreamListResponseSchemaField
- type StreamListResponseSchemaFieldsBinary
- type StreamListResponseSchemaFieldsBinaryType
- type StreamListResponseSchemaFieldsBool
- type StreamListResponseSchemaFieldsBoolType
- type StreamListResponseSchemaFieldsFloat32
- type StreamListResponseSchemaFieldsFloat32Type
- type StreamListResponseSchemaFieldsFloat64
- type StreamListResponseSchemaFieldsFloat64Type
- type StreamListResponseSchemaFieldsInt32
- type StreamListResponseSchemaFieldsInt32Type
- type StreamListResponseSchemaFieldsInt64
- type StreamListResponseSchemaFieldsInt64Type
- type StreamListResponseSchemaFieldsJson
- type StreamListResponseSchemaFieldsJsonType
- type StreamListResponseSchemaFieldsList
- type StreamListResponseSchemaFieldsString
- type StreamListResponseSchemaFieldsStringType
- type StreamListResponseSchemaFieldsStruct
- type StreamListResponseSchemaFieldsTimestamp
- type StreamListResponseSchemaFieldsTimestampType
- type StreamListResponseSchemaFieldsTimestampUnit
- type StreamListResponseSchemaFieldsType
- type StreamListResponseSchemaFieldsUnion
- type StreamListResponseSchemaFieldsUnit
- type StreamListResponseWorkerBinding
- type StreamNewParams
- type StreamNewParamsFormat
- type StreamNewParamsFormatCompression
- type StreamNewParamsFormatDecimalEncoding
- type StreamNewParamsFormatJson
- type StreamNewParamsFormatJsonDecimalEncoding
- type StreamNewParamsFormatJsonTimestampFormat
- type StreamNewParamsFormatJsonType
- type StreamNewParamsFormatParquet
- type StreamNewParamsFormatParquetCompression
- type StreamNewParamsFormatParquetType
- type StreamNewParamsFormatTimestampFormat
- type StreamNewParamsFormatType
- type StreamNewParamsFormatUnion
- type StreamNewParamsHTTP
- type StreamNewParamsHTTPCORS
- type StreamNewParamsSchema
- type StreamNewParamsSchemaField
- type StreamNewParamsSchemaFieldUnion
- type StreamNewParamsSchemaFieldsBinary
- type StreamNewParamsSchemaFieldsBinaryType
- type StreamNewParamsSchemaFieldsBool
- type StreamNewParamsSchemaFieldsBoolType
- type StreamNewParamsSchemaFieldsFloat32
- type StreamNewParamsSchemaFieldsFloat32Type
- type StreamNewParamsSchemaFieldsFloat64
- type StreamNewParamsSchemaFieldsFloat64Type
- type StreamNewParamsSchemaFieldsInt32
- type StreamNewParamsSchemaFieldsInt32Type
- type StreamNewParamsSchemaFieldsInt64
- type StreamNewParamsSchemaFieldsInt64Type
- type StreamNewParamsSchemaFieldsJson
- type StreamNewParamsSchemaFieldsJsonType
- type StreamNewParamsSchemaFieldsList
- type StreamNewParamsSchemaFieldsString
- type StreamNewParamsSchemaFieldsStringType
- type StreamNewParamsSchemaFieldsStruct
- type StreamNewParamsSchemaFieldsTimestamp
- type StreamNewParamsSchemaFieldsTimestampType
- type StreamNewParamsSchemaFieldsTimestampUnit
- type StreamNewParamsSchemaFieldsType
- type StreamNewParamsSchemaFieldsUnit
- type StreamNewParamsWorkerBinding
- type StreamNewResponse
- type StreamNewResponseEnvelope
- type StreamNewResponseFormat
- type StreamNewResponseFormatCompression
- type StreamNewResponseFormatDecimalEncoding
- type StreamNewResponseFormatJson
- type StreamNewResponseFormatJsonDecimalEncoding
- type StreamNewResponseFormatJsonTimestampFormat
- type StreamNewResponseFormatJsonType
- type StreamNewResponseFormatParquet
- type StreamNewResponseFormatParquetCompression
- type StreamNewResponseFormatParquetType
- type StreamNewResponseFormatTimestampFormat
- type StreamNewResponseFormatType
- type StreamNewResponseFormatUnion
- type StreamNewResponseHTTP
- type StreamNewResponseHTTPCORS
- type StreamNewResponseSchema
- type StreamNewResponseSchemaField
- type StreamNewResponseSchemaFieldsBinary
- type StreamNewResponseSchemaFieldsBinaryType
- type StreamNewResponseSchemaFieldsBool
- type StreamNewResponseSchemaFieldsBoolType
- type StreamNewResponseSchemaFieldsFloat32
- type StreamNewResponseSchemaFieldsFloat32Type
- type StreamNewResponseSchemaFieldsFloat64
- type StreamNewResponseSchemaFieldsFloat64Type
- type StreamNewResponseSchemaFieldsInt32
- type StreamNewResponseSchemaFieldsInt32Type
- type StreamNewResponseSchemaFieldsInt64
- type StreamNewResponseSchemaFieldsInt64Type
- type StreamNewResponseSchemaFieldsJson
- type StreamNewResponseSchemaFieldsJsonType
- type StreamNewResponseSchemaFieldsList
- type StreamNewResponseSchemaFieldsString
- type StreamNewResponseSchemaFieldsStringType
- type StreamNewResponseSchemaFieldsStruct
- type StreamNewResponseSchemaFieldsTimestamp
- type StreamNewResponseSchemaFieldsTimestampType
- type StreamNewResponseSchemaFieldsTimestampUnit
- type StreamNewResponseSchemaFieldsType
- type StreamNewResponseSchemaFieldsUnion
- type StreamNewResponseSchemaFieldsUnit
- type StreamNewResponseWorkerBinding
- type StreamService
- func (r *StreamService) Delete(ctx context.Context, streamID string, body StreamDeleteParams, ...) (res *StreamDeleteResponse, err error)
- func (r *StreamService) Get(ctx context.Context, streamID string, query StreamGetParams, ...) (res *StreamGetResponse, err error)
- func (r *StreamService) List(ctx context.Context, params StreamListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[StreamListResponse], err error)
- func (r *StreamService) ListAutoPaging(ctx context.Context, params StreamListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[StreamListResponse]
- func (r *StreamService) New(ctx context.Context, params StreamNewParams, opts ...option.RequestOption) (res *StreamNewResponse, err error)
- func (r *StreamService) Update(ctx context.Context, streamID string, params StreamUpdateParams, ...) (res *StreamUpdateResponse, err error)
- type StreamUpdateParams
- type StreamUpdateParamsHTTP
- type StreamUpdateParamsHTTPCORS
- type StreamUpdateParamsWorkerBinding
- type StreamUpdateResponse
- type StreamUpdateResponseEnvelope
- type StreamUpdateResponseFormat
- type StreamUpdateResponseFormatCompression
- type StreamUpdateResponseFormatDecimalEncoding
- type StreamUpdateResponseFormatJson
- type StreamUpdateResponseFormatJsonDecimalEncoding
- type StreamUpdateResponseFormatJsonTimestampFormat
- type StreamUpdateResponseFormatJsonType
- type StreamUpdateResponseFormatParquet
- type StreamUpdateResponseFormatParquetCompression
- type StreamUpdateResponseFormatParquetType
- type StreamUpdateResponseFormatTimestampFormat
- type StreamUpdateResponseFormatType
- type StreamUpdateResponseFormatUnion
- type StreamUpdateResponseHTTP
- type StreamUpdateResponseHTTPCORS
- type StreamUpdateResponseSchema
- type StreamUpdateResponseSchemaField
- type StreamUpdateResponseSchemaFieldsBinary
- type StreamUpdateResponseSchemaFieldsBinaryType
- type StreamUpdateResponseSchemaFieldsBool
- type StreamUpdateResponseSchemaFieldsBoolType
- type StreamUpdateResponseSchemaFieldsFloat32
- type StreamUpdateResponseSchemaFieldsFloat32Type
- type StreamUpdateResponseSchemaFieldsFloat64
- type StreamUpdateResponseSchemaFieldsFloat64Type
- type StreamUpdateResponseSchemaFieldsInt32
- type StreamUpdateResponseSchemaFieldsInt32Type
- type StreamUpdateResponseSchemaFieldsInt64
- type StreamUpdateResponseSchemaFieldsInt64Type
- type StreamUpdateResponseSchemaFieldsJson
- type StreamUpdateResponseSchemaFieldsJsonType
- type StreamUpdateResponseSchemaFieldsList
- type StreamUpdateResponseSchemaFieldsString
- type StreamUpdateResponseSchemaFieldsStringType
- type StreamUpdateResponseSchemaFieldsStruct
- type StreamUpdateResponseSchemaFieldsTimestamp
- type StreamUpdateResponseSchemaFieldsTimestampType
- type StreamUpdateResponseSchemaFieldsTimestampUnit
- type StreamUpdateResponseSchemaFieldsType
- type StreamUpdateResponseSchemaFieldsUnion
- type StreamUpdateResponseSchemaFieldsUnit
- type StreamUpdateResponseWorkerBinding
- type Subscription
- type SubscriptionFrequency
- type SubscriptionParam
- type SubscriptionState
- type Token
- type TokenCondition
- type TokenConditionCIDRList
- type TokenConditionCIDRListParam
- type TokenConditionParam
- type TokenConditionRequestIP
- type TokenConditionRequestIPParam
- type TokenParam
- type TokenPolicy
- type TokenPolicyEffect
- type TokenPolicyParam
- type TokenPolicyPermissionGroup
- type TokenPolicyPermissionGroupParam
- type TokenPolicyPermissionGroupsMeta
- type TokenPolicyPermissionGroupsMetaParam
- type TokenPolicyResourcesIAMResourcesTypeObjectNested
- type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam
- type TokenPolicyResourcesIAMResourcesTypeObjectString
- type TokenPolicyResourcesIAMResourcesTypeObjectStringParam
- type TokenPolicyResourcesUnion
- type TokenPolicyResourcesUnionParam
- type TokenStatus
- type TokenValue
Constants ¶
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin
This is an alias to an internal value.
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare
This is an alias to an internal value.
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser
This is an alias to an internal value.
const CertificateCADigicert = shared.CertificateCADigicert
This is an alias to an internal value.
const CertificateCAGoogle = shared.CertificateCAGoogle
This is an alias to an internal value.
const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt
This is an alias to an internal value.
const CertificateCASSLCom = shared.CertificateCASSLCom
This is an alias to an internal value.
const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate
This is an alias to an internal value.
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC
This is an alias to an internal value.
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA
This is an alias to an internal value.
const CloudflareTunnelConfigSrcCloudflare = shared.CloudflareTunnelConfigSrcCloudflare
This is an alias to an internal value.
const CloudflareTunnelConfigSrcLocal = shared.CloudflareTunnelConfigSrcLocal
This is an alias to an internal value.
const CloudflareTunnelStatusDegraded = shared.CloudflareTunnelStatusDegraded
This is an alias to an internal value.
const CloudflareTunnelStatusDown = shared.CloudflareTunnelStatusDown
This is an alias to an internal value.
const CloudflareTunnelStatusHealthy = shared.CloudflareTunnelStatusHealthy
This is an alias to an internal value.
const CloudflareTunnelStatusInactive = shared.CloudflareTunnelStatusInactive
This is an alias to an internal value.
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI
This is an alias to an internal value.
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel
This is an alias to an internal value.
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE
This is an alias to an internal value.
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec
This is an alias to an internal value.
const CloudflareTunnelTunTypeMagic = shared.CloudflareTunnelTunTypeMagic
This is an alias to an internal value.
const CloudflareTunnelTunTypeWARP = shared.CloudflareTunnelTunTypeWARP
This is an alias to an internal value.
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector
This is an alias to an internal value.
const MemberPoliciesAccessAllow = shared.MemberPoliciesAccessAllow
This is an alias to an internal value.
const MemberPoliciesAccessDeny = shared.MemberPoliciesAccessDeny
This is an alias to an internal value.
const MemberStatusAccepted = shared.MemberStatusAccepted
This is an alias to an internal value.
const MemberStatusPending = shared.MemberStatusPending
This is an alias to an internal value.
const RatePlanIDBusiness = shared.RatePlanIDBusiness
This is an alias to an internal value.
const RatePlanIDEnterprise = shared.RatePlanIDEnterprise
This is an alias to an internal value.
const RatePlanIDFree = shared.RatePlanIDFree
This is an alias to an internal value.
const RatePlanIDLite = shared.RatePlanIDLite
This is an alias to an internal value.
const RatePlanIDPartnersBusiness = shared.RatePlanIDPartnersBusiness
This is an alias to an internal value.
const RatePlanIDPartnersEnterprise = shared.RatePlanIDPartnersEnterprise
This is an alias to an internal value.
const RatePlanIDPartnersFree = shared.RatePlanIDPartnersFree
This is an alias to an internal value.
const RatePlanIDPartnersPro = shared.RatePlanIDPartnersPro
This is an alias to an internal value.
const RatePlanIDPro = shared.RatePlanIDPro
This is an alias to an internal value.
const RatePlanIDProPlus = shared.RatePlanIDProPlus
This is an alias to an internal value.
const SortDirectionAsc = shared.SortDirectionAsc
This is an alias to an internal value.
const SortDirectionDesc = shared.SortDirectionDesc
This is an alias to an internal value.
const SubscriptionFrequencyMonthly = shared.SubscriptionFrequencyMonthly
This is an alias to an internal value.
const SubscriptionFrequencyQuarterly = shared.SubscriptionFrequencyQuarterly
This is an alias to an internal value.
const SubscriptionFrequencyWeekly = shared.SubscriptionFrequencyWeekly
This is an alias to an internal value.
const SubscriptionFrequencyYearly = shared.SubscriptionFrequencyYearly
This is an alias to an internal value.
const SubscriptionStateAwaitingPayment = shared.SubscriptionStateAwaitingPayment
This is an alias to an internal value.
const SubscriptionStateCancelled = shared.SubscriptionStateCancelled
This is an alias to an internal value.
const SubscriptionStateExpired = shared.SubscriptionStateExpired
This is an alias to an internal value.
const SubscriptionStateFailed = shared.SubscriptionStateFailed
This is an alias to an internal value.
const SubscriptionStatePaid = shared.SubscriptionStatePaid
This is an alias to an internal value.
const SubscriptionStateProvisioned = shared.SubscriptionStateProvisioned
This is an alias to an internal value.
const SubscriptionStateTrial = shared.SubscriptionStateTrial
This is an alias to an internal value.
const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
This is an alias to an internal value.
const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
This is an alias to an internal value.
const TokenStatusActive = shared.TokenStatusActive
This is an alias to an internal value.
const TokenStatusDisabled = shared.TokenStatusDisabled
This is an alias to an internal value.
const TokenStatusExpired = shared.TokenStatusExpired
This is an alias to an internal value.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditLogAction ¶
type AuditLogAction = shared.AuditLogAction
This is an alias to an internal type.
type AuditLogActor ¶
type AuditLogActor = shared.AuditLogActor
This is an alias to an internal type.
type AuditLogActorType ¶
type AuditLogActorType = shared.AuditLogActorType
The type of actor, whether a User, Cloudflare Admin, or an Automated System.
This is an alias to an internal type.
type AuditLogOwner ¶
type AuditLogOwner = shared.AuditLogOwner
This is an alias to an internal type.
type AuditLogResource ¶
type AuditLogResource = shared.AuditLogResource
This is an alias to an internal type.
type CertificateCA ¶
type CertificateCA = shared.CertificateCA
The Certificate Authority that will issue the certificate.
This is an alias to an internal type.
type CertificateRequestType ¶
type CertificateRequestType = shared.CertificateRequestType
Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).
This is an alias to an internal type.
type CloudflareTunnel ¶
type CloudflareTunnel = shared.CloudflareTunnel
A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
This is an alias to an internal type.
type CloudflareTunnelConfigSrc ¶
type CloudflareTunnelConfigSrc = shared.CloudflareTunnelConfigSrc
Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard.
This is an alias to an internal type.
type CloudflareTunnelConnection ¶
type CloudflareTunnelConnection = shared.CloudflareTunnelConnection
This is an alias to an internal type.
type CloudflareTunnelStatus ¶
type CloudflareTunnelStatus = shared.CloudflareTunnelStatus
The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).
This is an alias to an internal type.
type CloudflareTunnelTunType ¶
type CloudflareTunnelTunType = shared.CloudflareTunnelTunType
The type of tunnel.
This is an alias to an internal type.
type ErrorDataSource ¶
type ErrorDataSource = shared.ErrorDataSource
This is an alias to an internal type.
type MemberPoliciesAccess ¶
type MemberPoliciesAccess = shared.MemberPoliciesAccess
Allow or deny operations against the resources.
This is an alias to an internal type.
type MemberPoliciesPermissionGroup ¶
type MemberPoliciesPermissionGroup = shared.MemberPoliciesPermissionGroup
A named group of permissions that map to a group of operations against resources.
This is an alias to an internal type.
type MemberPoliciesPermissionGroupsMeta ¶
type MemberPoliciesPermissionGroupsMeta = shared.MemberPoliciesPermissionGroupsMeta
Attributes associated to the permission group.
This is an alias to an internal type.
type MemberPoliciesResourceGroup ¶
type MemberPoliciesResourceGroup = shared.MemberPoliciesResourceGroup
A group of scoped resources.
This is an alias to an internal type.
type MemberPoliciesResourceGroupsMeta ¶
type MemberPoliciesResourceGroupsMeta = shared.MemberPoliciesResourceGroupsMeta
Attributes associated to the resource group.
This is an alias to an internal type.
type MemberPoliciesResourceGroupsScope ¶
type MemberPoliciesResourceGroupsScope = shared.MemberPoliciesResourceGroupsScope
A scope is a combination of scope objects which provides additional context.
This is an alias to an internal type.
type MemberPoliciesResourceGroupsScopeObject ¶
type MemberPoliciesResourceGroupsScopeObject = shared.MemberPoliciesResourceGroupsScopeObject
A scope object represents any resource that can have actions applied against invite.
This is an alias to an internal type.
type MemberStatus ¶
type MemberStatus = shared.MemberStatus
A member's status in the account.
This is an alias to an internal type.
type MemberUser ¶
type MemberUser = shared.MemberUser
Details of the user associated to the membership.
This is an alias to an internal type.
type PermissionGrant ¶
type PermissionGrant = shared.PermissionGrant
This is an alias to an internal type.
type PermissionGrantParam ¶
type PermissionGrantParam = shared.PermissionGrantParam
This is an alias to an internal type.
type PipelineDeleteParams ¶
type PipelineDeleteV1Params ¶
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 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 ¶
func (r PipelineGetResponseDestinationCompressionType) IsKnown() bool
type PipelineGetResponseDestinationFormat ¶
type PipelineGetResponseDestinationFormat string
Specifies the format of data to deliver.
const (
PipelineGetResponseDestinationFormatJson PipelineGetResponseDestinationFormat = "json"
)
func (PipelineGetResponseDestinationFormat) IsKnown ¶
func (r PipelineGetResponseDestinationFormat) IsKnown() bool
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 ¶
func (r PipelineGetResponseDestinationType) IsKnown() bool
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 ¶
func (r PipelineGetResponseSource) AsUnion() PipelineGetResponseSourceUnion
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 ¶
func (r *PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource) UnmarshalJSON(data []byte) (err error)
type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat ¶
type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat string
Specifies the format of source data.
const (
PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormatJson PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat = "json"
)
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 ¶
func (r *PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource) UnmarshalJSON(data []byte) (err error)
type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS ¶
type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS struct {
// Specifies allowed origins to allow Cross Origin HTTP Requests.
Origins []string `json:"origins"`
JSON pipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORSJSON `json:"-"`
}
func (*PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) UnmarshalJSON ¶
func (r *PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) UnmarshalJSON(data []byte) (err error)
type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat ¶
type PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat string
Specifies the format of source data.
const (
PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormatJson PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat = "json"
)
func (PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat) IsKnown ¶
func (r PipelineGetResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat) IsKnown() bool
type PipelineGetResponseSourceFormat ¶
type PipelineGetResponseSourceFormat string
Specifies the format of source data.
const (
PipelineGetResponseSourceFormatJson PipelineGetResponseSourceFormat = "json"
)
func (PipelineGetResponseSourceFormat) IsKnown ¶
func (r PipelineGetResponseSourceFormat) IsKnown() bool
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 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 ¶
func (r PipelineGetV1ResponseTablesType) IsKnown() bool
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 ¶
func (r PipelineListResponseResultsDestinationCompressionType) IsKnown() bool
type PipelineListResponseResultsDestinationFormat ¶
type PipelineListResponseResultsDestinationFormat string
Specifies the format of data to deliver.
const (
PipelineListResponseResultsDestinationFormatJson PipelineListResponseResultsDestinationFormat = "json"
)
func (PipelineListResponseResultsDestinationFormat) IsKnown ¶
func (r PipelineListResponseResultsDestinationFormat) IsKnown() bool
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 ¶
func (r PipelineListResponseResultsDestinationType) IsKnown() bool
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 ¶
func (r PipelineListResponseResultsSource) AsUnion() PipelineListResponseResultsSourceUnion
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 ¶
func (r *PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSource) UnmarshalJSON(data []byte) (err error)
type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat ¶
type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat string
Specifies the format of source data.
const (
PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormatJson PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat = "json"
)
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 ¶
func (r *PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSource) UnmarshalJSON(data []byte) (err error)
type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS ¶
type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS struct {
// Specifies allowed origins to allow Cross Origin HTTP Requests.
Origins []string `json:"origins"`
JSON pipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORSJSON `json:"-"`
}
func (*PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) UnmarshalJSON ¶
func (r *PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) UnmarshalJSON(data []byte) (err error)
type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat ¶
type PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat string
Specifies the format of source data.
const (
PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormatJson PipelineListResponseResultsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat = "json"
)
type PipelineListResponseResultsSourceFormat ¶
type PipelineListResponseResultsSourceFormat string
Specifies the format of source data.
const (
PipelineListResponseResultsSourceFormatJson PipelineListResponseResultsSourceFormat = "json"
)
func (PipelineListResponseResultsSourceFormat) IsKnown ¶
func (r PipelineListResponseResultsSourceFormat) IsKnown() bool
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"`
// Filters pipelines by name (case-insensitive substring).
Name param.Field[string] `query:"name"`
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 ¶
func (r PipelineNewParamsDestinationCompressionType) IsKnown() bool
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 ¶
func (r PipelineNewParamsDestinationFormat) IsKnown() bool
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 ¶
func (r PipelineNewParamsDestinationType) IsKnown() bool
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 ¶
func (r PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSource) MarshalJSON() (data []byte, err error)
type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat ¶
type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat string
Specifies the format of source data.
const (
PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormatJson PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat = "json"
)
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 ¶
func (r PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSource) MarshalJSON() (data []byte, err error)
type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS ¶
type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS struct {
// Specifies allowed origins to allow Cross Origin HTTP Requests.
Origins param.Field[[]string] `json:"origins"`
}
func (PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) MarshalJSON ¶
func (r PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) MarshalJSON() (data []byte, err error)
type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat ¶
type PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat string
Specifies the format of source data.
const (
PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormatJson PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat = "json"
)
func (PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat) IsKnown ¶
func (r PipelineNewParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat) IsKnown() bool
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 ¶
func (r PipelineNewResponseDestinationCompressionType) IsKnown() bool
type PipelineNewResponseDestinationFormat ¶
type PipelineNewResponseDestinationFormat string
Specifies the format of data to deliver.
const (
PipelineNewResponseDestinationFormatJson PipelineNewResponseDestinationFormat = "json"
)
func (PipelineNewResponseDestinationFormat) IsKnown ¶
func (r PipelineNewResponseDestinationFormat) IsKnown() bool
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 ¶
func (r PipelineNewResponseDestinationType) IsKnown() bool
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 ¶
func (r PipelineNewResponseSource) AsUnion() PipelineNewResponseSourceUnion
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 ¶
func (r *PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource) UnmarshalJSON(data []byte) (err error)
type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat ¶
type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat string
Specifies the format of source data.
const (
PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormatJson PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat = "json"
)
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 ¶
func (r *PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource) UnmarshalJSON(data []byte) (err error)
type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS ¶
type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS struct {
// Specifies allowed origins to allow Cross Origin HTTP Requests.
Origins []string `json:"origins"`
JSON pipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORSJSON `json:"-"`
}
func (*PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) UnmarshalJSON ¶
func (r *PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) UnmarshalJSON(data []byte) (err error)
type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat ¶
type PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat string
Specifies the format of source data.
const (
PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormatJson PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat = "json"
)
func (PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat) IsKnown ¶
func (r PipelineNewResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat) IsKnown() bool
type PipelineNewResponseSourceFormat ¶
type PipelineNewResponseSourceFormat string
Specifies the format of source data.
const (
PipelineNewResponseSourceFormatJson PipelineNewResponseSourceFormat = "json"
)
func (PipelineNewResponseSourceFormat) IsKnown ¶
func (r PipelineNewResponseSourceFormat) IsKnown() bool
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 Pipeline details.
func (*PipelineService) List
deprecated
func (r *PipelineService) List(ctx context.Context, params PipelineListParams, opts ...option.RequestOption) (res *PipelineListResponse, err error)
[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 ¶
func (r *PipelineService) ListV1(ctx context.Context, params PipelineListV1Params, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[PipelineListV1Response], err error)
List/Filter Pipelines in Account.
func (*PipelineService) ListV1AutoPaging ¶
func (r *PipelineService) ListV1AutoPaging(ctx context.Context, params PipelineListV1Params, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[PipelineListV1Response]
List/Filter Pipelines in Account.
func (*PipelineService) New
deprecated
func (r *PipelineService) New(ctx context.Context, params PipelineNewParams, opts ...option.RequestOption) (res *PipelineNewResponse, err error)
[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 ¶
func (r *PipelineService) NewV1(ctx context.Context, params PipelineNewV1Params, opts ...option.RequestOption) (res *PipelineNewV1Response, err error)
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 ¶
func (r *PipelineService) ValidateSql(ctx context.Context, params PipelineValidateSqlParams, opts ...option.RequestOption) (res *PipelineValidateSqlResponse, err error)
Validates that the Pipelines SQL is correct.
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 ¶
func (r PipelineUpdateParamsDestinationCompressionType) IsKnown() bool
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 ¶
func (r PipelineUpdateParamsDestinationFormat) IsKnown() bool
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 ¶
func (r PipelineUpdateParamsDestinationType) IsKnown() bool
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 ¶
func (r PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSource) MarshalJSON() (data []byte, err error)
type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat ¶
type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat string
Specifies the format of source data.
const (
PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormatJson PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat = "json"
)
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 ¶
func (r PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSource) MarshalJSON() (data []byte, err error)
type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS ¶
type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS struct {
// Specifies allowed origins to allow Cross Origin HTTP Requests.
Origins param.Field[[]string] `json:"origins"`
}
func (PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) MarshalJSON ¶
func (r PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) MarshalJSON() (data []byte, err error)
type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat ¶
type PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat string
Specifies the format of source data.
const (
PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormatJson PipelineUpdateParamsSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat = "json"
)
type PipelineUpdateParamsSourceFormat ¶
type PipelineUpdateParamsSourceFormat string
Specifies the format of source data.
const (
PipelineUpdateParamsSourceFormatJson PipelineUpdateParamsSourceFormat = "json"
)
func (PipelineUpdateParamsSourceFormat) IsKnown ¶
func (r PipelineUpdateParamsSourceFormat) IsKnown() bool
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 ¶
func (r PipelineUpdateResponseDestinationCompressionType) IsKnown() bool
type PipelineUpdateResponseDestinationFormat ¶
type PipelineUpdateResponseDestinationFormat string
Specifies the format of data to deliver.
const (
PipelineUpdateResponseDestinationFormatJson PipelineUpdateResponseDestinationFormat = "json"
)
func (PipelineUpdateResponseDestinationFormat) IsKnown ¶
func (r PipelineUpdateResponseDestinationFormat) IsKnown() bool
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 ¶
func (r PipelineUpdateResponseDestinationType) IsKnown() bool
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 ¶
func (r PipelineUpdateResponseSource) AsUnion() PipelineUpdateResponseSourceUnion
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 ¶
func (r *PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSource) UnmarshalJSON(data []byte) (err error)
type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat ¶
type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat string
Specifies the format of source data.
const (
PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormatJson PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesBindingSourceFormat = "json"
)
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 ¶
func (r *PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSource) UnmarshalJSON(data []byte) (err error)
type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS ¶
type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS struct {
// Specifies allowed origins to allow Cross Origin HTTP Requests.
Origins []string `json:"origins"`
JSON pipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORSJSON `json:"-"`
}
func (*PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) UnmarshalJSON ¶
func (r *PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceCORS) UnmarshalJSON(data []byte) (err error)
type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat ¶
type PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat string
Specifies the format of source data.
const (
PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormatJson PipelineUpdateResponseSourceCloudflarePipelinesWorkersPipelinesHTTPSourceFormat = "json"
)
type PipelineUpdateResponseSourceFormat ¶
type PipelineUpdateResponseSourceFormat string
Specifies the format of source data.
const (
PipelineUpdateResponseSourceFormatJson PipelineUpdateResponseSourceFormat = "json"
)
func (PipelineUpdateResponseSourceFormat) IsKnown ¶
func (r PipelineUpdateResponseSourceFormat) IsKnown() bool
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"`
// Indicates the processing flow to implement the SQL.
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:"-"`
}
Indicates the processing flow to implement the SQL.
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 RatePlanID ¶
type RatePlanID = shared.RatePlanID
The ID of the rate plan.
This is an alias to an internal type.
type RatePlanParam ¶
type RatePlanParam = shared.RatePlanParam
The rate plan applied to the subscription.
This is an alias to an internal type.
type ResponseInfoSource ¶
type ResponseInfoSource = shared.ResponseInfoSource
This is an alias to an internal type.
type RolePermissions ¶
type RolePermissions = shared.RolePermissions
This is an alias to an internal type.
type RolePermissionsParam ¶
type RolePermissionsParam = shared.RolePermissionsParam
This is an alias to an internal type.
type SinkDeleteParams ¶
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 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"`
// Defines the output data format of a sink.
Format SinkGetResponseFormat `json:"format"`
// Defines the schema of the events in the data stream.
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 ¶
func (r SinkGetResponseConfig) AsUnion() SinkGetResponseConfigUnion
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 ¶
func (r *SinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublic) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *SinkGetResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicy) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNaming) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r SinkGetResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy) IsKnown() bool
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 ¶
func (r *SinkGetResponseConfigCloudflarePipelinesR2TablePublicPartitioning) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *SinkGetResponseConfigCloudflarePipelinesR2TablePublicRollingPolicy) UnmarshalJSON(data []byte) (err error)
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"`
// Specifies the compression applied to JSON sink output.
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
}
Defines the output data format of a sink.
func (SinkGetResponseFormat) AsUnion ¶
func (r SinkGetResponseFormat) AsUnion() SinkGetResponseFormatUnion
AsUnion returns a SinkGetResponseFormatUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are SinkGetResponseFormatCloudflarePipelinesSinkJsonFormat, SinkGetResponseFormatCloudflarePipelinesSinkParquetFormat.
func (*SinkGetResponseFormat) UnmarshalJSON ¶
func (r *SinkGetResponseFormat) UnmarshalJSON(data []byte) (err error)
type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormat ¶ added in v7.10.0
type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormat struct {
Type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatType `json:"type" api:"required"`
// Specifies the compression applied to JSON sink output.
Compression SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatCompression `json:"compression"`
DecimalEncoding SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding `json:"decimal_encoding"`
TimestampFormat SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat `json:"timestamp_format"`
Unstructured bool `json:"unstructured"`
JSON sinkGetResponseFormatCloudflarePipelinesSinkJsonFormatJSON `json:"-"`
}
func (*SinkGetResponseFormatCloudflarePipelinesSinkJsonFormat) UnmarshalJSON ¶ added in v7.10.0
func (r *SinkGetResponseFormatCloudflarePipelinesSinkJsonFormat) UnmarshalJSON(data []byte) (err error)
type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatCompression ¶ added in v7.10.0
type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatCompression string
Specifies the compression applied to JSON sink output.
const ( SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatCompressionUncompressed SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatCompression = "uncompressed" SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatCompressionGzip SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatCompression = "gzip" )
func (SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatCompression) IsKnown ¶ added in v7.10.0
func (r SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatCompression) IsKnown() bool
type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding ¶ added in v7.10.0
type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding string
const ( SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingNumber SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "number" SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingString SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "string" SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingBytes SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "bytes" )
func (SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding) IsKnown ¶ added in v7.10.0
func (r SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding) IsKnown() bool
type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat ¶ added in v7.10.0
type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat string
const ( SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormatRfc3339 SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat = "rfc3339" SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormatUnixMillis SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat = "unix_millis" )
func (SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat) IsKnown ¶ added in v7.10.0
func (r SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat) IsKnown() bool
type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatType ¶ added in v7.10.0
type SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatType string
const (
SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatTypeJson SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatType = "json"
)
func (SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatType) IsKnown ¶ added in v7.10.0
func (r SinkGetResponseFormatCloudflarePipelinesSinkJsonFormatType) IsKnown() bool
type SinkGetResponseFormatCloudflarePipelinesSinkParquetFormat ¶ added in v7.10.0
type SinkGetResponseFormatCloudflarePipelinesSinkParquetFormat struct {
Type SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatType `json:"type" api:"required"`
Compression SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompression `json:"compression"`
RowGroupBytes int64 `json:"row_group_bytes" api:"nullable"`
JSON sinkGetResponseFormatCloudflarePipelinesSinkParquetFormatJSON `json:"-"`
}
func (*SinkGetResponseFormatCloudflarePipelinesSinkParquetFormat) UnmarshalJSON ¶ added in v7.10.0
func (r *SinkGetResponseFormatCloudflarePipelinesSinkParquetFormat) UnmarshalJSON(data []byte) (err error)
type SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompression ¶ added in v7.10.0
type SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompression string
const ( SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompressionUncompressed SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "uncompressed" SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompressionSnappy SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "snappy" SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompressionGzip SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "gzip" SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompressionZstd SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "zstd" SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompressionLz4 SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "lz4" )
func (SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompression) IsKnown ¶ added in v7.10.0
func (r SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatCompression) IsKnown() bool
type SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatType ¶ added in v7.10.0
type SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatType string
const (
SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatTypeParquet SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatType = "parquet"
)
func (SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatType) IsKnown ¶ added in v7.10.0
func (r SinkGetResponseFormatCloudflarePipelinesSinkParquetFormatType) IsKnown() bool
type SinkGetResponseFormatCompression ¶
type SinkGetResponseFormatCompression string
Specifies the compression applied to JSON sink output.
const ( SinkGetResponseFormatCompressionUncompressed SinkGetResponseFormatCompression = "uncompressed" SinkGetResponseFormatCompressionGzip SinkGetResponseFormatCompression = "gzip" SinkGetResponseFormatCompressionSnappy SinkGetResponseFormatCompression = "snappy" SinkGetResponseFormatCompressionZstd SinkGetResponseFormatCompression = "zstd" SinkGetResponseFormatCompressionLz4 SinkGetResponseFormatCompression = "lz4" )
func (SinkGetResponseFormatCompression) IsKnown ¶
func (r SinkGetResponseFormatCompression) IsKnown() bool
type SinkGetResponseFormatDecimalEncoding ¶
type SinkGetResponseFormatDecimalEncoding string
const ( SinkGetResponseFormatDecimalEncodingNumber SinkGetResponseFormatDecimalEncoding = "number" SinkGetResponseFormatDecimalEncodingString SinkGetResponseFormatDecimalEncoding = "string" SinkGetResponseFormatDecimalEncodingBytes SinkGetResponseFormatDecimalEncoding = "bytes" )
func (SinkGetResponseFormatDecimalEncoding) IsKnown ¶
func (r SinkGetResponseFormatDecimalEncoding) IsKnown() bool
type SinkGetResponseFormatTimestampFormat ¶
type SinkGetResponseFormatTimestampFormat string
const ( SinkGetResponseFormatTimestampFormatRfc3339 SinkGetResponseFormatTimestampFormat = "rfc3339" SinkGetResponseFormatTimestampFormatUnixMillis SinkGetResponseFormatTimestampFormat = "unix_millis" )
func (SinkGetResponseFormatTimestampFormat) IsKnown ¶
func (r SinkGetResponseFormatTimestampFormat) IsKnown() bool
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
}
Defines the output data format of a sink.
Union satisfied by SinkGetResponseFormatCloudflarePipelinesSinkJsonFormat or SinkGetResponseFormatCloudflarePipelinesSinkParquetFormat.
type SinkGetResponseSchema ¶
type SinkGetResponseSchema struct {
Fields []SinkGetResponseSchemaField `json:"fields"`
Inferred bool `json:"inferred" api:"nullable"`
JSON sinkGetResponseSchemaJSON `json:"-"`
}
Defines the schema of the events in the data stream.
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) AsUnion ¶
func (r SinkGetResponseSchemaField) AsUnion() SinkGetResponseSchemaFieldsUnion
AsUnion returns a SinkGetResponseSchemaFieldsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are SinkGetResponseSchemaFieldsInt32, SinkGetResponseSchemaFieldsInt64, SinkGetResponseSchemaFieldsFloat32, SinkGetResponseSchemaFieldsFloat64, SinkGetResponseSchemaFieldsBool, SinkGetResponseSchemaFieldsString, SinkGetResponseSchemaFieldsBinary, SinkGetResponseSchemaFieldsTimestamp, SinkGetResponseSchemaFieldsJson, SinkGetResponseSchemaFieldsStruct, SinkGetResponseSchemaFieldsList.
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 ¶
func (r SinkGetResponseSchemaFieldsBinaryType) IsKnown() bool
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 ¶
func (r SinkGetResponseSchemaFieldsBoolType) IsKnown() bool
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 ¶
func (r SinkGetResponseSchemaFieldsFloat32Type) IsKnown() bool
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 ¶
func (r SinkGetResponseSchemaFieldsFloat64Type) IsKnown() bool
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 ¶
func (r SinkGetResponseSchemaFieldsInt32Type) IsKnown() bool
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 ¶
func (r SinkGetResponseSchemaFieldsInt64Type) IsKnown() bool
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 ¶
func (r SinkGetResponseSchemaFieldsJsonType) IsKnown() bool
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 ¶
func (r SinkGetResponseSchemaFieldsStringType) IsKnown() bool
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 ¶
func (r SinkGetResponseSchemaFieldsTimestampType) IsKnown() bool
type SinkGetResponseSchemaFieldsTimestampUnit ¶
type SinkGetResponseSchemaFieldsTimestampUnit string
const ( SinkGetResponseSchemaFieldsTimestampUnitSecond SinkGetResponseSchemaFieldsTimestampUnit = "second" SinkGetResponseSchemaFieldsTimestampUnitMillisecond SinkGetResponseSchemaFieldsTimestampUnit = "millisecond" SinkGetResponseSchemaFieldsTimestampUnitMicrosecond SinkGetResponseSchemaFieldsTimestampUnit = "microsecond" SinkGetResponseSchemaFieldsTimestampUnitNanosecond SinkGetResponseSchemaFieldsTimestampUnit = "nanosecond" )
func (SinkGetResponseSchemaFieldsTimestampUnit) IsKnown ¶
func (r SinkGetResponseSchemaFieldsTimestampUnit) IsKnown() bool
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 ¶
func (r SinkGetResponseSchemaFieldsType) IsKnown() bool
type SinkGetResponseSchemaFieldsUnion ¶
type SinkGetResponseSchemaFieldsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by SinkGetResponseSchemaFieldsInt32, SinkGetResponseSchemaFieldsInt64, SinkGetResponseSchemaFieldsFloat32, SinkGetResponseSchemaFieldsFloat64, SinkGetResponseSchemaFieldsBool, SinkGetResponseSchemaFieldsString, SinkGetResponseSchemaFieldsBinary, SinkGetResponseSchemaFieldsTimestamp, SinkGetResponseSchemaFieldsJson, SinkGetResponseSchemaFieldsStruct or SinkGetResponseSchemaFieldsList.
type SinkGetResponseSchemaFieldsUnit ¶
type SinkGetResponseSchemaFieldsUnit string
const ( SinkGetResponseSchemaFieldsUnitSecond SinkGetResponseSchemaFieldsUnit = "second" SinkGetResponseSchemaFieldsUnitMillisecond SinkGetResponseSchemaFieldsUnit = "millisecond" SinkGetResponseSchemaFieldsUnitMicrosecond SinkGetResponseSchemaFieldsUnit = "microsecond" SinkGetResponseSchemaFieldsUnitNanosecond SinkGetResponseSchemaFieldsUnit = "nanosecond" )
func (SinkGetResponseSchemaFieldsUnit) IsKnown ¶
func (r SinkGetResponseSchemaFieldsUnit) IsKnown() bool
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"`
// Filters sinks by name (case-insensitive substring).
Name param.Field[string] `query:"name"`
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"`
// Defines the output data format of a sink.
Format SinkListResponseFormat `json:"format"`
// Defines the schema of the events in the data stream.
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 ¶
func (r SinkListResponseConfig) AsUnion() SinkListResponseConfigUnion
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 ¶
func (r *SinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublic) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *SinkListResponseConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicy) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNaming) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r SinkListResponseConfigCloudflarePipelinesR2TablePublicFileNamingStrategy) IsKnown() bool
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 ¶
func (r *SinkListResponseConfigCloudflarePipelinesR2TablePublicPartitioning) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *SinkListResponseConfigCloudflarePipelinesR2TablePublicRollingPolicy) UnmarshalJSON(data []byte) (err error)
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"`
// Specifies the compression applied to JSON sink output.
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
}
Defines the output data format of a sink.
func (SinkListResponseFormat) AsUnion ¶
func (r SinkListResponseFormat) AsUnion() SinkListResponseFormatUnion
AsUnion returns a SinkListResponseFormatUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are SinkListResponseFormatCloudflarePipelinesSinkJsonFormat, SinkListResponseFormatCloudflarePipelinesSinkParquetFormat.
func (*SinkListResponseFormat) UnmarshalJSON ¶
func (r *SinkListResponseFormat) UnmarshalJSON(data []byte) (err error)
type SinkListResponseFormatCloudflarePipelinesSinkJsonFormat ¶ added in v7.10.0
type SinkListResponseFormatCloudflarePipelinesSinkJsonFormat struct {
Type SinkListResponseFormatCloudflarePipelinesSinkJsonFormatType `json:"type" api:"required"`
// Specifies the compression applied to JSON sink output.
Compression SinkListResponseFormatCloudflarePipelinesSinkJsonFormatCompression `json:"compression"`
DecimalEncoding SinkListResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding `json:"decimal_encoding"`
TimestampFormat SinkListResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat `json:"timestamp_format"`
Unstructured bool `json:"unstructured"`
JSON sinkListResponseFormatCloudflarePipelinesSinkJsonFormatJSON `json:"-"`
}
func (*SinkListResponseFormatCloudflarePipelinesSinkJsonFormat) UnmarshalJSON ¶ added in v7.10.0
func (r *SinkListResponseFormatCloudflarePipelinesSinkJsonFormat) UnmarshalJSON(data []byte) (err error)
type SinkListResponseFormatCloudflarePipelinesSinkJsonFormatCompression ¶ added in v7.10.0
type SinkListResponseFormatCloudflarePipelinesSinkJsonFormatCompression string
Specifies the compression applied to JSON sink output.
const ( SinkListResponseFormatCloudflarePipelinesSinkJsonFormatCompressionUncompressed SinkListResponseFormatCloudflarePipelinesSinkJsonFormatCompression = "uncompressed" SinkListResponseFormatCloudflarePipelinesSinkJsonFormatCompressionGzip SinkListResponseFormatCloudflarePipelinesSinkJsonFormatCompression = "gzip" )
func (SinkListResponseFormatCloudflarePipelinesSinkJsonFormatCompression) IsKnown ¶ added in v7.10.0
func (r SinkListResponseFormatCloudflarePipelinesSinkJsonFormatCompression) IsKnown() bool
type SinkListResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding ¶ added in v7.10.0
type SinkListResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding string
const ( SinkListResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingNumber SinkListResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "number" SinkListResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingString SinkListResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "string" SinkListResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingBytes SinkListResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "bytes" )
func (SinkListResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding) IsKnown ¶ added in v7.10.0
func (r SinkListResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding) IsKnown() bool
type SinkListResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat ¶ added in v7.10.0
type SinkListResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat string
const ( SinkListResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormatRfc3339 SinkListResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat = "rfc3339" SinkListResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormatUnixMillis SinkListResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat = "unix_millis" )
func (SinkListResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat) IsKnown ¶ added in v7.10.0
func (r SinkListResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat) IsKnown() bool
type SinkListResponseFormatCloudflarePipelinesSinkJsonFormatType ¶ added in v7.10.0
type SinkListResponseFormatCloudflarePipelinesSinkJsonFormatType string
const (
SinkListResponseFormatCloudflarePipelinesSinkJsonFormatTypeJson SinkListResponseFormatCloudflarePipelinesSinkJsonFormatType = "json"
)
func (SinkListResponseFormatCloudflarePipelinesSinkJsonFormatType) IsKnown ¶ added in v7.10.0
func (r SinkListResponseFormatCloudflarePipelinesSinkJsonFormatType) IsKnown() bool
type SinkListResponseFormatCloudflarePipelinesSinkParquetFormat ¶ added in v7.10.0
type SinkListResponseFormatCloudflarePipelinesSinkParquetFormat struct {
Type SinkListResponseFormatCloudflarePipelinesSinkParquetFormatType `json:"type" api:"required"`
Compression SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompression `json:"compression"`
RowGroupBytes int64 `json:"row_group_bytes" api:"nullable"`
JSON sinkListResponseFormatCloudflarePipelinesSinkParquetFormatJSON `json:"-"`
}
func (*SinkListResponseFormatCloudflarePipelinesSinkParquetFormat) UnmarshalJSON ¶ added in v7.10.0
func (r *SinkListResponseFormatCloudflarePipelinesSinkParquetFormat) UnmarshalJSON(data []byte) (err error)
type SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompression ¶ added in v7.10.0
type SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompression string
const ( SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompressionUncompressed SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "uncompressed" SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompressionSnappy SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "snappy" SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompressionGzip SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "gzip" SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompressionZstd SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "zstd" SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompressionLz4 SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "lz4" )
func (SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompression) IsKnown ¶ added in v7.10.0
func (r SinkListResponseFormatCloudflarePipelinesSinkParquetFormatCompression) IsKnown() bool
type SinkListResponseFormatCloudflarePipelinesSinkParquetFormatType ¶ added in v7.10.0
type SinkListResponseFormatCloudflarePipelinesSinkParquetFormatType string
const (
SinkListResponseFormatCloudflarePipelinesSinkParquetFormatTypeParquet SinkListResponseFormatCloudflarePipelinesSinkParquetFormatType = "parquet"
)
func (SinkListResponseFormatCloudflarePipelinesSinkParquetFormatType) IsKnown ¶ added in v7.10.0
func (r SinkListResponseFormatCloudflarePipelinesSinkParquetFormatType) IsKnown() bool
type SinkListResponseFormatCompression ¶
type SinkListResponseFormatCompression string
Specifies the compression applied to JSON sink output.
const ( SinkListResponseFormatCompressionUncompressed SinkListResponseFormatCompression = "uncompressed" SinkListResponseFormatCompressionGzip SinkListResponseFormatCompression = "gzip" SinkListResponseFormatCompressionSnappy SinkListResponseFormatCompression = "snappy" SinkListResponseFormatCompressionZstd SinkListResponseFormatCompression = "zstd" SinkListResponseFormatCompressionLz4 SinkListResponseFormatCompression = "lz4" )
func (SinkListResponseFormatCompression) IsKnown ¶
func (r SinkListResponseFormatCompression) IsKnown() bool
type SinkListResponseFormatDecimalEncoding ¶
type SinkListResponseFormatDecimalEncoding string
const ( SinkListResponseFormatDecimalEncodingNumber SinkListResponseFormatDecimalEncoding = "number" SinkListResponseFormatDecimalEncodingString SinkListResponseFormatDecimalEncoding = "string" SinkListResponseFormatDecimalEncodingBytes SinkListResponseFormatDecimalEncoding = "bytes" )
func (SinkListResponseFormatDecimalEncoding) IsKnown ¶
func (r SinkListResponseFormatDecimalEncoding) IsKnown() bool
type SinkListResponseFormatTimestampFormat ¶
type SinkListResponseFormatTimestampFormat string
const ( SinkListResponseFormatTimestampFormatRfc3339 SinkListResponseFormatTimestampFormat = "rfc3339" SinkListResponseFormatTimestampFormatUnixMillis SinkListResponseFormatTimestampFormat = "unix_millis" )
func (SinkListResponseFormatTimestampFormat) IsKnown ¶
func (r SinkListResponseFormatTimestampFormat) IsKnown() bool
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
}
Defines the output data format of a sink.
Union satisfied by SinkListResponseFormatCloudflarePipelinesSinkJsonFormat or SinkListResponseFormatCloudflarePipelinesSinkParquetFormat.
type SinkListResponseSchema ¶
type SinkListResponseSchema struct {
Fields []SinkListResponseSchemaField `json:"fields"`
Inferred bool `json:"inferred" api:"nullable"`
JSON sinkListResponseSchemaJSON `json:"-"`
}
Defines the schema of the events in the data stream.
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) AsUnion ¶
func (r SinkListResponseSchemaField) AsUnion() SinkListResponseSchemaFieldsUnion
AsUnion returns a SinkListResponseSchemaFieldsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are SinkListResponseSchemaFieldsInt32, SinkListResponseSchemaFieldsInt64, SinkListResponseSchemaFieldsFloat32, SinkListResponseSchemaFieldsFloat64, SinkListResponseSchemaFieldsBool, SinkListResponseSchemaFieldsString, SinkListResponseSchemaFieldsBinary, SinkListResponseSchemaFieldsTimestamp, SinkListResponseSchemaFieldsJson, SinkListResponseSchemaFieldsStruct, SinkListResponseSchemaFieldsList.
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 ¶
func (r SinkListResponseSchemaFieldsBinaryType) IsKnown() bool
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 ¶
func (r SinkListResponseSchemaFieldsBoolType) IsKnown() bool
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 ¶
func (r SinkListResponseSchemaFieldsFloat32Type) IsKnown() bool
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 ¶
func (r SinkListResponseSchemaFieldsFloat64Type) IsKnown() bool
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 ¶
func (r SinkListResponseSchemaFieldsInt32Type) IsKnown() bool
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 ¶
func (r SinkListResponseSchemaFieldsInt64Type) IsKnown() bool
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 ¶
func (r SinkListResponseSchemaFieldsJsonType) IsKnown() bool
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 ¶
func (r SinkListResponseSchemaFieldsStringType) IsKnown() bool
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 ¶
func (r SinkListResponseSchemaFieldsTimestampType) IsKnown() bool
type SinkListResponseSchemaFieldsTimestampUnit ¶
type SinkListResponseSchemaFieldsTimestampUnit string
const ( SinkListResponseSchemaFieldsTimestampUnitSecond SinkListResponseSchemaFieldsTimestampUnit = "second" SinkListResponseSchemaFieldsTimestampUnitMillisecond SinkListResponseSchemaFieldsTimestampUnit = "millisecond" SinkListResponseSchemaFieldsTimestampUnitMicrosecond SinkListResponseSchemaFieldsTimestampUnit = "microsecond" SinkListResponseSchemaFieldsTimestampUnitNanosecond SinkListResponseSchemaFieldsTimestampUnit = "nanosecond" )
func (SinkListResponseSchemaFieldsTimestampUnit) IsKnown ¶
func (r SinkListResponseSchemaFieldsTimestampUnit) IsKnown() bool
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 ¶
func (r SinkListResponseSchemaFieldsType) IsKnown() bool
type SinkListResponseSchemaFieldsUnion ¶
type SinkListResponseSchemaFieldsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by SinkListResponseSchemaFieldsInt32, SinkListResponseSchemaFieldsInt64, SinkListResponseSchemaFieldsFloat32, SinkListResponseSchemaFieldsFloat64, SinkListResponseSchemaFieldsBool, SinkListResponseSchemaFieldsString, SinkListResponseSchemaFieldsBinary, SinkListResponseSchemaFieldsTimestamp, SinkListResponseSchemaFieldsJson, SinkListResponseSchemaFieldsStruct or SinkListResponseSchemaFieldsList.
type SinkListResponseSchemaFieldsUnit ¶
type SinkListResponseSchemaFieldsUnit string
const ( SinkListResponseSchemaFieldsUnitSecond SinkListResponseSchemaFieldsUnit = "second" SinkListResponseSchemaFieldsUnitMillisecond SinkListResponseSchemaFieldsUnit = "millisecond" SinkListResponseSchemaFieldsUnitMicrosecond SinkListResponseSchemaFieldsUnit = "microsecond" SinkListResponseSchemaFieldsUnitNanosecond SinkListResponseSchemaFieldsUnit = "nanosecond" )
func (SinkListResponseSchemaFieldsUnit) IsKnown ¶
func (r SinkListResponseSchemaFieldsUnit) IsKnown() bool
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"`
// Defines the output data format of a sink.
Format param.Field[SinkNewParamsFormatUnion] `json:"format"`
// Defines the schema of the events in the data stream.
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 ¶
func (r SinkNewParamsConfigCloudflarePipelinesR2DataCatalogTable) MarshalJSON() (data []byte, err error)
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 ¶
func (r SinkNewParamsConfigCloudflarePipelinesR2DataCatalogTableRollingPolicy) MarshalJSON() (data []byte, err error)
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 ¶
func (r SinkNewParamsConfigCloudflarePipelinesR2TableCredentials) MarshalJSON() (data []byte, err error)
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 ¶
func (r SinkNewParamsConfigCloudflarePipelinesR2TableFileNaming) MarshalJSON() (data []byte, err error)
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 ¶
func (r SinkNewParamsConfigCloudflarePipelinesR2TableFileNamingStrategy) IsKnown() bool
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 ¶
func (r SinkNewParamsConfigCloudflarePipelinesR2TablePartitioning) MarshalJSON() (data []byte, err error)
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 ¶
func (r SinkNewParamsConfigCloudflarePipelinesR2TableRollingPolicy) MarshalJSON() (data []byte, err error)
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"`
// Specifies the compression applied to JSON sink output.
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"`
}
Defines the output data format of a sink.
func (SinkNewParamsFormat) MarshalJSON ¶
func (r SinkNewParamsFormat) MarshalJSON() (data []byte, err error)
type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormat ¶ added in v7.10.0
type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormat struct {
Type param.Field[SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatType] `json:"type" api:"required"`
// Specifies the compression applied to JSON sink output.
Compression param.Field[SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatCompression] `json:"compression"`
DecimalEncoding param.Field[SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding] `json:"decimal_encoding"`
TimestampFormat param.Field[SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTimestampFormat] `json:"timestamp_format"`
Unstructured param.Field[bool] `json:"unstructured"`
}
func (SinkNewParamsFormatCloudflarePipelinesSinkJsonFormat) MarshalJSON ¶ added in v7.10.0
func (r SinkNewParamsFormatCloudflarePipelinesSinkJsonFormat) MarshalJSON() (data []byte, err error)
type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatCompression ¶ added in v7.10.0
type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatCompression string
Specifies the compression applied to JSON sink output.
const ( SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatCompressionUncompressed SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatCompression = "uncompressed" SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatCompressionGzip SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatCompression = "gzip" )
func (SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatCompression) IsKnown ¶ added in v7.10.0
func (r SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatCompression) IsKnown() bool
type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding ¶ added in v7.10.0
type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding string
const ( SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingNumber SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "number" SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingString SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "string" SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingBytes SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "bytes" )
func (SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding) IsKnown ¶ added in v7.10.0
func (r SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding) IsKnown() bool
type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTimestampFormat ¶ added in v7.10.0
type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTimestampFormat string
const ( SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTimestampFormatRfc3339 SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTimestampFormat = "rfc3339" SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTimestampFormatUnixMillis SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTimestampFormat = "unix_millis" )
func (SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTimestampFormat) IsKnown ¶ added in v7.10.0
func (r SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTimestampFormat) IsKnown() bool
type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatType ¶ added in v7.10.0
type SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatType string
const (
SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatTypeJson SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatType = "json"
)
func (SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatType) IsKnown ¶ added in v7.10.0
func (r SinkNewParamsFormatCloudflarePipelinesSinkJsonFormatType) IsKnown() bool
type SinkNewParamsFormatCloudflarePipelinesSinkParquetFormat ¶ added in v7.10.0
type SinkNewParamsFormatCloudflarePipelinesSinkParquetFormat struct {
Type param.Field[SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatType] `json:"type" api:"required"`
Compression param.Field[SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression] `json:"compression"`
RowGroupBytes param.Field[int64] `json:"row_group_bytes"`
}
func (SinkNewParamsFormatCloudflarePipelinesSinkParquetFormat) MarshalJSON ¶ added in v7.10.0
func (r SinkNewParamsFormatCloudflarePipelinesSinkParquetFormat) MarshalJSON() (data []byte, err error)
type SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression ¶ added in v7.10.0
type SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression string
const ( SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompressionUncompressed SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression = "uncompressed" SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompressionSnappy SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression = "snappy" SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompressionGzip SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression = "gzip" SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompressionZstd SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression = "zstd" SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompressionLz4 SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression = "lz4" )
func (SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression) IsKnown ¶ added in v7.10.0
func (r SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatCompression) IsKnown() bool
type SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatType ¶ added in v7.10.0
type SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatType string
const (
SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatTypeParquet SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatType = "parquet"
)
func (SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatType) IsKnown ¶ added in v7.10.0
func (r SinkNewParamsFormatCloudflarePipelinesSinkParquetFormatType) IsKnown() bool
type SinkNewParamsFormatCompression ¶
type SinkNewParamsFormatCompression string
Specifies the compression applied to JSON sink output.
const ( SinkNewParamsFormatCompressionUncompressed SinkNewParamsFormatCompression = "uncompressed" SinkNewParamsFormatCompressionGzip SinkNewParamsFormatCompression = "gzip" SinkNewParamsFormatCompressionSnappy SinkNewParamsFormatCompression = "snappy" SinkNewParamsFormatCompressionZstd SinkNewParamsFormatCompression = "zstd" SinkNewParamsFormatCompressionLz4 SinkNewParamsFormatCompression = "lz4" )
func (SinkNewParamsFormatCompression) IsKnown ¶
func (r SinkNewParamsFormatCompression) IsKnown() bool
type SinkNewParamsFormatDecimalEncoding ¶
type SinkNewParamsFormatDecimalEncoding string
const ( SinkNewParamsFormatDecimalEncodingNumber SinkNewParamsFormatDecimalEncoding = "number" SinkNewParamsFormatDecimalEncodingString SinkNewParamsFormatDecimalEncoding = "string" SinkNewParamsFormatDecimalEncodingBytes SinkNewParamsFormatDecimalEncoding = "bytes" )
func (SinkNewParamsFormatDecimalEncoding) IsKnown ¶
func (r SinkNewParamsFormatDecimalEncoding) IsKnown() bool
type SinkNewParamsFormatTimestampFormat ¶
type SinkNewParamsFormatTimestampFormat string
const ( SinkNewParamsFormatTimestampFormatRfc3339 SinkNewParamsFormatTimestampFormat = "rfc3339" SinkNewParamsFormatTimestampFormatUnixMillis SinkNewParamsFormatTimestampFormat = "unix_millis" )
func (SinkNewParamsFormatTimestampFormat) IsKnown ¶
func (r SinkNewParamsFormatTimestampFormat) IsKnown() bool
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
}
Defines the output data format of a sink.
Satisfied by pipelines.SinkNewParamsFormatCloudflarePipelinesSinkJsonFormat, pipelines.SinkNewParamsFormatCloudflarePipelinesSinkParquetFormat, SinkNewParamsFormat.
type SinkNewParamsSchema ¶
type SinkNewParamsSchema struct {
Fields param.Field[[]SinkNewParamsSchemaFieldUnion] `json:"fields"`
Inferred param.Field[bool] `json:"inferred"`
}
Defines the schema of the events in the data stream.
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 SinkNewParamsSchemaFieldUnion ¶
type SinkNewParamsSchemaFieldUnion interface {
// contains filtered or unexported methods
}
Satisfied by pipelines.SinkNewParamsSchemaFieldsInt32, pipelines.SinkNewParamsSchemaFieldsInt64, pipelines.SinkNewParamsSchemaFieldsFloat32, pipelines.SinkNewParamsSchemaFieldsFloat64, pipelines.SinkNewParamsSchemaFieldsBool, pipelines.SinkNewParamsSchemaFieldsString, pipelines.SinkNewParamsSchemaFieldsBinary, pipelines.SinkNewParamsSchemaFieldsTimestamp, pipelines.SinkNewParamsSchemaFieldsJson, pipelines.SinkNewParamsSchemaFieldsStruct, pipelines.SinkNewParamsSchemaFieldsList, SinkNewParamsSchemaField.
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 ¶
func (r SinkNewParamsSchemaFieldsBinaryType) IsKnown() bool
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 ¶
func (r SinkNewParamsSchemaFieldsBoolType) IsKnown() bool
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 ¶
func (r SinkNewParamsSchemaFieldsFloat32Type) IsKnown() bool
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 ¶
func (r SinkNewParamsSchemaFieldsFloat64Type) IsKnown() bool
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 ¶
func (r SinkNewParamsSchemaFieldsInt32Type) IsKnown() bool
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 ¶
func (r SinkNewParamsSchemaFieldsInt64Type) IsKnown() bool
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 ¶
func (r SinkNewParamsSchemaFieldsJsonType) IsKnown() bool
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 ¶
func (r SinkNewParamsSchemaFieldsStringType) IsKnown() bool
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 ¶
func (r SinkNewParamsSchemaFieldsTimestampType) IsKnown() bool
type SinkNewParamsSchemaFieldsTimestampUnit ¶
type SinkNewParamsSchemaFieldsTimestampUnit string
const ( SinkNewParamsSchemaFieldsTimestampUnitSecond SinkNewParamsSchemaFieldsTimestampUnit = "second" SinkNewParamsSchemaFieldsTimestampUnitMillisecond SinkNewParamsSchemaFieldsTimestampUnit = "millisecond" SinkNewParamsSchemaFieldsTimestampUnitMicrosecond SinkNewParamsSchemaFieldsTimestampUnit = "microsecond" SinkNewParamsSchemaFieldsTimestampUnitNanosecond SinkNewParamsSchemaFieldsTimestampUnit = "nanosecond" )
func (SinkNewParamsSchemaFieldsTimestampUnit) IsKnown ¶
func (r SinkNewParamsSchemaFieldsTimestampUnit) IsKnown() bool
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 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"`
// Defines the output data format of a sink.
Format SinkNewResponseFormat `json:"format"`
// Defines the schema of the events in the data stream.
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 ¶
func (r SinkNewResponseConfig) AsUnion() SinkNewResponseConfigUnion
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 ¶
func (r *SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTable) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *SinkNewResponseConfigCloudflarePipelinesR2DataCatalogTableRollingPolicy) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *SinkNewResponseConfigCloudflarePipelinesR2TableCredentials) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *SinkNewResponseConfigCloudflarePipelinesR2TableFileNaming) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r SinkNewResponseConfigCloudflarePipelinesR2TableFileNamingStrategy) IsKnown() bool
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 ¶
func (r *SinkNewResponseConfigCloudflarePipelinesR2TablePartitioning) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *SinkNewResponseConfigCloudflarePipelinesR2TableRollingPolicy) UnmarshalJSON(data []byte) (err error)
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"`
// Specifies the compression applied to JSON sink output.
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
}
Defines the output data format of a sink.
func (SinkNewResponseFormat) AsUnion ¶
func (r SinkNewResponseFormat) AsUnion() SinkNewResponseFormatUnion
AsUnion returns a SinkNewResponseFormatUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are SinkNewResponseFormatCloudflarePipelinesSinkJsonFormat, SinkNewResponseFormatCloudflarePipelinesSinkParquetFormat.
func (*SinkNewResponseFormat) UnmarshalJSON ¶
func (r *SinkNewResponseFormat) UnmarshalJSON(data []byte) (err error)
type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormat ¶ added in v7.10.0
type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormat struct {
Type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatType `json:"type" api:"required"`
// Specifies the compression applied to JSON sink output.
Compression SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatCompression `json:"compression"`
DecimalEncoding SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding `json:"decimal_encoding"`
TimestampFormat SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat `json:"timestamp_format"`
Unstructured bool `json:"unstructured"`
JSON sinkNewResponseFormatCloudflarePipelinesSinkJsonFormatJSON `json:"-"`
}
func (*SinkNewResponseFormatCloudflarePipelinesSinkJsonFormat) UnmarshalJSON ¶ added in v7.10.0
func (r *SinkNewResponseFormatCloudflarePipelinesSinkJsonFormat) UnmarshalJSON(data []byte) (err error)
type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatCompression ¶ added in v7.10.0
type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatCompression string
Specifies the compression applied to JSON sink output.
const ( SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatCompressionUncompressed SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatCompression = "uncompressed" SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatCompressionGzip SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatCompression = "gzip" )
func (SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatCompression) IsKnown ¶ added in v7.10.0
func (r SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatCompression) IsKnown() bool
type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding ¶ added in v7.10.0
type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding string
const ( SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingNumber SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "number" SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingString SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "string" SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncodingBytes SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding = "bytes" )
func (SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding) IsKnown ¶ added in v7.10.0
func (r SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatDecimalEncoding) IsKnown() bool
type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat ¶ added in v7.10.0
type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat string
const ( SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormatRfc3339 SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat = "rfc3339" SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormatUnixMillis SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat = "unix_millis" )
func (SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat) IsKnown ¶ added in v7.10.0
func (r SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTimestampFormat) IsKnown() bool
type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatType ¶ added in v7.10.0
type SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatType string
const (
SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatTypeJson SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatType = "json"
)
func (SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatType) IsKnown ¶ added in v7.10.0
func (r SinkNewResponseFormatCloudflarePipelinesSinkJsonFormatType) IsKnown() bool
type SinkNewResponseFormatCloudflarePipelinesSinkParquetFormat ¶ added in v7.10.0
type SinkNewResponseFormatCloudflarePipelinesSinkParquetFormat struct {
Type SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatType `json:"type" api:"required"`
Compression SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression `json:"compression"`
RowGroupBytes int64 `json:"row_group_bytes" api:"nullable"`
JSON sinkNewResponseFormatCloudflarePipelinesSinkParquetFormatJSON `json:"-"`
}
func (*SinkNewResponseFormatCloudflarePipelinesSinkParquetFormat) UnmarshalJSON ¶ added in v7.10.0
func (r *SinkNewResponseFormatCloudflarePipelinesSinkParquetFormat) UnmarshalJSON(data []byte) (err error)
type SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression ¶ added in v7.10.0
type SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression string
const ( SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompressionUncompressed SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "uncompressed" SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompressionSnappy SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "snappy" SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompressionGzip SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "gzip" SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompressionZstd SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "zstd" SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompressionLz4 SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression = "lz4" )
func (SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression) IsKnown ¶ added in v7.10.0
func (r SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatCompression) IsKnown() bool
type SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatType ¶ added in v7.10.0
type SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatType string
const (
SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatTypeParquet SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatType = "parquet"
)
func (SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatType) IsKnown ¶ added in v7.10.0
func (r SinkNewResponseFormatCloudflarePipelinesSinkParquetFormatType) IsKnown() bool
type SinkNewResponseFormatCompression ¶
type SinkNewResponseFormatCompression string
Specifies the compression applied to JSON sink output.
const ( SinkNewResponseFormatCompressionUncompressed SinkNewResponseFormatCompression = "uncompressed" SinkNewResponseFormatCompressionGzip SinkNewResponseFormatCompression = "gzip" SinkNewResponseFormatCompressionSnappy SinkNewResponseFormatCompression = "snappy" SinkNewResponseFormatCompressionZstd SinkNewResponseFormatCompression = "zstd" SinkNewResponseFormatCompressionLz4 SinkNewResponseFormatCompression = "lz4" )
func (SinkNewResponseFormatCompression) IsKnown ¶
func (r SinkNewResponseFormatCompression) IsKnown() bool
type SinkNewResponseFormatDecimalEncoding ¶
type SinkNewResponseFormatDecimalEncoding string
const ( SinkNewResponseFormatDecimalEncodingNumber SinkNewResponseFormatDecimalEncoding = "number" SinkNewResponseFormatDecimalEncodingString SinkNewResponseFormatDecimalEncoding = "string" SinkNewResponseFormatDecimalEncodingBytes SinkNewResponseFormatDecimalEncoding = "bytes" )
func (SinkNewResponseFormatDecimalEncoding) IsKnown ¶
func (r SinkNewResponseFormatDecimalEncoding) IsKnown() bool
type SinkNewResponseFormatTimestampFormat ¶
type SinkNewResponseFormatTimestampFormat string
const ( SinkNewResponseFormatTimestampFormatRfc3339 SinkNewResponseFormatTimestampFormat = "rfc3339" SinkNewResponseFormatTimestampFormatUnixMillis SinkNewResponseFormatTimestampFormat = "unix_millis" )
func (SinkNewResponseFormatTimestampFormat) IsKnown ¶
func (r SinkNewResponseFormatTimestampFormat) IsKnown() bool
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
}
Defines the output data format of a sink.
Union satisfied by SinkNewResponseFormatCloudflarePipelinesSinkJsonFormat or SinkNewResponseFormatCloudflarePipelinesSinkParquetFormat.
type SinkNewResponseSchema ¶
type SinkNewResponseSchema struct {
Fields []SinkNewResponseSchemaField `json:"fields"`
Inferred bool `json:"inferred" api:"nullable"`
JSON sinkNewResponseSchemaJSON `json:"-"`
}
Defines the schema of the events in the data stream.
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) AsUnion ¶
func (r SinkNewResponseSchemaField) AsUnion() SinkNewResponseSchemaFieldsUnion
AsUnion returns a SinkNewResponseSchemaFieldsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are SinkNewResponseSchemaFieldsInt32, SinkNewResponseSchemaFieldsInt64, SinkNewResponseSchemaFieldsFloat32, SinkNewResponseSchemaFieldsFloat64, SinkNewResponseSchemaFieldsBool, SinkNewResponseSchemaFieldsString, SinkNewResponseSchemaFieldsBinary, SinkNewResponseSchemaFieldsTimestamp, SinkNewResponseSchemaFieldsJson, SinkNewResponseSchemaFieldsStruct, SinkNewResponseSchemaFieldsList.
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 ¶
func (r SinkNewResponseSchemaFieldsBinaryType) IsKnown() bool
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 ¶
func (r SinkNewResponseSchemaFieldsBoolType) IsKnown() bool
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 ¶
func (r SinkNewResponseSchemaFieldsFloat32Type) IsKnown() bool
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 ¶
func (r SinkNewResponseSchemaFieldsFloat64Type) IsKnown() bool
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 ¶
func (r SinkNewResponseSchemaFieldsInt32Type) IsKnown() bool
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 ¶
func (r SinkNewResponseSchemaFieldsInt64Type) IsKnown() bool
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 ¶
func (r SinkNewResponseSchemaFieldsJsonType) IsKnown() bool
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 ¶
func (r SinkNewResponseSchemaFieldsStringType) IsKnown() bool
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 ¶
func (r SinkNewResponseSchemaFieldsTimestampType) IsKnown() bool
type SinkNewResponseSchemaFieldsTimestampUnit ¶
type SinkNewResponseSchemaFieldsTimestampUnit string
const ( SinkNewResponseSchemaFieldsTimestampUnitSecond SinkNewResponseSchemaFieldsTimestampUnit = "second" SinkNewResponseSchemaFieldsTimestampUnitMillisecond SinkNewResponseSchemaFieldsTimestampUnit = "millisecond" SinkNewResponseSchemaFieldsTimestampUnitMicrosecond SinkNewResponseSchemaFieldsTimestampUnit = "microsecond" SinkNewResponseSchemaFieldsTimestampUnitNanosecond SinkNewResponseSchemaFieldsTimestampUnit = "nanosecond" )
func (SinkNewResponseSchemaFieldsTimestampUnit) IsKnown ¶
func (r SinkNewResponseSchemaFieldsTimestampUnit) IsKnown() bool
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 ¶
func (r SinkNewResponseSchemaFieldsType) IsKnown() bool
type SinkNewResponseSchemaFieldsUnion ¶
type SinkNewResponseSchemaFieldsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by SinkNewResponseSchemaFieldsInt32, SinkNewResponseSchemaFieldsInt64, SinkNewResponseSchemaFieldsFloat32, SinkNewResponseSchemaFieldsFloat64, SinkNewResponseSchemaFieldsBool, SinkNewResponseSchemaFieldsString, SinkNewResponseSchemaFieldsBinary, SinkNewResponseSchemaFieldsTimestamp, SinkNewResponseSchemaFieldsJson, SinkNewResponseSchemaFieldsStruct or SinkNewResponseSchemaFieldsList.
type SinkNewResponseSchemaFieldsUnit ¶
type SinkNewResponseSchemaFieldsUnit string
const ( SinkNewResponseSchemaFieldsUnitSecond SinkNewResponseSchemaFieldsUnit = "second" SinkNewResponseSchemaFieldsUnitMillisecond SinkNewResponseSchemaFieldsUnit = "millisecond" SinkNewResponseSchemaFieldsUnitMicrosecond SinkNewResponseSchemaFieldsUnit = "microsecond" SinkNewResponseSchemaFieldsUnitNanosecond SinkNewResponseSchemaFieldsUnit = "nanosecond" )
func (SinkNewResponseSchemaFieldsUnit) IsKnown ¶
func (r SinkNewResponseSchemaFieldsUnit) IsKnown() bool
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, body SinkDeleteParams, opts ...option.RequestOption) (res *SinkDeleteResponse, err error)
Delete Sink 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 ¶
func (r *SinkService) List(ctx context.Context, params SinkListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[SinkListResponse], err error)
List/Filter Sinks in Account.
func (*SinkService) ListAutoPaging ¶
func (r *SinkService) ListAutoPaging(ctx context.Context, params SinkListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[SinkListResponse]
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 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 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"`
// Defines the data format of the events.
Format StreamGetResponseFormat `json:"format"`
// Defines the schema of the events in the data stream.
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
}
Defines the data format of the events.
func (StreamGetResponseFormat) AsUnion ¶
func (r StreamGetResponseFormat) AsUnion() StreamGetResponseFormatUnion
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 ¶
func (r StreamGetResponseFormatCompression) IsKnown() bool
type StreamGetResponseFormatDecimalEncoding ¶
type StreamGetResponseFormatDecimalEncoding string
const ( StreamGetResponseFormatDecimalEncodingNumber StreamGetResponseFormatDecimalEncoding = "number" StreamGetResponseFormatDecimalEncodingString StreamGetResponseFormatDecimalEncoding = "string" StreamGetResponseFormatDecimalEncodingBytes StreamGetResponseFormatDecimalEncoding = "bytes" )
func (StreamGetResponseFormatDecimalEncoding) IsKnown ¶
func (r StreamGetResponseFormatDecimalEncoding) IsKnown() bool
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 ¶
func (r StreamGetResponseFormatJsonDecimalEncoding) IsKnown() bool
type StreamGetResponseFormatJsonTimestampFormat ¶
type StreamGetResponseFormatJsonTimestampFormat string
const ( StreamGetResponseFormatJsonTimestampFormatRfc3339 StreamGetResponseFormatJsonTimestampFormat = "rfc3339" StreamGetResponseFormatJsonTimestampFormatUnixMillis StreamGetResponseFormatJsonTimestampFormat = "unix_millis" )
func (StreamGetResponseFormatJsonTimestampFormat) IsKnown ¶
func (r StreamGetResponseFormatJsonTimestampFormat) IsKnown() bool
type StreamGetResponseFormatJsonType ¶
type StreamGetResponseFormatJsonType string
const (
StreamGetResponseFormatJsonTypeJson StreamGetResponseFormatJsonType = "json"
)
func (StreamGetResponseFormatJsonType) IsKnown ¶
func (r StreamGetResponseFormatJsonType) IsKnown() bool
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 ¶
func (r StreamGetResponseFormatParquetCompression) IsKnown() bool
type StreamGetResponseFormatParquetType ¶
type StreamGetResponseFormatParquetType string
const (
StreamGetResponseFormatParquetTypeParquet StreamGetResponseFormatParquetType = "parquet"
)
func (StreamGetResponseFormatParquetType) IsKnown ¶
func (r StreamGetResponseFormatParquetType) IsKnown() bool
type StreamGetResponseFormatTimestampFormat ¶
type StreamGetResponseFormatTimestampFormat string
const ( StreamGetResponseFormatTimestampFormatRfc3339 StreamGetResponseFormatTimestampFormat = "rfc3339" StreamGetResponseFormatTimestampFormatUnixMillis StreamGetResponseFormatTimestampFormat = "unix_millis" )
func (StreamGetResponseFormatTimestampFormat) IsKnown ¶
func (r StreamGetResponseFormatTimestampFormat) IsKnown() bool
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
}
Defines the data format of the events.
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"`
Inferred bool `json:"inferred" api:"nullable"`
JSON streamGetResponseSchemaJSON `json:"-"`
}
Defines the schema of the events in the data stream.
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) AsUnion ¶
func (r StreamGetResponseSchemaField) AsUnion() StreamGetResponseSchemaFieldsUnion
AsUnion returns a StreamGetResponseSchemaFieldsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are StreamGetResponseSchemaFieldsInt32, StreamGetResponseSchemaFieldsInt64, StreamGetResponseSchemaFieldsFloat32, StreamGetResponseSchemaFieldsFloat64, StreamGetResponseSchemaFieldsBool, StreamGetResponseSchemaFieldsString, StreamGetResponseSchemaFieldsBinary, StreamGetResponseSchemaFieldsTimestamp, StreamGetResponseSchemaFieldsJson, StreamGetResponseSchemaFieldsStruct, StreamGetResponseSchemaFieldsList.
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 ¶
func (r StreamGetResponseSchemaFieldsBinaryType) IsKnown() bool
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 ¶
func (r StreamGetResponseSchemaFieldsBoolType) IsKnown() bool
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 ¶
func (r StreamGetResponseSchemaFieldsFloat32Type) IsKnown() bool
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 ¶
func (r StreamGetResponseSchemaFieldsFloat64Type) IsKnown() bool
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 ¶
func (r StreamGetResponseSchemaFieldsInt32Type) IsKnown() bool
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 ¶
func (r StreamGetResponseSchemaFieldsInt64Type) IsKnown() bool
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 ¶
func (r StreamGetResponseSchemaFieldsJsonType) IsKnown() bool
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 ¶
func (r StreamGetResponseSchemaFieldsStringType) IsKnown() bool
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 ¶
func (r StreamGetResponseSchemaFieldsTimestampType) IsKnown() bool
type StreamGetResponseSchemaFieldsTimestampUnit ¶
type StreamGetResponseSchemaFieldsTimestampUnit string
const ( StreamGetResponseSchemaFieldsTimestampUnitSecond StreamGetResponseSchemaFieldsTimestampUnit = "second" StreamGetResponseSchemaFieldsTimestampUnitMillisecond StreamGetResponseSchemaFieldsTimestampUnit = "millisecond" StreamGetResponseSchemaFieldsTimestampUnitMicrosecond StreamGetResponseSchemaFieldsTimestampUnit = "microsecond" StreamGetResponseSchemaFieldsTimestampUnitNanosecond StreamGetResponseSchemaFieldsTimestampUnit = "nanosecond" )
func (StreamGetResponseSchemaFieldsTimestampUnit) IsKnown ¶
func (r StreamGetResponseSchemaFieldsTimestampUnit) IsKnown() bool
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 ¶
func (r StreamGetResponseSchemaFieldsType) IsKnown() bool
type StreamGetResponseSchemaFieldsUnion ¶
type StreamGetResponseSchemaFieldsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by StreamGetResponseSchemaFieldsInt32, StreamGetResponseSchemaFieldsInt64, StreamGetResponseSchemaFieldsFloat32, StreamGetResponseSchemaFieldsFloat64, StreamGetResponseSchemaFieldsBool, StreamGetResponseSchemaFieldsString, StreamGetResponseSchemaFieldsBinary, StreamGetResponseSchemaFieldsTimestamp, StreamGetResponseSchemaFieldsJson, StreamGetResponseSchemaFieldsStruct or StreamGetResponseSchemaFieldsList.
type StreamGetResponseSchemaFieldsUnit ¶
type StreamGetResponseSchemaFieldsUnit string
const ( StreamGetResponseSchemaFieldsUnitSecond StreamGetResponseSchemaFieldsUnit = "second" StreamGetResponseSchemaFieldsUnitMillisecond StreamGetResponseSchemaFieldsUnit = "millisecond" StreamGetResponseSchemaFieldsUnitMicrosecond StreamGetResponseSchemaFieldsUnit = "microsecond" StreamGetResponseSchemaFieldsUnitNanosecond StreamGetResponseSchemaFieldsUnit = "nanosecond" )
func (StreamGetResponseSchemaFieldsUnit) IsKnown ¶
func (r StreamGetResponseSchemaFieldsUnit) IsKnown() bool
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"`
// Filters streams by name (case-insensitive substring).
Name param.Field[string] `query:"name"`
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"`
// Defines the data format of the events.
Format StreamListResponseFormat `json:"format"`
// Defines the schema of the events in the data stream.
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
}
Defines the data format of the events.
func (StreamListResponseFormat) AsUnion ¶
func (r StreamListResponseFormat) AsUnion() StreamListResponseFormatUnion
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 ¶
func (r StreamListResponseFormatCompression) IsKnown() bool
type StreamListResponseFormatDecimalEncoding ¶
type StreamListResponseFormatDecimalEncoding string
const ( StreamListResponseFormatDecimalEncodingNumber StreamListResponseFormatDecimalEncoding = "number" StreamListResponseFormatDecimalEncodingString StreamListResponseFormatDecimalEncoding = "string" StreamListResponseFormatDecimalEncodingBytes StreamListResponseFormatDecimalEncoding = "bytes" )
func (StreamListResponseFormatDecimalEncoding) IsKnown ¶
func (r StreamListResponseFormatDecimalEncoding) IsKnown() bool
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 ¶
func (r StreamListResponseFormatJsonDecimalEncoding) IsKnown() bool
type StreamListResponseFormatJsonTimestampFormat ¶
type StreamListResponseFormatJsonTimestampFormat string
const ( StreamListResponseFormatJsonTimestampFormatRfc3339 StreamListResponseFormatJsonTimestampFormat = "rfc3339" StreamListResponseFormatJsonTimestampFormatUnixMillis StreamListResponseFormatJsonTimestampFormat = "unix_millis" )
func (StreamListResponseFormatJsonTimestampFormat) IsKnown ¶
func (r StreamListResponseFormatJsonTimestampFormat) IsKnown() bool
type StreamListResponseFormatJsonType ¶
type StreamListResponseFormatJsonType string
const (
StreamListResponseFormatJsonTypeJson StreamListResponseFormatJsonType = "json"
)
func (StreamListResponseFormatJsonType) IsKnown ¶
func (r StreamListResponseFormatJsonType) IsKnown() bool
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 ¶
func (r StreamListResponseFormatParquetCompression) IsKnown() bool
type StreamListResponseFormatParquetType ¶
type StreamListResponseFormatParquetType string
const (
StreamListResponseFormatParquetTypeParquet StreamListResponseFormatParquetType = "parquet"
)
func (StreamListResponseFormatParquetType) IsKnown ¶
func (r StreamListResponseFormatParquetType) IsKnown() bool
type StreamListResponseFormatTimestampFormat ¶
type StreamListResponseFormatTimestampFormat string
const ( StreamListResponseFormatTimestampFormatRfc3339 StreamListResponseFormatTimestampFormat = "rfc3339" StreamListResponseFormatTimestampFormatUnixMillis StreamListResponseFormatTimestampFormat = "unix_millis" )
func (StreamListResponseFormatTimestampFormat) IsKnown ¶
func (r StreamListResponseFormatTimestampFormat) IsKnown() bool
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
}
Defines the data format of the events.
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"`
Inferred bool `json:"inferred" api:"nullable"`
JSON streamListResponseSchemaJSON `json:"-"`
}
Defines the schema of the events in the data stream.
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) AsUnion ¶
func (r StreamListResponseSchemaField) AsUnion() StreamListResponseSchemaFieldsUnion
AsUnion returns a StreamListResponseSchemaFieldsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are StreamListResponseSchemaFieldsInt32, StreamListResponseSchemaFieldsInt64, StreamListResponseSchemaFieldsFloat32, StreamListResponseSchemaFieldsFloat64, StreamListResponseSchemaFieldsBool, StreamListResponseSchemaFieldsString, StreamListResponseSchemaFieldsBinary, StreamListResponseSchemaFieldsTimestamp, StreamListResponseSchemaFieldsJson, StreamListResponseSchemaFieldsStruct, StreamListResponseSchemaFieldsList.
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 ¶
func (r StreamListResponseSchemaFieldsBinaryType) IsKnown() bool
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 ¶
func (r StreamListResponseSchemaFieldsBoolType) IsKnown() bool
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 ¶
func (r StreamListResponseSchemaFieldsFloat32Type) IsKnown() bool
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 ¶
func (r StreamListResponseSchemaFieldsFloat64Type) IsKnown() bool
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 ¶
func (r StreamListResponseSchemaFieldsInt32Type) IsKnown() bool
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 ¶
func (r StreamListResponseSchemaFieldsInt64Type) IsKnown() bool
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 ¶
func (r StreamListResponseSchemaFieldsJsonType) IsKnown() bool
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 ¶
func (r StreamListResponseSchemaFieldsStringType) IsKnown() bool
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 ¶
func (r StreamListResponseSchemaFieldsTimestampType) IsKnown() bool
type StreamListResponseSchemaFieldsTimestampUnit ¶
type StreamListResponseSchemaFieldsTimestampUnit string
const ( StreamListResponseSchemaFieldsTimestampUnitSecond StreamListResponseSchemaFieldsTimestampUnit = "second" StreamListResponseSchemaFieldsTimestampUnitMillisecond StreamListResponseSchemaFieldsTimestampUnit = "millisecond" StreamListResponseSchemaFieldsTimestampUnitMicrosecond StreamListResponseSchemaFieldsTimestampUnit = "microsecond" StreamListResponseSchemaFieldsTimestampUnitNanosecond StreamListResponseSchemaFieldsTimestampUnit = "nanosecond" )
func (StreamListResponseSchemaFieldsTimestampUnit) IsKnown ¶
func (r StreamListResponseSchemaFieldsTimestampUnit) IsKnown() bool
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 ¶
func (r StreamListResponseSchemaFieldsType) IsKnown() bool
type StreamListResponseSchemaFieldsUnion ¶
type StreamListResponseSchemaFieldsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by StreamListResponseSchemaFieldsInt32, StreamListResponseSchemaFieldsInt64, StreamListResponseSchemaFieldsFloat32, StreamListResponseSchemaFieldsFloat64, StreamListResponseSchemaFieldsBool, StreamListResponseSchemaFieldsString, StreamListResponseSchemaFieldsBinary, StreamListResponseSchemaFieldsTimestamp, StreamListResponseSchemaFieldsJson, StreamListResponseSchemaFieldsStruct or StreamListResponseSchemaFieldsList.
type StreamListResponseSchemaFieldsUnit ¶
type StreamListResponseSchemaFieldsUnit string
const ( StreamListResponseSchemaFieldsUnitSecond StreamListResponseSchemaFieldsUnit = "second" StreamListResponseSchemaFieldsUnitMillisecond StreamListResponseSchemaFieldsUnit = "millisecond" StreamListResponseSchemaFieldsUnitMicrosecond StreamListResponseSchemaFieldsUnit = "microsecond" StreamListResponseSchemaFieldsUnitNanosecond StreamListResponseSchemaFieldsUnit = "nanosecond" )
func (StreamListResponseSchemaFieldsUnit) IsKnown ¶
func (r StreamListResponseSchemaFieldsUnit) IsKnown() bool
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"`
// Defines the data format of the events.
Format param.Field[StreamNewParamsFormatUnion] `json:"format"`
HTTP param.Field[StreamNewParamsHTTP] `json:"http"`
// Defines the schema of the events in the data stream.
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"`
}
Defines the data format of the events.
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 ¶
func (r StreamNewParamsFormatCompression) IsKnown() bool
type StreamNewParamsFormatDecimalEncoding ¶
type StreamNewParamsFormatDecimalEncoding string
const ( StreamNewParamsFormatDecimalEncodingNumber StreamNewParamsFormatDecimalEncoding = "number" StreamNewParamsFormatDecimalEncodingString StreamNewParamsFormatDecimalEncoding = "string" StreamNewParamsFormatDecimalEncodingBytes StreamNewParamsFormatDecimalEncoding = "bytes" )
func (StreamNewParamsFormatDecimalEncoding) IsKnown ¶
func (r StreamNewParamsFormatDecimalEncoding) IsKnown() bool
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 ¶
func (r StreamNewParamsFormatJsonDecimalEncoding) IsKnown() bool
type StreamNewParamsFormatJsonTimestampFormat ¶
type StreamNewParamsFormatJsonTimestampFormat string
const ( StreamNewParamsFormatJsonTimestampFormatRfc3339 StreamNewParamsFormatJsonTimestampFormat = "rfc3339" StreamNewParamsFormatJsonTimestampFormatUnixMillis StreamNewParamsFormatJsonTimestampFormat = "unix_millis" )
func (StreamNewParamsFormatJsonTimestampFormat) IsKnown ¶
func (r StreamNewParamsFormatJsonTimestampFormat) IsKnown() bool
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 ¶
func (r StreamNewParamsFormatParquetCompression) IsKnown() bool
type StreamNewParamsFormatParquetType ¶
type StreamNewParamsFormatParquetType string
const (
StreamNewParamsFormatParquetTypeParquet StreamNewParamsFormatParquetType = "parquet"
)
func (StreamNewParamsFormatParquetType) IsKnown ¶
func (r StreamNewParamsFormatParquetType) IsKnown() bool
type StreamNewParamsFormatTimestampFormat ¶
type StreamNewParamsFormatTimestampFormat string
const ( StreamNewParamsFormatTimestampFormatRfc3339 StreamNewParamsFormatTimestampFormat = "rfc3339" StreamNewParamsFormatTimestampFormatUnixMillis StreamNewParamsFormatTimestampFormat = "unix_millis" )
func (StreamNewParamsFormatTimestampFormat) IsKnown ¶
func (r StreamNewParamsFormatTimestampFormat) IsKnown() bool
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
}
Defines the data format of the events.
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 ¶
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"`
Inferred param.Field[bool] `json:"inferred"`
}
Defines the schema of the events in the data stream.
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 StreamNewParamsSchemaFieldUnion ¶
type StreamNewParamsSchemaFieldUnion interface {
// contains filtered or unexported methods
}
Satisfied by pipelines.StreamNewParamsSchemaFieldsInt32, pipelines.StreamNewParamsSchemaFieldsInt64, pipelines.StreamNewParamsSchemaFieldsFloat32, pipelines.StreamNewParamsSchemaFieldsFloat64, pipelines.StreamNewParamsSchemaFieldsBool, pipelines.StreamNewParamsSchemaFieldsString, pipelines.StreamNewParamsSchemaFieldsBinary, pipelines.StreamNewParamsSchemaFieldsTimestamp, pipelines.StreamNewParamsSchemaFieldsJson, pipelines.StreamNewParamsSchemaFieldsStruct, pipelines.StreamNewParamsSchemaFieldsList, StreamNewParamsSchemaField.
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 ¶
func (r StreamNewParamsSchemaFieldsBinaryType) IsKnown() bool
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 ¶
func (r StreamNewParamsSchemaFieldsBoolType) IsKnown() bool
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 ¶
func (r StreamNewParamsSchemaFieldsFloat32Type) IsKnown() bool
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 ¶
func (r StreamNewParamsSchemaFieldsFloat64Type) IsKnown() bool
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 ¶
func (r StreamNewParamsSchemaFieldsInt32Type) IsKnown() bool
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 ¶
func (r StreamNewParamsSchemaFieldsInt64Type) IsKnown() bool
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 ¶
func (r StreamNewParamsSchemaFieldsJsonType) IsKnown() bool
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 ¶
func (r StreamNewParamsSchemaFieldsStringType) IsKnown() bool
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 ¶
func (r StreamNewParamsSchemaFieldsTimestampType) IsKnown() bool
type StreamNewParamsSchemaFieldsTimestampUnit ¶
type StreamNewParamsSchemaFieldsTimestampUnit string
const ( StreamNewParamsSchemaFieldsTimestampUnitSecond StreamNewParamsSchemaFieldsTimestampUnit = "second" StreamNewParamsSchemaFieldsTimestampUnitMillisecond StreamNewParamsSchemaFieldsTimestampUnit = "millisecond" StreamNewParamsSchemaFieldsTimestampUnitMicrosecond StreamNewParamsSchemaFieldsTimestampUnit = "microsecond" StreamNewParamsSchemaFieldsTimestampUnitNanosecond StreamNewParamsSchemaFieldsTimestampUnit = "nanosecond" )
func (StreamNewParamsSchemaFieldsTimestampUnit) IsKnown ¶
func (r StreamNewParamsSchemaFieldsTimestampUnit) IsKnown() bool
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 ¶
func (r StreamNewParamsSchemaFieldsType) IsKnown() bool
type StreamNewParamsSchemaFieldsUnit ¶
type StreamNewParamsSchemaFieldsUnit string
const ( StreamNewParamsSchemaFieldsUnitSecond StreamNewParamsSchemaFieldsUnit = "second" StreamNewParamsSchemaFieldsUnitMillisecond StreamNewParamsSchemaFieldsUnit = "millisecond" StreamNewParamsSchemaFieldsUnitMicrosecond StreamNewParamsSchemaFieldsUnit = "microsecond" StreamNewParamsSchemaFieldsUnitNanosecond StreamNewParamsSchemaFieldsUnit = "nanosecond" )
func (StreamNewParamsSchemaFieldsUnit) IsKnown ¶
func (r StreamNewParamsSchemaFieldsUnit) IsKnown() bool
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"`
// Defines the data format of the events.
Format StreamNewResponseFormat `json:"format"`
// Defines the schema of the events in the data stream.
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
}
Defines the data format of the events.
func (StreamNewResponseFormat) AsUnion ¶
func (r StreamNewResponseFormat) AsUnion() StreamNewResponseFormatUnion
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 ¶
func (r StreamNewResponseFormatCompression) IsKnown() bool
type StreamNewResponseFormatDecimalEncoding ¶
type StreamNewResponseFormatDecimalEncoding string
const ( StreamNewResponseFormatDecimalEncodingNumber StreamNewResponseFormatDecimalEncoding = "number" StreamNewResponseFormatDecimalEncodingString StreamNewResponseFormatDecimalEncoding = "string" StreamNewResponseFormatDecimalEncodingBytes StreamNewResponseFormatDecimalEncoding = "bytes" )
func (StreamNewResponseFormatDecimalEncoding) IsKnown ¶
func (r StreamNewResponseFormatDecimalEncoding) IsKnown() bool
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 ¶
func (r StreamNewResponseFormatJsonDecimalEncoding) IsKnown() bool
type StreamNewResponseFormatJsonTimestampFormat ¶
type StreamNewResponseFormatJsonTimestampFormat string
const ( StreamNewResponseFormatJsonTimestampFormatRfc3339 StreamNewResponseFormatJsonTimestampFormat = "rfc3339" StreamNewResponseFormatJsonTimestampFormatUnixMillis StreamNewResponseFormatJsonTimestampFormat = "unix_millis" )
func (StreamNewResponseFormatJsonTimestampFormat) IsKnown ¶
func (r StreamNewResponseFormatJsonTimestampFormat) IsKnown() bool
type StreamNewResponseFormatJsonType ¶
type StreamNewResponseFormatJsonType string
const (
StreamNewResponseFormatJsonTypeJson StreamNewResponseFormatJsonType = "json"
)
func (StreamNewResponseFormatJsonType) IsKnown ¶
func (r StreamNewResponseFormatJsonType) IsKnown() bool
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 ¶
func (r StreamNewResponseFormatParquetCompression) IsKnown() bool
type StreamNewResponseFormatParquetType ¶
type StreamNewResponseFormatParquetType string
const (
StreamNewResponseFormatParquetTypeParquet StreamNewResponseFormatParquetType = "parquet"
)
func (StreamNewResponseFormatParquetType) IsKnown ¶
func (r StreamNewResponseFormatParquetType) IsKnown() bool
type StreamNewResponseFormatTimestampFormat ¶
type StreamNewResponseFormatTimestampFormat string
const ( StreamNewResponseFormatTimestampFormatRfc3339 StreamNewResponseFormatTimestampFormat = "rfc3339" StreamNewResponseFormatTimestampFormatUnixMillis StreamNewResponseFormatTimestampFormat = "unix_millis" )
func (StreamNewResponseFormatTimestampFormat) IsKnown ¶
func (r StreamNewResponseFormatTimestampFormat) IsKnown() bool
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
}
Defines the data format of the events.
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"`
Inferred bool `json:"inferred" api:"nullable"`
JSON streamNewResponseSchemaJSON `json:"-"`
}
Defines the schema of the events in the data stream.
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) AsUnion ¶
func (r StreamNewResponseSchemaField) AsUnion() StreamNewResponseSchemaFieldsUnion
AsUnion returns a StreamNewResponseSchemaFieldsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are StreamNewResponseSchemaFieldsInt32, StreamNewResponseSchemaFieldsInt64, StreamNewResponseSchemaFieldsFloat32, StreamNewResponseSchemaFieldsFloat64, StreamNewResponseSchemaFieldsBool, StreamNewResponseSchemaFieldsString, StreamNewResponseSchemaFieldsBinary, StreamNewResponseSchemaFieldsTimestamp, StreamNewResponseSchemaFieldsJson, StreamNewResponseSchemaFieldsStruct, StreamNewResponseSchemaFieldsList.
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 ¶
func (r StreamNewResponseSchemaFieldsBinaryType) IsKnown() bool
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 ¶
func (r StreamNewResponseSchemaFieldsBoolType) IsKnown() bool
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 ¶
func (r StreamNewResponseSchemaFieldsFloat32Type) IsKnown() bool
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 ¶
func (r StreamNewResponseSchemaFieldsFloat64Type) IsKnown() bool
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 ¶
func (r StreamNewResponseSchemaFieldsInt32Type) IsKnown() bool
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 ¶
func (r StreamNewResponseSchemaFieldsInt64Type) IsKnown() bool
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 ¶
func (r StreamNewResponseSchemaFieldsJsonType) IsKnown() bool
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 ¶
func (r StreamNewResponseSchemaFieldsStringType) IsKnown() bool
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 ¶
func (r StreamNewResponseSchemaFieldsTimestampType) IsKnown() bool
type StreamNewResponseSchemaFieldsTimestampUnit ¶
type StreamNewResponseSchemaFieldsTimestampUnit string
const ( StreamNewResponseSchemaFieldsTimestampUnitSecond StreamNewResponseSchemaFieldsTimestampUnit = "second" StreamNewResponseSchemaFieldsTimestampUnitMillisecond StreamNewResponseSchemaFieldsTimestampUnit = "millisecond" StreamNewResponseSchemaFieldsTimestampUnitMicrosecond StreamNewResponseSchemaFieldsTimestampUnit = "microsecond" StreamNewResponseSchemaFieldsTimestampUnitNanosecond StreamNewResponseSchemaFieldsTimestampUnit = "nanosecond" )
func (StreamNewResponseSchemaFieldsTimestampUnit) IsKnown ¶
func (r StreamNewResponseSchemaFieldsTimestampUnit) IsKnown() bool
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 ¶
func (r StreamNewResponseSchemaFieldsType) IsKnown() bool
type StreamNewResponseSchemaFieldsUnion ¶
type StreamNewResponseSchemaFieldsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by StreamNewResponseSchemaFieldsInt32, StreamNewResponseSchemaFieldsInt64, StreamNewResponseSchemaFieldsFloat32, StreamNewResponseSchemaFieldsFloat64, StreamNewResponseSchemaFieldsBool, StreamNewResponseSchemaFieldsString, StreamNewResponseSchemaFieldsBinary, StreamNewResponseSchemaFieldsTimestamp, StreamNewResponseSchemaFieldsJson, StreamNewResponseSchemaFieldsStruct or StreamNewResponseSchemaFieldsList.
type StreamNewResponseSchemaFieldsUnit ¶
type StreamNewResponseSchemaFieldsUnit string
const ( StreamNewResponseSchemaFieldsUnitSecond StreamNewResponseSchemaFieldsUnit = "second" StreamNewResponseSchemaFieldsUnitMillisecond StreamNewResponseSchemaFieldsUnit = "millisecond" StreamNewResponseSchemaFieldsUnitMicrosecond StreamNewResponseSchemaFieldsUnit = "microsecond" StreamNewResponseSchemaFieldsUnitNanosecond StreamNewResponseSchemaFieldsUnit = "nanosecond" )
func (StreamNewResponseSchemaFieldsUnit) IsKnown ¶
func (r StreamNewResponseSchemaFieldsUnit) IsKnown() bool
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, body 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 ¶
func (r *StreamService) List(ctx context.Context, params StreamListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[StreamListResponse], err error)
List/Filter Streams in Account.
func (*StreamService) ListAutoPaging ¶
func (r *StreamService) ListAutoPaging(ctx context.Context, params StreamListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[StreamListResponse]
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 ¶
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"`
// Defines the data format of the events.
Format StreamUpdateResponseFormat `json:"format"`
// Defines the schema of the events in the data stream.
Schema StreamUpdateResponseSchema `json:"schema"`
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
}
Defines the data format of the events.
func (StreamUpdateResponseFormat) AsUnion ¶
func (r StreamUpdateResponseFormat) AsUnion() StreamUpdateResponseFormatUnion
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 ¶
func (r StreamUpdateResponseFormatCompression) IsKnown() bool
type StreamUpdateResponseFormatDecimalEncoding ¶
type StreamUpdateResponseFormatDecimalEncoding string
const ( StreamUpdateResponseFormatDecimalEncodingNumber StreamUpdateResponseFormatDecimalEncoding = "number" StreamUpdateResponseFormatDecimalEncodingString StreamUpdateResponseFormatDecimalEncoding = "string" StreamUpdateResponseFormatDecimalEncodingBytes StreamUpdateResponseFormatDecimalEncoding = "bytes" )
func (StreamUpdateResponseFormatDecimalEncoding) IsKnown ¶
func (r StreamUpdateResponseFormatDecimalEncoding) IsKnown() bool
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 ¶
func (r StreamUpdateResponseFormatJsonDecimalEncoding) IsKnown() bool
type StreamUpdateResponseFormatJsonTimestampFormat ¶
type StreamUpdateResponseFormatJsonTimestampFormat string
const ( StreamUpdateResponseFormatJsonTimestampFormatRfc3339 StreamUpdateResponseFormatJsonTimestampFormat = "rfc3339" StreamUpdateResponseFormatJsonTimestampFormatUnixMillis StreamUpdateResponseFormatJsonTimestampFormat = "unix_millis" )
func (StreamUpdateResponseFormatJsonTimestampFormat) IsKnown ¶
func (r StreamUpdateResponseFormatJsonTimestampFormat) IsKnown() bool
type StreamUpdateResponseFormatJsonType ¶
type StreamUpdateResponseFormatJsonType string
const (
StreamUpdateResponseFormatJsonTypeJson StreamUpdateResponseFormatJsonType = "json"
)
func (StreamUpdateResponseFormatJsonType) IsKnown ¶
func (r StreamUpdateResponseFormatJsonType) IsKnown() bool
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 ¶
func (r StreamUpdateResponseFormatParquetCompression) IsKnown() bool
type StreamUpdateResponseFormatParquetType ¶
type StreamUpdateResponseFormatParquetType string
const (
StreamUpdateResponseFormatParquetTypeParquet StreamUpdateResponseFormatParquetType = "parquet"
)
func (StreamUpdateResponseFormatParquetType) IsKnown ¶
func (r StreamUpdateResponseFormatParquetType) IsKnown() bool
type StreamUpdateResponseFormatTimestampFormat ¶
type StreamUpdateResponseFormatTimestampFormat string
const ( StreamUpdateResponseFormatTimestampFormatRfc3339 StreamUpdateResponseFormatTimestampFormat = "rfc3339" StreamUpdateResponseFormatTimestampFormatUnixMillis StreamUpdateResponseFormatTimestampFormat = "unix_millis" )
func (StreamUpdateResponseFormatTimestampFormat) IsKnown ¶
func (r StreamUpdateResponseFormatTimestampFormat) IsKnown() bool
type StreamUpdateResponseFormatType ¶
type StreamUpdateResponseFormatType string
const ( StreamUpdateResponseFormatTypeJson StreamUpdateResponseFormatType = "json" StreamUpdateResponseFormatTypeParquet StreamUpdateResponseFormatType = "parquet" )
func (StreamUpdateResponseFormatType) IsKnown ¶
func (r StreamUpdateResponseFormatType) IsKnown() bool
type StreamUpdateResponseFormatUnion ¶
type StreamUpdateResponseFormatUnion interface {
// contains filtered or unexported methods
}
Defines the data format of the events.
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 StreamUpdateResponseSchema ¶ added in v7.10.0
type StreamUpdateResponseSchema struct {
Fields []StreamUpdateResponseSchemaField `json:"fields"`
Inferred bool `json:"inferred" api:"nullable"`
JSON streamUpdateResponseSchemaJSON `json:"-"`
}
Defines the schema of the events in the data stream.
func (*StreamUpdateResponseSchema) UnmarshalJSON ¶ added in v7.10.0
func (r *StreamUpdateResponseSchema) UnmarshalJSON(data []byte) (err error)
type StreamUpdateResponseSchemaField ¶ added in v7.10.0
type StreamUpdateResponseSchemaField struct {
Type StreamUpdateResponseSchemaFieldsType `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 StreamUpdateResponseSchemaFieldsUnit `json:"unit"`
JSON streamUpdateResponseSchemaFieldJSON `json:"-"`
// contains filtered or unexported fields
}
func (StreamUpdateResponseSchemaField) AsUnion ¶ added in v7.10.0
func (r StreamUpdateResponseSchemaField) AsUnion() StreamUpdateResponseSchemaFieldsUnion
AsUnion returns a StreamUpdateResponseSchemaFieldsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are StreamUpdateResponseSchemaFieldsInt32, StreamUpdateResponseSchemaFieldsInt64, StreamUpdateResponseSchemaFieldsFloat32, StreamUpdateResponseSchemaFieldsFloat64, StreamUpdateResponseSchemaFieldsBool, StreamUpdateResponseSchemaFieldsString, StreamUpdateResponseSchemaFieldsBinary, StreamUpdateResponseSchemaFieldsTimestamp, StreamUpdateResponseSchemaFieldsJson, StreamUpdateResponseSchemaFieldsStruct, StreamUpdateResponseSchemaFieldsList.
func (*StreamUpdateResponseSchemaField) UnmarshalJSON ¶ added in v7.10.0
func (r *StreamUpdateResponseSchemaField) UnmarshalJSON(data []byte) (err error)
type StreamUpdateResponseSchemaFieldsBinary ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsBinary struct {
Type StreamUpdateResponseSchemaFieldsBinaryType `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 streamUpdateResponseSchemaFieldsBinaryJSON `json:"-"`
}
func (*StreamUpdateResponseSchemaFieldsBinary) UnmarshalJSON ¶ added in v7.10.0
func (r *StreamUpdateResponseSchemaFieldsBinary) UnmarshalJSON(data []byte) (err error)
type StreamUpdateResponseSchemaFieldsBinaryType ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsBinaryType string
const (
StreamUpdateResponseSchemaFieldsBinaryTypeBinary StreamUpdateResponseSchemaFieldsBinaryType = "binary"
)
func (StreamUpdateResponseSchemaFieldsBinaryType) IsKnown ¶ added in v7.10.0
func (r StreamUpdateResponseSchemaFieldsBinaryType) IsKnown() bool
type StreamUpdateResponseSchemaFieldsBool ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsBool struct {
Type StreamUpdateResponseSchemaFieldsBoolType `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 streamUpdateResponseSchemaFieldsBoolJSON `json:"-"`
}
func (*StreamUpdateResponseSchemaFieldsBool) UnmarshalJSON ¶ added in v7.10.0
func (r *StreamUpdateResponseSchemaFieldsBool) UnmarshalJSON(data []byte) (err error)
type StreamUpdateResponseSchemaFieldsBoolType ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsBoolType string
const (
StreamUpdateResponseSchemaFieldsBoolTypeBool StreamUpdateResponseSchemaFieldsBoolType = "bool"
)
func (StreamUpdateResponseSchemaFieldsBoolType) IsKnown ¶ added in v7.10.0
func (r StreamUpdateResponseSchemaFieldsBoolType) IsKnown() bool
type StreamUpdateResponseSchemaFieldsFloat32 ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsFloat32 struct {
Type StreamUpdateResponseSchemaFieldsFloat32Type `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 streamUpdateResponseSchemaFieldsFloat32JSON `json:"-"`
}
func (*StreamUpdateResponseSchemaFieldsFloat32) UnmarshalJSON ¶ added in v7.10.0
func (r *StreamUpdateResponseSchemaFieldsFloat32) UnmarshalJSON(data []byte) (err error)
type StreamUpdateResponseSchemaFieldsFloat32Type ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsFloat32Type string
const (
StreamUpdateResponseSchemaFieldsFloat32TypeFloat32 StreamUpdateResponseSchemaFieldsFloat32Type = "float32"
)
func (StreamUpdateResponseSchemaFieldsFloat32Type) IsKnown ¶ added in v7.10.0
func (r StreamUpdateResponseSchemaFieldsFloat32Type) IsKnown() bool
type StreamUpdateResponseSchemaFieldsFloat64 ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsFloat64 struct {
Type StreamUpdateResponseSchemaFieldsFloat64Type `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 streamUpdateResponseSchemaFieldsFloat64JSON `json:"-"`
}
func (*StreamUpdateResponseSchemaFieldsFloat64) UnmarshalJSON ¶ added in v7.10.0
func (r *StreamUpdateResponseSchemaFieldsFloat64) UnmarshalJSON(data []byte) (err error)
type StreamUpdateResponseSchemaFieldsFloat64Type ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsFloat64Type string
const (
StreamUpdateResponseSchemaFieldsFloat64TypeFloat64 StreamUpdateResponseSchemaFieldsFloat64Type = "float64"
)
func (StreamUpdateResponseSchemaFieldsFloat64Type) IsKnown ¶ added in v7.10.0
func (r StreamUpdateResponseSchemaFieldsFloat64Type) IsKnown() bool
type StreamUpdateResponseSchemaFieldsInt32 ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsInt32 struct {
Type StreamUpdateResponseSchemaFieldsInt32Type `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 streamUpdateResponseSchemaFieldsInt32JSON `json:"-"`
}
func (*StreamUpdateResponseSchemaFieldsInt32) UnmarshalJSON ¶ added in v7.10.0
func (r *StreamUpdateResponseSchemaFieldsInt32) UnmarshalJSON(data []byte) (err error)
type StreamUpdateResponseSchemaFieldsInt32Type ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsInt32Type string
const (
StreamUpdateResponseSchemaFieldsInt32TypeInt32 StreamUpdateResponseSchemaFieldsInt32Type = "int32"
)
func (StreamUpdateResponseSchemaFieldsInt32Type) IsKnown ¶ added in v7.10.0
func (r StreamUpdateResponseSchemaFieldsInt32Type) IsKnown() bool
type StreamUpdateResponseSchemaFieldsInt64 ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsInt64 struct {
Type StreamUpdateResponseSchemaFieldsInt64Type `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 streamUpdateResponseSchemaFieldsInt64JSON `json:"-"`
}
func (*StreamUpdateResponseSchemaFieldsInt64) UnmarshalJSON ¶ added in v7.10.0
func (r *StreamUpdateResponseSchemaFieldsInt64) UnmarshalJSON(data []byte) (err error)
type StreamUpdateResponseSchemaFieldsInt64Type ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsInt64Type string
const (
StreamUpdateResponseSchemaFieldsInt64TypeInt64 StreamUpdateResponseSchemaFieldsInt64Type = "int64"
)
func (StreamUpdateResponseSchemaFieldsInt64Type) IsKnown ¶ added in v7.10.0
func (r StreamUpdateResponseSchemaFieldsInt64Type) IsKnown() bool
type StreamUpdateResponseSchemaFieldsJson ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsJson struct {
Type StreamUpdateResponseSchemaFieldsJsonType `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 streamUpdateResponseSchemaFieldsJsonJSON `json:"-"`
}
func (*StreamUpdateResponseSchemaFieldsJson) UnmarshalJSON ¶ added in v7.10.0
func (r *StreamUpdateResponseSchemaFieldsJson) UnmarshalJSON(data []byte) (err error)
type StreamUpdateResponseSchemaFieldsJsonType ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsJsonType string
const (
StreamUpdateResponseSchemaFieldsJsonTypeJson StreamUpdateResponseSchemaFieldsJsonType = "json"
)
func (StreamUpdateResponseSchemaFieldsJsonType) IsKnown ¶ added in v7.10.0
func (r StreamUpdateResponseSchemaFieldsJsonType) IsKnown() bool
type StreamUpdateResponseSchemaFieldsList ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsList struct {
JSON streamUpdateResponseSchemaFieldsListJSON `json:"-"`
}
func (*StreamUpdateResponseSchemaFieldsList) UnmarshalJSON ¶ added in v7.10.0
func (r *StreamUpdateResponseSchemaFieldsList) UnmarshalJSON(data []byte) (err error)
type StreamUpdateResponseSchemaFieldsString ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsString struct {
Type StreamUpdateResponseSchemaFieldsStringType `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 streamUpdateResponseSchemaFieldsStringJSON `json:"-"`
}
func (*StreamUpdateResponseSchemaFieldsString) UnmarshalJSON ¶ added in v7.10.0
func (r *StreamUpdateResponseSchemaFieldsString) UnmarshalJSON(data []byte) (err error)
type StreamUpdateResponseSchemaFieldsStringType ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsStringType string
const (
StreamUpdateResponseSchemaFieldsStringTypeString StreamUpdateResponseSchemaFieldsStringType = "string"
)
func (StreamUpdateResponseSchemaFieldsStringType) IsKnown ¶ added in v7.10.0
func (r StreamUpdateResponseSchemaFieldsStringType) IsKnown() bool
type StreamUpdateResponseSchemaFieldsStruct ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsStruct struct {
JSON streamUpdateResponseSchemaFieldsStructJSON `json:"-"`
}
func (*StreamUpdateResponseSchemaFieldsStruct) UnmarshalJSON ¶ added in v7.10.0
func (r *StreamUpdateResponseSchemaFieldsStruct) UnmarshalJSON(data []byte) (err error)
type StreamUpdateResponseSchemaFieldsTimestamp ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsTimestamp struct {
Type StreamUpdateResponseSchemaFieldsTimestampType `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 StreamUpdateResponseSchemaFieldsTimestampUnit `json:"unit"`
JSON streamUpdateResponseSchemaFieldsTimestampJSON `json:"-"`
}
func (*StreamUpdateResponseSchemaFieldsTimestamp) UnmarshalJSON ¶ added in v7.10.0
func (r *StreamUpdateResponseSchemaFieldsTimestamp) UnmarshalJSON(data []byte) (err error)
type StreamUpdateResponseSchemaFieldsTimestampType ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsTimestampType string
const (
StreamUpdateResponseSchemaFieldsTimestampTypeTimestamp StreamUpdateResponseSchemaFieldsTimestampType = "timestamp"
)
func (StreamUpdateResponseSchemaFieldsTimestampType) IsKnown ¶ added in v7.10.0
func (r StreamUpdateResponseSchemaFieldsTimestampType) IsKnown() bool
type StreamUpdateResponseSchemaFieldsTimestampUnit ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsTimestampUnit string
const ( StreamUpdateResponseSchemaFieldsTimestampUnitSecond StreamUpdateResponseSchemaFieldsTimestampUnit = "second" StreamUpdateResponseSchemaFieldsTimestampUnitMillisecond StreamUpdateResponseSchemaFieldsTimestampUnit = "millisecond" StreamUpdateResponseSchemaFieldsTimestampUnitMicrosecond StreamUpdateResponseSchemaFieldsTimestampUnit = "microsecond" StreamUpdateResponseSchemaFieldsTimestampUnitNanosecond StreamUpdateResponseSchemaFieldsTimestampUnit = "nanosecond" )
func (StreamUpdateResponseSchemaFieldsTimestampUnit) IsKnown ¶ added in v7.10.0
func (r StreamUpdateResponseSchemaFieldsTimestampUnit) IsKnown() bool
type StreamUpdateResponseSchemaFieldsType ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsType string
const ( StreamUpdateResponseSchemaFieldsTypeInt32 StreamUpdateResponseSchemaFieldsType = "int32" StreamUpdateResponseSchemaFieldsTypeInt64 StreamUpdateResponseSchemaFieldsType = "int64" StreamUpdateResponseSchemaFieldsTypeFloat32 StreamUpdateResponseSchemaFieldsType = "float32" StreamUpdateResponseSchemaFieldsTypeFloat64 StreamUpdateResponseSchemaFieldsType = "float64" StreamUpdateResponseSchemaFieldsTypeBool StreamUpdateResponseSchemaFieldsType = "bool" StreamUpdateResponseSchemaFieldsTypeString StreamUpdateResponseSchemaFieldsType = "string" StreamUpdateResponseSchemaFieldsTypeBinary StreamUpdateResponseSchemaFieldsType = "binary" StreamUpdateResponseSchemaFieldsTypeTimestamp StreamUpdateResponseSchemaFieldsType = "timestamp" StreamUpdateResponseSchemaFieldsTypeJson StreamUpdateResponseSchemaFieldsType = "json" StreamUpdateResponseSchemaFieldsTypeStruct StreamUpdateResponseSchemaFieldsType = "struct" StreamUpdateResponseSchemaFieldsTypeList StreamUpdateResponseSchemaFieldsType = "list" )
func (StreamUpdateResponseSchemaFieldsType) IsKnown ¶ added in v7.10.0
func (r StreamUpdateResponseSchemaFieldsType) IsKnown() bool
type StreamUpdateResponseSchemaFieldsUnion ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by StreamUpdateResponseSchemaFieldsInt32, StreamUpdateResponseSchemaFieldsInt64, StreamUpdateResponseSchemaFieldsFloat32, StreamUpdateResponseSchemaFieldsFloat64, StreamUpdateResponseSchemaFieldsBool, StreamUpdateResponseSchemaFieldsString, StreamUpdateResponseSchemaFieldsBinary, StreamUpdateResponseSchemaFieldsTimestamp, StreamUpdateResponseSchemaFieldsJson, StreamUpdateResponseSchemaFieldsStruct or StreamUpdateResponseSchemaFieldsList.
type StreamUpdateResponseSchemaFieldsUnit ¶ added in v7.10.0
type StreamUpdateResponseSchemaFieldsUnit string
const ( StreamUpdateResponseSchemaFieldsUnitSecond StreamUpdateResponseSchemaFieldsUnit = "second" StreamUpdateResponseSchemaFieldsUnitMillisecond StreamUpdateResponseSchemaFieldsUnit = "millisecond" StreamUpdateResponseSchemaFieldsUnitMicrosecond StreamUpdateResponseSchemaFieldsUnit = "microsecond" StreamUpdateResponseSchemaFieldsUnitNanosecond StreamUpdateResponseSchemaFieldsUnit = "nanosecond" )
func (StreamUpdateResponseSchemaFieldsUnit) IsKnown ¶ added in v7.10.0
func (r StreamUpdateResponseSchemaFieldsUnit) IsKnown() bool
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 SubscriptionFrequency ¶
type SubscriptionFrequency = shared.SubscriptionFrequency
How often the subscription is renewed automatically.
This is an alias to an internal type.
type SubscriptionParam ¶
type SubscriptionParam = shared.SubscriptionParam
This is an alias to an internal type.
type SubscriptionState ¶
type SubscriptionState = shared.SubscriptionState
The state that the subscription is in.
This is an alias to an internal type.
type TokenCondition ¶
type TokenCondition = shared.TokenCondition
This is an alias to an internal type.
type TokenConditionCIDRList ¶
type TokenConditionCIDRList = shared.TokenConditionCIDRList
IPv4/IPv6 CIDR.
This is an alias to an internal type.
type TokenConditionCIDRListParam ¶
type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
IPv4/IPv6 CIDR.
This is an alias to an internal type.
type TokenConditionParam ¶
type TokenConditionParam = shared.TokenConditionParam
This is an alias to an internal type.
type TokenConditionRequestIP ¶
type TokenConditionRequestIP = shared.TokenConditionRequestIP
Client IP restrictions.
This is an alias to an internal type.
type TokenConditionRequestIPParam ¶
type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
Client IP restrictions.
This is an alias to an internal type.
type TokenPolicyEffect ¶
type TokenPolicyEffect = shared.TokenPolicyEffect
Allow or deny operations against the resources.
This is an alias to an internal type.
type TokenPolicyParam ¶
type TokenPolicyParam = shared.TokenPolicyParam
This is an alias to an internal type.
type TokenPolicyPermissionGroup ¶
type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
A named group of permissions that map to a group of operations against resources.
This is an alias to an internal type.
type TokenPolicyPermissionGroupParam ¶
type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
A named group of permissions that map to a group of operations against resources.
This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta ¶
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
Attributes associated to the permission group.
This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam ¶
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
Attributes associated to the permission group.
This is an alias to an internal type.
type TokenPolicyResourcesIAMResourcesTypeObjectNested ¶
type TokenPolicyResourcesIAMResourcesTypeObjectNested = shared.TokenPolicyResourcesIAMResourcesTypeObjectNested
Map of nested resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam ¶
type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectNestedParam
Map of nested resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesIAMResourcesTypeObjectString ¶
type TokenPolicyResourcesIAMResourcesTypeObjectString = shared.TokenPolicyResourcesIAMResourcesTypeObjectString
Map of simple string resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesIAMResourcesTypeObjectStringParam ¶
type TokenPolicyResourcesIAMResourcesTypeObjectStringParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectStringParam
Map of simple string resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesUnion ¶
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
A list of resource names that the policy applies to.
This is an alias to an internal type.
type TokenPolicyResourcesUnionParam ¶
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
A list of resource names that the policy applies to.
This is an alias to an internal type.
type TokenStatus ¶
type TokenStatus = shared.TokenStatus
Status of the token.
This is an alias to an internal type.
type TokenValue ¶
type TokenValue = shared.TokenValue
The token value.
This is an alias to an internal type.