democenter

package
v1.62.52 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointMap map[string]string

EndpointMap Endpoint Data

View Source
var EndpointType = "central"

EndpointType regional or central

Functions

func GetEndpointMap

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty

func SetClientProperty(client *Client, propertyName string, propertyValue interface{})

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient

func SetEndpointDataToClient(client *Client)

SetEndpointDataToClient Set EndpointMap and ENdpointType

Types

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithProvider

func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)

NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArnAndPolicy

func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func (*Client) CreateDemoAccessToken

func (client *Client) CreateDemoAccessToken(request *CreateDemoAccessTokenRequest) (response *CreateDemoAccessTokenResponse, err error)

CreateDemoAccessToken invokes the democenter.CreateDemoAccessToken API synchronously api document: https://help.aliyun.com/api/democenter/createdemoaccesstoken.html

func (*Client) CreateDemoAccessTokenWithCallback

func (client *Client) CreateDemoAccessTokenWithCallback(request *CreateDemoAccessTokenRequest, callback func(response *CreateDemoAccessTokenResponse, err error)) <-chan int

CreateDemoAccessTokenWithCallback invokes the democenter.CreateDemoAccessToken API asynchronously api document: https://help.aliyun.com/api/democenter/createdemoaccesstoken.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateDemoAccessTokenWithChan

func (client *Client) CreateDemoAccessTokenWithChan(request *CreateDemoAccessTokenRequest) (<-chan *CreateDemoAccessTokenResponse, <-chan error)

CreateDemoAccessTokenWithChan invokes the democenter.CreateDemoAccessToken API asynchronously api document: https://help.aliyun.com/api/democenter/createdemoaccesstoken.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeDemoAccessToken

func (client *Client) DescribeDemoAccessToken(request *DescribeDemoAccessTokenRequest) (response *DescribeDemoAccessTokenResponse, err error)

DescribeDemoAccessToken invokes the democenter.DescribeDemoAccessToken API synchronously api document: https://help.aliyun.com/api/democenter/describedemoaccesstoken.html

func (*Client) DescribeDemoAccessTokenWithCallback

func (client *Client) DescribeDemoAccessTokenWithCallback(request *DescribeDemoAccessTokenRequest, callback func(response *DescribeDemoAccessTokenResponse, err error)) <-chan int

DescribeDemoAccessTokenWithCallback invokes the democenter.DescribeDemoAccessToken API asynchronously api document: https://help.aliyun.com/api/democenter/describedemoaccesstoken.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeDemoAccessTokenWithChan

func (client *Client) DescribeDemoAccessTokenWithChan(request *DescribeDemoAccessTokenRequest) (<-chan *DescribeDemoAccessTokenResponse, <-chan error)

DescribeDemoAccessTokenWithChan invokes the democenter.DescribeDemoAccessToken API asynchronously api document: https://help.aliyun.com/api/democenter/describedemoaccesstoken.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ExpireDemoAccessToken

func (client *Client) ExpireDemoAccessToken(request *ExpireDemoAccessTokenRequest) (response *ExpireDemoAccessTokenResponse, err error)

ExpireDemoAccessToken invokes the democenter.ExpireDemoAccessToken API synchronously api document: https://help.aliyun.com/api/democenter/expiredemoaccesstoken.html

func (*Client) ExpireDemoAccessTokenWithCallback

func (client *Client) ExpireDemoAccessTokenWithCallback(request *ExpireDemoAccessTokenRequest, callback func(response *ExpireDemoAccessTokenResponse, err error)) <-chan int

ExpireDemoAccessTokenWithCallback invokes the democenter.ExpireDemoAccessToken API asynchronously api document: https://help.aliyun.com/api/democenter/expiredemoaccesstoken.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ExpireDemoAccessTokenWithChan

func (client *Client) ExpireDemoAccessTokenWithChan(request *ExpireDemoAccessTokenRequest) (<-chan *ExpireDemoAccessTokenResponse, <-chan error)

ExpireDemoAccessTokenWithChan invokes the democenter.ExpireDemoAccessToken API asynchronously api document: https://help.aliyun.com/api/democenter/expiredemoaccesstoken.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetDemoTrialAuth added in v1.61.192

func (client *Client) GetDemoTrialAuth(request *GetDemoTrialAuthRequest) (response *GetDemoTrialAuthResponse, err error)

GetDemoTrialAuth invokes the democenter.GetDemoTrialAuth API synchronously api document: https://help.aliyun.com/api/democenter/getdemotrialauth.html

func (*Client) GetDemoTrialAuthWithCallback added in v1.61.192

func (client *Client) GetDemoTrialAuthWithCallback(request *GetDemoTrialAuthRequest, callback func(response *GetDemoTrialAuthResponse, err error)) <-chan int

GetDemoTrialAuthWithCallback invokes the democenter.GetDemoTrialAuth API asynchronously api document: https://help.aliyun.com/api/democenter/getdemotrialauth.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetDemoTrialAuthWithChan added in v1.61.192

func (client *Client) GetDemoTrialAuthWithChan(request *GetDemoTrialAuthRequest) (<-chan *GetDemoTrialAuthResponse, <-chan error)

GetDemoTrialAuthWithChan invokes the democenter.GetDemoTrialAuth API asynchronously api document: https://help.aliyun.com/api/democenter/getdemotrialauth.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type CreateDemoAccessTokenRequest

type CreateDemoAccessTokenRequest struct {
	*requests.RpcRequest
	Edition requests.Integer `position:"Body" name:"Edition"`
	DemoId  requests.Integer `position:"Body" name:"DemoId"`
}

CreateDemoAccessTokenRequest is the request struct for api CreateDemoAccessToken

func CreateCreateDemoAccessTokenRequest

func CreateCreateDemoAccessTokenRequest() (request *CreateDemoAccessTokenRequest)

CreateCreateDemoAccessTokenRequest creates a request to invoke CreateDemoAccessToken API

type CreateDemoAccessTokenResponse

type CreateDemoAccessTokenResponse struct {
	*responses.BaseResponse
	RequestId       string `json:"RequestId" xml:"RequestId"`
	DemoAccessToken string `json:"DemoAccessToken" xml:"DemoAccessToken"`
	ExpiredDate     string `json:"ExpiredDate" xml:"ExpiredDate"`
	OpenUserId      string `json:"OpenUserId" xml:"OpenUserId"`
	DemoTrialPage   string `json:"DemoTrialPage" xml:"DemoTrialPage"`
	DemoDetailPage  string `json:"DemoDetailPage" xml:"DemoDetailPage"`
}

CreateDemoAccessTokenResponse is the response struct for api CreateDemoAccessToken

func CreateCreateDemoAccessTokenResponse

func CreateCreateDemoAccessTokenResponse() (response *CreateDemoAccessTokenResponse)

CreateCreateDemoAccessTokenResponse creates a response to parse from CreateDemoAccessToken response

type DescribeDemoAccessTokenRequest

type DescribeDemoAccessTokenRequest struct {
	*requests.RpcRequest
	DemoAccessToken string `position:"Body" name:"DemoAccessToken"`
}

DescribeDemoAccessTokenRequest is the request struct for api DescribeDemoAccessToken

func CreateDescribeDemoAccessTokenRequest

func CreateDescribeDemoAccessTokenRequest() (request *DescribeDemoAccessTokenRequest)

CreateDescribeDemoAccessTokenRequest creates a request to invoke DescribeDemoAccessToken API

type DescribeDemoAccessTokenResponse

type DescribeDemoAccessTokenResponse struct {
	*responses.BaseResponse
	RequestId       string `json:"RequestId" xml:"RequestId"`
	DemoAccessToken string `json:"DemoAccessToken" xml:"DemoAccessToken"`
	ExpiredDate     string `json:"ExpiredDate" xml:"ExpiredDate"`
	OpenUserId      string `json:"OpenUserId" xml:"OpenUserId"`
	DemoTrialPage   string `json:"DemoTrialPage" xml:"DemoTrialPage"`
	DemoDetailPage  string `json:"DemoDetailPage" xml:"DemoDetailPage"`
	Edition         string `json:"Edition" xml:"Edition"`
}

DescribeDemoAccessTokenResponse is the response struct for api DescribeDemoAccessToken

func CreateDescribeDemoAccessTokenResponse

func CreateDescribeDemoAccessTokenResponse() (response *DescribeDemoAccessTokenResponse)

CreateDescribeDemoAccessTokenResponse creates a response to parse from DescribeDemoAccessToken response

type ExpireDemoAccessTokenRequest

type ExpireDemoAccessTokenRequest struct {
	*requests.RpcRequest
	DemoAccessToken string `position:"Body" name:"DemoAccessToken"`
}

ExpireDemoAccessTokenRequest is the request struct for api ExpireDemoAccessToken

func CreateExpireDemoAccessTokenRequest

func CreateExpireDemoAccessTokenRequest() (request *ExpireDemoAccessTokenRequest)

CreateExpireDemoAccessTokenRequest creates a request to invoke ExpireDemoAccessToken API

type ExpireDemoAccessTokenResponse

type ExpireDemoAccessTokenResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

ExpireDemoAccessTokenResponse is the response struct for api ExpireDemoAccessToken

func CreateExpireDemoAccessTokenResponse

func CreateExpireDemoAccessTokenResponse() (response *ExpireDemoAccessTokenResponse)

CreateExpireDemoAccessTokenResponse creates a response to parse from ExpireDemoAccessToken response

type GetDemoTrialAuthRequest added in v1.61.192

type GetDemoTrialAuthRequest struct {
	*requests.RpcRequest
	DemoId requests.Integer `position:"Body" name:"DemoId"`
}

GetDemoTrialAuthRequest is the request struct for api GetDemoTrialAuth

func CreateGetDemoTrialAuthRequest added in v1.61.192

func CreateGetDemoTrialAuthRequest() (request *GetDemoTrialAuthRequest)

CreateGetDemoTrialAuthRequest creates a request to invoke GetDemoTrialAuth API

type GetDemoTrialAuthResponse added in v1.61.192

type GetDemoTrialAuthResponse struct {
	*responses.BaseResponse
	RequestId     string `json:"RequestId" xml:"RequestId"`
	Authorization string `json:"Authorization" xml:"Authorization"`
}

GetDemoTrialAuthResponse is the response struct for api GetDemoTrialAuth

func CreateGetDemoTrialAuthResponse added in v1.61.192

func CreateGetDemoTrialAuthResponse() (response *GetDemoTrialAuthResponse)

CreateGetDemoTrialAuthResponse creates a response to parse from GetDemoTrialAuth response

Jump to

Keyboard shortcuts

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