openapi_util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToMap

func ConvertToMap(body interface{}) map[string]interface{}

func FilterHeaders

func FilterHeaders(headers map[string]*string, constraint []*string) (_result map[string]*string)

func GetContentLength

func GetContentLength(reqBody []byte) (_result *string)

func GetContentSHA256

func GetContentSHA256(reqBody []byte) (_result *string)

func GetErrMessage

func GetErrMessage(msg []byte) (_result map[string]interface{}, err error)

func GetHost

func GetHost(regionId *string, endpoint *string) (_result *string)

func GetSerializedDecryptRequest

func GetSerializedDecryptRequest(reqBody map[string]interface{}) (_result []byte, err error)

func GetSerializedEncryptRequest

func GetSerializedEncryptRequest(reqBody map[string]interface{}) (_result []byte, err error)

func GetSerializedGenerateDataKeyRequest

func GetSerializedGenerateDataKeyRequest(reqBody map[string]interface{}) (_result []byte, err error)

func GetSerializedGenerateRandomRequest

func GetSerializedGenerateRandomRequest(reqBody map[string]interface{}) (_result []byte, err error)

func GetSerializedGetPublicKeyRequest

func GetSerializedGetPublicKeyRequest(reqBody map[string]interface{}) (_result []byte, err error)

func GetSerializedGetSecretValueRequest added in v0.2.1

func GetSerializedGetSecretValueRequest(reqBody map[string]interface{}) (_result []byte, err error)

func GetSerializedHashRequest

func GetSerializedHashRequest(reqBody map[string]interface{}) (_result []byte, err error)

func GetSerializedHmacRequest

func GetSerializedHmacRequest(reqBody map[string]interface{}) (_result []byte, err error)

func GetSerializedKmsDecryptRequest

func GetSerializedKmsDecryptRequest(reqBody map[string]interface{}) (_result []byte, err error)

func GetSerializedKmsEncryptRequest

func GetSerializedKmsEncryptRequest(reqBody map[string]interface{}) (_result []byte, err error)

func GetSerializedSignRequest

func GetSerializedSignRequest(reqBody map[string]interface{}) (_result []byte, err error)

func GetSerializedVerifyRequest

func GetSerializedVerifyRequest(reqBody map[string]interface{}) (_result []byte, err error)

func GetStringToSign

func GetStringToSign(request *tea.Request) (_result *string)

func ParseDecryptResponse

func ParseDecryptResponse(resBody []byte) (_result map[string]interface{}, err error)

func ParseEncryptResponse

func ParseEncryptResponse(resBody []byte) (_result map[string]interface{}, err error)

func ParseGenerateDataKeyResponse

func ParseGenerateDataKeyResponse(resBody []byte) (_result map[string]interface{}, err error)

func ParseGenerateRandomResponse

func ParseGenerateRandomResponse(resBody []byte) (_result map[string]interface{}, err error)

func ParseGetPublicKeyResponse

func ParseGetPublicKeyResponse(resBody []byte) (_result map[string]interface{}, err error)

func ParseGetSecretValueResponse added in v0.2.1

func ParseGetSecretValueResponse(resBody []byte) (_result map[string]interface{}, err error)

func ParseHashResponse

func ParseHashResponse(resBody []byte) (_result map[string]interface{}, err error)

func ParseHmacResponse

func ParseHmacResponse(resBody []byte) (_result map[string]interface{}, err error)

func ParseKmsDecryptResponse

func ParseKmsDecryptResponse(resBody []byte) (_result map[string]interface{}, err error)

func ParseKmsEncryptResponse

func ParseKmsEncryptResponse(resBody []byte) (_result map[string]interface{}, err error)

func ParseSignResponse

func ParseSignResponse(resBody []byte) (_result map[string]interface{}, err error)

func ParseVerifyResponse

func ParseVerifyResponse(resBody []byte) (_result map[string]interface{}, err error)

func ToHexString

func ToHexString(byteArray []byte) (_result *string)

Types

type ErrorResponse

type ErrorResponse struct {
	StatusCode   *string `json:"StatusCode,omitempty" xml:"StatusCode,omitempty" require:"true"`
	ErrorCode    *string `json:"ErrorCode,omitempty" xml:"ErrorCode,omitempty" require:"true"`
	ErrorMessage *string `json:"ErrorMessage,omitempty" xml:"ErrorMessage,omitempty" require:"true"`
	RequestId    *string `json:"RequestId,omitempty" xml:"RequestId,omitempty" require:"true"`
}

func (ErrorResponse) GoString

func (s ErrorResponse) GoString() string

func (*ErrorResponse) SetErrorCode

func (s *ErrorResponse) SetErrorCode(v string) *ErrorResponse

func (*ErrorResponse) SetErrorMessage

func (s *ErrorResponse) SetErrorMessage(v string) *ErrorResponse

func (*ErrorResponse) SetRequestId

func (s *ErrorResponse) SetRequestId(v string) *ErrorResponse

func (*ErrorResponse) SetStatusCode

func (s *ErrorResponse) SetStatusCode(v string) *ErrorResponse

func (ErrorResponse) String

func (s ErrorResponse) String() string

type RuntimeOptions

type RuntimeOptions struct {
	Autoretry      *bool     `json:"autoretry,omitempty" xml:"autoretry,omitempty"`
	IgnoreSSL      *bool     `json:"ignoreSSL,omitempty" xml:"ignoreSSL,omitempty"`
	MaxAttempts    *int      `json:"maxAttempts,omitempty" xml:"maxAttempts,omitempty"`
	BackoffPolicy  *string   `json:"backoffPolicy,omitempty" xml:"backoffPolicy,omitempty"`
	BackoffPeriod  *int      `json:"backoffPeriod,omitempty" xml:"backoffPeriod,omitempty"`
	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"`
	NoProxy        *string   `json:"noProxy,omitempty" xml:"noProxy,omitempty"`
	MaxIdleConns   *int      `json:"maxIdleConns,omitempty" xml:"maxIdleConns,omitempty"`
	Socks5Proxy    *string   `json:"socks5Proxy,omitempty" xml:"socks5Proxy,omitempty"`
	Socks5NetWork  *string   `json:"socks5NetWork,omitempty" xml:"socks5NetWork,omitempty"`
	Verify         *string   `json:"verify,omitempty" xml:"verify,omitempty"`
	Headers        []*string `json:"headers,omitempty" xml:"headers,omitempty" type:"Repeated"`
}

func (RuntimeOptions) GoString

func (s RuntimeOptions) GoString() string

func (*RuntimeOptions) SetAutoretry

func (s *RuntimeOptions) SetAutoretry(v bool) *RuntimeOptions

func (*RuntimeOptions) SetBackoffPeriod

func (s *RuntimeOptions) SetBackoffPeriod(v int) *RuntimeOptions

func (*RuntimeOptions) SetBackoffPolicy

func (s *RuntimeOptions) SetBackoffPolicy(v string) *RuntimeOptions

func (*RuntimeOptions) SetConnectTimeout

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

func (*RuntimeOptions) SetHeaders

func (s *RuntimeOptions) SetHeaders(v []*string) *RuntimeOptions

func (*RuntimeOptions) SetHttpProxy

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

func (*RuntimeOptions) SetHttpsProxy

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

func (*RuntimeOptions) SetIgnoreSSL

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

func (*RuntimeOptions) SetMaxAttempts

func (s *RuntimeOptions) SetMaxAttempts(v int) *RuntimeOptions

func (*RuntimeOptions) SetMaxIdleConns

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

func (*RuntimeOptions) SetNoProxy

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

func (*RuntimeOptions) SetReadTimeout

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

func (*RuntimeOptions) SetSocks5NetWork

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

func (*RuntimeOptions) SetSocks5Proxy

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

func (*RuntimeOptions) SetVerify

func (s *RuntimeOptions) SetVerify(v string) *RuntimeOptions

func (RuntimeOptions) String

func (s RuntimeOptions) String() string

Directories

Path Synopsis
protobuf
api
Package api is a generated protocol buffer package.
Package api is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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