models

package
v2.1.12 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	dara.Model
	// accesskey id
	AccessKeyId *string `json:"accessKeyId,omitempty" xml:"accessKeyId,omitempty"`
	// accesskey secret
	AccessKeySecret *string `json:"accessKeySecret,omitempty" xml:"accessKeySecret,omitempty"`
	// security token
	SecurityToken *string `json:"securityToken,omitempty" xml:"securityToken,omitempty"`
	// bearer token
	//
	// example:
	//
	// the-bearer-token
	BearerToken *string `json:"bearerToken,omitempty" xml:"bearerToken,omitempty"`
	// http protocol
	//
	// example:
	//
	// http
	Protocol *string `json:"protocol,omitempty" xml:"protocol,omitempty"`
	// http method
	//
	// example:
	//
	// GET
	Method *string `json:"method,omitempty" xml:"method,omitempty"`
	// region id
	//
	// example:
	//
	// cn-hangzhou
	RegionId *string `json:"regionId,omitempty" xml:"regionId,omitempty"`
	// read timeout
	//
	// example:
	//
	// 10
	ReadTimeout *int `json:"readTimeout,omitempty" xml:"readTimeout,omitempty"`
	// connect timeout
	//
	// example:
	//
	// 10
	ConnectTimeout *int `json:"connectTimeout,omitempty" xml:"connectTimeout,omitempty"`
	// http proxy
	//
	// example:
	//
	// http://localhost
	HttpProxy *string `json:"httpProxy,omitempty" xml:"httpProxy,omitempty"`
	// https proxy
	//
	// example:
	//
	// https://localhost
	HttpsProxy *string `json:"httpsProxy,omitempty" xml:"httpsProxy,omitempty"`
	// credential
	Credential credential.Credential `json:"credential,omitempty" xml:"credential,omitempty"`
	// endpoint
	//
	// example:
	//
	// cs.aliyuncs.com
	Endpoint *string `json:"endpoint,omitempty" xml:"endpoint,omitempty"`
	// proxy white list
	//
	// example:
	//
	// http://localhost
	NoProxy *string `json:"noProxy,omitempty" xml:"noProxy,omitempty"`
	// max idle conns
	//
	// example:
	//
	// 3
	MaxIdleConns *int `json:"maxIdleConns,omitempty" xml:"maxIdleConns,omitempty"`
	// network for endpoint
	//
	// example:
	//
	// public
	Network *string `json:"network,omitempty" xml:"network,omitempty"`
	// user agent
	//
	// example:
	//
	// Alibabacloud/1
	UserAgent *string `json:"userAgent,omitempty" xml:"userAgent,omitempty"`
	// suffix for endpoint
	//
	// example:
	//
	// aliyun
	Suffix *string `json:"suffix,omitempty" xml:"suffix,omitempty"`
	// socks5 proxy
	Socks5Proxy *string `json:"socks5Proxy,omitempty" xml:"socks5Proxy,omitempty"`
	// socks5 network
	//
	// example:
	//
	// TCP
	Socks5NetWork *string `json:"socks5NetWork,omitempty" xml:"socks5NetWork,omitempty"`
	// endpoint type
	//
	// example:
	//
	// internal
	EndpointType *string `json:"endpointType,omitempty" xml:"endpointType,omitempty"`
	// OpenPlatform endpoint
	//
	// example:
	//
	// openplatform.aliyuncs.com
	OpenPlatformEndpoint *string `json:"openPlatformEndpoint,omitempty" xml:"openPlatformEndpoint,omitempty"`
	// Deprecated
	//
	// credential type
	//
	// example:
	//
	// access_key
	Type *string `json:"type,omitempty" xml:"type,omitempty"`
	// Signature Version
	//
	// example:
	//
	// v1
	SignatureVersion *string `json:"signatureVersion,omitempty" xml:"signatureVersion,omitempty"`
	// Signature Algorithm
	//
	// example:
	//
	// ACS3-HMAC-SHA256
	SignatureAlgorithm *string `json:"signatureAlgorithm,omitempty" xml:"signatureAlgorithm,omitempty"`
	// Global Parameters
	GlobalParameters *GlobalParameters `json:"globalParameters,omitempty" xml:"globalParameters,omitempty"`
	// privite key for client certificate
	//
	// example:
	//
	// MIIEvQ
	Key *string `json:"key,omitempty" xml:"key,omitempty"`
	// client certificate
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----
	//
	// xxx-----END CERTIFICATE-----
	Cert *string `json:"cert,omitempty" xml:"cert,omitempty"`
	// server certificate
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----
	//
	// xxx-----END CERTIFICATE-----
	Ca *string `json:"ca,omitempty" xml:"ca,omitempty"`
	// disable HTTP/2
	//
	// example:
	//
	// false
	DisableHttp2 *bool `json:"disableHttp2,omitempty" xml:"disableHttp2,omitempty"`
	// retry options
	RetryOptions *dara.RetryOptions `json:"retryOptions,omitempty" xml:"retryOptions,omitempty"`
	// http client
	HttpClient    dara.HttpClient `json:"httpClient,omitempty" xml:"httpClient,omitempty"`
	TlsMinVersion *string         `json:"tlsMinVersion,omitempty" xml:"tlsMinVersion,omitempty"`
}

Description:

Model for initing client

func (*Config) GetAccessKeyId

func (s *Config) GetAccessKeyId() *string

func (*Config) GetAccessKeySecret

func (s *Config) GetAccessKeySecret() *string

func (*Config) GetBearerToken

func (s *Config) GetBearerToken() *string

func (*Config) GetCa

func (s *Config) GetCa() *string

func (*Config) GetCert

func (s *Config) GetCert() *string

func (*Config) GetConnectTimeout

func (s *Config) GetConnectTimeout() *int

func (*Config) GetCredential

func (s *Config) GetCredential() credential.Credential

func (*Config) GetDisableHttp2

func (s *Config) GetDisableHttp2() *bool

func (*Config) GetEndpoint

func (s *Config) GetEndpoint() *string

func (*Config) GetEndpointType

func (s *Config) GetEndpointType() *string

func (*Config) GetGlobalParameters

func (s *Config) GetGlobalParameters() *GlobalParameters

func (*Config) GetHttpClient added in v2.1.6

func (s *Config) GetHttpClient() dara.HttpClient

func (*Config) GetHttpProxy

func (s *Config) GetHttpProxy() *string

func (*Config) GetHttpsProxy

func (s *Config) GetHttpsProxy() *string

func (*Config) GetKey

func (s *Config) GetKey() *string

func (*Config) GetMaxIdleConns

func (s *Config) GetMaxIdleConns() *int

func (*Config) GetMethod

func (s *Config) GetMethod() *string

func (*Config) GetNetwork

func (s *Config) GetNetwork() *string

func (*Config) GetNoProxy

func (s *Config) GetNoProxy() *string

func (*Config) GetOpenPlatformEndpoint

func (s *Config) GetOpenPlatformEndpoint() *string

func (*Config) GetProtocol

func (s *Config) GetProtocol() *string

func (*Config) GetReadTimeout

func (s *Config) GetReadTimeout() *int

func (*Config) GetRegionId

func (s *Config) GetRegionId() *string

func (*Config) GetRetryOptions

func (s *Config) GetRetryOptions() *dara.RetryOptions

func (*Config) GetSecurityToken

func (s *Config) GetSecurityToken() *string

func (*Config) GetSignatureAlgorithm

func (s *Config) GetSignatureAlgorithm() *string

func (*Config) GetSignatureVersion

func (s *Config) GetSignatureVersion() *string

func (*Config) GetSocks5NetWork

func (s *Config) GetSocks5NetWork() *string

func (*Config) GetSocks5Proxy

func (s *Config) GetSocks5Proxy() *string

func (*Config) GetSuffix

func (s *Config) GetSuffix() *string

func (*Config) GetType

func (s *Config) GetType() *string

func (*Config) GetUserAgent

func (s *Config) GetUserAgent() *string

func (Config) GoString

func (s Config) GoString() string

func (*Config) SetAccessKeyId

func (s *Config) SetAccessKeyId(v string) *Config

func (*Config) SetAccessKeySecret

func (s *Config) SetAccessKeySecret(v string) *Config

func (*Config) SetBearerToken

func (s *Config) SetBearerToken(v string) *Config

func (*Config) SetCa

func (s *Config) SetCa(v string) *Config

func (*Config) SetCert

func (s *Config) SetCert(v string) *Config

func (*Config) SetConnectTimeout

func (s *Config) SetConnectTimeout(v int) *Config

func (*Config) SetCredential

func (s *Config) SetCredential(v credential.Credential) *Config

func (*Config) SetDisableHttp2

func (s *Config) SetDisableHttp2(v bool) *Config

func (*Config) SetEndpoint

func (s *Config) SetEndpoint(v string) *Config

func (*Config) SetEndpointType

func (s *Config) SetEndpointType(v string) *Config

func (*Config) SetGlobalParameters

func (s *Config) SetGlobalParameters(v *GlobalParameters) *Config

func (*Config) SetHttpClient added in v2.1.6

func (s *Config) SetHttpClient(v dara.HttpClient) *Config

func (*Config) SetHttpProxy

func (s *Config) SetHttpProxy(v string) *Config

func (*Config) SetHttpsProxy

func (s *Config) SetHttpsProxy(v string) *Config

func (*Config) SetKey

func (s *Config) SetKey(v string) *Config

func (*Config) SetMaxIdleConns

func (s *Config) SetMaxIdleConns(v int) *Config

func (*Config) SetMethod

func (s *Config) SetMethod(v string) *Config

func (*Config) SetNetwork

func (s *Config) SetNetwork(v string) *Config

func (*Config) SetNoProxy

func (s *Config) SetNoProxy(v string) *Config

func (*Config) SetOpenPlatformEndpoint

func (s *Config) SetOpenPlatformEndpoint(v string) *Config

func (*Config) SetProtocol

func (s *Config) SetProtocol(v string) *Config

func (*Config) SetReadTimeout

func (s *Config) SetReadTimeout(v int) *Config

func (*Config) SetRegionId

func (s *Config) SetRegionId(v string) *Config

func (*Config) SetRetryOptions

func (s *Config) SetRetryOptions(v *dara.RetryOptions) *Config

func (*Config) SetSecurityToken

func (s *Config) SetSecurityToken(v string) *Config

func (*Config) SetSignatureAlgorithm

func (s *Config) SetSignatureAlgorithm(v string) *Config

func (*Config) SetSignatureVersion

func (s *Config) SetSignatureVersion(v string) *Config

func (*Config) SetSocks5NetWork

func (s *Config) SetSocks5NetWork(v string) *Config

func (*Config) SetSocks5Proxy

func (s *Config) SetSocks5Proxy(v string) *Config

func (*Config) SetSuffix

func (s *Config) SetSuffix(v string) *Config

func (*Config) SetType

func (s *Config) SetType(v string) *Config

func (*Config) SetUserAgent

func (s *Config) SetUserAgent(v string) *Config

func (Config) String

func (s Config) String() string

type GlobalParameters

type GlobalParameters struct {
	dara.Model
	Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
	Queries map[string]*string `json:"queries,omitempty" xml:"queries,omitempty"`
}

func (*GlobalParameters) GetHeaders

func (s *GlobalParameters) GetHeaders() map[string]*string

func (*GlobalParameters) GetQueries

func (s *GlobalParameters) GetQueries() map[string]*string

func (GlobalParameters) GoString

func (s GlobalParameters) GoString() string

func (*GlobalParameters) SetHeaders

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

func (*GlobalParameters) SetQueries

func (s *GlobalParameters) SetQueries(v map[string]*string) *GlobalParameters

func (GlobalParameters) String

func (s GlobalParameters) String() string

type OpenApiRequest

type OpenApiRequest struct {
	dara.Model
	Headers          map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
	Query            map[string]*string `json:"query,omitempty" xml:"query,omitempty"`
	Body             interface{}        `json:"body,omitempty" xml:"body,omitempty"`
	Stream           io.Reader          `json:"stream,omitempty" xml:"stream,omitempty"`
	HostMap          map[string]*string `json:"hostMap,omitempty" xml:"hostMap,omitempty"`
	EndpointOverride *string            `json:"endpointOverride,omitempty" xml:"endpointOverride,omitempty"`
}

func (*OpenApiRequest) GetBody

func (s *OpenApiRequest) GetBody() interface{}

func (*OpenApiRequest) GetEndpointOverride

func (s *OpenApiRequest) GetEndpointOverride() *string

func (*OpenApiRequest) GetHeaders

func (s *OpenApiRequest) GetHeaders() map[string]*string

func (*OpenApiRequest) GetHostMap

func (s *OpenApiRequest) GetHostMap() map[string]*string

func (*OpenApiRequest) GetQuery

func (s *OpenApiRequest) GetQuery() map[string]*string

func (*OpenApiRequest) GetStream

func (s *OpenApiRequest) GetStream() io.Reader

func (OpenApiRequest) GoString

func (s OpenApiRequest) GoString() string

func (*OpenApiRequest) SetBody

func (s *OpenApiRequest) SetBody(v interface{}) *OpenApiRequest

func (*OpenApiRequest) SetEndpointOverride

func (s *OpenApiRequest) SetEndpointOverride(v string) *OpenApiRequest

func (*OpenApiRequest) SetHeaders

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

func (*OpenApiRequest) SetHostMap

func (s *OpenApiRequest) SetHostMap(v map[string]*string) *OpenApiRequest

func (*OpenApiRequest) SetQuery

func (s *OpenApiRequest) SetQuery(v map[string]*string) *OpenApiRequest

func (*OpenApiRequest) SetStream

func (s *OpenApiRequest) SetStream(v io.Reader) *OpenApiRequest

func (OpenApiRequest) String

func (s OpenApiRequest) String() string

type Params

type Params struct {
	dara.Model
	Action      *string `json:"action,omitempty" xml:"action,omitempty" require:"true"`
	Version     *string `json:"version,omitempty" xml:"version,omitempty" require:"true"`
	Protocol    *string `json:"protocol,omitempty" xml:"protocol,omitempty" require:"true"`
	Pathname    *string `json:"pathname,omitempty" xml:"pathname,omitempty" require:"true"`
	Method      *string `json:"method,omitempty" xml:"method,omitempty" require:"true"`
	AuthType    *string `json:"authType,omitempty" xml:"authType,omitempty" require:"true"`
	BodyType    *string `json:"bodyType,omitempty" xml:"bodyType,omitempty" require:"true"`
	ReqBodyType *string `json:"reqBodyType,omitempty" xml:"reqBodyType,omitempty" require:"true"`
	Style       *string `json:"style,omitempty" xml:"style,omitempty"`
}

func (*Params) GetAction

func (s *Params) GetAction() *string

func (*Params) GetAuthType

func (s *Params) GetAuthType() *string

func (*Params) GetBodyType

func (s *Params) GetBodyType() *string

func (*Params) GetMethod

func (s *Params) GetMethod() *string

func (*Params) GetPathname

func (s *Params) GetPathname() *string

func (*Params) GetProtocol

func (s *Params) GetProtocol() *string

func (*Params) GetReqBodyType

func (s *Params) GetReqBodyType() *string

func (*Params) GetStyle

func (s *Params) GetStyle() *string

func (*Params) GetVersion

func (s *Params) GetVersion() *string

func (Params) GoString

func (s Params) GoString() string

func (*Params) SetAction

func (s *Params) SetAction(v string) *Params

func (*Params) SetAuthType

func (s *Params) SetAuthType(v string) *Params

func (*Params) SetBodyType

func (s *Params) SetBodyType(v string) *Params

func (*Params) SetMethod

func (s *Params) SetMethod(v string) *Params

func (*Params) SetPathname

func (s *Params) SetPathname(v string) *Params

func (*Params) SetProtocol

func (s *Params) SetProtocol(v string) *Params

func (*Params) SetReqBodyType

func (s *Params) SetReqBodyType(v string) *Params

func (*Params) SetStyle

func (s *Params) SetStyle(v string) *Params

func (*Params) SetVersion

func (s *Params) SetVersion(v string) *Params

func (Params) String

func (s Params) String() string

Jump to

Keyboard shortcuts

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