client

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

This file is auto-generated, don't edit it. Thanks. *

*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	openapi.Client
}

func NewClient

func NewClient(config *openapi.Config) (*Client, error)

func (*Client) CreateModelAsyncPredict added in v1.0.5

func (client *Client) CreateModelAsyncPredict(request *CreateModelAsyncPredictRequest) (_result *CreateModelAsyncPredictResponse, _err error)

func (*Client) CreateModelAsyncPredictWithOptions added in v1.0.5

func (client *Client) CreateModelAsyncPredictWithOptions(request *CreateModelAsyncPredictRequest, runtime *util.RuntimeOptions) (_result *CreateModelAsyncPredictResponse, _err error)

func (*Client) GetEndpoint

func (client *Client) GetEndpoint(productId *string, regionId *string, endpointRule *string, network *string, suffix *string, endpointMap map[string]*string, endpoint *string) (_result *string, _err error)

func (*Client) GetModelAsyncPredict added in v1.0.5

func (client *Client) GetModelAsyncPredict(request *GetModelAsyncPredictRequest) (_result *GetModelAsyncPredictResponse, _err error)

func (*Client) GetModelAsyncPredictWithOptions added in v1.0.5

func (client *Client) GetModelAsyncPredictWithOptions(request *GetModelAsyncPredictRequest, runtime *util.RuntimeOptions) (_result *GetModelAsyncPredictResponse, _err error)

func (*Client) Init

func (client *Client) Init(config *openapi.Config) (_err error)

func (*Client) PredictClassifierModel

func (client *Client) PredictClassifierModel(request *PredictClassifierModelRequest) (_result *PredictClassifierModelResponse, _err error)

func (*Client) PredictClassifierModelWithOptions

func (client *Client) PredictClassifierModelWithOptions(request *PredictClassifierModelRequest, runtime *util.RuntimeOptions) (_result *PredictClassifierModelResponse, _err error)

func (*Client) PredictModel

func (client *Client) PredictModel(request *PredictModelRequest) (_result *PredictModelResponse, _err error)

func (*Client) PredictModelWithOptions

func (client *Client) PredictModelWithOptions(request *PredictModelRequest, runtime *util.RuntimeOptions) (_result *PredictModelResponse, _err error)

func (*Client) PredictPreTrainModel added in v1.0.11

func (client *Client) PredictPreTrainModel(request *PredictPreTrainModelRequest) (_result *PredictPreTrainModelResponse, _err error)

func (*Client) PredictPreTrainModelWithOptions added in v1.0.11

func (client *Client) PredictPreTrainModelWithOptions(request *PredictPreTrainModelRequest, runtime *util.RuntimeOptions) (_result *PredictPreTrainModelResponse, _err error)

func (*Client) PredictTemplateModel

func (client *Client) PredictTemplateModel(request *PredictTemplateModelRequest) (_result *PredictTemplateModelResponse, _err error)

func (*Client) PredictTemplateModelWithOptions

func (client *Client) PredictTemplateModelWithOptions(request *PredictTemplateModelRequest, runtime *util.RuntimeOptions) (_result *PredictTemplateModelResponse, _err error)

type CreateModelAsyncPredictRequest added in v1.0.5

type CreateModelAsyncPredictRequest struct {
	BinaryToText   *bool   `json:"BinaryToText,omitempty" xml:"BinaryToText,omitempty"`
	Body           *string `json:"Body,omitempty" xml:"Body,omitempty"`
	Content        *string `json:"Content,omitempty" xml:"Content,omitempty"`
	ModelId        *int64  `json:"ModelId,omitempty" xml:"ModelId,omitempty"`
	ModelVersion   *string `json:"ModelVersion,omitempty" xml:"ModelVersion,omitempty"`
	ServiceName    *string `json:"ServiceName,omitempty" xml:"ServiceName,omitempty"`
	ServiceVersion *string `json:"ServiceVersion,omitempty" xml:"ServiceVersion,omitempty"`
}

func (CreateModelAsyncPredictRequest) GoString added in v1.0.5

func (*CreateModelAsyncPredictRequest) SetBinaryToText added in v1.0.5

func (*CreateModelAsyncPredictRequest) SetBody added in v1.0.6

func (*CreateModelAsyncPredictRequest) SetContent added in v1.0.5

func (*CreateModelAsyncPredictRequest) SetModelId added in v1.0.5

func (*CreateModelAsyncPredictRequest) SetModelVersion added in v1.0.5

func (*CreateModelAsyncPredictRequest) SetServiceName added in v1.0.5

func (*CreateModelAsyncPredictRequest) SetServiceVersion added in v1.0.5

func (CreateModelAsyncPredictRequest) String added in v1.0.5

type CreateModelAsyncPredictResponse added in v1.0.5

type CreateModelAsyncPredictResponse struct {
	Headers    map[string]*string                   `json:"headers,omitempty" xml:"headers,omitempty" require:"true"`
	StatusCode *int32                               `json:"statusCode,omitempty" xml:"statusCode,omitempty" require:"true"`
	Body       *CreateModelAsyncPredictResponseBody `json:"body,omitempty" xml:"body,omitempty" require:"true"`
}

func (CreateModelAsyncPredictResponse) GoString added in v1.0.5

func (*CreateModelAsyncPredictResponse) SetBody added in v1.0.5

func (*CreateModelAsyncPredictResponse) SetHeaders added in v1.0.5

func (*CreateModelAsyncPredictResponse) SetStatusCode added in v1.0.5

func (CreateModelAsyncPredictResponse) String added in v1.0.5

type CreateModelAsyncPredictResponseBody added in v1.0.5

type CreateModelAsyncPredictResponseBody struct {
	Code    *int32  `json:"Code,omitempty" xml:"Code,omitempty"`
	Data    *string `json:"Data,omitempty" xml:"Data,omitempty"`
	Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
	// Id of the request
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CreateModelAsyncPredictResponseBody) GoString added in v1.0.5

func (*CreateModelAsyncPredictResponseBody) SetCode added in v1.0.5

func (*CreateModelAsyncPredictResponseBody) SetData added in v1.0.5

func (*CreateModelAsyncPredictResponseBody) SetMessage added in v1.0.5

func (*CreateModelAsyncPredictResponseBody) SetRequestId added in v1.0.5

func (CreateModelAsyncPredictResponseBody) String added in v1.0.5

type GetModelAsyncPredictRequest added in v1.0.5

type GetModelAsyncPredictRequest struct {
	AsyncPredictId *int64 `json:"AsyncPredictId,omitempty" xml:"AsyncPredictId,omitempty"`
}

func (GetModelAsyncPredictRequest) GoString added in v1.0.5

func (s GetModelAsyncPredictRequest) GoString() string

func (*GetModelAsyncPredictRequest) SetAsyncPredictId added in v1.0.5

func (GetModelAsyncPredictRequest) String added in v1.0.5

type GetModelAsyncPredictResponse added in v1.0.5

type GetModelAsyncPredictResponse struct {
	Headers    map[string]*string                `json:"headers,omitempty" xml:"headers,omitempty" require:"true"`
	StatusCode *int32                            `json:"statusCode,omitempty" xml:"statusCode,omitempty" require:"true"`
	Body       *GetModelAsyncPredictResponseBody `json:"body,omitempty" xml:"body,omitempty" require:"true"`
}

func (GetModelAsyncPredictResponse) GoString added in v1.0.5

func (s GetModelAsyncPredictResponse) GoString() string

func (*GetModelAsyncPredictResponse) SetBody added in v1.0.5

func (*GetModelAsyncPredictResponse) SetHeaders added in v1.0.5

func (*GetModelAsyncPredictResponse) SetStatusCode added in v1.0.5

func (GetModelAsyncPredictResponse) String added in v1.0.5

type GetModelAsyncPredictResponseBody added in v1.0.5

type GetModelAsyncPredictResponseBody struct {
	Code    *int32  `json:"Code,omitempty" xml:"Code,omitempty"`
	Data    *string `json:"Data,omitempty" xml:"Data,omitempty"`
	Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
	// Id of the request
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (GetModelAsyncPredictResponseBody) GoString added in v1.0.5

func (*GetModelAsyncPredictResponseBody) SetCode added in v1.0.5

func (*GetModelAsyncPredictResponseBody) SetData added in v1.0.5

func (*GetModelAsyncPredictResponseBody) SetMessage added in v1.0.5

func (*GetModelAsyncPredictResponseBody) SetRequestId added in v1.0.5

func (GetModelAsyncPredictResponseBody) String added in v1.0.5

type PredictClassifierModelRequest

type PredictClassifierModelRequest struct {
	AutoPrediction *bool   `json:"AutoPrediction,omitempty" xml:"AutoPrediction,omitempty"`
	BinaryToText   *bool   `json:"BinaryToText,omitempty" xml:"BinaryToText,omitempty"`
	Body           *string `json:"Body,omitempty" xml:"Body,omitempty"`
	ClassifierId   *int64  `json:"ClassifierId,omitempty" xml:"ClassifierId,omitempty"`
	Content        *string `json:"Content,omitempty" xml:"Content,omitempty"`
}

func (PredictClassifierModelRequest) GoString

func (*PredictClassifierModelRequest) SetAutoPrediction

func (*PredictClassifierModelRequest) SetBinaryToText added in v1.0.13

func (*PredictClassifierModelRequest) SetBody added in v1.0.6

func (*PredictClassifierModelRequest) SetClassifierId

func (*PredictClassifierModelRequest) SetContent

func (PredictClassifierModelRequest) String

type PredictClassifierModelResponse

type PredictClassifierModelResponse struct {
	Headers    map[string]*string                  `json:"headers,omitempty" xml:"headers,omitempty" require:"true"`
	StatusCode *int32                              `json:"statusCode,omitempty" xml:"statusCode,omitempty" require:"true"`
	Body       *PredictClassifierModelResponseBody `json:"body,omitempty" xml:"body,omitempty" require:"true"`
}

func (PredictClassifierModelResponse) GoString

func (*PredictClassifierModelResponse) SetHeaders

func (*PredictClassifierModelResponse) SetStatusCode

func (PredictClassifierModelResponse) String

type PredictClassifierModelResponseBody

type PredictClassifierModelResponseBody struct {
	Code    *int32                 `json:"Code,omitempty" xml:"Code,omitempty"`
	Data    map[string]interface{} `json:"Data,omitempty" xml:"Data,omitempty"`
	Message *string                `json:"Message,omitempty" xml:"Message,omitempty"`
	// Id of the request
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (PredictClassifierModelResponseBody) GoString

func (*PredictClassifierModelResponseBody) SetCode

func (*PredictClassifierModelResponseBody) SetData

func (*PredictClassifierModelResponseBody) SetMessage

func (*PredictClassifierModelResponseBody) SetRequestId

func (PredictClassifierModelResponseBody) String

type PredictModelRequest

type PredictModelRequest struct {
	BinaryToText *bool   `json:"BinaryToText,omitempty" xml:"BinaryToText,omitempty"`
	Body         *string `json:"Body,omitempty" xml:"Body,omitempty"`
	Content      *string `json:"Content,omitempty" xml:"Content,omitempty"`
	ModelId      *int64  `json:"ModelId,omitempty" xml:"ModelId,omitempty"`
	ModelVersion *string `json:"ModelVersion,omitempty" xml:"ModelVersion,omitempty"`
}

func (PredictModelRequest) GoString

func (s PredictModelRequest) GoString() string

func (*PredictModelRequest) SetBinaryToText

func (s *PredictModelRequest) SetBinaryToText(v bool) *PredictModelRequest

func (*PredictModelRequest) SetBody added in v1.0.6

func (*PredictModelRequest) SetContent

func (*PredictModelRequest) SetModelId

func (s *PredictModelRequest) SetModelId(v int64) *PredictModelRequest

func (*PredictModelRequest) SetModelVersion

func (s *PredictModelRequest) SetModelVersion(v string) *PredictModelRequest

func (PredictModelRequest) String

func (s PredictModelRequest) String() string

type PredictModelResponse

type PredictModelResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty" require:"true"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty" require:"true"`
	Body       *PredictModelResponseBody `json:"body,omitempty" xml:"body,omitempty" require:"true"`
}

func (PredictModelResponse) GoString

func (s PredictModelResponse) GoString() string

func (*PredictModelResponse) SetBody

func (*PredictModelResponse) SetHeaders

func (s *PredictModelResponse) SetHeaders(v map[string]*string) *PredictModelResponse

func (*PredictModelResponse) SetStatusCode

func (s *PredictModelResponse) SetStatusCode(v int32) *PredictModelResponse

func (PredictModelResponse) String

func (s PredictModelResponse) String() string

type PredictModelResponseBody

type PredictModelResponseBody struct {
	Code    *int32                 `json:"Code,omitempty" xml:"Code,omitempty"`
	Data    map[string]interface{} `json:"Data,omitempty" xml:"Data,omitempty"`
	Message *string                `json:"Message,omitempty" xml:"Message,omitempty"`
	// Id of the request
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (PredictModelResponseBody) GoString

func (s PredictModelResponseBody) GoString() string

func (*PredictModelResponseBody) SetCode

func (*PredictModelResponseBody) SetData

func (s *PredictModelResponseBody) SetData(v map[string]interface{}) *PredictModelResponseBody

func (*PredictModelResponseBody) SetMessage

func (*PredictModelResponseBody) SetRequestId

func (PredictModelResponseBody) String

func (s PredictModelResponseBody) String() string

type PredictPreTrainModelRequest added in v1.0.11

type PredictPreTrainModelRequest struct {
	BinaryToText   *bool   `json:"BinaryToText,omitempty" xml:"BinaryToText,omitempty"`
	Body           *string `json:"Body,omitempty" xml:"Body,omitempty"`
	Content        *string `json:"Content,omitempty" xml:"Content,omitempty"`
	ServiceName    *string `json:"ServiceName,omitempty" xml:"ServiceName,omitempty"`
	ServiceVersion *string `json:"ServiceVersion,omitempty" xml:"ServiceVersion,omitempty"`
}

func (PredictPreTrainModelRequest) GoString added in v1.0.11

func (s PredictPreTrainModelRequest) GoString() string

func (*PredictPreTrainModelRequest) SetBinaryToText added in v1.0.11

func (*PredictPreTrainModelRequest) SetBody added in v1.0.11

func (*PredictPreTrainModelRequest) SetContent added in v1.0.11

func (*PredictPreTrainModelRequest) SetServiceName added in v1.0.11

func (*PredictPreTrainModelRequest) SetServiceVersion added in v1.0.11

func (PredictPreTrainModelRequest) String added in v1.0.11

type PredictPreTrainModelResponse added in v1.0.11

type PredictPreTrainModelResponse struct {
	Headers    map[string]*string                `json:"headers,omitempty" xml:"headers,omitempty" require:"true"`
	StatusCode *int32                            `json:"statusCode,omitempty" xml:"statusCode,omitempty" require:"true"`
	Body       *PredictPreTrainModelResponseBody `json:"body,omitempty" xml:"body,omitempty" require:"true"`
}

func (PredictPreTrainModelResponse) GoString added in v1.0.11

func (s PredictPreTrainModelResponse) GoString() string

func (*PredictPreTrainModelResponse) SetBody added in v1.0.11

func (*PredictPreTrainModelResponse) SetHeaders added in v1.0.11

func (*PredictPreTrainModelResponse) SetStatusCode added in v1.0.11

func (PredictPreTrainModelResponse) String added in v1.0.11

type PredictPreTrainModelResponseBody added in v1.0.11

type PredictPreTrainModelResponseBody struct {
	Code    *int32                 `json:"Code,omitempty" xml:"Code,omitempty"`
	Data    map[string]interface{} `json:"Data,omitempty" xml:"Data,omitempty"`
	Message *string                `json:"Message,omitempty" xml:"Message,omitempty"`
	// Id of the request
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (PredictPreTrainModelResponseBody) GoString added in v1.0.11

func (*PredictPreTrainModelResponseBody) SetCode added in v1.0.11

func (*PredictPreTrainModelResponseBody) SetData added in v1.0.11

func (*PredictPreTrainModelResponseBody) SetMessage added in v1.0.11

func (*PredictPreTrainModelResponseBody) SetRequestId added in v1.0.11

func (PredictPreTrainModelResponseBody) String added in v1.0.11

type PredictTemplateModelRequest

type PredictTemplateModelRequest struct {
	BinaryToText *bool   `json:"BinaryToText,omitempty" xml:"BinaryToText,omitempty"`
	Body         *string `json:"Body,omitempty" xml:"Body,omitempty"`
	Content      *string `json:"Content,omitempty" xml:"Content,omitempty"`
	TaskId       *int64  `json:"TaskId,omitempty" xml:"TaskId,omitempty"`
}

func (PredictTemplateModelRequest) GoString

func (s PredictTemplateModelRequest) GoString() string

func (*PredictTemplateModelRequest) SetBinaryToText added in v1.0.4

func (*PredictTemplateModelRequest) SetBody added in v1.0.6

func (*PredictTemplateModelRequest) SetContent

func (*PredictTemplateModelRequest) SetTaskId added in v1.0.1

func (PredictTemplateModelRequest) String

type PredictTemplateModelResponse

type PredictTemplateModelResponse struct {
	Headers    map[string]*string                `json:"headers,omitempty" xml:"headers,omitempty" require:"true"`
	StatusCode *int32                            `json:"statusCode,omitempty" xml:"statusCode,omitempty" require:"true"`
	Body       *PredictTemplateModelResponseBody `json:"body,omitempty" xml:"body,omitempty" require:"true"`
}

func (PredictTemplateModelResponse) GoString

func (s PredictTemplateModelResponse) GoString() string

func (*PredictTemplateModelResponse) SetBody

func (*PredictTemplateModelResponse) SetHeaders

func (*PredictTemplateModelResponse) SetStatusCode

func (PredictTemplateModelResponse) String

type PredictTemplateModelResponseBody

type PredictTemplateModelResponseBody struct {
	Code    *string                `json:"Code,omitempty" xml:"Code,omitempty"`
	Data    map[string]interface{} `json:"Data,omitempty" xml:"Data,omitempty"`
	Message *string                `json:"Message,omitempty" xml:"Message,omitempty"`
	// Id of the request
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (PredictTemplateModelResponseBody) GoString

func (*PredictTemplateModelResponseBody) SetCode

func (*PredictTemplateModelResponseBody) SetData

func (*PredictTemplateModelResponseBody) SetMessage

func (*PredictTemplateModelResponseBody) SetRequestId

func (PredictTemplateModelResponseBody) String

Jump to

Keyboard shortcuts

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