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 NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName 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) GetClusterInstance(request *GetClusterInstanceRequest) (response *GetClusterInstanceResponse, err error)
- func (client *Client) GetClusterInstanceWithCallback(request *GetClusterInstanceRequest, ...) <-chan int
- func (client *Client) GetClusterInstanceWithChan(request *GetClusterInstanceRequest) (<-chan *GetClusterInstanceResponse, <-chan error)
- func (client *Client) GetInstancesStatusCount(request *GetInstancesStatusCountRequest) (response *GetInstancesStatusCountResponse, err error)
- func (client *Client) GetInstancesStatusCountWithCallback(request *GetInstancesStatusCountRequest, ...) <-chan int
- func (client *Client) GetInstancesStatusCountWithChan(request *GetInstancesStatusCountRequest) (<-chan *GetInstancesStatusCountResponse, <-chan error)
- func (client *Client) GetProjectInstance(request *GetProjectInstanceRequest) (response *GetProjectInstanceResponse, err error)
- func (client *Client) GetProjectInstanceWithCallback(request *GetProjectInstanceRequest, ...) <-chan int
- func (client *Client) GetProjectInstanceWithChan(request *GetProjectInstanceRequest) (<-chan *GetProjectInstanceResponse, <-chan error)
- func (client *Client) GetQuotaHistoryInfo(request *GetQuotaHistoryInfoRequest) (response *GetQuotaHistoryInfoResponse, err error)
- func (client *Client) GetQuotaHistoryInfoWithCallback(request *GetQuotaHistoryInfoRequest, ...) <-chan int
- func (client *Client) GetQuotaHistoryInfoWithChan(request *GetQuotaHistoryInfoRequest) (<-chan *GetQuotaHistoryInfoResponse, <-chan error)
- func (client *Client) GetQuotaInstance(request *GetQuotaInstanceRequest) (response *GetQuotaInstanceResponse, err error)
- func (client *Client) GetQuotaInstanceWithCallback(request *GetQuotaInstanceRequest, ...) <-chan int
- func (client *Client) GetQuotaInstanceWithChan(request *GetQuotaInstanceRequest) (<-chan *GetQuotaInstanceResponse, <-chan error)
- func (client *Client) GetUserInstance(request *GetUserInstanceRequest) (response *GetUserInstanceResponse, err error)
- func (client *Client) GetUserInstanceWithCallback(request *GetUserInstanceRequest, ...) <-chan int
- func (client *Client) GetUserInstanceWithChan(request *GetUserInstanceRequest) (<-chan *GetUserInstanceResponse, <-chan error)
- func (client *Client) QueryCustomerSaleInfo(request *QueryCustomerSaleInfoRequest) (response *QueryCustomerSaleInfoResponse, err error)
- func (client *Client) QueryCustomerSaleInfoWithCallback(request *QueryCustomerSaleInfoRequest, ...) <-chan int
- func (client *Client) QueryCustomerSaleInfoWithChan(request *QueryCustomerSaleInfoRequest) (<-chan *QueryCustomerSaleInfoResponse, <-chan error)
- func (client *Client) QueryResourceInventory(request *QueryResourceInventoryRequest) (response *QueryResourceInventoryResponse, err error)
- func (client *Client) QueryResourceInventoryWithCallback(request *QueryResourceInventoryRequest, ...) <-chan int
- func (client *Client) QueryResourceInventoryWithChan(request *QueryResourceInventoryRequest) (<-chan *QueryResourceInventoryResponse, <-chan error)
- func (client *Client) QueryTopology(request *QueryTopologyRequest) (response *QueryTopologyResponse, err error)
- func (client *Client) QueryTopologyWithCallback(request *QueryTopologyRequest, ...) <-chan int
- func (client *Client) QueryTopologyWithChan(request *QueryTopologyRequest) (<-chan *QueryTopologyResponse, <-chan error)
- type Cluster
- type ClusterItem
- type ClustersInQueryCustomerSaleInfo
- type ClustersInQueryResourceInventory
- type ClustersInQueryTopology
- type CpuMaxQuota
- type CpuMinQuota
- type CpuUsed
- type Data
- type DataInGetInstancesStatusCount
- type DataInGetQuotaHistoryInfo
- type DataItem
- type DetailInGetClusterInstance
- type DetailInGetProjectInstance
- type DetailInGetQuotaInstance
- type DetailInGetUserInstance
- type GetClusterInstanceRequest
- type GetClusterInstanceResponse
- type GetInstancesStatusCountRequest
- type GetInstancesStatusCountResponse
- type GetProjectInstanceRequest
- type GetProjectInstanceResponse
- type GetQuotaHistoryInfoRequest
- type GetQuotaHistoryInfoResponse
- type GetQuotaInstanceRequest
- type GetQuotaInstanceResponse
- type GetUserInstanceRequest
- type GetUserInstanceResponse
- type Instance
- type MemMaxQuota
- type MemMinQuota
- type MemUsed
- type Point
- type QueryCustomerSaleInfoRequest
- type QueryCustomerSaleInfoResponse
- type QueryResourceInventoryRequest
- type QueryResourceInventoryResponse
- type QueryTopologyRequest
- type QueryTopologyResponse
- type RegionItem
- type Regions
- type ResourceInventories
- type ResourceInventory
- type ResourceParameter
- type ResourceParameters
- type Result
- type ResultItem
- type SaleInfo
- type SaleInfos
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://help.aliyun.com/document_detail/66217.html
func NewClientWithEcsRamRole ¶
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) GetClusterInstance ¶
func (client *Client) GetClusterInstance(request *GetClusterInstanceRequest) (response *GetClusterInstanceResponse, err error)
GetClusterInstance invokes the teslamaxcompute.GetClusterInstance API synchronously api document: https://help.aliyun.com/api/teslamaxcompute/getclusterinstance.html
func (*Client) GetClusterInstanceWithCallback ¶
func (client *Client) GetClusterInstanceWithCallback(request *GetClusterInstanceRequest, callback func(response *GetClusterInstanceResponse, err error)) <-chan int
GetClusterInstanceWithCallback invokes the teslamaxcompute.GetClusterInstance API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/getclusterinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetClusterInstanceWithChan ¶
func (client *Client) GetClusterInstanceWithChan(request *GetClusterInstanceRequest) (<-chan *GetClusterInstanceResponse, <-chan error)
GetClusterInstanceWithChan invokes the teslamaxcompute.GetClusterInstance API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/getclusterinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetInstancesStatusCount ¶
func (client *Client) GetInstancesStatusCount(request *GetInstancesStatusCountRequest) (response *GetInstancesStatusCountResponse, err error)
GetInstancesStatusCount invokes the teslamaxcompute.GetInstancesStatusCount API synchronously api document: https://help.aliyun.com/api/teslamaxcompute/getinstancesstatuscount.html
func (*Client) GetInstancesStatusCountWithCallback ¶
func (client *Client) GetInstancesStatusCountWithCallback(request *GetInstancesStatusCountRequest, callback func(response *GetInstancesStatusCountResponse, err error)) <-chan int
GetInstancesStatusCountWithCallback invokes the teslamaxcompute.GetInstancesStatusCount API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/getinstancesstatuscount.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetInstancesStatusCountWithChan ¶
func (client *Client) GetInstancesStatusCountWithChan(request *GetInstancesStatusCountRequest) (<-chan *GetInstancesStatusCountResponse, <-chan error)
GetInstancesStatusCountWithChan invokes the teslamaxcompute.GetInstancesStatusCount API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/getinstancesstatuscount.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetProjectInstance ¶
func (client *Client) GetProjectInstance(request *GetProjectInstanceRequest) (response *GetProjectInstanceResponse, err error)
GetProjectInstance invokes the teslamaxcompute.GetProjectInstance API synchronously api document: https://help.aliyun.com/api/teslamaxcompute/getprojectinstance.html
func (*Client) GetProjectInstanceWithCallback ¶
func (client *Client) GetProjectInstanceWithCallback(request *GetProjectInstanceRequest, callback func(response *GetProjectInstanceResponse, err error)) <-chan int
GetProjectInstanceWithCallback invokes the teslamaxcompute.GetProjectInstance API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/getprojectinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetProjectInstanceWithChan ¶
func (client *Client) GetProjectInstanceWithChan(request *GetProjectInstanceRequest) (<-chan *GetProjectInstanceResponse, <-chan error)
GetProjectInstanceWithChan invokes the teslamaxcompute.GetProjectInstance API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/getprojectinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetQuotaHistoryInfo ¶
func (client *Client) GetQuotaHistoryInfo(request *GetQuotaHistoryInfoRequest) (response *GetQuotaHistoryInfoResponse, err error)
GetQuotaHistoryInfo invokes the teslamaxcompute.GetQuotaHistoryInfo API synchronously api document: https://help.aliyun.com/api/teslamaxcompute/getquotahistoryinfo.html
func (*Client) GetQuotaHistoryInfoWithCallback ¶
func (client *Client) GetQuotaHistoryInfoWithCallback(request *GetQuotaHistoryInfoRequest, callback func(response *GetQuotaHistoryInfoResponse, err error)) <-chan int
GetQuotaHistoryInfoWithCallback invokes the teslamaxcompute.GetQuotaHistoryInfo API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/getquotahistoryinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetQuotaHistoryInfoWithChan ¶
func (client *Client) GetQuotaHistoryInfoWithChan(request *GetQuotaHistoryInfoRequest) (<-chan *GetQuotaHistoryInfoResponse, <-chan error)
GetQuotaHistoryInfoWithChan invokes the teslamaxcompute.GetQuotaHistoryInfo API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/getquotahistoryinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetQuotaInstance ¶
func (client *Client) GetQuotaInstance(request *GetQuotaInstanceRequest) (response *GetQuotaInstanceResponse, err error)
GetQuotaInstance invokes the teslamaxcompute.GetQuotaInstance API synchronously api document: https://help.aliyun.com/api/teslamaxcompute/getquotainstance.html
func (*Client) GetQuotaInstanceWithCallback ¶
func (client *Client) GetQuotaInstanceWithCallback(request *GetQuotaInstanceRequest, callback func(response *GetQuotaInstanceResponse, err error)) <-chan int
GetQuotaInstanceWithCallback invokes the teslamaxcompute.GetQuotaInstance API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/getquotainstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetQuotaInstanceWithChan ¶
func (client *Client) GetQuotaInstanceWithChan(request *GetQuotaInstanceRequest) (<-chan *GetQuotaInstanceResponse, <-chan error)
GetQuotaInstanceWithChan invokes the teslamaxcompute.GetQuotaInstance API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/getquotainstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetUserInstance ¶
func (client *Client) GetUserInstance(request *GetUserInstanceRequest) (response *GetUserInstanceResponse, err error)
GetUserInstance invokes the teslamaxcompute.GetUserInstance API synchronously api document: https://help.aliyun.com/api/teslamaxcompute/getuserinstance.html
func (*Client) GetUserInstanceWithCallback ¶
func (client *Client) GetUserInstanceWithCallback(request *GetUserInstanceRequest, callback func(response *GetUserInstanceResponse, err error)) <-chan int
GetUserInstanceWithCallback invokes the teslamaxcompute.GetUserInstance API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/getuserinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetUserInstanceWithChan ¶
func (client *Client) GetUserInstanceWithChan(request *GetUserInstanceRequest) (<-chan *GetUserInstanceResponse, <-chan error)
GetUserInstanceWithChan invokes the teslamaxcompute.GetUserInstance API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/getuserinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) QueryCustomerSaleInfo ¶
func (client *Client) QueryCustomerSaleInfo(request *QueryCustomerSaleInfoRequest) (response *QueryCustomerSaleInfoResponse, err error)
QueryCustomerSaleInfo invokes the teslamaxcompute.QueryCustomerSaleInfo API synchronously api document: https://help.aliyun.com/api/teslamaxcompute/querycustomersaleinfo.html
func (*Client) QueryCustomerSaleInfoWithCallback ¶
func (client *Client) QueryCustomerSaleInfoWithCallback(request *QueryCustomerSaleInfoRequest, callback func(response *QueryCustomerSaleInfoResponse, err error)) <-chan int
QueryCustomerSaleInfoWithCallback invokes the teslamaxcompute.QueryCustomerSaleInfo API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/querycustomersaleinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) QueryCustomerSaleInfoWithChan ¶
func (client *Client) QueryCustomerSaleInfoWithChan(request *QueryCustomerSaleInfoRequest) (<-chan *QueryCustomerSaleInfoResponse, <-chan error)
QueryCustomerSaleInfoWithChan invokes the teslamaxcompute.QueryCustomerSaleInfo API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/querycustomersaleinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) QueryResourceInventory ¶
func (client *Client) QueryResourceInventory(request *QueryResourceInventoryRequest) (response *QueryResourceInventoryResponse, err error)
QueryResourceInventory invokes the teslamaxcompute.QueryResourceInventory API synchronously api document: https://help.aliyun.com/api/teslamaxcompute/queryresourceinventory.html
func (*Client) QueryResourceInventoryWithCallback ¶
func (client *Client) QueryResourceInventoryWithCallback(request *QueryResourceInventoryRequest, callback func(response *QueryResourceInventoryResponse, err error)) <-chan int
QueryResourceInventoryWithCallback invokes the teslamaxcompute.QueryResourceInventory API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/queryresourceinventory.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) QueryResourceInventoryWithChan ¶
func (client *Client) QueryResourceInventoryWithChan(request *QueryResourceInventoryRequest) (<-chan *QueryResourceInventoryResponse, <-chan error)
QueryResourceInventoryWithChan invokes the teslamaxcompute.QueryResourceInventory API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/queryresourceinventory.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) QueryTopology ¶
func (client *Client) QueryTopology(request *QueryTopologyRequest) (response *QueryTopologyResponse, err error)
QueryTopology invokes the teslamaxcompute.QueryTopology API synchronously api document: https://help.aliyun.com/api/teslamaxcompute/querytopology.html
func (*Client) QueryTopologyWithCallback ¶
func (client *Client) QueryTopologyWithCallback(request *QueryTopologyRequest, callback func(response *QueryTopologyResponse, err error)) <-chan int
QueryTopologyWithCallback invokes the teslamaxcompute.QueryTopology API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/querytopology.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) QueryTopologyWithChan ¶
func (client *Client) QueryTopologyWithChan(request *QueryTopologyRequest) (<-chan *QueryTopologyResponse, <-chan error)
QueryTopologyWithChan invokes the teslamaxcompute.QueryTopology API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/querytopology.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
type Cluster ¶
type Cluster struct { Region string `json:"Region" xml:"Region"` MachineRoom string `json:"MachineRoom" xml:"MachineRoom"` Status string `json:"Status" xml:"Status"` Cluster string `json:"Cluster" xml:"Cluster"` SaleInfos SaleInfos `json:"SaleInfos" xml:"SaleInfos"` ResourceInventories ResourceInventories `json:"ResourceInventories" xml:"ResourceInventories"` ResourceParameters ResourceParameters `json:"ResourceParameters" xml:"ResourceParameters"` }
Cluster is a nested struct in teslamaxcompute response
type ClusterItem ¶
type ClusterItem struct { Cluster string `json:"Cluster" xml:"Cluster"` ProductLine string `json:"ProductLine" xml:"ProductLine"` ProductClass string `json:"ProductClass" xml:"ProductClass"` NetCode string `json:"NetCode" xml:"NetCode"` Business string `json:"Business" xml:"Business"` MachineRoom string `json:"MachineRoom" xml:"MachineRoom"` NetArch string `json:"NetArch" xml:"NetArch"` }
ClusterItem is a nested struct in teslamaxcompute response
type ClustersInQueryCustomerSaleInfo ¶
type ClustersInQueryCustomerSaleInfo struct {
Cluster []Cluster `json:"cluster" xml:"cluster"`
}
ClustersInQueryCustomerSaleInfo is a nested struct in teslamaxcompute response
type ClustersInQueryResourceInventory ¶
type ClustersInQueryResourceInventory struct {
Cluster []Cluster `json:"cluster" xml:"cluster"`
}
ClustersInQueryResourceInventory is a nested struct in teslamaxcompute response
type ClustersInQueryTopology ¶
type ClustersInQueryTopology struct {
ClusterItem []ClusterItem `json:"clusterItem" xml:"clusterItem"`
}
ClustersInQueryTopology is a nested struct in teslamaxcompute response
type CpuMaxQuota ¶
type CpuMaxQuota struct { Min float64 `json:"Min" xml:"Min"` Max float64 `json:"Max" xml:"Max"` Avg float64 `json:"Avg" xml:"Avg"` }
CpuMaxQuota is a nested struct in teslamaxcompute response
type CpuMinQuota ¶
type CpuMinQuota struct { Min float64 `json:"Min" xml:"Min"` Max float64 `json:"Max" xml:"Max"` Avg float64 `json:"Avg" xml:"Avg"` }
CpuMinQuota is a nested struct in teslamaxcompute response
type CpuUsed ¶
type CpuUsed struct { Min float64 `json:"Min" xml:"Min"` Max float64 `json:"Max" xml:"Max"` Avg float64 `json:"Avg" xml:"Avg"` }
CpuUsed is a nested struct in teslamaxcompute response
type Data ¶
type Data struct { Total int `json:"Total" xml:"Total"` LastUpdate string `json:"LastUpdate" xml:"LastUpdate"` Clusters []Cluster `json:"Clusters" xml:"Clusters"` Detail []Instance `json:"Detail" xml:"Detail"` }
Data is a nested struct in teslamaxcompute response
type DataInGetInstancesStatusCount ¶
type DataInGetInstancesStatusCount struct {
DataItem []DataItem `json:"DataItem" xml:"DataItem"`
}
DataInGetInstancesStatusCount is a nested struct in teslamaxcompute response
type DataInGetQuotaHistoryInfo ¶
type DataInGetQuotaHistoryInfo struct {
DataItem []DataItem `json:"DataItem" xml:"DataItem"`
}
DataInGetQuotaHistoryInfo is a nested struct in teslamaxcompute response
type DataItem ¶
type DataItem struct { Size int `json:"Size" xml:"Size"` Times int `json:"Times" xml:"Times"` Status string `json:"Status" xml:"Status"` Point Point `json:"Point" xml:"Point"` }
DataItem is a nested struct in teslamaxcompute response
type DetailInGetClusterInstance ¶
type DetailInGetClusterInstance struct {
Instance []Instance `json:"instance" xml:"instance"`
}
DetailInGetClusterInstance is a nested struct in teslamaxcompute response
type DetailInGetProjectInstance ¶
type DetailInGetProjectInstance struct {
Instance []Instance `json:"instance" xml:"instance"`
}
DetailInGetProjectInstance is a nested struct in teslamaxcompute response
type DetailInGetQuotaInstance ¶
type DetailInGetQuotaInstance struct {
Instance []Instance `json:"instance" xml:"instance"`
}
DetailInGetQuotaInstance is a nested struct in teslamaxcompute response
type DetailInGetUserInstance ¶
type DetailInGetUserInstance struct {
Instance []Instance `json:"instance" xml:"instance"`
}
DetailInGetUserInstance is a nested struct in teslamaxcompute response
type GetClusterInstanceRequest ¶
type GetClusterInstanceRequest struct { *requests.RpcRequest Cluster string `position:"Query" name:"Cluster"` PageNum requests.Integer `position:"Query" name:"PageNum"` PageSize requests.Integer `position:"Query" name:"PageSize"` Status string `position:"Query" name:"Status"` Region string `position:"Query" name:"Region"` }
GetClusterInstanceRequest is the request struct for api GetClusterInstance
func CreateGetClusterInstanceRequest ¶
func CreateGetClusterInstanceRequest() (request *GetClusterInstanceRequest)
CreateGetClusterInstanceRequest creates a request to invoke GetClusterInstance API
type GetClusterInstanceResponse ¶
type GetClusterInstanceResponse struct { *responses.BaseResponse Code int `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
GetClusterInstanceResponse is the response struct for api GetClusterInstance
func CreateGetClusterInstanceResponse ¶
func CreateGetClusterInstanceResponse() (response *GetClusterInstanceResponse)
CreateGetClusterInstanceResponse creates a response to parse from GetClusterInstance response
type GetInstancesStatusCountRequest ¶
type GetInstancesStatusCountRequest struct { *requests.RpcRequest Region string `position:"Query" name:"Region"` Cluster string `position:"Query" name:"Cluster"` }
GetInstancesStatusCountRequest is the request struct for api GetInstancesStatusCount
func CreateGetInstancesStatusCountRequest ¶
func CreateGetInstancesStatusCountRequest() (request *GetInstancesStatusCountRequest)
CreateGetInstancesStatusCountRequest creates a request to invoke GetInstancesStatusCount API
type GetInstancesStatusCountResponse ¶
type GetInstancesStatusCountResponse struct { *responses.BaseResponse Code int `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Data []DataItem `json:"Data" xml:"Data"` }
GetInstancesStatusCountResponse is the response struct for api GetInstancesStatusCount
func CreateGetInstancesStatusCountResponse ¶
func CreateGetInstancesStatusCountResponse() (response *GetInstancesStatusCountResponse)
CreateGetInstancesStatusCountResponse creates a response to parse from GetInstancesStatusCount response
type GetProjectInstanceRequest ¶
type GetProjectInstanceRequest struct { *requests.RpcRequest Project string `position:"Query" name:"Project"` PageNum requests.Integer `position:"Query" name:"PageNum"` PageSize requests.Integer `position:"Query" name:"PageSize"` Status string `position:"Query" name:"Status"` Region string `position:"Query" name:"Region"` }
GetProjectInstanceRequest is the request struct for api GetProjectInstance
func CreateGetProjectInstanceRequest ¶
func CreateGetProjectInstanceRequest() (request *GetProjectInstanceRequest)
CreateGetProjectInstanceRequest creates a request to invoke GetProjectInstance API
type GetProjectInstanceResponse ¶
type GetProjectInstanceResponse struct { *responses.BaseResponse Code int `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
GetProjectInstanceResponse is the response struct for api GetProjectInstance
func CreateGetProjectInstanceResponse ¶
func CreateGetProjectInstanceResponse() (response *GetProjectInstanceResponse)
CreateGetProjectInstanceResponse creates a response to parse from GetProjectInstance response
type GetQuotaHistoryInfoRequest ¶
type GetQuotaHistoryInfoRequest struct { *requests.RpcRequest Cluster string `position:"Query" name:"Cluster"` EndTime requests.Integer `position:"Query" name:"EndTime"` QuotaName string `position:"Query" name:"QuotaName"` Region string `position:"Query" name:"Region"` StartTime requests.Integer `position:"Query" name:"StartTime"` }
GetQuotaHistoryInfoRequest is the request struct for api GetQuotaHistoryInfo
func CreateGetQuotaHistoryInfoRequest ¶
func CreateGetQuotaHistoryInfoRequest() (request *GetQuotaHistoryInfoRequest)
CreateGetQuotaHistoryInfoRequest creates a request to invoke GetQuotaHistoryInfo API
type GetQuotaHistoryInfoResponse ¶
type GetQuotaHistoryInfoResponse struct { *responses.BaseResponse Code int `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Data []DataItem `json:"Data" xml:"Data"` }
GetQuotaHistoryInfoResponse is the response struct for api GetQuotaHistoryInfo
func CreateGetQuotaHistoryInfoResponse ¶
func CreateGetQuotaHistoryInfoResponse() (response *GetQuotaHistoryInfoResponse)
CreateGetQuotaHistoryInfoResponse creates a response to parse from GetQuotaHistoryInfo response
type GetQuotaInstanceRequest ¶
type GetQuotaInstanceRequest struct { *requests.RpcRequest Cluster string `position:"Query" name:"Cluster"` QuotaId string `position:"Query" name:"QuotaId"` PageNum requests.Integer `position:"Query" name:"PageNum"` PageSize requests.Integer `position:"Query" name:"PageSize"` Status string `position:"Query" name:"Status"` Region string `position:"Query" name:"Region"` QuotaName string `position:"Query" name:"QuotaName"` }
GetQuotaInstanceRequest is the request struct for api GetQuotaInstance
func CreateGetQuotaInstanceRequest ¶
func CreateGetQuotaInstanceRequest() (request *GetQuotaInstanceRequest)
CreateGetQuotaInstanceRequest creates a request to invoke GetQuotaInstance API
type GetQuotaInstanceResponse ¶
type GetQuotaInstanceResponse struct { *responses.BaseResponse Code int `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
GetQuotaInstanceResponse is the response struct for api GetQuotaInstance
func CreateGetQuotaInstanceResponse ¶
func CreateGetQuotaInstanceResponse() (response *GetQuotaInstanceResponse)
CreateGetQuotaInstanceResponse creates a response to parse from GetQuotaInstance response
type GetUserInstanceRequest ¶
type GetUserInstanceRequest struct { *requests.RpcRequest User string `position:"Query" name:"User"` PageNum requests.Integer `position:"Query" name:"PageNum"` PageSize requests.Integer `position:"Query" name:"PageSize"` Status string `position:"Query" name:"Status"` Region string `position:"Query" name:"Region"` }
GetUserInstanceRequest is the request struct for api GetUserInstance
func CreateGetUserInstanceRequest ¶
func CreateGetUserInstanceRequest() (request *GetUserInstanceRequest)
CreateGetUserInstanceRequest creates a request to invoke GetUserInstance API
type GetUserInstanceResponse ¶
type GetUserInstanceResponse struct { *responses.BaseResponse Code int `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
GetUserInstanceResponse is the response struct for api GetUserInstance
func CreateGetUserInstanceResponse ¶
func CreateGetUserInstanceResponse() (response *GetUserInstanceResponse)
CreateGetUserInstanceResponse creates a response to parse from GetUserInstance response
type Instance ¶
type Instance struct { MemUsedTotal int `json:"MemUsedTotal" xml:"MemUsedTotal"` SkynetId string `json:"SkynetId" xml:"SkynetId"` CpuUsedRatioMin float64 `json:"CpuUsedRatioMin" xml:"CpuUsedRatioMin"` CpuRequest int `json:"CpuRequest" xml:"CpuRequest"` QuotaName string `json:"QuotaName" xml:"QuotaName"` MemUsedRatioMin float64 `json:"MemUsedRatioMin" xml:"MemUsedRatioMin"` QuotaId int `json:"QuotaId" xml:"QuotaId"` MemRequest int `json:"MemRequest" xml:"MemRequest"` Cluster string `json:"Cluster" xml:"Cluster"` CpuUsed int `json:"CpuUsed" xml:"CpuUsed"` RunTime string `json:"RunTime" xml:"RunTime"` Project string `json:"Project" xml:"Project"` MemUsedRatioMax float64 `json:"MemUsedRatioMax" xml:"MemUsedRatioMax"` InstanceId string `json:"InstanceId" xml:"InstanceId"` NickName string `json:"NickName" xml:"NickName"` Status string `json:"Status" xml:"Status"` TaskType string `json:"TaskType" xml:"TaskType"` UserAccount string `json:"UserAccount" xml:"UserAccount"` MemUsed int `json:"MemUsed" xml:"MemUsed"` CpuUsedTotal int `json:"CpuUsedTotal" xml:"CpuUsedTotal"` CpuUsedRatioMax float64 `json:"CpuUsedRatioMax" xml:"CpuUsedRatioMax"` }
Instance is a nested struct in teslamaxcompute response
type MemMaxQuota ¶
type MemMaxQuota struct { Min float64 `json:"Min" xml:"Min"` Max float64 `json:"Max" xml:"Max"` Avg float64 `json:"Avg" xml:"Avg"` }
MemMaxQuota is a nested struct in teslamaxcompute response
type MemMinQuota ¶
type MemMinQuota struct { Min float64 `json:"Min" xml:"Min"` Max float64 `json:"Max" xml:"Max"` Avg float64 `json:"Avg" xml:"Avg"` }
MemMinQuota is a nested struct in teslamaxcompute response
type MemUsed ¶
type MemUsed struct { Min float64 `json:"Min" xml:"Min"` Max float64 `json:"Max" xml:"Max"` Avg float64 `json:"Avg" xml:"Avg"` }
MemUsed is a nested struct in teslamaxcompute response
type Point ¶
type Point struct { CpuMaxQuota CpuMaxQuota `json:"CpuMaxQuota" xml:"CpuMaxQuota"` CpuMinQuota CpuMinQuota `json:"CpuMinQuota" xml:"CpuMinQuota"` MemUsed MemUsed `json:"MemUsed" xml:"MemUsed"` CpuUsed CpuUsed `json:"CpuUsed" xml:"CpuUsed"` MemMaxQuota MemMaxQuota `json:"MemMaxQuota" xml:"MemMaxQuota"` MemMinQuota MemMinQuota `json:"MemMinQuota" xml:"MemMinQuota"` }
Point is a nested struct in teslamaxcompute response
type QueryCustomerSaleInfoRequest ¶
type QueryCustomerSaleInfoRequest struct { *requests.RpcRequest RegionName string `position:"Query" name:"RegionName"` }
QueryCustomerSaleInfoRequest is the request struct for api QueryCustomerSaleInfo
func CreateQueryCustomerSaleInfoRequest ¶
func CreateQueryCustomerSaleInfoRequest() (request *QueryCustomerSaleInfoRequest)
CreateQueryCustomerSaleInfoRequest creates a request to invoke QueryCustomerSaleInfo API
type QueryCustomerSaleInfoResponse ¶
type QueryCustomerSaleInfoResponse struct { *responses.BaseResponse Code int `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
QueryCustomerSaleInfoResponse is the response struct for api QueryCustomerSaleInfo
func CreateQueryCustomerSaleInfoResponse ¶
func CreateQueryCustomerSaleInfoResponse() (response *QueryCustomerSaleInfoResponse)
CreateQueryCustomerSaleInfoResponse creates a response to parse from QueryCustomerSaleInfo response
type QueryResourceInventoryRequest ¶
type QueryResourceInventoryRequest struct {
*requests.RpcRequest
}
QueryResourceInventoryRequest is the request struct for api QueryResourceInventory
func CreateQueryResourceInventoryRequest ¶
func CreateQueryResourceInventoryRequest() (request *QueryResourceInventoryRequest)
CreateQueryResourceInventoryRequest creates a request to invoke QueryResourceInventory API
type QueryResourceInventoryResponse ¶
type QueryResourceInventoryResponse struct { *responses.BaseResponse Code int `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
QueryResourceInventoryResponse is the response struct for api QueryResourceInventory
func CreateQueryResourceInventoryResponse ¶
func CreateQueryResourceInventoryResponse() (response *QueryResourceInventoryResponse)
CreateQueryResourceInventoryResponse creates a response to parse from QueryResourceInventory response
type QueryTopologyRequest ¶
type QueryTopologyRequest struct {
*requests.RpcRequest
}
QueryTopologyRequest is the request struct for api QueryTopology
func CreateQueryTopologyRequest ¶
func CreateQueryTopologyRequest() (request *QueryTopologyRequest)
CreateQueryTopologyRequest creates a request to invoke QueryTopology API
type QueryTopologyResponse ¶
type QueryTopologyResponse struct { *responses.BaseResponse Code int `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Result Result `json:"Result" xml:"Result"` }
QueryTopologyResponse is the response struct for api QueryTopology
func CreateQueryTopologyResponse ¶
func CreateQueryTopologyResponse() (response *QueryTopologyResponse)
CreateQueryTopologyResponse creates a response to parse from QueryTopology response
type RegionItem ¶
type RegionItem struct { Region string `json:"Region" xml:"Region"` RegionEnName string `json:"RegionEnName" xml:"RegionEnName"` RegionCnName string `json:"RegionCnName" xml:"RegionCnName"` Clusters ClustersInQueryTopology `json:"Clusters" xml:"Clusters"` }
RegionItem is a nested struct in teslamaxcompute response
type Regions ¶
type Regions struct {
RegionItem []RegionItem `json:"regionItem" xml:"regionItem"`
}
Regions is a nested struct in teslamaxcompute response
type ResourceInventories ¶
type ResourceInventories struct {
ResourceInventory []ResourceInventory `json:"resourceInventory" xml:"resourceInventory"`
}
ResourceInventories is a nested struct in teslamaxcompute response
type ResourceInventory ¶
type ResourceInventory struct { Total int `json:"Total" xml:"Total"` Available int `json:"Available" xml:"Available"` Used int `json:"Used" xml:"Used"` ResourceType string `json:"ResourceType" xml:"ResourceType"` }
ResourceInventory is a nested struct in teslamaxcompute response
type ResourceParameter ¶
type ResourceParameter struct { ParaName string `json:"ParaName" xml:"ParaName"` ParaValue string `json:"ParaValue" xml:"ParaValue"` }
ResourceParameter is a nested struct in teslamaxcompute response
type ResourceParameters ¶
type ResourceParameters struct {
ResourceParameter []ResourceParameter `json:"resourceParameter" xml:"resourceParameter"`
}
ResourceParameters is a nested struct in teslamaxcompute response
type Result ¶
type Result struct {
ResultItem []ResultItem `json:"resultItem" xml:"resultItem"`
}
Result is a nested struct in teslamaxcompute response
type ResultItem ¶
type ResultItem struct { LastUpdate string `json:"LastUpdate" xml:"LastUpdate"` Regions Regions `json:"Regions" xml:"Regions"` }
ResultItem is a nested struct in teslamaxcompute response
type SaleInfo ¶
type SaleInfo struct { SaleMode string `json:"SaleMode" xml:"SaleMode"` Uid string `json:"Uid" xml:"Uid"` Mem int `json:"Mem" xml:"Mem"` Cpu int `json:"Cpu" xml:"Cpu"` BizCategory string `json:"BizCategory" xml:"BizCategory"` Owner string `json:"Owner" xml:"Owner"` QueryDate string `json:"QueryDate" xml:"QueryDate"` }
SaleInfo is a nested struct in teslamaxcompute response
Source Files ¶
- client.go
- get_cluster_instance.go
- get_instances_status_count.go
- get_project_instance.go
- get_quota_history_info.go
- get_quota_instance.go
- get_user_instance.go
- query_customer_sale_info.go
- query_resource_inventory.go
- query_topology.go
- struct_cluster.go
- struct_cluster_item.go
- struct_clusters_in_query_customer_sale_info.go
- struct_clusters_in_query_resource_inventory.go
- struct_clusters_in_query_topology.go
- struct_cpu_max_quota.go
- struct_cpu_min_quota.go
- struct_cpu_used.go
- struct_data.go
- struct_data_in_get_instances_status_count.go
- struct_data_in_get_quota_history_info.go
- struct_data_item.go
- struct_detail_in_get_cluster_instance.go
- struct_detail_in_get_project_instance.go
- struct_detail_in_get_quota_instance.go
- struct_detail_in_get_user_instance.go
- struct_instance.go
- struct_mem_max_quota.go
- struct_mem_min_quota.go
- struct_mem_used.go
- struct_point.go
- struct_region_item.go
- struct_regions.go
- struct_resource_inventories.go
- struct_resource_inventory.go
- struct_resource_parameter.go
- struct_resource_parameters.go
- struct_result.go
- struct_result_item.go
- struct_sale_info.go
- struct_sale_infos.go