client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 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) TranslateECommerce

func (client *Client) TranslateECommerce(request *TranslateECommerceRequest) (_result *TranslateECommerceResponse, _err error)

func (*Client) TranslateECommerceWithOptions

func (client *Client) TranslateECommerceWithOptions(request *TranslateECommerceRequest, runtime *util.RuntimeOptions) (_result *TranslateECommerceResponse, _err error)

func (*Client) TranslateGeneral

func (client *Client) TranslateGeneral(request *TranslateGeneralRequest) (_result *TranslateGeneralResponse, _err error)

func (*Client) TranslateGeneralWithOptions

func (client *Client) TranslateGeneralWithOptions(request *TranslateGeneralRequest, runtime *util.RuntimeOptions) (_result *TranslateGeneralResponse, _err error)

type TranslateECommerceRequest

type TranslateECommerceRequest struct {
	FormatType     *string `json:"FormatType,omitempty" xml:"FormatType,omitempty"`
	Scene          *string `json:"Scene,omitempty" xml:"Scene,omitempty"`
	SourceLanguage *string `json:"SourceLanguage,omitempty" xml:"SourceLanguage,omitempty"`
	SourceText     *string `json:"SourceText,omitempty" xml:"SourceText,omitempty"`
	TargetLanguage *string `json:"TargetLanguage,omitempty" xml:"TargetLanguage,omitempty"`
}

func (TranslateECommerceRequest) GoString

func (s TranslateECommerceRequest) GoString() string

func (*TranslateECommerceRequest) SetFormatType

func (*TranslateECommerceRequest) SetScene

func (*TranslateECommerceRequest) SetSourceLanguage

func (*TranslateECommerceRequest) SetSourceText

func (*TranslateECommerceRequest) SetTargetLanguage

func (TranslateECommerceRequest) String

func (s TranslateECommerceRequest) String() string

type TranslateECommerceResponse

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

func (TranslateECommerceResponse) GoString

func (s TranslateECommerceResponse) GoString() string

func (*TranslateECommerceResponse) SetBody

func (*TranslateECommerceResponse) SetHeaders

func (*TranslateECommerceResponse) SetStatusCode

func (TranslateECommerceResponse) String

type TranslateECommerceResponseBody

type TranslateECommerceResponseBody struct {
	Code      *int32                              `json:"Code,omitempty" xml:"Code,omitempty"`
	Data      *TranslateECommerceResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
	Message   *string                             `json:"Message,omitempty" xml:"Message,omitempty"`
	RequestId *string                             `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (TranslateECommerceResponseBody) GoString

func (*TranslateECommerceResponseBody) SetCode

func (*TranslateECommerceResponseBody) SetMessage

func (*TranslateECommerceResponseBody) SetRequestId

func (TranslateECommerceResponseBody) String

type TranslateECommerceResponseBodyData

type TranslateECommerceResponseBodyData struct {
	Translated *string `json:"Translated,omitempty" xml:"Translated,omitempty"`
}

func (TranslateECommerceResponseBodyData) GoString

func (*TranslateECommerceResponseBodyData) SetTranslated

func (TranslateECommerceResponseBodyData) String

type TranslateGeneralRequest

type TranslateGeneralRequest struct {
	FormatType     *string `json:"FormatType,omitempty" xml:"FormatType,omitempty"`
	Scene          *string `json:"Scene,omitempty" xml:"Scene,omitempty"`
	SourceLanguage *string `json:"SourceLanguage,omitempty" xml:"SourceLanguage,omitempty"`
	SourceText     *string `json:"SourceText,omitempty" xml:"SourceText,omitempty"`
	TargetLanguage *string `json:"TargetLanguage,omitempty" xml:"TargetLanguage,omitempty"`
}

func (TranslateGeneralRequest) GoString

func (s TranslateGeneralRequest) GoString() string

func (*TranslateGeneralRequest) SetFormatType

func (*TranslateGeneralRequest) SetScene

func (*TranslateGeneralRequest) SetSourceLanguage

func (s *TranslateGeneralRequest) SetSourceLanguage(v string) *TranslateGeneralRequest

func (*TranslateGeneralRequest) SetSourceText

func (*TranslateGeneralRequest) SetTargetLanguage

func (s *TranslateGeneralRequest) SetTargetLanguage(v string) *TranslateGeneralRequest

func (TranslateGeneralRequest) String

func (s TranslateGeneralRequest) String() string

type TranslateGeneralResponse

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

func (TranslateGeneralResponse) GoString

func (s TranslateGeneralResponse) GoString() string

func (*TranslateGeneralResponse) SetBody

func (*TranslateGeneralResponse) SetHeaders

func (*TranslateGeneralResponse) SetStatusCode

func (TranslateGeneralResponse) String

func (s TranslateGeneralResponse) String() string

type TranslateGeneralResponseBody

type TranslateGeneralResponseBody struct {
	Code      *int32                            `json:"Code,omitempty" xml:"Code,omitempty"`
	Data      *TranslateGeneralResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
	Message   *string                           `json:"Message,omitempty" xml:"Message,omitempty"`
	RequestId *string                           `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (TranslateGeneralResponseBody) GoString

func (s TranslateGeneralResponseBody) GoString() string

func (*TranslateGeneralResponseBody) SetCode

func (*TranslateGeneralResponseBody) SetData

func (*TranslateGeneralResponseBody) SetMessage

func (*TranslateGeneralResponseBody) SetRequestId

func (TranslateGeneralResponseBody) String

type TranslateGeneralResponseBodyData

type TranslateGeneralResponseBodyData struct {
	Translated *string `json:"Translated,omitempty" xml:"Translated,omitempty"`
}

func (TranslateGeneralResponseBodyData) GoString

func (*TranslateGeneralResponseBodyData) SetTranslated

func (TranslateGeneralResponseBodyData) String

Jump to

Keyboard shortcuts

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