openapi

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 22

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
}

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, headers map[string]*string, runtime *dedicatedkmsopenapiutil.RuntimeOptions) (_result map[string]interface{}, _err error)

func (*Client) Init

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

type Config

type Config struct {
	AccessKeyId *string `json:"accessKeyId,omitempty" xml:"accessKeyId,omitempty"`
	// pkcs1 or pkcs8 PEM format private key
	PrivateKey *string `json:"privateKey,omitempty" xml:"privateKey,omitempty"`
	// crypto service address
	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"`
	HttpProxy      *string                               `json:"httpProxy,omitempty" xml:"httpProxy,omitempty"`
	HttpsProxy     *string                               `json:"httpsProxy,omitempty" xml:"httpsProxy,omitempty"`
	Socks5Proxy    *string                               `json:"socks5Proxy,omitempty" xml:"socks5Proxy,omitempty"`
	Socks5NetWork  *string                               `json:"socks5NetWork,omitempty" xml:"socks5NetWork,omitempty"`
	NoProxy        *string                               `json:"noProxy,omitempty" xml:"noProxy,omitempty"`
	MaxIdleConns   *int                                  `json:"maxIdleConns,omitempty" xml:"maxIdleConns,omitempty"`
	UserAgent      *string                               `json:"userAgent,omitempty" xml:"userAgent,omitempty"`
	Type           *string                               `json:"type,omitempty" xml:"type,omitempty"`
	Credential     *dedicatedkmsopenapicredential.Client `json:"credential,omitempty" xml:"credential,omitempty"`
	ClientKeyFile  *string                               `json:"clientKeyFile,omitempty" xml:"clientKeyFile,omitempty"`
	// client key content
	ClientKeyContent *string `json:"clientKeyContent,omitempty" xml:"clientKeyContent,omitempty"`
	Password         *string `json:"password,omitempty" xml:"password,omitempty"`
}

func (Config) GoString

func (s Config) GoString() string

func (*Config) SetAccessKeyId

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