Documentation ¶
Index ¶
- Variables
- func GetEndpointMap() map[string]string
- func GetEndpointType() string
- func SetClientProperty(client *Client, propertyName string, propertyValue interface{})
- func SetEndpointDataToClient(client *Client)
- type CheckServiceLinkedRoleForDeletingRequest
- type CheckServiceLinkedRoleForDeletingResponse
- 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) CheckServiceLinkedRoleForDeleting(request *CheckServiceLinkedRoleForDeletingRequest) (response *CheckServiceLinkedRoleForDeletingResponse, err error)
- func (client *Client) CheckServiceLinkedRoleForDeletingWithCallback(request *CheckServiceLinkedRoleForDeletingRequest, ...) <-chan int
- func (client *Client) CheckServiceLinkedRoleForDeletingWithChan(request *CheckServiceLinkedRoleForDeletingRequest) (<-chan *CheckServiceLinkedRoleForDeletingResponse, <-chan error)
- type Resources
- type RoleUsages
- type RoleUsagesItem
Constants ¶
This section is empty.
Variables ¶
var EndpointMap map[string]string
EndpointMap Endpoint Data
var EndpointType = "regional"
EndpointType regional or central
Functions ¶
func SetClientProperty ¶
SetClientProperty Set Property by Reflect
func SetEndpointDataToClient ¶
func SetEndpointDataToClient(client *Client)
SetEndpointDataToClient Set EndpointMap and ENdpointType
Types ¶
type CheckServiceLinkedRoleForDeletingRequest ¶
type CheckServiceLinkedRoleForDeletingRequest struct { *requests.RpcRequest RoleArn string `position:"Query" name:"RoleArn"` DeletionTaskId string `position:"Query" name:"DeletionTaskId"` ServiceName string `position:"Query" name:"ServiceName"` }
CheckServiceLinkedRoleForDeletingRequest is the request struct for api CheckServiceLinkedRoleForDeleting
func CreateCheckServiceLinkedRoleForDeletingRequest ¶
func CreateCheckServiceLinkedRoleForDeletingRequest() (request *CheckServiceLinkedRoleForDeletingRequest)
CreateCheckServiceLinkedRoleForDeletingRequest creates a request to invoke CheckServiceLinkedRoleForDeleting API
type CheckServiceLinkedRoleForDeletingResponse ¶
type CheckServiceLinkedRoleForDeletingResponse struct { *responses.BaseResponse Deletable bool `json:"Deletable" xml:"Deletable"` RequestId string `json:"RequestId" xml:"RequestId"` RoleUsages []RoleUsagesItem `json:"RoleUsages" xml:"RoleUsages"` }
CheckServiceLinkedRoleForDeletingResponse is the response struct for api CheckServiceLinkedRoleForDeleting
func CreateCheckServiceLinkedRoleForDeletingResponse ¶
func CreateCheckServiceLinkedRoleForDeletingResponse() (response *CheckServiceLinkedRoleForDeletingResponse)
CreateCheckServiceLinkedRoleForDeletingResponse creates a response to parse from CheckServiceLinkedRoleForDeleting response
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) CheckServiceLinkedRoleForDeleting ¶
func (client *Client) CheckServiceLinkedRoleForDeleting(request *CheckServiceLinkedRoleForDeletingRequest) (response *CheckServiceLinkedRoleForDeletingResponse, err error)
CheckServiceLinkedRoleForDeleting invokes the paistudio.CheckServiceLinkedRoleForDeleting API synchronously api document: https://help.aliyun.com/api/paistudio/checkservicelinkedrolefordeleting.html
func (*Client) CheckServiceLinkedRoleForDeletingWithCallback ¶
func (client *Client) CheckServiceLinkedRoleForDeletingWithCallback(request *CheckServiceLinkedRoleForDeletingRequest, callback func(response *CheckServiceLinkedRoleForDeletingResponse, err error)) <-chan int
CheckServiceLinkedRoleForDeletingWithCallback invokes the paistudio.CheckServiceLinkedRoleForDeleting API asynchronously api document: https://help.aliyun.com/api/paistudio/checkservicelinkedrolefordeleting.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) CheckServiceLinkedRoleForDeletingWithChan ¶
func (client *Client) CheckServiceLinkedRoleForDeletingWithChan(request *CheckServiceLinkedRoleForDeletingRequest) (<-chan *CheckServiceLinkedRoleForDeletingResponse, <-chan error)
CheckServiceLinkedRoleForDeletingWithChan invokes the paistudio.CheckServiceLinkedRoleForDeleting API asynchronously api document: https://help.aliyun.com/api/paistudio/checkservicelinkedrolefordeleting.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
type Resources ¶
type Resources struct {
Resources []string `json:"Resources" xml:"Resources"`
}
Resources is a nested struct in paistudio response
type RoleUsages ¶
type RoleUsages struct {
RoleUsagesItem []RoleUsagesItem `json:"RoleUsages" xml:"RoleUsages"`
}
RoleUsages is a nested struct in paistudio response
type RoleUsagesItem ¶
type RoleUsagesItem struct { Region string `json:"Region" xml:"Region"` Resources []string `json:"Resources" xml:"Resources"` }
RoleUsagesItem is a nested struct in paistudio response