client

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 19

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 {
	Endpoint       *string
	RegionId       *string
	Protocol       *string
	ReadTimeout    *int
	ConnectTimeout *int
	HttpProxy      *string
	HttpsProxy     *string
	NoProxy        *string
	UserAgent      *string
	Socks5Proxy    *string
	Socks5NetWork  *string
	MaxIdleConns   *int
	Credential     *dedicatedkmsopenapicredential.Client
	Ca             *string
	IgnoreSSL      *bool
}

func NewClient

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

func (*Client) DoRequest

func (client *Client) DoRequest(apiName *string, apiVersion *string, protocol *string, method *string, signatureMethod *string, reqBodyBytes []byte, runtime *dedicatedkmsopenapiutil.RuntimeOptions, requestHeaders map[string]*string) (_result map[string]interface{}, _err error)

func (*Client) Init

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

type Config

type Config struct {
	// 访问凭证ID
	AccessKeyId *string `json:"accessKeyId,omitempty" xml:"accessKeyId,omitempty"`
	// pkcs1 或 pkcs8 PEM 格式私钥
	PrivateKey *string `json:"privateKey,omitempty" xml:"privateKey,omitempty"`
	// 实例地址
	Endpoint *string `json:"endpoint,omitempty" xml:"endpoint,omitempty"`
	// 协议
	Protocol *string `json:"protocol,omitempty" xml:"protocol,omitempty"`
	// 区域标识
	RegionId *string `json:"regionId,omitempty" xml:"regionId,omitempty" pattern:"[a-zA-Z0-9-_]+"`
	// 读取超时时间
	ReadTimeout *int `json:"readTimeout,omitempty" xml:"readTimeout,omitempty"`
	// 连接超时时间
	ConnectTimeout *int `json:"connectTimeout,omitempty" xml:"connectTimeout,omitempty"`
	// http代理
	HttpProxy *string `json:"httpProxy,omitempty" xml:"httpProxy,omitempty"`
	// https代理
	HttpsProxy *string `json:"httpsProxy,omitempty" xml:"httpsProxy,omitempty"`
	// 无代理
	NoProxy *string `json:"noProxy,omitempty" xml:"noProxy,omitempty"`
	// 最大闲置连接数
	MaxIdleConns *int `json:"maxIdleConns,omitempty" xml:"maxIdleConns,omitempty"`
	// socks5代理
	Socks5Proxy *string `json:"socks5Proxy,omitempty" xml:"socks5Proxy,omitempty"`
	// socks5代理协议
	Socks5NetWork *string `json:"socks5NetWork,omitempty" xml:"socks5NetWork,omitempty"`
	// 访问凭证类型
	Type *string `json:"type,omitempty" xml:"type,omitempty" require:"true"`
	// 用户代理
	UserAgent *string `json:"userAgent,omitempty" xml:"userAgent,omitempty"`
	// 访问凭证
	Credential *dedicatedkmsopenapicredential.Client `json:"credential,omitempty" xml:"credential,omitempty"`
	// ClientKey文件路径
	ClientKeyFile *string `json:"clientKeyFile,omitempty" xml:"clientKeyFile,omitempty"`
	// ClientKey文件内容
	ClientKeyContent *string `json:"clientKeyContent,omitempty" xml:"clientKeyContent,omitempty"`
	// ClientKey密码
	Password *string `json:"password,omitempty" xml:"password,omitempty"`
	// ca证书内容
	Ca *string `json:"ca,omitempty" xml:"ca,omitempty"`
	// ca证书文件路径
	CaFilePath *string `json:"caFilePath,omitempty" xml:"caFilePath,omitempty"`
	// 是否忽略SSL认证
	IgnoreSSL *bool `json:"ignoreSSL,omitempty" xml:"ignoreSSL,omitempty"`
}

func (Config) GoString

func (s Config) GoString() string

func (*Config) SetAccessKeyId

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

func (*Config) SetCa added in v0.4.0

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

func (*Config) SetCaFilePath added in v0.4.0

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

func (*Config) SetClientKeyContent

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

func (*Config) SetClientKeyFile

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

func (*Config) SetConnectTimeout

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

func (*Config) SetCredential

func (s *Config) SetCredential(v *dedicatedkmsopenapicredential.Client) *Config

func (*Config) SetEndpoint

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

func (*Config) SetHttpProxy

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

func (*Config) SetHttpsProxy

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

func (*Config) SetIgnoreSSL added in v0.4.0

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

func (*Config) SetMaxIdleConns

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

func (*Config) SetNoProxy

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

func (*Config) SetPassword

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

func (*Config) SetPrivateKey

func (s *Config) SetPrivateKey(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) SetSocks5NetWork

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

func (*Config) SetSocks5Proxy

func (s *Config) SetSocks5Proxy(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

Jump to

Keyboard shortcuts

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