Documentation
¶
Index ¶
- type Config
- func (s *Config) GetAccessKeyId() *string
- func (s *Config) GetAccessKeySecret() *string
- func (s *Config) GetBearerToken() *string
- func (s *Config) GetCa() *string
- func (s *Config) GetCert() *string
- func (s *Config) GetConnectTimeout() *int
- func (s *Config) GetCredential() credential.Credential
- func (s *Config) GetDisableHttp2() *bool
- func (s *Config) GetEndpoint() *string
- func (s *Config) GetEndpointType() *string
- func (s *Config) GetGlobalParameters() *GlobalParameters
- func (s *Config) GetHttpClient() dara.HttpClient
- func (s *Config) GetHttpProxy() *string
- func (s *Config) GetHttpsProxy() *string
- func (s *Config) GetKey() *string
- func (s *Config) GetMaxIdleConns() *int
- func (s *Config) GetMethod() *string
- func (s *Config) GetNetwork() *string
- func (s *Config) GetNoProxy() *string
- func (s *Config) GetOpenPlatformEndpoint() *string
- func (s *Config) GetProtocol() *string
- func (s *Config) GetReadTimeout() *int
- func (s *Config) GetRegionId() *string
- func (s *Config) GetRetryOptions() *dara.RetryOptions
- func (s *Config) GetSecurityToken() *string
- func (s *Config) GetSignatureAlgorithm() *string
- func (s *Config) GetSignatureVersion() *string
- func (s *Config) GetSocks5NetWork() *string
- func (s *Config) GetSocks5Proxy() *string
- func (s *Config) GetSuffix() *string
- func (s *Config) GetType() *string
- func (s *Config) GetUserAgent() *string
- func (s Config) GoString() string
- func (s *Config) SetAccessKeyId(v string) *Config
- func (s *Config) SetAccessKeySecret(v string) *Config
- func (s *Config) SetBearerToken(v string) *Config
- func (s *Config) SetCa(v string) *Config
- func (s *Config) SetCert(v string) *Config
- func (s *Config) SetConnectTimeout(v int) *Config
- func (s *Config) SetCredential(v credential.Credential) *Config
- func (s *Config) SetDisableHttp2(v bool) *Config
- func (s *Config) SetEndpoint(v string) *Config
- func (s *Config) SetEndpointType(v string) *Config
- func (s *Config) SetGlobalParameters(v *GlobalParameters) *Config
- func (s *Config) SetHttpClient(v dara.HttpClient) *Config
- func (s *Config) SetHttpProxy(v string) *Config
- func (s *Config) SetHttpsProxy(v string) *Config
- func (s *Config) SetKey(v string) *Config
- func (s *Config) SetMaxIdleConns(v int) *Config
- func (s *Config) SetMethod(v string) *Config
- func (s *Config) SetNetwork(v string) *Config
- func (s *Config) SetNoProxy(v string) *Config
- func (s *Config) SetOpenPlatformEndpoint(v string) *Config
- func (s *Config) SetProtocol(v string) *Config
- func (s *Config) SetReadTimeout(v int) *Config
- func (s *Config) SetRegionId(v string) *Config
- func (s *Config) SetRetryOptions(v *dara.RetryOptions) *Config
- func (s *Config) SetSecurityToken(v string) *Config
- func (s *Config) SetSignatureAlgorithm(v string) *Config
- func (s *Config) SetSignatureVersion(v string) *Config
- func (s *Config) SetSocks5NetWork(v string) *Config
- func (s *Config) SetSocks5Proxy(v string) *Config
- func (s *Config) SetSuffix(v string) *Config
- func (s *Config) SetType(v string) *Config
- func (s *Config) SetUserAgent(v string) *Config
- func (s Config) String() string
- type GlobalParameters
- func (s *GlobalParameters) GetHeaders() map[string]*string
- func (s *GlobalParameters) GetQueries() map[string]*string
- func (s GlobalParameters) GoString() string
- func (s *GlobalParameters) SetHeaders(v map[string]*string) *GlobalParameters
- func (s *GlobalParameters) SetQueries(v map[string]*string) *GlobalParameters
- func (s GlobalParameters) String() string
- type OpenApiRequest
- func (s *OpenApiRequest) GetBody() interface{}
- func (s *OpenApiRequest) GetEndpointOverride() *string
- func (s *OpenApiRequest) GetHeaders() map[string]*string
- func (s *OpenApiRequest) GetHostMap() map[string]*string
- func (s *OpenApiRequest) GetQuery() map[string]*string
- func (s *OpenApiRequest) GetStream() io.Reader
- func (s OpenApiRequest) GoString() string
- func (s *OpenApiRequest) SetBody(v interface{}) *OpenApiRequest
- func (s *OpenApiRequest) SetEndpointOverride(v string) *OpenApiRequest
- func (s *OpenApiRequest) SetHeaders(v map[string]*string) *OpenApiRequest
- func (s *OpenApiRequest) SetHostMap(v map[string]*string) *OpenApiRequest
- func (s *OpenApiRequest) SetQuery(v map[string]*string) *OpenApiRequest
- func (s *OpenApiRequest) SetStream(v io.Reader) *OpenApiRequest
- func (s OpenApiRequest) String() string
- type Params
- func (s *Params) GetAction() *string
- func (s *Params) GetAuthType() *string
- func (s *Params) GetBodyType() *string
- func (s *Params) GetMethod() *string
- func (s *Params) GetPathname() *string
- func (s *Params) GetProtocol() *string
- func (s *Params) GetReqBodyType() *string
- func (s *Params) GetStyle() *string
- func (s *Params) GetVersion() *string
- func (s Params) GoString() string
- func (s *Params) SetAction(v string) *Params
- func (s *Params) SetAuthType(v string) *Params
- func (s *Params) SetBodyType(v string) *Params
- func (s *Params) SetMethod(v string) *Params
- func (s *Params) SetPathname(v string) *Params
- func (s *Params) SetProtocol(v string) *Params
- func (s *Params) SetReqBodyType(v string) *Params
- func (s *Params) SetStyle(v string) *Params
- func (s *Params) SetVersion(v string) *Params
- func (s Params) String() string
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 (*Config) GetAccessKeySecret ¶
func (*Config) GetBearerToken ¶
func (*Config) GetConnectTimeout ¶
func (*Config) GetCredential ¶
func (s *Config) GetCredential() credential.Credential
func (*Config) GetDisableHttp2 ¶
func (*Config) GetEndpoint ¶
func (*Config) GetEndpointType ¶
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 (*Config) GetHttpsProxy ¶
func (*Config) GetMaxIdleConns ¶
func (*Config) GetNetwork ¶
func (*Config) GetNoProxy ¶
func (*Config) GetOpenPlatformEndpoint ¶
func (*Config) GetProtocol ¶
func (*Config) GetReadTimeout ¶
func (*Config) GetRegionId ¶
func (*Config) GetRetryOptions ¶
func (s *Config) GetRetryOptions() *dara.RetryOptions
func (*Config) GetSecurityToken ¶
func (*Config) GetSignatureAlgorithm ¶
func (*Config) GetSignatureVersion ¶
func (*Config) GetSocks5NetWork ¶
func (*Config) GetSocks5Proxy ¶
func (*Config) GetUserAgent ¶
func (*Config) SetAccessKeyId ¶
func (*Config) SetAccessKeySecret ¶
func (*Config) SetBearerToken ¶
func (*Config) SetConnectTimeout ¶
func (*Config) SetCredential ¶
func (s *Config) SetCredential(v credential.Credential) *Config
func (*Config) SetDisableHttp2 ¶
func (*Config) SetEndpoint ¶
func (*Config) SetEndpointType ¶
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 (*Config) SetHttpsProxy ¶
func (*Config) SetMaxIdleConns ¶
func (*Config) SetNetwork ¶
func (*Config) SetNoProxy ¶
func (*Config) SetOpenPlatformEndpoint ¶
func (*Config) SetProtocol ¶
func (*Config) SetReadTimeout ¶
func (*Config) SetRegionId ¶
func (*Config) SetRetryOptions ¶
func (s *Config) SetRetryOptions(v *dara.RetryOptions) *Config
func (*Config) SetSecurityToken ¶
func (*Config) SetSignatureAlgorithm ¶
func (*Config) SetSignatureVersion ¶
func (*Config) SetSocks5NetWork ¶
func (*Config) SetSocks5Proxy ¶
func (*Config) SetUserAgent ¶
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) GetAuthType ¶
func (*Params) GetBodyType ¶
func (*Params) GetPathname ¶
func (*Params) GetProtocol ¶
func (*Params) GetReqBodyType ¶
func (*Params) GetVersion ¶
func (*Params) SetAuthType ¶
func (*Params) SetBodyType ¶
func (*Params) SetPathname ¶
func (*Params) SetProtocol ¶
func (*Params) SetReqBodyType ¶
func (*Params) SetVersion ¶
Click to show internal directories.
Click to hide internal directories.