client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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) 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) Init

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

func (*Client) PredictModel

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

@param request - PredictModelRequest

@return PredictModelResponse

func (*Client) PredictModelWithOptions

func (client *Client) PredictModelWithOptions(request *PredictModelRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *PredictModelResponse, _err error)

@param request - PredictModelRequest

@param headers - map

@param runtime - runtime options for this request RuntimeOptions

@return PredictModelResponse

type PredictModelRequest

type PredictModelRequest struct {
	// This parameter is required.
	Content *string `json:"Content,omitempty" xml:"Content,omitempty"`
	// This parameter is required.
	ModelId *int64 `json:"ModelId,omitempty" xml:"ModelId,omitempty"`
}

func (PredictModelRequest) GoString

func (s PredictModelRequest) GoString() string

func (*PredictModelRequest) SetContent

func (*PredictModelRequest) SetModelId

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

func (PredictModelRequest) String

func (s PredictModelRequest) String() string

type PredictModelResponse

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

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      *string `json:"Code,omitempty" xml:"Code,omitempty"`
	Data      *string `json:"Data,omitempty" xml:"Data,omitempty"`
	Message   *string `json:"Message,omitempty" xml:"Message,omitempty"`
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	Success   *string `json:"Success,omitempty" xml:"Success,omitempty"`
}

func (PredictModelResponseBody) GoString

func (s PredictModelResponseBody) GoString() string

func (*PredictModelResponseBody) SetCode

func (*PredictModelResponseBody) SetData

func (*PredictModelResponseBody) SetMessage

func (*PredictModelResponseBody) SetRequestId

func (*PredictModelResponseBody) SetSuccess

func (PredictModelResponseBody) String

func (s PredictModelResponseBody) String() string

Jump to

Keyboard shortcuts

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