teslamaxcompute

package
v1.63.57 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 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 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) 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) ListUserQuotas

func (client *Client) ListUserQuotas(request *ListUserQuotasRequest) (response *ListUserQuotasResponse, err error)

ListUserQuotas invokes the teslamaxcompute.ListUserQuotas API synchronously api document: https://help.aliyun.com/api/teslamaxcompute/listuserquotas.html

func (*Client) ListUserQuotasWithCallback

func (client *Client) ListUserQuotasWithCallback(request *ListUserQuotasRequest, callback func(response *ListUserQuotasResponse, err error)) <-chan int

ListUserQuotasWithCallback invokes the teslamaxcompute.ListUserQuotas API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/listuserquotas.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ListUserQuotasWithChan

func (client *Client) ListUserQuotasWithChan(request *ListUserQuotasRequest) (<-chan *ListUserQuotasResponse, <-chan error)

ListUserQuotasWithChan invokes the teslamaxcompute.ListUserQuotas API asynchronously api document: https://help.aliyun.com/api/teslamaxcompute/listuserquotas.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 {
	LastUpdate string                          `json:"LastUpdate" xml:"LastUpdate"`
	Error      Error                           `json:"Error" xml:"Error"`
	Detail     DetailInListUserQuotas          `json:"Detail" xml:"Detail"`
	Clusters   ClustersInQueryCustomerSaleInfo `json:"Clusters" xml:"Clusters"`
}

Data is a nested struct in teslamaxcompute response

type DataInGetClusterInstance

type DataInGetClusterInstance struct {
	Total  int        `json:"Total" xml:"Total"`
	Detail []Instance `json:"Detail" xml:"Detail"`
}

DataInGetClusterInstance 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 DataInGetProjectInstance

type DataInGetProjectInstance struct {
	Total  int        `json:"Total" xml:"Total"`
	Detail []Instance `json:"Detail" xml:"Detail"`
}

DataInGetProjectInstance 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 DataInGetQuotaInstance

type DataInGetQuotaInstance struct {
	Total  int        `json:"Total" xml:"Total"`
	Detail []Instance `json:"Detail" xml:"Detail"`
}

DataInGetQuotaInstance is a nested struct in teslamaxcompute response

type DataInGetUserInstance

type DataInGetUserInstance struct {
	Total  int        `json:"Total" xml:"Total"`
	Detail []Instance `json:"Detail" xml:"Detail"`
}

DataInGetUserInstance 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 DetailInListUserQuotas

type DetailInListUserQuotas struct {
	Quotas []Quotas `json:"Quotas" xml:"Quotas"`
}

DetailInListUserQuotas is a nested struct in teslamaxcompute response

type Error

type Error struct {
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Timestamp string `json:"Timestamp" xml:"Timestamp"`
}

Error is a nested struct in teslamaxcompute response

type GetClusterInstanceRequest

type GetClusterInstanceRequest struct {
	*requests.RpcRequest
	Cluster  string           `position:"Query" name:"Cluster"`
	PageSize requests.Integer `position:"Query" name:"PageSize"`
	PageNum  requests.Integer `position:"Query" name:"PageNum"`
	Region   string           `position:"Query" name:"Region"`
	Status   string           `position:"Query" name:"Status"`
}

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      DataInGetClusterInstance `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
	Cluster   string `position:"Query" name:"Cluster"`
	QuotaId   string `position:"Query" name:"QuotaId"`
	Region    string `position:"Query" name:"Region"`
	QuotaName string `position:"Query" name:"QuotaName"`
}

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
	PageSize requests.Integer `position:"Query" name:"PageSize"`
	Project  string           `position:"Query" name:"Project"`
	PageNum  requests.Integer `position:"Query" name:"PageNum"`
	Region   string           `position:"Query" name:"Region"`
	Status   string           `position:"Query" name:"Status"`
}

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      DataInGetProjectInstance `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"`
	StartTime requests.Integer `position:"Query" name:"StartTime"`
	Region    string           `position:"Query" name:"Region"`
	QuotaName string           `position:"Query" name:"QuotaName"`
}

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"`
	PageSize  requests.Integer `position:"Query" name:"PageSize"`
	QuotaId   string           `position:"Query" name:"QuotaId"`
	PageNum   requests.Integer `position:"Query" name:"PageNum"`
	Region    string           `position:"Query" name:"Region"`
	QuotaName string           `position:"Query" name:"QuotaName"`
	Status    string           `position:"Query" name:"Status"`
}

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      DataInGetQuotaInstance `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
	PageSize requests.Integer `position:"Query" name:"PageSize"`
	PageNum  requests.Integer `position:"Query" name:"PageNum"`
	Region   string           `position:"Query" name:"Region"`
	User     string           `position:"Query" name:"User"`
	Status   string           `position:"Query" name:"Status"`
}

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      DataInGetUserInstance `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 {
	User            string  `json:"User" xml:"User"`
	SkynetId        string  `json:"SkynetId" xml:"SkynetId"`
	CpuUsedRatioMin float64 `json:"CpuUsedRatioMin" xml:"CpuUsedRatioMin"`
	CpuRequest      int     `json:"CpuRequest" xml:"CpuRequest"`
	MemUsedRatioMin float64 `json:"MemUsedRatioMin" xml:"MemUsedRatioMin"`
	QuotaId         int     `json:"QuotaId" xml:"QuotaId"`
	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"`
	CpuUsedRatioMax float64 `json:"CpuUsedRatioMax" xml:"CpuUsedRatioMax"`
	MemUsedTotal    int     `json:"MemUsedTotal" xml:"MemUsedTotal"`
	ProjectOwner    string  `json:"ProjectOwner" xml:"ProjectOwner"`
	QuotaName       string  `json:"QuotaName" xml:"QuotaName"`
	MemRequest      int     `json:"MemRequest" xml:"MemRequest"`
	CollectTime     string  `json:"CollectTime" xml:"CollectTime"`
	Cluster         string  `json:"Cluster" xml:"Cluster"`
	CpuUsed         int     `json:"CpuUsed" xml:"CpuUsed"`
	IsRealOwner     string  `json:"IsRealOwner" xml:"IsRealOwner"`
	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"`
}

Instance is a nested struct in teslamaxcompute response

type ListUserQuotasRequest

type ListUserQuotasRequest struct {
	*requests.RpcRequest
}

ListUserQuotasRequest is the request struct for api ListUserQuotas

func CreateListUserQuotasRequest

func CreateListUserQuotasRequest() (request *ListUserQuotasRequest)

CreateListUserQuotasRequest creates a request to invoke ListUserQuotas API

type ListUserQuotasResponse

type ListUserQuotasResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Message   string `json:"Message" xml:"Message"`
	Code      int    `json:"Code" xml:"Code"`
	Data      Data   `json:"Data" xml:"Data"`
}

ListUserQuotasResponse is the response struct for api ListUserQuotas

func CreateListUserQuotasResponse

func CreateListUserQuotasResponse() (response *ListUserQuotasResponse)

CreateListUserQuotasResponse creates a response to parse from ListUserQuotas 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 Quotas

type Quotas struct {
	Quotaid  int    `json:"Quotaid" xml:"Quotaid"`
	Cluster  string `json:"Cluster" xml:"Cluster"`
	Region   string `json:"Region" xml:"Region"`
	Name     string `json:"Name" xml:"Name"`
	Parentid int    `json:"Parentid" xml:"Parentid"`
	Nick     string `json:"Nick" xml:"Nick"`
}

Quotas is a nested struct in teslamaxcompute 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

type SaleInfos

type SaleInfos struct {
	SaleInfo []SaleInfo `json:"saleInfo" xml:"saleInfo"`
}

SaleInfos is a nested struct in teslamaxcompute response

Jump to

Keyboard shortcuts

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