components

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AIVisionGeneralAnalysisData

type AIVisionGeneralAnalysisData struct {
	Responses    []Responses `json:"responses"`
	ModelVersion *int64      `json:"model_version,omitempty"`
}

func (*AIVisionGeneralAnalysisData) GetModelVersion

func (o *AIVisionGeneralAnalysisData) GetModelVersion() *int64

func (*AIVisionGeneralAnalysisData) GetResponses

func (o *AIVisionGeneralAnalysisData) GetResponses() []Responses

type AIVisionModerationAnalysisData

type AIVisionModerationAnalysisData struct {
	Responses    []AIVisionModerationAnalysisDataResponses `json:"responses"`
	ModelVersion *int64                                    `json:"model_version,omitempty"`
}

func (*AIVisionModerationAnalysisData) GetModelVersion

func (o *AIVisionModerationAnalysisData) GetModelVersion() *int64

func (*AIVisionModerationAnalysisData) GetResponses

type AIVisionModerationAnalysisDataResponses

type AIVisionModerationAnalysisDataResponses struct {
	Prompt *string `json:"prompt,omitempty"`
	Value  *Value  `json:"value,omitempty"`
}

func (*AIVisionModerationAnalysisDataResponses) GetPrompt

func (*AIVisionModerationAnalysisDataResponses) GetValue

type AIVisionTaggingAnalysisData

type AIVisionTaggingAnalysisData struct {
	Tags         []Tags `json:"tags"`
	ModelVersion *int64 `json:"model_version,omitempty"`
}

func (*AIVisionTaggingAnalysisData) GetModelVersion

func (o *AIVisionTaggingAnalysisData) GetModelVersion() *int64

func (*AIVisionTaggingAnalysisData) GetTags

func (o *AIVisionTaggingAnalysisData) GetTags() []Tags

type AnalyzeAIVisionGeneralRequest

type AnalyzeAIVisionGeneralRequest struct {
	Source Source `json:"source"`
	// Whether to perform the analysis asynchronously.
	// If true, the response is returned immediately and analysis is done in the background.
	// Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.
	Async *bool `json:"async,omitempty"`
	// The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.
	NotificationURL *string `json:"notification_url,omitempty"`
	// One or more prompts of open questions or tasks with an open answer
	Prompts []string `json:"prompts,omitempty"`
}

func (*AnalyzeAIVisionGeneralRequest) GetAsync

func (o *AnalyzeAIVisionGeneralRequest) GetAsync() *bool

func (*AnalyzeAIVisionGeneralRequest) GetNotificationURL

func (o *AnalyzeAIVisionGeneralRequest) GetNotificationURL() *string

func (*AnalyzeAIVisionGeneralRequest) GetPrompts

func (o *AnalyzeAIVisionGeneralRequest) GetPrompts() []string

func (*AnalyzeAIVisionGeneralRequest) GetSource

func (o *AnalyzeAIVisionGeneralRequest) GetSource() Source

type AnalyzeAIVisionGeneralResponse

type AnalyzeAIVisionGeneralResponse struct {
	Limits    *LimitsObject `json:"limits,omitempty"`
	RequestID *string       `json:"request_id,omitempty"`
	Data      *Data         `json:"data,omitempty"`
}

func (*AnalyzeAIVisionGeneralResponse) GetData

func (o *AnalyzeAIVisionGeneralResponse) GetData() *Data

func (*AnalyzeAIVisionGeneralResponse) GetLimits

func (*AnalyzeAIVisionGeneralResponse) GetRequestID

func (o *AnalyzeAIVisionGeneralResponse) GetRequestID() *string

type AnalyzeAIVisionModerationRequest

type AnalyzeAIVisionModerationRequest struct {
	Source Source `json:"source"`
	// Whether to perform the analysis asynchronously.
	// If true, the response is returned immediately and analysis is done in the background.
	// Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.
	Async *bool `json:"async,omitempty"`
	// The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.
	NotificationURL *string `json:"notification_url,omitempty"`
	// A list of yes/no questions
	RejectionQuestions []string `json:"rejection_questions,omitempty"`
}

func (*AnalyzeAIVisionModerationRequest) GetAsync

func (o *AnalyzeAIVisionModerationRequest) GetAsync() *bool

func (*AnalyzeAIVisionModerationRequest) GetNotificationURL

func (o *AnalyzeAIVisionModerationRequest) GetNotificationURL() *string

func (*AnalyzeAIVisionModerationRequest) GetRejectionQuestions

func (o *AnalyzeAIVisionModerationRequest) GetRejectionQuestions() []string

func (*AnalyzeAIVisionModerationRequest) GetSource

type AnalyzeAIVisionModerationResponse

type AnalyzeAIVisionModerationResponse struct {
	Limits    *LimitsObject                          `json:"limits,omitempty"`
	RequestID *string                                `json:"request_id,omitempty"`
	Data      *AnalyzeAIVisionModerationResponseData `json:"data,omitempty"`
}

func (*AnalyzeAIVisionModerationResponse) GetData

func (*AnalyzeAIVisionModerationResponse) GetLimits

func (*AnalyzeAIVisionModerationResponse) GetRequestID

func (o *AnalyzeAIVisionModerationResponse) GetRequestID() *string

type AnalyzeAIVisionModerationResponseData

type AnalyzeAIVisionModerationResponseData struct {
	Entity   *string                         `json:"entity,omitempty"`
	Analysis *AIVisionModerationAnalysisData `json:"analysis,omitempty"`
}

func (*AnalyzeAIVisionModerationResponseData) GetAnalysis

func (*AnalyzeAIVisionModerationResponseData) GetEntity

type AnalyzeAIVisionTaggingRequest

type AnalyzeAIVisionTaggingRequest struct {
	Source Source `json:"source"`
	// Whether to perform the analysis asynchronously.
	// If true, the response is returned immediately and analysis is done in the background.
	// Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.
	Async *bool `json:"async,omitempty"`
	// The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.
	NotificationURL *string          `json:"notification_url,omitempty"`
	TagDefinitions  []TagDefinitions `json:"tag_definitions"`
}

func (*AnalyzeAIVisionTaggingRequest) GetAsync

func (o *AnalyzeAIVisionTaggingRequest) GetAsync() *bool

func (*AnalyzeAIVisionTaggingRequest) GetNotificationURL

func (o *AnalyzeAIVisionTaggingRequest) GetNotificationURL() *string

func (*AnalyzeAIVisionTaggingRequest) GetSource

func (o *AnalyzeAIVisionTaggingRequest) GetSource() Source

func (*AnalyzeAIVisionTaggingRequest) GetTagDefinitions

func (o *AnalyzeAIVisionTaggingRequest) GetTagDefinitions() []TagDefinitions

type AnalyzeAIVisionTaggingResponse

type AnalyzeAIVisionTaggingResponse struct {
	Limits    *LimitsObject                       `json:"limits,omitempty"`
	RequestID *string                             `json:"request_id,omitempty"`
	Data      *AnalyzeAIVisionTaggingResponseData `json:"data,omitempty"`
}

func (*AnalyzeAIVisionTaggingResponse) GetData

func (*AnalyzeAIVisionTaggingResponse) GetLimits

func (*AnalyzeAIVisionTaggingResponse) GetRequestID

func (o *AnalyzeAIVisionTaggingResponse) GetRequestID() *string

type AnalyzeAIVisionTaggingResponseData

type AnalyzeAIVisionTaggingResponseData struct {
	Entity   *string                      `json:"entity,omitempty"`
	Analysis *AIVisionTaggingAnalysisData `json:"analysis,omitempty"`
}

func (*AnalyzeAIVisionTaggingResponseData) GetAnalysis

func (*AnalyzeAIVisionTaggingResponseData) GetEntity

type AnalyzeCaptioningResponse

type AnalyzeCaptioningResponse struct {
	Limits    *LimitsObject                  `json:"limits,omitempty"`
	RequestID *string                        `json:"request_id,omitempty"`
	Data      *AnalyzeCaptioningResponseData `json:"data,omitempty"`
}

func (*AnalyzeCaptioningResponse) GetData

func (*AnalyzeCaptioningResponse) GetLimits

func (o *AnalyzeCaptioningResponse) GetLimits() *LimitsObject

func (*AnalyzeCaptioningResponse) GetRequestID

func (o *AnalyzeCaptioningResponse) GetRequestID() *string

type AnalyzeCaptioningResponseData

type AnalyzeCaptioningResponseData struct {
	Entity   *string                 `json:"entity,omitempty"`
	Analysis *CaptioningAnalysisData `json:"analysis,omitempty"`
}

func (*AnalyzeCaptioningResponseData) GetAnalysis

func (*AnalyzeCaptioningResponseData) GetEntity

func (o *AnalyzeCaptioningResponseData) GetEntity() *string

type AnalyzeCldFashionResponse

type AnalyzeCldFashionResponse struct {
	Limits    *LimitsObject                  `json:"limits,omitempty"`
	RequestID *string                        `json:"request_id,omitempty"`
	Data      *AnalyzeCldFashionResponseData `json:"data,omitempty"`
}

func (*AnalyzeCldFashionResponse) GetData

func (*AnalyzeCldFashionResponse) GetLimits

func (o *AnalyzeCldFashionResponse) GetLimits() *LimitsObject

func (*AnalyzeCldFashionResponse) GetRequestID

func (o *AnalyzeCldFashionResponse) GetRequestID() *string

type AnalyzeCldFashionResponseData

type AnalyzeCldFashionResponseData struct {
	Entity   *string                 `json:"entity,omitempty"`
	Analysis *CldFashionAnalysisData `json:"analysis,omitempty"`
}

func (*AnalyzeCldFashionResponseData) GetAnalysis

func (*AnalyzeCldFashionResponseData) GetEntity

func (o *AnalyzeCldFashionResponseData) GetEntity() *string

type AnalyzeCldTextResponse

type AnalyzeCldTextResponse struct {
	Limits    *LimitsObject               `json:"limits,omitempty"`
	RequestID *string                     `json:"request_id,omitempty"`
	Data      *AnalyzeCldTextResponseData `json:"data,omitempty"`
}

func (*AnalyzeCldTextResponse) GetData

func (*AnalyzeCldTextResponse) GetLimits

func (o *AnalyzeCldTextResponse) GetLimits() *LimitsObject

func (*AnalyzeCldTextResponse) GetRequestID

func (o *AnalyzeCldTextResponse) GetRequestID() *string

type AnalyzeCldTextResponseData

type AnalyzeCldTextResponseData struct {
	Entity   *string              `json:"entity,omitempty"`
	Analysis *CldTextAnalysisData `json:"analysis,omitempty"`
}

func (*AnalyzeCldTextResponseData) GetAnalysis

func (*AnalyzeCldTextResponseData) GetEntity

func (o *AnalyzeCldTextResponseData) GetEntity() *string

type AnalyzeCocoResponse

type AnalyzeCocoResponse struct {
	Limits    *LimitsObject            `json:"limits,omitempty"`
	RequestID *string                  `json:"request_id,omitempty"`
	Data      *AnalyzeCocoResponseData `json:"data,omitempty"`
}

func (*AnalyzeCocoResponse) GetData

func (*AnalyzeCocoResponse) GetLimits

func (o *AnalyzeCocoResponse) GetLimits() *LimitsObject

func (*AnalyzeCocoResponse) GetRequestID

func (o *AnalyzeCocoResponse) GetRequestID() *string

type AnalyzeCocoResponseData

type AnalyzeCocoResponseData struct {
	Entity   *string           `json:"entity,omitempty"`
	Analysis *CocoAnalysisData `json:"analysis,omitempty"`
}

func (*AnalyzeCocoResponseData) GetAnalysis

func (o *AnalyzeCocoResponseData) GetAnalysis() *CocoAnalysisData

func (*AnalyzeCocoResponseData) GetEntity

func (o *AnalyzeCocoResponseData) GetEntity() *string

type AnalyzeGoogleLogoDetectionResponse

type AnalyzeGoogleLogoDetectionResponse struct {
	Limits    *LimitsObject                           `json:"limits,omitempty"`
	RequestID *string                                 `json:"request_id,omitempty"`
	Data      *AnalyzeGoogleLogoDetectionResponseData `json:"data,omitempty"`
}

func (*AnalyzeGoogleLogoDetectionResponse) GetData

func (*AnalyzeGoogleLogoDetectionResponse) GetLimits

func (*AnalyzeGoogleLogoDetectionResponse) GetRequestID

func (o *AnalyzeGoogleLogoDetectionResponse) GetRequestID() *string

type AnalyzeGoogleLogoDetectionResponseData

type AnalyzeGoogleLogoDetectionResponseData struct {
	Entity   *string                          `json:"entity,omitempty"`
	Analysis *GoogleLogoDetectionAnalysisData `json:"analysis,omitempty"`
}

func (*AnalyzeGoogleLogoDetectionResponseData) GetAnalysis

func (*AnalyzeGoogleLogoDetectionResponseData) GetEntity

type AnalyzeGoogleTaggingResponse

type AnalyzeGoogleTaggingResponse struct {
	Limits    *LimitsObject                     `json:"limits,omitempty"`
	RequestID *string                           `json:"request_id,omitempty"`
	Data      *AnalyzeGoogleTaggingResponseData `json:"data,omitempty"`
}

func (*AnalyzeGoogleTaggingResponse) GetData

func (*AnalyzeGoogleTaggingResponse) GetLimits

func (*AnalyzeGoogleTaggingResponse) GetRequestID

func (o *AnalyzeGoogleTaggingResponse) GetRequestID() *string

type AnalyzeGoogleTaggingResponseData

type AnalyzeGoogleTaggingResponseData struct {
	Entity   *string                    `json:"entity,omitempty"`
	Analysis *GoogleTaggingAnalysisData `json:"analysis,omitempty"`
}

func (*AnalyzeGoogleTaggingResponseData) GetAnalysis

func (*AnalyzeGoogleTaggingResponseData) GetEntity

func (o *AnalyzeGoogleTaggingResponseData) GetEntity() *string

type AnalyzeHumanAnatomyResponse

type AnalyzeHumanAnatomyResponse struct {
	Limits    *LimitsObject                    `json:"limits,omitempty"`
	RequestID *string                          `json:"request_id,omitempty"`
	Data      *AnalyzeHumanAnatomyResponseData `json:"data,omitempty"`
}

func (*AnalyzeHumanAnatomyResponse) GetData

func (*AnalyzeHumanAnatomyResponse) GetLimits

func (o *AnalyzeHumanAnatomyResponse) GetLimits() *LimitsObject

func (*AnalyzeHumanAnatomyResponse) GetRequestID

func (o *AnalyzeHumanAnatomyResponse) GetRequestID() *string

type AnalyzeHumanAnatomyResponseData

type AnalyzeHumanAnatomyResponseData struct {
	Entity   *string                   `json:"entity,omitempty"`
	Analysis *HumanAnatomyAnalysisData `json:"analysis,omitempty"`
}

func (*AnalyzeHumanAnatomyResponseData) GetAnalysis

func (*AnalyzeHumanAnatomyResponseData) GetEntity

func (o *AnalyzeHumanAnatomyResponseData) GetEntity() *string

type AnalyzeImageQualityResponse

type AnalyzeImageQualityResponse struct {
	Limits    *LimitsObject                    `json:"limits,omitempty"`
	RequestID *string                          `json:"request_id,omitempty"`
	Data      *AnalyzeImageQualityResponseData `json:"data,omitempty"`
}

func (*AnalyzeImageQualityResponse) GetData

func (*AnalyzeImageQualityResponse) GetLimits

func (o *AnalyzeImageQualityResponse) GetLimits() *LimitsObject

func (*AnalyzeImageQualityResponse) GetRequestID

func (o *AnalyzeImageQualityResponse) GetRequestID() *string

type AnalyzeImageQualityResponseData

type AnalyzeImageQualityResponseData struct {
	Entity   *string                   `json:"entity,omitempty"`
	Analysis *ImageQualityAnalysisData `json:"analysis,omitempty"`
}

func (*AnalyzeImageQualityResponseData) GetAnalysis

func (*AnalyzeImageQualityResponseData) GetEntity

func (o *AnalyzeImageQualityResponseData) GetEntity() *string

type AnalyzeLvisResponse

type AnalyzeLvisResponse struct {
	Limits    *LimitsObject            `json:"limits,omitempty"`
	RequestID *string                  `json:"request_id,omitempty"`
	Data      *AnalyzeLvisResponseData `json:"data,omitempty"`
}

func (*AnalyzeLvisResponse) GetData

func (*AnalyzeLvisResponse) GetLimits

func (o *AnalyzeLvisResponse) GetLimits() *LimitsObject

func (*AnalyzeLvisResponse) GetRequestID

func (o *AnalyzeLvisResponse) GetRequestID() *string

type AnalyzeLvisResponseData

type AnalyzeLvisResponseData struct {
	Entity   *string           `json:"entity,omitempty"`
	Analysis *LvisAnalysisData `json:"analysis,omitempty"`
}

func (*AnalyzeLvisResponseData) GetAnalysis

func (o *AnalyzeLvisResponseData) GetAnalysis() *LvisAnalysisData

func (*AnalyzeLvisResponseData) GetEntity

func (o *AnalyzeLvisResponseData) GetEntity() *string

type AnalyzeShopClassifierResponse

type AnalyzeShopClassifierResponse struct {
	Limits    *LimitsObject                      `json:"limits,omitempty"`
	RequestID *string                            `json:"request_id,omitempty"`
	Data      *AnalyzeShopClassifierResponseData `json:"data,omitempty"`
}

func (*AnalyzeShopClassifierResponse) GetData

func (*AnalyzeShopClassifierResponse) GetLimits

func (*AnalyzeShopClassifierResponse) GetRequestID

func (o *AnalyzeShopClassifierResponse) GetRequestID() *string

type AnalyzeShopClassifierResponseData

type AnalyzeShopClassifierResponseData struct {
	Entity   *string                     `json:"entity,omitempty"`
	Analysis *ShopClassifierAnalysisData `json:"analysis,omitempty"`
}

func (*AnalyzeShopClassifierResponseData) GetAnalysis

func (*AnalyzeShopClassifierResponseData) GetEntity

func (o *AnalyzeShopClassifierResponseData) GetEntity() *string

type AnalyzeUnidetResponse

type AnalyzeUnidetResponse struct {
	Limits    *LimitsObject              `json:"limits,omitempty"`
	RequestID *string                    `json:"request_id,omitempty"`
	Data      *AnalyzeUnidetResponseData `json:"data,omitempty"`
}

func (*AnalyzeUnidetResponse) GetData

func (*AnalyzeUnidetResponse) GetLimits

func (o *AnalyzeUnidetResponse) GetLimits() *LimitsObject

func (*AnalyzeUnidetResponse) GetRequestID

func (o *AnalyzeUnidetResponse) GetRequestID() *string

type AnalyzeUnidetResponseData

type AnalyzeUnidetResponseData struct {
	Entity   *string             `json:"entity,omitempty"`
	Analysis *UnidetAnalysisData `json:"analysis,omitempty"`
}

func (*AnalyzeUnidetResponseData) GetAnalysis

func (*AnalyzeUnidetResponseData) GetEntity

func (o *AnalyzeUnidetResponseData) GetEntity() *string

type AnalyzeWatermarkDetectionResponse

type AnalyzeWatermarkDetectionResponse struct {
	Limits    *LimitsObject                          `json:"limits,omitempty"`
	RequestID *string                                `json:"request_id,omitempty"`
	Data      *AnalyzeWatermarkDetectionResponseData `json:"data,omitempty"`
}

func (*AnalyzeWatermarkDetectionResponse) GetData

func (*AnalyzeWatermarkDetectionResponse) GetLimits

func (*AnalyzeWatermarkDetectionResponse) GetRequestID

func (o *AnalyzeWatermarkDetectionResponse) GetRequestID() *string

type AnalyzeWatermarkDetectionResponseData

type AnalyzeWatermarkDetectionResponseData struct {
	Entity   *string                         `json:"entity,omitempty"`
	Analysis *WatermarkDetectionAnalysisData `json:"analysis,omitempty"`
}

func (*AnalyzeWatermarkDetectionResponseData) GetAnalysis

func (*AnalyzeWatermarkDetectionResponseData) GetEntity

type AssetID

type AssetID struct {
	// The asset ID to analyze
	AssetID string `json:"asset_id"`
}

func (*AssetID) GetAssetID

func (o *AssetID) GetAssetID() string

type AsyncOperationAcceptedResponse

type AsyncOperationAcceptedResponse struct {
	Data      *AsyncOperationAcceptedResponseData `json:"data,omitempty"`
	RequestID *string                             `json:"request_id,omitempty"`
}

AsyncOperationAcceptedResponse - Analysis accepted

func (*AsyncOperationAcceptedResponse) GetData

func (*AsyncOperationAcceptedResponse) GetRequestID

func (o *AsyncOperationAcceptedResponse) GetRequestID() *string

type AsyncOperationAcceptedResponseData

type AsyncOperationAcceptedResponseData struct {
	TaskID string `json:"task_id"`
	// The status of an async task
	Status TaskStatus `json:"status"`
}

func (*AsyncOperationAcceptedResponseData) GetStatus

func (*AsyncOperationAcceptedResponseData) GetTaskID

type BaseAnalyzeRequest

type BaseAnalyzeRequest struct {
	Source Source `json:"source"`
	// Whether to perform the analysis asynchronously.
	// If true, the response is returned immediately and analysis is done in the background.
	// Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.
	Async *bool `json:"async,omitempty"`
	// The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.
	NotificationURL *string `json:"notification_url,omitempty"`
}

func (*BaseAnalyzeRequest) GetAsync

func (o *BaseAnalyzeRequest) GetAsync() *bool

func (*BaseAnalyzeRequest) GetNotificationURL

func (o *BaseAnalyzeRequest) GetNotificationURL() *string

func (*BaseAnalyzeRequest) GetSource

func (o *BaseAnalyzeRequest) GetSource() Source

type BoundingPoly

type BoundingPoly struct {
	Vertices []Vertices `json:"vertices,omitempty"`
}

func (*BoundingPoly) GetVertices

func (o *BoundingPoly) GetVertices() []Vertices

type CaptioningAnalysisData

type CaptioningAnalysisData struct {
	Data         CaptioningAnalysisDataData `json:"data"`
	ModelVersion *int64                     `json:"model_version,omitempty"`
}

func (*CaptioningAnalysisData) GetData

func (*CaptioningAnalysisData) GetModelVersion

func (o *CaptioningAnalysisData) GetModelVersion() *int64

type CaptioningAnalysisDataData

type CaptioningAnalysisDataData struct {
	Caption string `json:"caption"`
}

func (*CaptioningAnalysisDataData) GetCaption

func (o *CaptioningAnalysisDataData) GetCaption() string

type CldFashionAnalysisData

type CldFashionAnalysisData struct {
	Tags         CldFashionAnalysisDataTags `json:"tags"`
	ModelVersion *int64                     `json:"model_version,omitempty"`
}

func (*CldFashionAnalysisData) GetModelVersion

func (o *CldFashionAnalysisData) GetModelVersion() *int64

func (*CldFashionAnalysisData) GetTags

type CldFashionAnalysisDataTags

type CldFashionAnalysisDataTags struct {
}

type CldTextAnalysisData

type CldTextAnalysisData struct {
	Tags         CldTextAnalysisDataTags `json:"tags"`
	ModelVersion *int64                  `json:"model_version,omitempty"`
}

func (*CldTextAnalysisData) GetModelVersion

func (o *CldTextAnalysisData) GetModelVersion() *int64

func (*CldTextAnalysisData) GetTags

type CldTextAnalysisDataTags

type CldTextAnalysisDataTags struct {
}

type CocoAnalysisData

type CocoAnalysisData struct {
	Tags         CocoAnalysisDataTags `json:"tags"`
	ModelVersion *int64               `json:"model_version,omitempty"`
}

func (*CocoAnalysisData) GetModelVersion

func (o *CocoAnalysisData) GetModelVersion() *int64

func (*CocoAnalysisData) GetTags

type CocoAnalysisDataTags

type CocoAnalysisDataTags struct {
}

type Data

type Data struct {
	Entity   *string                      `json:"entity,omitempty"`
	Analysis *AIVisionGeneralAnalysisData `json:"analysis,omitempty"`
}

func (*Data) GetAnalysis

func (o *Data) GetAnalysis() *AIVisionGeneralAnalysisData

func (*Data) GetEntity

func (o *Data) GetEntity() *string

type Details

type Details struct {
}

type Detections

type Detections struct {
	Name       string  `json:"name"`
	Confidence float64 `json:"confidence"`
}

func (*Detections) GetConfidence

func (o *Detections) GetConfidence() float64

func (*Detections) GetName

func (o *Detections) GetName() string

type ErrorCategory

type ErrorCategory string
const (
	ErrorCategoryUserError      ErrorCategory = "user_error"
	ErrorCategoryAuthError      ErrorCategory = "auth_error"
	ErrorCategoryServerError    ErrorCategory = "server_error"
	ErrorCategoryRateLimitError ErrorCategory = "rate_limit_error"
)

func (ErrorCategory) ToPointer

func (e ErrorCategory) ToPointer() *ErrorCategory

func (*ErrorCategory) UnmarshalJSON

func (e *ErrorCategory) UnmarshalJSON(data []byte) error

type ErrorObject

type ErrorObject struct {
	Category  *ErrorCategory `json:"category,omitempty"`
	Code      *string        `json:"code,omitempty"`
	Message   *string        `json:"message,omitempty"`
	Details   *Details       `json:"details,omitempty"`
	RequestID *string        `json:"request_id,omitempty"`
}

func (*ErrorObject) GetCategory

func (o *ErrorObject) GetCategory() *ErrorCategory

func (*ErrorObject) GetCode

func (o *ErrorObject) GetCode() *string

func (*ErrorObject) GetDetails

func (o *ErrorObject) GetDetails() *Details

func (*ErrorObject) GetMessage

func (o *ErrorObject) GetMessage() *string

func (*ErrorObject) GetRequestID

func (o *ErrorObject) GetRequestID() *string

type Feature

type Feature string
const (
	FeatureGoogleTagging   Feature = "google_tagging"
	FeatureObjectDetection Feature = "object_detection"
	FeatureAiVision        Feature = "ai_vision"
)

func (Feature) ToPointer

func (e Feature) ToPointer() *Feature

func (*Feature) UnmarshalJSON

func (e *Feature) UnmarshalJSON(data []byte) error

type GetTaskStatusResponse

type GetTaskStatusResponse struct {
	Data      *GetTaskStatusResponseData `json:"data,omitempty"`
	RequestID *string                    `json:"request_id,omitempty"`
}

func (*GetTaskStatusResponse) GetData

func (*GetTaskStatusResponse) GetRequestID

func (o *GetTaskStatusResponse) GetRequestID() *string

type GetTaskStatusResponseData

type GetTaskStatusResponseData struct {
	TaskID *string `json:"task_id,omitempty"`
	// The status of an async task
	Status *TaskStatus `json:"status,omitempty"`
}

func (*GetTaskStatusResponseData) GetStatus

func (o *GetTaskStatusResponseData) GetStatus() *TaskStatus

func (*GetTaskStatusResponseData) GetTaskID

func (o *GetTaskStatusResponseData) GetTaskID() *string

type GoogleLogoDetectionAnalysisData

type GoogleLogoDetectionAnalysisData struct {
	LogoAnnotations []LogoAnnotations `json:"logo_annotations"`
}

func (*GoogleLogoDetectionAnalysisData) GetLogoAnnotations

func (o *GoogleLogoDetectionAnalysisData) GetLogoAnnotations() []LogoAnnotations

type GoogleTaggingAnalysisData

type GoogleTaggingAnalysisData struct {
	LabelAnnotations LabelAnnotations `json:"label_annotations"`
}

func (*GoogleTaggingAnalysisData) GetLabelAnnotations

func (o *GoogleTaggingAnalysisData) GetLabelAnnotations() LabelAnnotations

type HTTPMetadata

type HTTPMetadata struct {
	// Raw HTTP response; suitable for custom response parsing
	Response *http.Response `json:"-"`
	// Raw HTTP request; suitable for debugging
	Request *http.Request `json:"-"`
}

func (*HTTPMetadata) GetRequest

func (o *HTTPMetadata) GetRequest() *http.Request

func (*HTTPMetadata) GetResponse

func (o *HTTPMetadata) GetResponse() *http.Response

type HumanAnatomyAnalysisData

type HumanAnatomyAnalysisData struct {
	Tags         HumanAnatomyAnalysisDataTags `json:"tags"`
	ModelVersion *int64                       `json:"model_version,omitempty"`
}

func (*HumanAnatomyAnalysisData) GetModelVersion

func (o *HumanAnatomyAnalysisData) GetModelVersion() *int64

func (*HumanAnatomyAnalysisData) GetTags

type HumanAnatomyAnalysisDataTags

type HumanAnatomyAnalysisDataTags struct {
}

type ImageQualityAnalysisData

type ImageQualityAnalysisData struct {
	Quality      *string  `json:"quality,omitempty"`
	Score        *float64 `json:"score,omitempty"`
	Confidence   *float64 `json:"confidence,omitempty"`
	ModelVersion *int64   `json:"model_version,omitempty"`
}

func (*ImageQualityAnalysisData) GetConfidence

func (o *ImageQualityAnalysisData) GetConfidence() *float64

func (*ImageQualityAnalysisData) GetModelVersion

func (o *ImageQualityAnalysisData) GetModelVersion() *int64

func (*ImageQualityAnalysisData) GetQuality

func (o *ImageQualityAnalysisData) GetQuality() *string

func (*ImageQualityAnalysisData) GetScore

func (o *ImageQualityAnalysisData) GetScore() *float64

type LabelAnnotations

type LabelAnnotations struct {
	Labels []Labels `json:"labels,omitempty"`
}

func (*LabelAnnotations) GetLabels

func (o *LabelAnnotations) GetLabels() []Labels

type Labels

type Labels struct {
	Label string  `json:"label"`
	Score float64 `json:"score"`
}

func (*Labels) GetLabel

func (o *Labels) GetLabel() string

func (*Labels) GetScore

func (o *Labels) GetScore() float64

type Limit

type Limit struct {
	Type Feature `json:"type"`
	// The amount of quota used by the current request
	UsedByRequest *int64 `json:"used_by_request,omitempty"`
	// The remaining quota
	Remaining *int64 `json:"remaining,omitempty"`
	// The total quota limit
	Limit *int64 `json:"limit,omitempty"`
	// Time in UTC when the limit will be reset
	ResetTime *time.Time `json:"reset_time,omitempty"`
}

func (*Limit) GetLimit

func (o *Limit) GetLimit() *int64

func (*Limit) GetRemaining

func (o *Limit) GetRemaining() *int64

func (*Limit) GetResetTime

func (o *Limit) GetResetTime() *time.Time

func (*Limit) GetType

func (o *Limit) GetType() Feature

func (*Limit) GetUsedByRequest

func (o *Limit) GetUsedByRequest() *int64

func (Limit) MarshalJSON

func (l Limit) MarshalJSON() ([]byte, error)

func (*Limit) UnmarshalJSON

func (l *Limit) UnmarshalJSON(data []byte) error

type LimitsObject

type LimitsObject struct {
	Items []Limit `json:"items,omitempty"`
}

func (*LimitsObject) GetItems

func (o *LimitsObject) GetItems() []Limit

type LogoAnnotations

type LogoAnnotations struct {
	Mid          *string      `json:"mid,omitempty"`
	Description  string       `json:"description"`
	Score        float64      `json:"score"`
	BoundingPoly BoundingPoly `json:"bounding_poly"`
}

func (*LogoAnnotations) GetBoundingPoly

func (o *LogoAnnotations) GetBoundingPoly() BoundingPoly

func (*LogoAnnotations) GetDescription

func (o *LogoAnnotations) GetDescription() string

func (*LogoAnnotations) GetMid

func (o *LogoAnnotations) GetMid() *string

func (*LogoAnnotations) GetScore

func (o *LogoAnnotations) GetScore() float64

type LvisAnalysisData

type LvisAnalysisData struct {
	Tags         LvisAnalysisDataTags `json:"tags"`
	ModelVersion *int64               `json:"model_version,omitempty"`
}

func (*LvisAnalysisData) GetModelVersion

func (o *LvisAnalysisData) GetModelVersion() *int64

func (*LvisAnalysisData) GetTags

type LvisAnalysisDataTags

type LvisAnalysisDataTags struct {
}

type Responses

type Responses struct {
	Value *string `json:"value,omitempty"`
}

func (*Responses) GetValue

func (o *Responses) GetValue() *string

type SchemeCloudinaryAuth

type SchemeCloudinaryAuth struct {
	APIKey    string `json:"api_key" security:"name=api_key"`
	APISecret string `json:"api_secret" security:"name=api_secret"`
}

func (*SchemeCloudinaryAuth) GetAPIKey

func (o *SchemeCloudinaryAuth) GetAPIKey() string

func (*SchemeCloudinaryAuth) GetAPISecret

func (o *SchemeCloudinaryAuth) GetAPISecret() string

type Security

type Security struct {
	CloudinaryAuth *SchemeCloudinaryAuth `security:"scheme,type=http,subtype=custom"`
	OAuth2         *string               `security:"scheme,type=oauth2,name=Authorization"`
}

func (*Security) GetCloudinaryAuth

func (o *Security) GetCloudinaryAuth() *SchemeCloudinaryAuth

func (*Security) GetOAuth2

func (o *Security) GetOAuth2() *string

type ShopClassifierAnalysisData

type ShopClassifierAnalysisData struct {
	Tags         ShopClassifierAnalysisDataTags `json:"tags"`
	ModelVersion *int64                         `json:"model_version,omitempty"`
}

func (*ShopClassifierAnalysisData) GetModelVersion

func (o *ShopClassifierAnalysisData) GetModelVersion() *int64

func (*ShopClassifierAnalysisData) GetTags

type ShopClassifierAnalysisDataTags

type ShopClassifierAnalysisDataTags struct {
}

type Source

type Source struct {
	URI     *URI     `queryParam:"inline"`
	AssetID *AssetID `queryParam:"inline"`

	Type SourceType
}

func CreateSourceAssetID

func CreateSourceAssetID(assetID AssetID) Source

func CreateSourceURI

func CreateSourceURI(uri URI) Source

func (Source) MarshalJSON

func (u Source) MarshalJSON() ([]byte, error)

func (*Source) UnmarshalJSON

func (u *Source) UnmarshalJSON(data []byte) error

type SourceType

type SourceType string
const (
	SourceTypeURI     SourceType = "uri"
	SourceTypeAssetID SourceType = "asset_id"
)

type TagDefinitions

type TagDefinitions struct {
	// The name of the tag to apply. This can be any string and does not affect the decision process
	Name string `json:"name"`
	// A description to be used by the AI to determine whether the tag should be applied
	Description string `json:"description"`
}

func (*TagDefinitions) GetDescription

func (o *TagDefinitions) GetDescription() string

func (*TagDefinitions) GetName

func (o *TagDefinitions) GetName() string

type Tags

type Tags struct {
	Name *string `json:"name,omitempty"`
}

func (*Tags) GetName

func (o *Tags) GetName() *string

type TaskStatus

type TaskStatus string

TaskStatus - The status of an async task

const (
	TaskStatusPending    TaskStatus = "pending"
	TaskStatusProcessing TaskStatus = "processing"
	TaskStatusCompleted  TaskStatus = "completed"
	TaskStatusFailed     TaskStatus = "failed"
)

func (TaskStatus) ToPointer

func (e TaskStatus) ToPointer() *TaskStatus

func (*TaskStatus) UnmarshalJSON

func (e *TaskStatus) UnmarshalJSON(data []byte) error

type URI

type URI struct {
	// The URI of the asset to analyze
	URI string `json:"uri"`
}

func (*URI) GetURI

func (o *URI) GetURI() string

type UnidetAnalysisData

type UnidetAnalysisData struct {
	Tags         UnidetAnalysisDataTags `json:"tags"`
	ModelVersion *int64                 `json:"model_version,omitempty"`
}

func (*UnidetAnalysisData) GetModelVersion

func (o *UnidetAnalysisData) GetModelVersion() *int64

func (*UnidetAnalysisData) GetTags

type UnidetAnalysisDataTags

type UnidetAnalysisDataTags struct {
}

type Value

type Value string
const (
	ValueYes     Value = "yes"
	ValueNo      Value = "no"
	ValueUnknown Value = "unknown"
)

func (Value) ToPointer

func (e Value) ToPointer() *Value

func (*Value) UnmarshalJSON

func (e *Value) UnmarshalJSON(data []byte) error

type Vertices

type Vertices struct {
	X *int64 `json:"x,omitempty"`
	Y *int64 `json:"y,omitempty"`
}

func (*Vertices) GetX

func (o *Vertices) GetX() *int64

func (*Vertices) GetY

func (o *Vertices) GetY() *int64

type WatermarkDetectionAnalysisData

type WatermarkDetectionAnalysisData struct {
	Detections   []Detections `json:"detections,omitempty"`
	ModelVersion *int64       `json:"model_version,omitempty"`
}

func (*WatermarkDetectionAnalysisData) GetDetections

func (o *WatermarkDetectionAnalysisData) GetDetections() []Detections

func (*WatermarkDetectionAnalysisData) GetModelVersion

func (o *WatermarkDetectionAnalysisData) GetModelVersion() *int64

Jump to

Keyboard shortcuts

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