Documentation ¶
Index ¶
- type Client
- func NewClient() (client *Client, err error)
- func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
- func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)
- func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
- func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)
- func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
- func NewClientWithRamRoleArnAndPolicy(regionId string, ...) (client *Client, err error)
- func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
- func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
- func (client *Client) GetSddpVersion(request *GetSddpVersionRequest) (response *GetSddpVersionResponse, err error)
- func (client *Client) GetSddpVersionWithCallback(request *GetSddpVersionRequest, ...) <-chan int
- func (client *Client) GetSddpVersionWithChan(request *GetSddpVersionRequest) (<-chan *GetSddpVersionResponse, <-chan error)
- func (client *Client) UpgradeSddpVersion(request *UpgradeSddpVersionRequest) (response *UpgradeSddpVersionResponse, err error)
- func (client *Client) UpgradeSddpVersionWithCallback(request *UpgradeSddpVersionRequest, ...) <-chan int
- func (client *Client) UpgradeSddpVersionWithChan(request *UpgradeSddpVersionRequest) (<-chan *UpgradeSddpVersionResponse, <-chan error)
- type GetSddpVersionRequest
- type GetSddpVersionResponse
- type UpgradeSddpVersionRequest
- type UpgradeSddpVersionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the sdk client struct, each func corresponds to an OpenAPI
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 ¶
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) GetSddpVersion ¶
func (client *Client) GetSddpVersion(request *GetSddpVersionRequest) (response *GetSddpVersionResponse, err error)
GetSddpVersion invokes the osssddp.GetSddpVersion API synchronously
func (*Client) GetSddpVersionWithCallback ¶
func (client *Client) GetSddpVersionWithCallback(request *GetSddpVersionRequest, callback func(response *GetSddpVersionResponse, err error)) <-chan int
GetSddpVersionWithCallback invokes the osssddp.GetSddpVersion API asynchronously
func (*Client) GetSddpVersionWithChan ¶
func (client *Client) GetSddpVersionWithChan(request *GetSddpVersionRequest) (<-chan *GetSddpVersionResponse, <-chan error)
GetSddpVersionWithChan invokes the osssddp.GetSddpVersion API asynchronously
func (*Client) UpgradeSddpVersion ¶
func (client *Client) UpgradeSddpVersion(request *UpgradeSddpVersionRequest) (response *UpgradeSddpVersionResponse, err error)
UpgradeSddpVersion invokes the osssddp.UpgradeSddpVersion API synchronously
func (*Client) UpgradeSddpVersionWithCallback ¶
func (client *Client) UpgradeSddpVersionWithCallback(request *UpgradeSddpVersionRequest, callback func(response *UpgradeSddpVersionResponse, err error)) <-chan int
UpgradeSddpVersionWithCallback invokes the osssddp.UpgradeSddpVersion API asynchronously
func (*Client) UpgradeSddpVersionWithChan ¶
func (client *Client) UpgradeSddpVersionWithChan(request *UpgradeSddpVersionRequest) (<-chan *UpgradeSddpVersionResponse, <-chan error)
UpgradeSddpVersionWithChan invokes the osssddp.UpgradeSddpVersion API asynchronously
type GetSddpVersionRequest ¶
type GetSddpVersionRequest struct { *requests.RpcRequest ClientToken string `position:"Query" name:"ClientToken"` }
GetSddpVersionRequest is the request struct for api GetSddpVersion
func CreateGetSddpVersionRequest ¶
func CreateGetSddpVersionRequest() (request *GetSddpVersionRequest)
CreateGetSddpVersionRequest creates a request to invoke GetSddpVersion API
type GetSddpVersionResponse ¶
type GetSddpVersionResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Content int `json:"Content" xml:"Content"` }
GetSddpVersionResponse is the response struct for api GetSddpVersion
func CreateGetSddpVersionResponse ¶
func CreateGetSddpVersionResponse() (response *GetSddpVersionResponse)
CreateGetSddpVersionResponse creates a response to parse from GetSddpVersion response
type UpgradeSddpVersionRequest ¶
type UpgradeSddpVersionRequest struct { *requests.RpcRequest ClientToken string `position:"Query" name:"ClientToken"` OssVersion requests.Integer `position:"Query" name:"OssVersion"` }
UpgradeSddpVersionRequest is the request struct for api UpgradeSddpVersion
func CreateUpgradeSddpVersionRequest ¶
func CreateUpgradeSddpVersionRequest() (request *UpgradeSddpVersionRequest)
CreateUpgradeSddpVersionRequest creates a request to invoke UpgradeSddpVersion API
type UpgradeSddpVersionResponse ¶
type UpgradeSddpVersionResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Content string `json:"Content" xml:"Content"` }
UpgradeSddpVersionResponse is the response struct for api UpgradeSddpVersion
func CreateUpgradeSddpVersionResponse ¶
func CreateUpgradeSddpVersionResponse() (response *UpgradeSddpVersionResponse)
CreateUpgradeSddpVersionResponse creates a response to parse from UpgradeSddpVersion response