ots

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindInstance2VpcRequest

type BindInstance2VpcRequest struct {
	*requests.RpcRequest
	AccessKeyId     string           `position:"Query" name:"access_key_id"`
	InstanceVpcName string           `position:"Query" name:"InstanceVpcName"`
	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
	InstanceName    string           `position:"Query" name:"InstanceName"`
	VpcId           string           `position:"Query" name:"VpcId"`
	VirtualSwitchId string           `position:"Query" name:"VirtualSwitchId"`
	RegionNo        string           `position:"Query" name:"RegionNo"`
	Network         string           `position:"Query" name:"Network"`
}

BindInstance2VpcRequest is the request struct for api BindInstance2Vpc

func CreateBindInstance2VpcRequest

func CreateBindInstance2VpcRequest() (request *BindInstance2VpcRequest)

CreateBindInstance2VpcRequest creates a request to invoke BindInstance2Vpc API

type BindInstance2VpcResponse

type BindInstance2VpcResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Endpoint  string `json:"Endpoint" xml:"Endpoint"`
	Domain    string `json:"Domain" xml:"Domain"`
}

BindInstance2VpcResponse is the response struct for api BindInstance2Vpc

func CreateBindInstance2VpcResponse

func CreateBindInstance2VpcResponse() (response *BindInstance2VpcResponse)

CreateBindInstance2VpcResponse creates a response to parse from BindInstance2Vpc response

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://help.aliyun.com/document_detail/66217.html

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://help.aliyun.com/document_detail/66223.html

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 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://help.aliyun.com/document_detail/66222.html

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 attention: rsa key pair auth is only Japan regions available

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://help.aliyun.com/document_detail/66222.html

func (*Client) BindInstance2Vpc

func (client *Client) BindInstance2Vpc(request *BindInstance2VpcRequest) (response *BindInstance2VpcResponse, err error)

BindInstance2Vpc invokes the ots.BindInstance2Vpc API synchronously api document: https://help.aliyun.com/api/ots/bindinstance2vpc.html

func (*Client) BindInstance2VpcWithCallback

func (client *Client) BindInstance2VpcWithCallback(request *BindInstance2VpcRequest, callback func(response *BindInstance2VpcResponse, err error)) <-chan int

BindInstance2VpcWithCallback invokes the ots.BindInstance2Vpc API asynchronously api document: https://help.aliyun.com/api/ots/bindinstance2vpc.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) BindInstance2VpcWithChan

func (client *Client) BindInstance2VpcWithChan(request *BindInstance2VpcRequest) (<-chan *BindInstance2VpcResponse, <-chan error)

BindInstance2VpcWithChan invokes the ots.BindInstance2Vpc API asynchronously api document: https://help.aliyun.com/api/ots/bindinstance2vpc.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteInstance

func (client *Client) DeleteInstance(request *DeleteInstanceRequest) (response *DeleteInstanceResponse, err error)

DeleteInstance invokes the ots.DeleteInstance API synchronously api document: https://help.aliyun.com/api/ots/deleteinstance.html

func (*Client) DeleteInstanceWithCallback

func (client *Client) DeleteInstanceWithCallback(request *DeleteInstanceRequest, callback func(response *DeleteInstanceResponse, err error)) <-chan int

DeleteInstanceWithCallback invokes the ots.DeleteInstance API asynchronously api document: https://help.aliyun.com/api/ots/deleteinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteInstanceWithChan

func (client *Client) DeleteInstanceWithChan(request *DeleteInstanceRequest) (<-chan *DeleteInstanceResponse, <-chan error)

DeleteInstanceWithChan invokes the ots.DeleteInstance API asynchronously api document: https://help.aliyun.com/api/ots/deleteinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteTags

func (client *Client) DeleteTags(request *DeleteTagsRequest) (response *DeleteTagsResponse, err error)

DeleteTags invokes the ots.DeleteTags API synchronously api document: https://help.aliyun.com/api/ots/deletetags.html

func (*Client) DeleteTagsWithCallback

func (client *Client) DeleteTagsWithCallback(request *DeleteTagsRequest, callback func(response *DeleteTagsResponse, err error)) <-chan int

DeleteTagsWithCallback invokes the ots.DeleteTags API asynchronously api document: https://help.aliyun.com/api/ots/deletetags.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteTagsWithChan

func (client *Client) DeleteTagsWithChan(request *DeleteTagsRequest) (<-chan *DeleteTagsResponse, <-chan error)

DeleteTagsWithChan invokes the ots.DeleteTags API asynchronously api document: https://help.aliyun.com/api/ots/deletetags.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetInstance

func (client *Client) GetInstance(request *GetInstanceRequest) (response *GetInstanceResponse, err error)

GetInstance invokes the ots.GetInstance API synchronously api document: https://help.aliyun.com/api/ots/getinstance.html

func (*Client) GetInstanceWithCallback

func (client *Client) GetInstanceWithCallback(request *GetInstanceRequest, callback func(response *GetInstanceResponse, err error)) <-chan int

GetInstanceWithCallback invokes the ots.GetInstance API asynchronously api document: https://help.aliyun.com/api/ots/getinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetInstanceWithChan

func (client *Client) GetInstanceWithChan(request *GetInstanceRequest) (<-chan *GetInstanceResponse, <-chan error)

GetInstanceWithChan invokes the ots.GetInstance API asynchronously api document: https://help.aliyun.com/api/ots/getinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) InsertInstance

func (client *Client) InsertInstance(request *InsertInstanceRequest) (response *InsertInstanceResponse, err error)

InsertInstance invokes the ots.InsertInstance API synchronously api document: https://help.aliyun.com/api/ots/insertinstance.html

func (*Client) InsertInstanceWithCallback

func (client *Client) InsertInstanceWithCallback(request *InsertInstanceRequest, callback func(response *InsertInstanceResponse, err error)) <-chan int

InsertInstanceWithCallback invokes the ots.InsertInstance API asynchronously api document: https://help.aliyun.com/api/ots/insertinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) InsertInstanceWithChan

func (client *Client) InsertInstanceWithChan(request *InsertInstanceRequest) (<-chan *InsertInstanceResponse, <-chan error)

InsertInstanceWithChan invokes the ots.InsertInstance API asynchronously api document: https://help.aliyun.com/api/ots/insertinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) InsertTags

func (client *Client) InsertTags(request *InsertTagsRequest) (response *InsertTagsResponse, err error)

InsertTags invokes the ots.InsertTags API synchronously api document: https://help.aliyun.com/api/ots/inserttags.html

func (*Client) InsertTagsWithCallback

func (client *Client) InsertTagsWithCallback(request *InsertTagsRequest, callback func(response *InsertTagsResponse, err error)) <-chan int

InsertTagsWithCallback invokes the ots.InsertTags API asynchronously api document: https://help.aliyun.com/api/ots/inserttags.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) InsertTagsWithChan

func (client *Client) InsertTagsWithChan(request *InsertTagsRequest) (<-chan *InsertTagsResponse, <-chan error)

InsertTagsWithChan invokes the ots.InsertTags API asynchronously api document: https://help.aliyun.com/api/ots/inserttags.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ListClusterType

func (client *Client) ListClusterType(request *ListClusterTypeRequest) (response *ListClusterTypeResponse, err error)

ListClusterType invokes the ots.ListClusterType API synchronously api document: https://help.aliyun.com/api/ots/listclustertype.html

func (*Client) ListClusterTypeWithCallback

func (client *Client) ListClusterTypeWithCallback(request *ListClusterTypeRequest, callback func(response *ListClusterTypeResponse, err error)) <-chan int

ListClusterTypeWithCallback invokes the ots.ListClusterType API asynchronously api document: https://help.aliyun.com/api/ots/listclustertype.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ListClusterTypeWithChan

func (client *Client) ListClusterTypeWithChan(request *ListClusterTypeRequest) (<-chan *ListClusterTypeResponse, <-chan error)

ListClusterTypeWithChan invokes the ots.ListClusterType API asynchronously api document: https://help.aliyun.com/api/ots/listclustertype.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ListInstance

func (client *Client) ListInstance(request *ListInstanceRequest) (response *ListInstanceResponse, err error)

ListInstance invokes the ots.ListInstance API synchronously api document: https://help.aliyun.com/api/ots/listinstance.html

func (*Client) ListInstanceWithCallback

func (client *Client) ListInstanceWithCallback(request *ListInstanceRequest, callback func(response *ListInstanceResponse, err error)) <-chan int

ListInstanceWithCallback invokes the ots.ListInstance API asynchronously api document: https://help.aliyun.com/api/ots/listinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ListInstanceWithChan

func (client *Client) ListInstanceWithChan(request *ListInstanceRequest) (<-chan *ListInstanceResponse, <-chan error)

ListInstanceWithChan invokes the ots.ListInstance API asynchronously api document: https://help.aliyun.com/api/ots/listinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ListTags

func (client *Client) ListTags(request *ListTagsRequest) (response *ListTagsResponse, err error)

ListTags invokes the ots.ListTags API synchronously api document: https://help.aliyun.com/api/ots/listtags.html

func (*Client) ListTagsWithCallback

func (client *Client) ListTagsWithCallback(request *ListTagsRequest, callback func(response *ListTagsResponse, err error)) <-chan int

ListTagsWithCallback invokes the ots.ListTags API asynchronously api document: https://help.aliyun.com/api/ots/listtags.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ListTagsWithChan

func (client *Client) ListTagsWithChan(request *ListTagsRequest) (<-chan *ListTagsResponse, <-chan error)

ListTagsWithChan invokes the ots.ListTags API asynchronously api document: https://help.aliyun.com/api/ots/listtags.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ListVpcInfoByInstance

func (client *Client) ListVpcInfoByInstance(request *ListVpcInfoByInstanceRequest) (response *ListVpcInfoByInstanceResponse, err error)

ListVpcInfoByInstance invokes the ots.ListVpcInfoByInstance API synchronously api document: https://help.aliyun.com/api/ots/listvpcinfobyinstance.html

func (*Client) ListVpcInfoByInstanceWithCallback

func (client *Client) ListVpcInfoByInstanceWithCallback(request *ListVpcInfoByInstanceRequest, callback func(response *ListVpcInfoByInstanceResponse, err error)) <-chan int

ListVpcInfoByInstanceWithCallback invokes the ots.ListVpcInfoByInstance API asynchronously api document: https://help.aliyun.com/api/ots/listvpcinfobyinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ListVpcInfoByInstanceWithChan

func (client *Client) ListVpcInfoByInstanceWithChan(request *ListVpcInfoByInstanceRequest) (<-chan *ListVpcInfoByInstanceResponse, <-chan error)

ListVpcInfoByInstanceWithChan invokes the ots.ListVpcInfoByInstance API asynchronously api document: https://help.aliyun.com/api/ots/listvpcinfobyinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ListVpcInfoByVpc

func (client *Client) ListVpcInfoByVpc(request *ListVpcInfoByVpcRequest) (response *ListVpcInfoByVpcResponse, err error)

ListVpcInfoByVpc invokes the ots.ListVpcInfoByVpc API synchronously api document: https://help.aliyun.com/api/ots/listvpcinfobyvpc.html

func (*Client) ListVpcInfoByVpcWithCallback

func (client *Client) ListVpcInfoByVpcWithCallback(request *ListVpcInfoByVpcRequest, callback func(response *ListVpcInfoByVpcResponse, err error)) <-chan int

ListVpcInfoByVpcWithCallback invokes the ots.ListVpcInfoByVpc API asynchronously api document: https://help.aliyun.com/api/ots/listvpcinfobyvpc.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ListVpcInfoByVpcWithChan

func (client *Client) ListVpcInfoByVpcWithChan(request *ListVpcInfoByVpcRequest) (<-chan *ListVpcInfoByVpcResponse, <-chan error)

ListVpcInfoByVpcWithChan invokes the ots.ListVpcInfoByVpc API asynchronously api document: https://help.aliyun.com/api/ots/listvpcinfobyvpc.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) UnbindInstance2Vpc

func (client *Client) UnbindInstance2Vpc(request *UnbindInstance2VpcRequest) (response *UnbindInstance2VpcResponse, err error)

UnbindInstance2Vpc invokes the ots.UnbindInstance2Vpc API synchronously api document: https://help.aliyun.com/api/ots/unbindinstance2vpc.html

func (*Client) UnbindInstance2VpcWithCallback

func (client *Client) UnbindInstance2VpcWithCallback(request *UnbindInstance2VpcRequest, callback func(response *UnbindInstance2VpcResponse, err error)) <-chan int

UnbindInstance2VpcWithCallback invokes the ots.UnbindInstance2Vpc API asynchronously api document: https://help.aliyun.com/api/ots/unbindinstance2vpc.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) UnbindInstance2VpcWithChan

func (client *Client) UnbindInstance2VpcWithChan(request *UnbindInstance2VpcRequest) (<-chan *UnbindInstance2VpcResponse, <-chan error)

UnbindInstance2VpcWithChan invokes the ots.UnbindInstance2Vpc API asynchronously api document: https://help.aliyun.com/api/ots/unbindinstance2vpc.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) UpdateInstance

func (client *Client) UpdateInstance(request *UpdateInstanceRequest) (response *UpdateInstanceResponse, err error)

UpdateInstance invokes the ots.UpdateInstance API synchronously api document: https://help.aliyun.com/api/ots/updateinstance.html

func (*Client) UpdateInstanceWithCallback

func (client *Client) UpdateInstanceWithCallback(request *UpdateInstanceRequest, callback func(response *UpdateInstanceResponse, err error)) <-chan int

UpdateInstanceWithCallback invokes the ots.UpdateInstance API asynchronously api document: https://help.aliyun.com/api/ots/updateinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) UpdateInstanceWithChan

func (client *Client) UpdateInstanceWithChan(request *UpdateInstanceRequest) (<-chan *UpdateInstanceResponse, <-chan error)

UpdateInstanceWithChan invokes the ots.UpdateInstance API asynchronously api document: https://help.aliyun.com/api/ots/updateinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type ClusterTypeInfos

type ClusterTypeInfos struct {
	ClusterType []string `json:"ClusterType" xml:"ClusterType"`
}

ClusterTypeInfos is a nested struct in ots response

type DeleteInstanceRequest

type DeleteInstanceRequest struct {
	*requests.RpcRequest
	AccessKeyId     string           `position:"Query" name:"access_key_id"`
	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
	InstanceName    string           `position:"Query" name:"InstanceName"`
}

DeleteInstanceRequest is the request struct for api DeleteInstance

func CreateDeleteInstanceRequest

func CreateDeleteInstanceRequest() (request *DeleteInstanceRequest)

CreateDeleteInstanceRequest creates a request to invoke DeleteInstance API

type DeleteInstanceResponse

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

DeleteInstanceResponse is the response struct for api DeleteInstance

func CreateDeleteInstanceResponse

func CreateDeleteInstanceResponse() (response *DeleteInstanceResponse)

CreateDeleteInstanceResponse creates a response to parse from DeleteInstance response

type DeleteTagsRequest

type DeleteTagsRequest struct {
	*requests.RpcRequest
	AccessKeyId     string               `position:"Query" name:"access_key_id"`
	ResourceOwnerId requests.Integer     `position:"Query" name:"ResourceOwnerId"`
	InstanceName    string               `position:"Query" name:"InstanceName"`
	TagInfo         *[]DeleteTagsTagInfo `position:"Query" name:"TagInfo"  type:"Repeated"`
}

DeleteTagsRequest is the request struct for api DeleteTags

func CreateDeleteTagsRequest

func CreateDeleteTagsRequest() (request *DeleteTagsRequest)

CreateDeleteTagsRequest creates a request to invoke DeleteTags API

type DeleteTagsResponse

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

DeleteTagsResponse is the response struct for api DeleteTags

func CreateDeleteTagsResponse

func CreateDeleteTagsResponse() (response *DeleteTagsResponse)

CreateDeleteTagsResponse creates a response to parse from DeleteTags response

type DeleteTagsTagInfo

type DeleteTagsTagInfo struct {
	TagValue string `name:"TagValue"`
	TagKey   string `name:"TagKey"`
}

DeleteTagsTagInfo is a repeated param struct in DeleteTagsRequest

type GetInstanceRequest

type GetInstanceRequest struct {
	*requests.RpcRequest
	AccessKeyId     string           `position:"Query" name:"access_key_id"`
	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
	InstanceName    string           `position:"Query" name:"InstanceName"`
}

GetInstanceRequest is the request struct for api GetInstance

func CreateGetInstanceRequest

func CreateGetInstanceRequest() (request *GetInstanceRequest)

CreateGetInstanceRequest creates a request to invoke GetInstance API

type GetInstanceResponse

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

GetInstanceResponse is the response struct for api GetInstance

func CreateGetInstanceResponse

func CreateGetInstanceResponse() (response *GetInstanceResponse)

CreateGetInstanceResponse creates a response to parse from GetInstance response

type InsertInstanceRequest

type InsertInstanceRequest struct {
	*requests.RpcRequest
	AccessKeyId     string                   `position:"Query" name:"access_key_id"`
	ClusterType     string                   `position:"Query" name:"ClusterType"`
	ResourceOwnerId requests.Integer         `position:"Query" name:"ResourceOwnerId"`
	InstanceName    string                   `position:"Query" name:"InstanceName"`
	Description     string                   `position:"Query" name:"Description"`
	TagInfo         *[]InsertInstanceTagInfo `position:"Query" name:"TagInfo"  type:"Repeated"`
	Network         string                   `position:"Query" name:"Network"`
}

InsertInstanceRequest is the request struct for api InsertInstance

func CreateInsertInstanceRequest

func CreateInsertInstanceRequest() (request *InsertInstanceRequest)

CreateInsertInstanceRequest creates a request to invoke InsertInstance API

type InsertInstanceResponse

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

InsertInstanceResponse is the response struct for api InsertInstance

func CreateInsertInstanceResponse

func CreateInsertInstanceResponse() (response *InsertInstanceResponse)

CreateInsertInstanceResponse creates a response to parse from InsertInstance response

type InsertInstanceTagInfo

type InsertInstanceTagInfo struct {
	TagValue string `name:"TagValue"`
	TagKey   string `name:"TagKey"`
}

InsertInstanceTagInfo is a repeated param struct in InsertInstanceRequest

type InsertTagsRequest

type InsertTagsRequest struct {
	*requests.RpcRequest
	AccessKeyId     string               `position:"Query" name:"access_key_id"`
	ResourceOwnerId requests.Integer     `position:"Query" name:"ResourceOwnerId"`
	InstanceName    string               `position:"Query" name:"InstanceName"`
	TagInfo         *[]InsertTagsTagInfo `position:"Query" name:"TagInfo"  type:"Repeated"`
}

InsertTagsRequest is the request struct for api InsertTags

func CreateInsertTagsRequest

func CreateInsertTagsRequest() (request *InsertTagsRequest)

CreateInsertTagsRequest creates a request to invoke InsertTags API

type InsertTagsResponse

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

InsertTagsResponse is the response struct for api InsertTags

func CreateInsertTagsResponse

func CreateInsertTagsResponse() (response *InsertTagsResponse)

CreateInsertTagsResponse creates a response to parse from InsertTags response

type InsertTagsTagInfo

type InsertTagsTagInfo struct {
	TagValue string `name:"TagValue"`
	TagKey   string `name:"TagKey"`
}

InsertTagsTagInfo is a repeated param struct in InsertTagsRequest

type InstanceInfo

type InstanceInfo struct {
	Status        int                   `json:"Status" xml:"Status"`
	WriteCapacity int                   `json:"WriteCapacity" xml:"WriteCapacity"`
	ReadCapacity  int                   `json:"ReadCapacity" xml:"ReadCapacity"`
	ClusterType   string                `json:"ClusterType" xml:"ClusterType"`
	Timestamp     string                `json:"Timestamp" xml:"Timestamp"`
	UserId        string                `json:"UserId" xml:"UserId"`
	InstanceName  string                `json:"InstanceName" xml:"InstanceName"`
	CreateTime    string                `json:"CreateTime" xml:"CreateTime"`
	Network       string                `json:"Network" xml:"Network"`
	Description   string                `json:"Description" xml:"Description"`
	Quota         Quota                 `json:"Quota" xml:"Quota"`
	TagInfos      TagInfosInGetInstance `json:"TagInfos" xml:"TagInfos"`
}

InstanceInfo is a nested struct in ots response

type InstanceInfos

type InstanceInfos struct {
	InstanceInfo []InstanceInfo `json:"InstanceInfo" xml:"InstanceInfo"`
}

InstanceInfos is a nested struct in ots response

type ListClusterTypeRequest

type ListClusterTypeRequest struct {
	*requests.RpcRequest
	AccessKeyId     string           `position:"Query" name:"access_key_id"`
	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
}

ListClusterTypeRequest is the request struct for api ListClusterType

func CreateListClusterTypeRequest

func CreateListClusterTypeRequest() (request *ListClusterTypeRequest)

CreateListClusterTypeRequest creates a request to invoke ListClusterType API

type ListClusterTypeResponse

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

ListClusterTypeResponse is the response struct for api ListClusterType

func CreateListClusterTypeResponse

func CreateListClusterTypeResponse() (response *ListClusterTypeResponse)

CreateListClusterTypeResponse creates a response to parse from ListClusterType response

type ListInstanceRequest

type ListInstanceRequest struct {
	*requests.RpcRequest
	AccessKeyId     string                 `position:"Query" name:"access_key_id"`
	ResourceOwnerId requests.Integer       `position:"Query" name:"ResourceOwnerId"`
	PageSize        requests.Integer       `position:"Query" name:"PageSize"`
	PageNum         requests.Integer       `position:"Query" name:"PageNum"`
	TagInfo         *[]ListInstanceTagInfo `position:"Query" name:"TagInfo"  type:"Repeated"`
}

ListInstanceRequest is the request struct for api ListInstance

func CreateListInstanceRequest

func CreateListInstanceRequest() (request *ListInstanceRequest)

CreateListInstanceRequest creates a request to invoke ListInstance API

type ListInstanceResponse

type ListInstanceResponse struct {
	*responses.BaseResponse
	TotalCount    int           `json:"TotalCount" xml:"TotalCount"`
	PageNum       int           `json:"PageNum" xml:"PageNum"`
	PageSize      int           `json:"PageSize" xml:"PageSize"`
	RequestId     string        `json:"RequestId" xml:"RequestId"`
	InstanceInfos InstanceInfos `json:"InstanceInfos" xml:"InstanceInfos"`
}

ListInstanceResponse is the response struct for api ListInstance

func CreateListInstanceResponse

func CreateListInstanceResponse() (response *ListInstanceResponse)

CreateListInstanceResponse creates a response to parse from ListInstance response

type ListInstanceTagInfo

type ListInstanceTagInfo struct {
	TagValue string `name:"TagValue"`
	TagKey   string `name:"TagKey"`
}

ListInstanceTagInfo is a repeated param struct in ListInstanceRequest

type ListTagsRequest

type ListTagsRequest struct {
	*requests.RpcRequest
	AccessKeyId     string             `position:"Query" name:"access_key_id"`
	ResourceOwnerId requests.Integer   `position:"Query" name:"ResourceOwnerId"`
	InstanceName    string             `position:"Query" name:"InstanceName"`
	PageSize        requests.Integer   `position:"Query" name:"PageSize"`
	PageNum         requests.Integer   `position:"Query" name:"PageNum"`
	TagInfo         *[]ListTagsTagInfo `position:"Query" name:"TagInfo"  type:"Repeated"`
}

ListTagsRequest is the request struct for api ListTags

func CreateListTagsRequest

func CreateListTagsRequest() (request *ListTagsRequest)

CreateListTagsRequest creates a request to invoke ListTags API

type ListTagsResponse

type ListTagsResponse struct {
	*responses.BaseResponse
	TotalCount int                `json:"TotalCount" xml:"TotalCount"`
	PageNum    int                `json:"PageNum" xml:"PageNum"`
	PageSize   int                `json:"PageSize" xml:"PageSize"`
	RequestId  string             `json:"RequestId" xml:"RequestId"`
	TagInfos   TagInfosInListTags `json:"TagInfos" xml:"TagInfos"`
}

ListTagsResponse is the response struct for api ListTags

func CreateListTagsResponse

func CreateListTagsResponse() (response *ListTagsResponse)

CreateListTagsResponse creates a response to parse from ListTags response

type ListTagsTagInfo

type ListTagsTagInfo struct {
	TagValue string `name:"TagValue"`
	TagKey   string `name:"TagKey"`
}

ListTagsTagInfo is a repeated param struct in ListTagsRequest

type ListVpcInfoByInstanceRequest

type ListVpcInfoByInstanceRequest struct {
	*requests.RpcRequest
	AccessKeyId     string           `position:"Query" name:"access_key_id"`
	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
	InstanceName    string           `position:"Query" name:"InstanceName"`
	PageSize        requests.Integer `position:"Query" name:"PageSize"`
	PageNum         requests.Integer `position:"Query" name:"PageNum"`
}

ListVpcInfoByInstanceRequest is the request struct for api ListVpcInfoByInstance

func CreateListVpcInfoByInstanceRequest

func CreateListVpcInfoByInstanceRequest() (request *ListVpcInfoByInstanceRequest)

CreateListVpcInfoByInstanceRequest creates a request to invoke ListVpcInfoByInstance API

type ListVpcInfoByInstanceResponse

type ListVpcInfoByInstanceResponse struct {
	*responses.BaseResponse
	RequestId    string                          `json:"RequestId" xml:"RequestId"`
	InstanceName string                          `json:"InstanceName" xml:"InstanceName"`
	TotalCount   int                             `json:"TotalCount" xml:"TotalCount"`
	PageNum      int                             `json:"PageNum" xml:"PageNum"`
	PageSize     int                             `json:"PageSize" xml:"PageSize"`
	VpcInfos     VpcInfosInListVpcInfoByInstance `json:"VpcInfos" xml:"VpcInfos"`
}

ListVpcInfoByInstanceResponse is the response struct for api ListVpcInfoByInstance

func CreateListVpcInfoByInstanceResponse

func CreateListVpcInfoByInstanceResponse() (response *ListVpcInfoByInstanceResponse)

CreateListVpcInfoByInstanceResponse creates a response to parse from ListVpcInfoByInstance response

type ListVpcInfoByVpcRequest

type ListVpcInfoByVpcRequest struct {
	*requests.RpcRequest
	AccessKeyId     string                     `position:"Query" name:"access_key_id"`
	ResourceOwnerId requests.Integer           `position:"Query" name:"ResourceOwnerId"`
	VpcId           string                     `position:"Query" name:"VpcId"`
	PageSize        requests.Integer           `position:"Query" name:"PageSize"`
	PageNum         requests.Integer           `position:"Query" name:"PageNum"`
	TagInfo         *[]ListVpcInfoByVpcTagInfo `position:"Query" name:"TagInfo"  type:"Repeated"`
}

ListVpcInfoByVpcRequest is the request struct for api ListVpcInfoByVpc

func CreateListVpcInfoByVpcRequest

func CreateListVpcInfoByVpcRequest() (request *ListVpcInfoByVpcRequest)

CreateListVpcInfoByVpcRequest creates a request to invoke ListVpcInfoByVpc API

type ListVpcInfoByVpcResponse

type ListVpcInfoByVpcResponse struct {
	*responses.BaseResponse
	TotalCount int                        `json:"TotalCount" xml:"TotalCount"`
	PageNum    int                        `json:"PageNum" xml:"PageNum"`
	PageSize   int                        `json:"PageSize" xml:"PageSize"`
	RequestId  string                     `json:"RequestId" xml:"RequestId"`
	VpcId      string                     `json:"VpcId" xml:"VpcId"`
	VpcInfos   VpcInfosInListVpcInfoByVpc `json:"VpcInfos" xml:"VpcInfos"`
}

ListVpcInfoByVpcResponse is the response struct for api ListVpcInfoByVpc

func CreateListVpcInfoByVpcResponse

func CreateListVpcInfoByVpcResponse() (response *ListVpcInfoByVpcResponse)

CreateListVpcInfoByVpcResponse creates a response to parse from ListVpcInfoByVpc response

type ListVpcInfoByVpcTagInfo

type ListVpcInfoByVpcTagInfo struct {
	TagValue string `name:"TagValue"`
	TagKey   string `name:"TagKey"`
}

ListVpcInfoByVpcTagInfo is a repeated param struct in ListVpcInfoByVpcRequest

type Quota

type Quota struct {
	EntityQuota int `json:"EntityQuota" xml:"EntityQuota"`
}

Quota is a nested struct in ots response

type TagInfo

type TagInfo struct {
	TagValue string `json:"TagValue" xml:"TagValue"`
	TagKey   string `json:"TagKey" xml:"TagKey"`
}

TagInfo is a nested struct in ots response

type TagInfosInGetInstance

type TagInfosInGetInstance struct {
	TagInfo []TagInfo `json:"TagInfo" xml:"TagInfo"`
}

TagInfosInGetInstance is a nested struct in ots response

type TagInfosInListTags

type TagInfosInListTags struct {
	TagInfo []TagInfo `json:"TagInfo" xml:"TagInfo"`
}

TagInfosInListTags is a nested struct in ots response

type UnbindInstance2VpcRequest

type UnbindInstance2VpcRequest struct {
	*requests.RpcRequest
	AccessKeyId     string           `position:"Query" name:"access_key_id"`
	InstanceVpcName string           `position:"Query" name:"InstanceVpcName"`
	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
	InstanceName    string           `position:"Query" name:"InstanceName"`
	RegionNo        string           `position:"Query" name:"RegionNo"`
}

UnbindInstance2VpcRequest is the request struct for api UnbindInstance2Vpc

func CreateUnbindInstance2VpcRequest

func CreateUnbindInstance2VpcRequest() (request *UnbindInstance2VpcRequest)

CreateUnbindInstance2VpcRequest creates a request to invoke UnbindInstance2Vpc API

type UnbindInstance2VpcResponse

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

UnbindInstance2VpcResponse is the response struct for api UnbindInstance2Vpc

func CreateUnbindInstance2VpcResponse

func CreateUnbindInstance2VpcResponse() (response *UnbindInstance2VpcResponse)

CreateUnbindInstance2VpcResponse creates a response to parse from UnbindInstance2Vpc response

type UpdateInstanceRequest

type UpdateInstanceRequest struct {
	*requests.RpcRequest
	AccessKeyId     string           `position:"Query" name:"access_key_id"`
	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
	InstanceName    string           `position:"Query" name:"InstanceName"`
	Network         string           `position:"Query" name:"Network"`
}

UpdateInstanceRequest is the request struct for api UpdateInstance

func CreateUpdateInstanceRequest

func CreateUpdateInstanceRequest() (request *UpdateInstanceRequest)

CreateUpdateInstanceRequest creates a request to invoke UpdateInstance API

type UpdateInstanceResponse

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

UpdateInstanceResponse is the response struct for api UpdateInstance

func CreateUpdateInstanceResponse

func CreateUpdateInstanceResponse() (response *UpdateInstanceResponse)

CreateUpdateInstanceResponse creates a response to parse from UpdateInstance response

type VpcInfo

type VpcInfo struct {
	Domain          string `json:"Domain" xml:"Domain"`
	Endpoint        string `json:"Endpoint" xml:"Endpoint"`
	RegionNo        string `json:"RegionNo" xml:"RegionNo"`
	InstanceName    string `json:"InstanceName" xml:"InstanceName"`
	InstanceVpcName string `json:"InstanceVpcName" xml:"InstanceVpcName"`
	VpcId           string `json:"VpcId" xml:"VpcId"`
}

VpcInfo is a nested struct in ots response

type VpcInfosInListVpcInfoByInstance

type VpcInfosInListVpcInfoByInstance struct {
	VpcInfo []VpcInfo `json:"VpcInfo" xml:"VpcInfo"`
}

VpcInfosInListVpcInfoByInstance is a nested struct in ots response

type VpcInfosInListVpcInfoByVpc

type VpcInfosInListVpcInfoByVpc struct {
	VpcInfo []VpcInfo `json:"VpcInfo" xml:"VpcInfo"`
}

VpcInfosInListVpcInfoByVpc is a nested struct in ots response

Jump to

Keyboard shortcuts

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