client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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 {
	openapi.Client
}

func NewClient

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

func (*Client) GetEndpoint

func (client *Client) GetEndpoint(productId *string, regionId *string, endpointRule *string, network *string, suffix *string, endpointMap map[string]*string, endpoint *string) (_result *string, _err error)

func (*Client) Init

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

func (*Client) TakeAccessToken

func (client *Client) TakeAccessToken(request *TakeAccessTokenRequest) (_result *TakeAccessTokenResponse, _err error)

func (*Client) TakeAccessTokenWithOptions

func (client *Client) TakeAccessTokenWithOptions(request *TakeAccessTokenRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *TakeAccessTokenResponse, _err error)

type TakeAccessTokenRequest

type TakeAccessTokenRequest struct {
	AppKey    *string `json:"app_key,omitempty" xml:"app_key,omitempty"`
	AppSecret *string `json:"app_secret,omitempty" xml:"app_secret,omitempty"`
}

func (TakeAccessTokenRequest) GoString

func (s TakeAccessTokenRequest) GoString() string

func (*TakeAccessTokenRequest) SetAppKey

func (*TakeAccessTokenRequest) SetAppSecret

func (TakeAccessTokenRequest) String

func (s TakeAccessTokenRequest) String() string

type TakeAccessTokenResponse

type TakeAccessTokenResponse struct {
	Headers    map[string]*string           `json:"headers,omitempty" xml:"headers,omitempty" require:"true"`
	StatusCode *int32                       `json:"statusCode,omitempty" xml:"statusCode,omitempty" require:"true"`
	Body       *TakeAccessTokenResponseBody `json:"body,omitempty" xml:"body,omitempty" require:"true"`
}

func (TakeAccessTokenResponse) GoString

func (s TakeAccessTokenResponse) GoString() string

func (*TakeAccessTokenResponse) SetBody

func (*TakeAccessTokenResponse) SetHeaders

func (*TakeAccessTokenResponse) SetStatusCode

func (TakeAccessTokenResponse) String

func (s TakeAccessTokenResponse) String() string

type TakeAccessTokenResponseBody

type TakeAccessTokenResponseBody struct {
	Code    *string                          `json:"code,omitempty" xml:"code,omitempty"`
	Data    *TakeAccessTokenResponseBodyData `json:"data,omitempty" xml:"data,omitempty" type:"Struct"`
	Message *string                          `json:"message,omitempty" xml:"message,omitempty"`
	// Id of the request
	RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"`
	Success   *string `json:"success,omitempty" xml:"success,omitempty"`
}

func (TakeAccessTokenResponseBody) GoString

func (s TakeAccessTokenResponseBody) GoString() string

func (*TakeAccessTokenResponseBody) SetCode

func (*TakeAccessTokenResponseBody) SetData

func (*TakeAccessTokenResponseBody) SetMessage

func (*TakeAccessTokenResponseBody) SetRequestId

func (*TakeAccessTokenResponseBody) SetSuccess

func (TakeAccessTokenResponseBody) String

type TakeAccessTokenResponseBodyData

type TakeAccessTokenResponseBodyData struct {
	AccessToken *string `json:"access_token,omitempty" xml:"access_token,omitempty"`
	Expire      *int64  `json:"expire,omitempty" xml:"expire,omitempty"`
}

func (TakeAccessTokenResponseBodyData) GoString

func (*TakeAccessTokenResponseBodyData) SetAccessToken

func (*TakeAccessTokenResponseBodyData) SetExpire

func (TakeAccessTokenResponseBodyData) String

Jump to

Keyboard shortcuts

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