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 CloudflareTunnelConnection
- type CloudflareTunnelStatus
- type CloudflareTunnelTunType
- type CreateIndex
- type Error
- type ErrorData
- type IndexDeleteByIDsParams
- type IndexDeleteByIDsResponse
- type IndexDeleteByIDsResponseEnvelope
- type IndexDeleteByIDsResponseEnvelopeSuccess
- type IndexDeleteParams
- type IndexDeleteResponseEnvelope
- type IndexDeleteResponseEnvelopeSuccess
- type IndexDimensionConfiguration
- type IndexDimensionConfigurationMetric
- type IndexDimensionConfigurationParam
- type IndexGetByIDsParams
- type IndexGetByIDsResponse
- type IndexGetByIDsResponseEnvelope
- type IndexGetByIDsResponseEnvelopeSuccess
- type IndexGetParams
- type IndexGetResponseEnvelope
- type IndexGetResponseEnvelopeSuccess
- type IndexInfoParams
- type IndexInfoResponse
- type IndexInfoResponseEnvelope
- type IndexInfoResponseEnvelopeSuccess
- type IndexInsertParams
- type IndexInsertParamsUnparsableBehavior
- type IndexInsertResponse
- type IndexInsertResponseEnvelope
- type IndexInsertResponseEnvelopeSuccess
- type IndexListParams
- type IndexMetadataIndexDeleteParams
- type IndexMetadataIndexDeleteResponse
- type IndexMetadataIndexDeleteResponseEnvelope
- type IndexMetadataIndexDeleteResponseEnvelopeSuccess
- type IndexMetadataIndexListParams
- type IndexMetadataIndexListResponse
- type IndexMetadataIndexListResponseEnvelope
- type IndexMetadataIndexListResponseEnvelopeSuccess
- type IndexMetadataIndexListResponseMetadataIndex
- type IndexMetadataIndexListResponseMetadataIndexesIndexType
- type IndexMetadataIndexNewParams
- type IndexMetadataIndexNewParamsIndexType
- type IndexMetadataIndexNewResponse
- type IndexMetadataIndexNewResponseEnvelope
- type IndexMetadataIndexNewResponseEnvelopeSuccess
- type IndexMetadataIndexService
- func (r *IndexMetadataIndexService) Delete(ctx context.Context, indexName string, params IndexMetadataIndexDeleteParams, ...) (res *IndexMetadataIndexDeleteResponse, err error)
- func (r *IndexMetadataIndexService) List(ctx context.Context, indexName string, query IndexMetadataIndexListParams, ...) (res *IndexMetadataIndexListResponse, err error)
- func (r *IndexMetadataIndexService) New(ctx context.Context, indexName string, params IndexMetadataIndexNewParams, ...) (res *IndexMetadataIndexNewResponse, err error)
- type IndexNewParams
- type IndexNewParamsConfig
- type IndexNewParamsConfigMetric
- type IndexNewParamsConfigPreset
- type IndexNewParamsConfigUnion
- type IndexNewParamsConfigVectorizeIndexPresetConfiguration
- type IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset
- type IndexNewResponseEnvelope
- type IndexNewResponseEnvelopeSuccess
- type IndexQueryParams
- type IndexQueryParamsReturnMetadata
- type IndexQueryResponse
- type IndexQueryResponseEnvelope
- type IndexQueryResponseEnvelopeSuccess
- type IndexQueryResponseMatch
- type IndexService
- func (r *IndexService) Delete(ctx context.Context, indexName string, body IndexDeleteParams, ...) (res *interface{}, err error)
- func (r *IndexService) DeleteByIDs(ctx context.Context, indexName string, params IndexDeleteByIDsParams, ...) (res *IndexDeleteByIDsResponse, err error)
- func (r *IndexService) Get(ctx context.Context, indexName string, query IndexGetParams, ...) (res *CreateIndex, err error)
- func (r *IndexService) GetByIDs(ctx context.Context, indexName string, params IndexGetByIDsParams, ...) (res *IndexGetByIDsResponse, err error)
- func (r *IndexService) Info(ctx context.Context, indexName string, query IndexInfoParams, ...) (res *IndexInfoResponse, err error)
- func (r *IndexService) Insert(ctx context.Context, indexName string, params IndexInsertParams, ...) (res *IndexInsertResponse, err error)
- func (r *IndexService) List(ctx context.Context, query IndexListParams, opts ...option.RequestOption) (res *pagination.SinglePage[CreateIndex], err error)
- func (r *IndexService) ListAutoPaging(ctx context.Context, query IndexListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[CreateIndex]
- func (r *IndexService) New(ctx context.Context, params IndexNewParams, opts ...option.RequestOption) (res *CreateIndex, err error)
- func (r *IndexService) Query(ctx context.Context, indexName string, params IndexQueryParams, ...) (res *IndexQueryResponse, err error)
- func (r *IndexService) Upsert(ctx context.Context, indexName string, params IndexUpsertParams, ...) (res *IndexUpsertResponse, err error)
- type IndexUpsertParams
- type IndexUpsertParamsUnparsableBehavior
- type IndexUpsertResponse
- type IndexUpsertResponseEnvelope
- type IndexUpsertResponseEnvelopeSuccess
- type MemberParam
- type MemberRoleParam
- type MemberRolesPermissionsParam
- type MemberStatus
- type MemberUserParam
- type Permission
- type PermissionGrant
- type PermissionGrantParam
- type RatePlan
- type RatePlanParam
- type ResponseInfo
- type Role
- type SortDirection
- type Subscription
- type SubscriptionFrequency
- type SubscriptionParam
- type SubscriptionState
- type VectorizeService
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 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 CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector
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 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.
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 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 CreateIndex ¶
type CreateIndex struct { Config IndexDimensionConfiguration `json:"config"` // Specifies the timestamp the resource was created as an ISO8601 string. CreatedOn time.Time `json:"created_on" format:"date-time"` // Specifies the description of the index. Description string `json:"description"` // Specifies the timestamp the resource was modified as an ISO8601 string. ModifiedOn time.Time `json:"modified_on" format:"date-time"` Name string `json:"name"` JSON createIndexJSON `json:"-"` }
func (*CreateIndex) UnmarshalJSON ¶
func (r *CreateIndex) UnmarshalJSON(data []byte) (err error)
type IndexDeleteByIDsParams ¶
type IndexDeleteByIDsParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // A list of vector identifiers to delete from the index indicated by the path. IDs param.Field[[]string] `json:"ids"` }
func (IndexDeleteByIDsParams) MarshalJSON ¶
func (r IndexDeleteByIDsParams) MarshalJSON() (data []byte, err error)
type IndexDeleteByIDsResponse ¶
type IndexDeleteByIDsResponse struct { // The unique identifier for the async mutation operation containing the changeset. MutationID string `json:"mutationId"` JSON indexDeleteByIDsResponseJSON `json:"-"` }
func (*IndexDeleteByIDsResponse) UnmarshalJSON ¶
func (r *IndexDeleteByIDsResponse) UnmarshalJSON(data []byte) (err error)
type IndexDeleteByIDsResponseEnvelope ¶
type IndexDeleteByIDsResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result IndexDeleteByIDsResponse `json:"result,required,nullable"` // Whether the API call was successful Success IndexDeleteByIDsResponseEnvelopeSuccess `json:"success,required"` JSON indexDeleteByIDsResponseEnvelopeJSON `json:"-"` }
func (*IndexDeleteByIDsResponseEnvelope) UnmarshalJSON ¶
func (r *IndexDeleteByIDsResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IndexDeleteByIDsResponseEnvelopeSuccess ¶
type IndexDeleteByIDsResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IndexDeleteByIDsResponseEnvelopeSuccessTrue IndexDeleteByIDsResponseEnvelopeSuccess = true
)
func (IndexDeleteByIDsResponseEnvelopeSuccess) IsKnown ¶
func (r IndexDeleteByIDsResponseEnvelopeSuccess) IsKnown() bool
type IndexDeleteParams ¶
type IndexDeleteResponseEnvelope ¶
type IndexDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result interface{} `json:"result,required"` // Whether the API call was successful Success IndexDeleteResponseEnvelopeSuccess `json:"success,required"` JSON indexDeleteResponseEnvelopeJSON `json:"-"` }
func (*IndexDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *IndexDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IndexDeleteResponseEnvelopeSuccess ¶
type IndexDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IndexDeleteResponseEnvelopeSuccessTrue IndexDeleteResponseEnvelopeSuccess = true
)
func (IndexDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r IndexDeleteResponseEnvelopeSuccess) IsKnown() bool
type IndexDimensionConfiguration ¶
type IndexDimensionConfiguration struct { // Specifies the number of dimensions for the index Dimensions int64 `json:"dimensions,required"` // Specifies the type of metric to use calculating distance. Metric IndexDimensionConfigurationMetric `json:"metric,required"` JSON indexDimensionConfigurationJSON `json:"-"` }
func (*IndexDimensionConfiguration) UnmarshalJSON ¶
func (r *IndexDimensionConfiguration) UnmarshalJSON(data []byte) (err error)
type IndexDimensionConfigurationMetric ¶
type IndexDimensionConfigurationMetric string
Specifies the type of metric to use calculating distance.
const ( IndexDimensionConfigurationMetricCosine IndexDimensionConfigurationMetric = "cosine" IndexDimensionConfigurationMetricEuclidean IndexDimensionConfigurationMetric = "euclidean" IndexDimensionConfigurationMetricDOTProduct IndexDimensionConfigurationMetric = "dot-product" )
func (IndexDimensionConfigurationMetric) IsKnown ¶
func (r IndexDimensionConfigurationMetric) IsKnown() bool
type IndexDimensionConfigurationParam ¶
type IndexDimensionConfigurationParam struct { // Specifies the number of dimensions for the index Dimensions param.Field[int64] `json:"dimensions,required"` // Specifies the type of metric to use calculating distance. Metric param.Field[IndexDimensionConfigurationMetric] `json:"metric,required"` }
func (IndexDimensionConfigurationParam) MarshalJSON ¶
func (r IndexDimensionConfigurationParam) MarshalJSON() (data []byte, err error)
type IndexGetByIDsParams ¶
type IndexGetByIDsParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // A list of vector identifiers to retrieve from the index indicated by the path. IDs param.Field[[]string] `json:"ids"` }
func (IndexGetByIDsParams) MarshalJSON ¶
func (r IndexGetByIDsParams) MarshalJSON() (data []byte, err error)
type IndexGetByIDsResponse ¶
type IndexGetByIDsResponse = interface{}
type IndexGetByIDsResponseEnvelope ¶
type IndexGetByIDsResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Array of vectors with matching ids. Result IndexGetByIDsResponse `json:"result,required,nullable"` // Whether the API call was successful Success IndexGetByIDsResponseEnvelopeSuccess `json:"success,required"` JSON indexGetByIDsResponseEnvelopeJSON `json:"-"` }
func (*IndexGetByIDsResponseEnvelope) UnmarshalJSON ¶
func (r *IndexGetByIDsResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IndexGetByIDsResponseEnvelopeSuccess ¶
type IndexGetByIDsResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IndexGetByIDsResponseEnvelopeSuccessTrue IndexGetByIDsResponseEnvelopeSuccess = true
)
func (IndexGetByIDsResponseEnvelopeSuccess) IsKnown ¶
func (r IndexGetByIDsResponseEnvelopeSuccess) IsKnown() bool
type IndexGetParams ¶
type IndexGetResponseEnvelope ¶
type IndexGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result CreateIndex `json:"result,required,nullable"` // Whether the API call was successful Success IndexGetResponseEnvelopeSuccess `json:"success,required"` JSON indexGetResponseEnvelopeJSON `json:"-"` }
func (*IndexGetResponseEnvelope) UnmarshalJSON ¶
func (r *IndexGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IndexGetResponseEnvelopeSuccess ¶
type IndexGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IndexGetResponseEnvelopeSuccessTrue IndexGetResponseEnvelopeSuccess = true
)
func (IndexGetResponseEnvelopeSuccess) IsKnown ¶
func (r IndexGetResponseEnvelopeSuccess) IsKnown() bool
type IndexInfoParams ¶
type IndexInfoResponse ¶
type IndexInfoResponse struct { // Specifies the number of dimensions for the index Dimensions int64 `json:"dimensions"` // Specifies the timestamp the last mutation batch was processed as an ISO8601 // string. ProcessedUpToDatetime time.Time `json:"processedUpToDatetime,nullable" format:"date-time"` // The unique identifier for the async mutation operation containing the changeset. ProcessedUpToMutation string `json:"processedUpToMutation"` // Specifies the number of vectors present in the index VectorCount int64 `json:"vectorCount"` JSON indexInfoResponseJSON `json:"-"` }
func (*IndexInfoResponse) UnmarshalJSON ¶
func (r *IndexInfoResponse) UnmarshalJSON(data []byte) (err error)
type IndexInfoResponseEnvelope ¶
type IndexInfoResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result IndexInfoResponse `json:"result,required,nullable"` // Whether the API call was successful Success IndexInfoResponseEnvelopeSuccess `json:"success,required"` JSON indexInfoResponseEnvelopeJSON `json:"-"` }
func (*IndexInfoResponseEnvelope) UnmarshalJSON ¶
func (r *IndexInfoResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IndexInfoResponseEnvelopeSuccess ¶
type IndexInfoResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IndexInfoResponseEnvelopeSuccessTrue IndexInfoResponseEnvelopeSuccess = true
)
func (IndexInfoResponseEnvelopeSuccess) IsKnown ¶
func (r IndexInfoResponseEnvelopeSuccess) IsKnown() bool
type IndexInsertParams ¶
type IndexInsertParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // ndjson file containing vectors to insert. Body io.Reader `json:"body,required" format:"binary"` // Behavior for ndjson parse failures. UnparsableBehavior param.Field[IndexInsertParamsUnparsableBehavior] `query:"unparsable-behavior"` }
func (IndexInsertParams) MarshalMultipart ¶
func (r IndexInsertParams) MarshalMultipart() (data []byte, contentType string, err error)
func (IndexInsertParams) URLQuery ¶
func (r IndexInsertParams) URLQuery() (v url.Values)
URLQuery serializes IndexInsertParams's query parameters as `url.Values`.
type IndexInsertParamsUnparsableBehavior ¶
type IndexInsertParamsUnparsableBehavior string
Behavior for ndjson parse failures.
const ( IndexInsertParamsUnparsableBehaviorError IndexInsertParamsUnparsableBehavior = "error" IndexInsertParamsUnparsableBehaviorDiscard IndexInsertParamsUnparsableBehavior = "discard" )
func (IndexInsertParamsUnparsableBehavior) IsKnown ¶
func (r IndexInsertParamsUnparsableBehavior) IsKnown() bool
type IndexInsertResponse ¶
type IndexInsertResponse struct { // The unique identifier for the async mutation operation containing the changeset. MutationID string `json:"mutationId"` JSON indexInsertResponseJSON `json:"-"` }
func (*IndexInsertResponse) UnmarshalJSON ¶
func (r *IndexInsertResponse) UnmarshalJSON(data []byte) (err error)
type IndexInsertResponseEnvelope ¶
type IndexInsertResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result IndexInsertResponse `json:"result,required,nullable"` // Whether the API call was successful Success IndexInsertResponseEnvelopeSuccess `json:"success,required"` JSON indexInsertResponseEnvelopeJSON `json:"-"` }
func (*IndexInsertResponseEnvelope) UnmarshalJSON ¶
func (r *IndexInsertResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IndexInsertResponseEnvelopeSuccess ¶
type IndexInsertResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IndexInsertResponseEnvelopeSuccessTrue IndexInsertResponseEnvelopeSuccess = true
)
func (IndexInsertResponseEnvelopeSuccess) IsKnown ¶
func (r IndexInsertResponseEnvelopeSuccess) IsKnown() bool
type IndexListParams ¶
type IndexMetadataIndexDeleteParams ¶
type IndexMetadataIndexDeleteParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // Specifies the metadata property for which the index must be deleted. PropertyName param.Field[string] `json:"propertyName,required"` }
func (IndexMetadataIndexDeleteParams) MarshalJSON ¶
func (r IndexMetadataIndexDeleteParams) MarshalJSON() (data []byte, err error)
type IndexMetadataIndexDeleteResponse ¶
type IndexMetadataIndexDeleteResponse struct { // The unique identifier for the async mutation operation containing the changeset. MutationID string `json:"mutationId"` JSON indexMetadataIndexDeleteResponseJSON `json:"-"` }
func (*IndexMetadataIndexDeleteResponse) UnmarshalJSON ¶
func (r *IndexMetadataIndexDeleteResponse) UnmarshalJSON(data []byte) (err error)
type IndexMetadataIndexDeleteResponseEnvelope ¶
type IndexMetadataIndexDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result IndexMetadataIndexDeleteResponse `json:"result,required,nullable"` // Whether the API call was successful Success IndexMetadataIndexDeleteResponseEnvelopeSuccess `json:"success,required"` JSON indexMetadataIndexDeleteResponseEnvelopeJSON `json:"-"` }
func (*IndexMetadataIndexDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *IndexMetadataIndexDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IndexMetadataIndexDeleteResponseEnvelopeSuccess ¶
type IndexMetadataIndexDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IndexMetadataIndexDeleteResponseEnvelopeSuccessTrue IndexMetadataIndexDeleteResponseEnvelopeSuccess = true
)
func (IndexMetadataIndexDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r IndexMetadataIndexDeleteResponseEnvelopeSuccess) IsKnown() bool
type IndexMetadataIndexListResponse ¶
type IndexMetadataIndexListResponse struct { // Array of indexed metadata properties. MetadataIndexes []IndexMetadataIndexListResponseMetadataIndex `json:"metadataIndexes"` JSON indexMetadataIndexListResponseJSON `json:"-"` }
func (*IndexMetadataIndexListResponse) UnmarshalJSON ¶
func (r *IndexMetadataIndexListResponse) UnmarshalJSON(data []byte) (err error)
type IndexMetadataIndexListResponseEnvelope ¶
type IndexMetadataIndexListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result IndexMetadataIndexListResponse `json:"result,required,nullable"` // Whether the API call was successful Success IndexMetadataIndexListResponseEnvelopeSuccess `json:"success,required"` JSON indexMetadataIndexListResponseEnvelopeJSON `json:"-"` }
func (*IndexMetadataIndexListResponseEnvelope) UnmarshalJSON ¶
func (r *IndexMetadataIndexListResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IndexMetadataIndexListResponseEnvelopeSuccess ¶
type IndexMetadataIndexListResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IndexMetadataIndexListResponseEnvelopeSuccessTrue IndexMetadataIndexListResponseEnvelopeSuccess = true
)
func (IndexMetadataIndexListResponseEnvelopeSuccess) IsKnown ¶
func (r IndexMetadataIndexListResponseEnvelopeSuccess) IsKnown() bool
type IndexMetadataIndexListResponseMetadataIndex ¶
type IndexMetadataIndexListResponseMetadataIndex struct { // Specifies the type of indexed metadata property. IndexType IndexMetadataIndexListResponseMetadataIndexesIndexType `json:"indexType"` // Specifies the indexed metadata property. PropertyName string `json:"propertyName"` JSON indexMetadataIndexListResponseMetadataIndexJSON `json:"-"` }
func (*IndexMetadataIndexListResponseMetadataIndex) UnmarshalJSON ¶
func (r *IndexMetadataIndexListResponseMetadataIndex) UnmarshalJSON(data []byte) (err error)
type IndexMetadataIndexListResponseMetadataIndexesIndexType ¶
type IndexMetadataIndexListResponseMetadataIndexesIndexType string
Specifies the type of indexed metadata property.
const ( IndexMetadataIndexListResponseMetadataIndexesIndexTypeString IndexMetadataIndexListResponseMetadataIndexesIndexType = "string" IndexMetadataIndexListResponseMetadataIndexesIndexTypeNumber IndexMetadataIndexListResponseMetadataIndexesIndexType = "number" IndexMetadataIndexListResponseMetadataIndexesIndexTypeBoolean IndexMetadataIndexListResponseMetadataIndexesIndexType = "boolean" )
func (IndexMetadataIndexListResponseMetadataIndexesIndexType) IsKnown ¶
func (r IndexMetadataIndexListResponseMetadataIndexesIndexType) IsKnown() bool
type IndexMetadataIndexNewParams ¶
type IndexMetadataIndexNewParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // Specifies the type of metadata property to index. IndexType param.Field[IndexMetadataIndexNewParamsIndexType] `json:"indexType,required"` // Specifies the metadata property to index. PropertyName param.Field[string] `json:"propertyName,required"` }
func (IndexMetadataIndexNewParams) MarshalJSON ¶
func (r IndexMetadataIndexNewParams) MarshalJSON() (data []byte, err error)
type IndexMetadataIndexNewParamsIndexType ¶
type IndexMetadataIndexNewParamsIndexType string
Specifies the type of metadata property to index.
const ( IndexMetadataIndexNewParamsIndexTypeString IndexMetadataIndexNewParamsIndexType = "string" IndexMetadataIndexNewParamsIndexTypeNumber IndexMetadataIndexNewParamsIndexType = "number" IndexMetadataIndexNewParamsIndexTypeBoolean IndexMetadataIndexNewParamsIndexType = "boolean" )
func (IndexMetadataIndexNewParamsIndexType) IsKnown ¶
func (r IndexMetadataIndexNewParamsIndexType) IsKnown() bool
type IndexMetadataIndexNewResponse ¶
type IndexMetadataIndexNewResponse struct { // The unique identifier for the async mutation operation containing the changeset. MutationID string `json:"mutationId"` JSON indexMetadataIndexNewResponseJSON `json:"-"` }
func (*IndexMetadataIndexNewResponse) UnmarshalJSON ¶
func (r *IndexMetadataIndexNewResponse) UnmarshalJSON(data []byte) (err error)
type IndexMetadataIndexNewResponseEnvelope ¶
type IndexMetadataIndexNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result IndexMetadataIndexNewResponse `json:"result,required,nullable"` // Whether the API call was successful Success IndexMetadataIndexNewResponseEnvelopeSuccess `json:"success,required"` JSON indexMetadataIndexNewResponseEnvelopeJSON `json:"-"` }
func (*IndexMetadataIndexNewResponseEnvelope) UnmarshalJSON ¶
func (r *IndexMetadataIndexNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IndexMetadataIndexNewResponseEnvelopeSuccess ¶
type IndexMetadataIndexNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IndexMetadataIndexNewResponseEnvelopeSuccessTrue IndexMetadataIndexNewResponseEnvelopeSuccess = true
)
func (IndexMetadataIndexNewResponseEnvelopeSuccess) IsKnown ¶
func (r IndexMetadataIndexNewResponseEnvelopeSuccess) IsKnown() bool
type IndexMetadataIndexService ¶
type IndexMetadataIndexService struct {
Options []option.RequestOption
}
IndexMetadataIndexService 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 NewIndexMetadataIndexService method instead.
func NewIndexMetadataIndexService ¶
func NewIndexMetadataIndexService(opts ...option.RequestOption) (r *IndexMetadataIndexService)
NewIndexMetadataIndexService 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 (*IndexMetadataIndexService) Delete ¶
func (r *IndexMetadataIndexService) Delete(ctx context.Context, indexName string, params IndexMetadataIndexDeleteParams, opts ...option.RequestOption) (res *IndexMetadataIndexDeleteResponse, err error)
Allow Vectorize to delete the specified metadata index.
func (*IndexMetadataIndexService) List ¶
func (r *IndexMetadataIndexService) List(ctx context.Context, indexName string, query IndexMetadataIndexListParams, opts ...option.RequestOption) (res *IndexMetadataIndexListResponse, err error)
List Metadata Indexes for the specified Vectorize Index.
func (*IndexMetadataIndexService) New ¶
func (r *IndexMetadataIndexService) New(ctx context.Context, indexName string, params IndexMetadataIndexNewParams, opts ...option.RequestOption) (res *IndexMetadataIndexNewResponse, err error)
Enable metadata filtering based on metadata property. Limited to 10 properties.
type IndexNewParams ¶
type IndexNewParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // Specifies the type of configuration to use for the index. Config param.Field[IndexNewParamsConfigUnion] `json:"config,required"` Name param.Field[string] `json:"name,required"` // Specifies the description of the index. Description param.Field[string] `json:"description"` }
func (IndexNewParams) MarshalJSON ¶
func (r IndexNewParams) MarshalJSON() (data []byte, err error)
type IndexNewParamsConfig ¶
type IndexNewParamsConfig struct { // Specifies the number of dimensions for the index Dimensions param.Field[int64] `json:"dimensions"` // Specifies the type of metric to use calculating distance. Metric param.Field[IndexNewParamsConfigMetric] `json:"metric"` // Specifies the preset to use for the index. Preset param.Field[IndexNewParamsConfigPreset] `json:"preset"` }
Specifies the type of configuration to use for the index.
func (IndexNewParamsConfig) MarshalJSON ¶
func (r IndexNewParamsConfig) MarshalJSON() (data []byte, err error)
type IndexNewParamsConfigMetric ¶
type IndexNewParamsConfigMetric string
Specifies the type of metric to use calculating distance.
const ( IndexNewParamsConfigMetricCosine IndexNewParamsConfigMetric = "cosine" IndexNewParamsConfigMetricEuclidean IndexNewParamsConfigMetric = "euclidean" IndexNewParamsConfigMetricDOTProduct IndexNewParamsConfigMetric = "dot-product" )
func (IndexNewParamsConfigMetric) IsKnown ¶
func (r IndexNewParamsConfigMetric) IsKnown() bool
type IndexNewParamsConfigPreset ¶
type IndexNewParamsConfigPreset string
Specifies the preset to use for the index.
const ( IndexNewParamsConfigPresetCfBaaiBgeSmallEnV1_5 IndexNewParamsConfigPreset = "@cf/baai/bge-small-en-v1.5" IndexNewParamsConfigPresetCfBaaiBgeBaseEnV1_5 IndexNewParamsConfigPreset = "@cf/baai/bge-base-en-v1.5" IndexNewParamsConfigPresetCfBaaiBgeLargeEnV1_5 IndexNewParamsConfigPreset = "@cf/baai/bge-large-en-v1.5" IndexNewParamsConfigPresetOpenAITextEmbeddingAda002 IndexNewParamsConfigPreset = "openai/text-embedding-ada-002" IndexNewParamsConfigPresetCohereEmbedMultilingualV2_0 IndexNewParamsConfigPreset = "cohere/embed-multilingual-v2.0" )
func (IndexNewParamsConfigPreset) IsKnown ¶
func (r IndexNewParamsConfigPreset) IsKnown() bool
type IndexNewParamsConfigUnion ¶
type IndexNewParamsConfigUnion interface {
// contains filtered or unexported methods
}
Specifies the type of configuration to use for the index.
Satisfied by vectorize.IndexDimensionConfigurationParam, vectorize.IndexNewParamsConfigVectorizeIndexPresetConfiguration, IndexNewParamsConfig.
type IndexNewParamsConfigVectorizeIndexPresetConfiguration ¶
type IndexNewParamsConfigVectorizeIndexPresetConfiguration struct { // Specifies the preset to use for the index. Preset param.Field[IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset] `json:"preset,required"` }
func (IndexNewParamsConfigVectorizeIndexPresetConfiguration) MarshalJSON ¶
func (r IndexNewParamsConfigVectorizeIndexPresetConfiguration) MarshalJSON() (data []byte, err error)
type IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset ¶
type IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset string
Specifies the preset to use for the index.
const ( IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeSmallEnV1_5 IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset = "@cf/baai/bge-small-en-v1.5" IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeBaseEnV1_5 IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset = "@cf/baai/bge-base-en-v1.5" IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeLargeEnV1_5 IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset = "@cf/baai/bge-large-en-v1.5" IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetOpenAITextEmbeddingAda002 IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset = "openai/text-embedding-ada-002" IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCohereEmbedMultilingualV2_0 IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset = "cohere/embed-multilingual-v2.0" )
func (IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset) IsKnown ¶
func (r IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset) IsKnown() bool
type IndexNewResponseEnvelope ¶
type IndexNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result CreateIndex `json:"result,required,nullable"` // Whether the API call was successful Success IndexNewResponseEnvelopeSuccess `json:"success,required"` JSON indexNewResponseEnvelopeJSON `json:"-"` }
func (*IndexNewResponseEnvelope) UnmarshalJSON ¶
func (r *IndexNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IndexNewResponseEnvelopeSuccess ¶
type IndexNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IndexNewResponseEnvelopeSuccessTrue IndexNewResponseEnvelopeSuccess = true
)
func (IndexNewResponseEnvelopeSuccess) IsKnown ¶
func (r IndexNewResponseEnvelopeSuccess) IsKnown() bool
type IndexQueryParams ¶
type IndexQueryParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // The search vector that will be used to find the nearest neighbors. Vector param.Field[[]float64] `json:"vector,required"` // A metadata filter expression used to limit nearest neighbor results. Filter param.Field[interface{}] `json:"filter"` // Whether to return no metadata, indexed metadata or all metadata associated with // the closest vectors. ReturnMetadata param.Field[IndexQueryParamsReturnMetadata] `json:"returnMetadata"` // Whether to return the values associated with the closest vectors. ReturnValues param.Field[bool] `json:"returnValues"` // The number of nearest neighbors to find. TopK param.Field[float64] `json:"topK"` }
func (IndexQueryParams) MarshalJSON ¶
func (r IndexQueryParams) MarshalJSON() (data []byte, err error)
type IndexQueryParamsReturnMetadata ¶
type IndexQueryParamsReturnMetadata string
Whether to return no metadata, indexed metadata or all metadata associated with the closest vectors.
const ( IndexQueryParamsReturnMetadataNone IndexQueryParamsReturnMetadata = "none" IndexQueryParamsReturnMetadataIndexed IndexQueryParamsReturnMetadata = "indexed" IndexQueryParamsReturnMetadataAll IndexQueryParamsReturnMetadata = "all" )
func (IndexQueryParamsReturnMetadata) IsKnown ¶
func (r IndexQueryParamsReturnMetadata) IsKnown() bool
type IndexQueryResponse ¶
type IndexQueryResponse struct { // Specifies the count of vectors returned by the search Count int64 `json:"count"` // Array of vectors matched by the search Matches []IndexQueryResponseMatch `json:"matches"` JSON indexQueryResponseJSON `json:"-"` }
func (*IndexQueryResponse) UnmarshalJSON ¶
func (r *IndexQueryResponse) UnmarshalJSON(data []byte) (err error)
type IndexQueryResponseEnvelope ¶
type IndexQueryResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result IndexQueryResponse `json:"result,required,nullable"` // Whether the API call was successful Success IndexQueryResponseEnvelopeSuccess `json:"success,required"` JSON indexQueryResponseEnvelopeJSON `json:"-"` }
func (*IndexQueryResponseEnvelope) UnmarshalJSON ¶
func (r *IndexQueryResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IndexQueryResponseEnvelopeSuccess ¶
type IndexQueryResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IndexQueryResponseEnvelopeSuccessTrue IndexQueryResponseEnvelopeSuccess = true
)
func (IndexQueryResponseEnvelopeSuccess) IsKnown ¶
func (r IndexQueryResponseEnvelopeSuccess) IsKnown() bool
type IndexQueryResponseMatch ¶
type IndexQueryResponseMatch struct { // Identifier for a Vector ID string `json:"id"` Metadata interface{} `json:"metadata,nullable"` Namespace string `json:"namespace,nullable"` // The score of the vector according to the index's distance metric Score float64 `json:"score"` Values []float64 `json:"values,nullable"` JSON indexQueryResponseMatchJSON `json:"-"` }
func (*IndexQueryResponseMatch) UnmarshalJSON ¶
func (r *IndexQueryResponseMatch) UnmarshalJSON(data []byte) (err error)
type IndexService ¶
type IndexService struct { Options []option.RequestOption MetadataIndex *IndexMetadataIndexService }
IndexService 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 NewIndexService method instead.
func NewIndexService ¶
func NewIndexService(opts ...option.RequestOption) (r *IndexService)
NewIndexService 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 (*IndexService) Delete ¶
func (r *IndexService) Delete(ctx context.Context, indexName string, body IndexDeleteParams, opts ...option.RequestOption) (res *interface{}, err error)
Deletes the specified Vectorize Index.
func (*IndexService) DeleteByIDs ¶
func (r *IndexService) DeleteByIDs(ctx context.Context, indexName string, params IndexDeleteByIDsParams, opts ...option.RequestOption) (res *IndexDeleteByIDsResponse, err error)
Delete a set of vectors from an index by their vector identifiers.
func (*IndexService) Get ¶
func (r *IndexService) Get(ctx context.Context, indexName string, query IndexGetParams, opts ...option.RequestOption) (res *CreateIndex, err error)
Returns the specified Vectorize Index.
func (*IndexService) GetByIDs ¶
func (r *IndexService) GetByIDs(ctx context.Context, indexName string, params IndexGetByIDsParams, opts ...option.RequestOption) (res *IndexGetByIDsResponse, err error)
Get a set of vectors from an index by their vector identifiers.
func (*IndexService) Info ¶
func (r *IndexService) Info(ctx context.Context, indexName string, query IndexInfoParams, opts ...option.RequestOption) (res *IndexInfoResponse, err error)
Get information about a vectorize index.
func (*IndexService) Insert ¶
func (r *IndexService) Insert(ctx context.Context, indexName string, params IndexInsertParams, opts ...option.RequestOption) (res *IndexInsertResponse, err error)
Inserts vectors into the specified index and returns a mutation id corresponding to the vectors enqueued for insertion.
func (*IndexService) List ¶
func (r *IndexService) List(ctx context.Context, query IndexListParams, opts ...option.RequestOption) (res *pagination.SinglePage[CreateIndex], err error)
Returns a list of Vectorize Indexes
func (*IndexService) ListAutoPaging ¶
func (r *IndexService) ListAutoPaging(ctx context.Context, query IndexListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[CreateIndex]
Returns a list of Vectorize Indexes
func (*IndexService) New ¶
func (r *IndexService) New(ctx context.Context, params IndexNewParams, opts ...option.RequestOption) (res *CreateIndex, err error)
Creates and returns a new Vectorize Index.
func (*IndexService) Query ¶
func (r *IndexService) Query(ctx context.Context, indexName string, params IndexQueryParams, opts ...option.RequestOption) (res *IndexQueryResponse, err error)
Finds vectors closest to a given vector in an index.
func (*IndexService) Upsert ¶
func (r *IndexService) Upsert(ctx context.Context, indexName string, params IndexUpsertParams, opts ...option.RequestOption) (res *IndexUpsertResponse, err error)
Upserts vectors into the specified index, creating them if they do not exist and returns a mutation id corresponding to the vectors enqueued for upsertion.
type IndexUpsertParams ¶
type IndexUpsertParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // ndjson file containing vectors to upsert. Body io.Reader `json:"body,required" format:"binary"` // Behavior for ndjson parse failures. UnparsableBehavior param.Field[IndexUpsertParamsUnparsableBehavior] `query:"unparsable-behavior"` }
func (IndexUpsertParams) MarshalMultipart ¶
func (r IndexUpsertParams) MarshalMultipart() (data []byte, contentType string, err error)
func (IndexUpsertParams) URLQuery ¶
func (r IndexUpsertParams) URLQuery() (v url.Values)
URLQuery serializes IndexUpsertParams's query parameters as `url.Values`.
type IndexUpsertParamsUnparsableBehavior ¶
type IndexUpsertParamsUnparsableBehavior string
Behavior for ndjson parse failures.
const ( IndexUpsertParamsUnparsableBehaviorError IndexUpsertParamsUnparsableBehavior = "error" IndexUpsertParamsUnparsableBehaviorDiscard IndexUpsertParamsUnparsableBehavior = "discard" )
func (IndexUpsertParamsUnparsableBehavior) IsKnown ¶
func (r IndexUpsertParamsUnparsableBehavior) IsKnown() bool
type IndexUpsertResponse ¶
type IndexUpsertResponse struct { // The unique identifier for the async mutation operation containing the changeset. MutationID string `json:"mutationId"` JSON indexUpsertResponseJSON `json:"-"` }
func (*IndexUpsertResponse) UnmarshalJSON ¶
func (r *IndexUpsertResponse) UnmarshalJSON(data []byte) (err error)
type IndexUpsertResponseEnvelope ¶
type IndexUpsertResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result IndexUpsertResponse `json:"result,required,nullable"` // Whether the API call was successful Success IndexUpsertResponseEnvelopeSuccess `json:"success,required"` JSON indexUpsertResponseEnvelopeJSON `json:"-"` }
func (*IndexUpsertResponseEnvelope) UnmarshalJSON ¶
func (r *IndexUpsertResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IndexUpsertResponseEnvelopeSuccess ¶
type IndexUpsertResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IndexUpsertResponseEnvelopeSuccessTrue IndexUpsertResponseEnvelopeSuccess = true
)
func (IndexUpsertResponseEnvelopeSuccess) IsKnown ¶
func (r IndexUpsertResponseEnvelopeSuccess) IsKnown() bool
type MemberRoleParam ¶
type MemberRoleParam = shared.MemberRoleParam
This is an alias to an internal type.
type MemberRolesPermissionsParam ¶
type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam
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 MemberUserParam ¶
type MemberUserParam = shared.MemberUserParam
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 RatePlanParam ¶
type RatePlanParam = shared.RatePlanParam
The rate plan applied to the subscription.
This is an alias to an internal type.
type SortDirection ¶
type SortDirection = shared.SortDirection
Direction to order DNS records in.
This is an alias to an internal type.
type SubscriptionFrequency ¶
type SubscriptionFrequency = shared.SubscriptionFrequency
How often the subscription is renewed automatically.
This is an alias to an internal type.
type SubscriptionParam ¶
type SubscriptionParam = shared.SubscriptionParam
This is an alias to an internal type.
type SubscriptionState ¶
type SubscriptionState = shared.SubscriptionState
The state that the subscription is in.
This is an alias to an internal type.
type VectorizeService ¶
type VectorizeService struct { Options []option.RequestOption Indexes *IndexService }
VectorizeService 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 NewVectorizeService method instead.
func NewVectorizeService ¶
func NewVectorizeService(opts ...option.RequestOption) (r *VectorizeService)
NewVectorizeService 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.