Jelajahi Sumber

由荣旸发起的TESLAMAXCOMPUTE SDK自动发布, 版本号:1.11.3

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 7 tahun lalu
induk
melakukan
710bb61c05

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-05-08 Version: 1.11.3
+1, Add instance params.
+
 2018-05-08 Version: 1.11.2
 2018-05-08 Version: 1.11.2
 1, Remove DescribeAccountAttributes.
 1, Remove DescribeAccountAttributes.
 
 

+ 4 - 2
services/teslamaxcompute/get_instances_status_count.go

@@ -76,8 +76,10 @@ func (client *Client) GetInstancesStatusCountWithCallback(request *GetInstancesS
 // GetInstancesStatusCountRequest is the request struct for api GetInstancesStatusCount
 // GetInstancesStatusCountRequest is the request struct for api GetInstancesStatusCount
 type GetInstancesStatusCountRequest struct {
 type GetInstancesStatusCountRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	Region  string `position:"Query" name:"Region"`
-	Cluster string `position:"Query" name:"Cluster"`
+	Region    string `position:"Query" name:"Region"`
+	Cluster   string `position:"Query" name:"Cluster"`
+	QuotaName string `position:"Query" name:"QuotaName"`
+	QuotaId   string `position:"Query" name:"QuotaId"`
 }
 }
 
 
 // GetInstancesStatusCountResponse is the response struct for api GetInstancesStatusCount
 // GetInstancesStatusCountResponse is the response struct for api GetInstancesStatusCount

+ 4 - 4
services/teslamaxcompute/get_quota_instance.go

@@ -88,10 +88,10 @@ type GetQuotaInstanceRequest struct {
 // GetQuotaInstanceResponse is the response struct for api GetQuotaInstance
 // GetQuotaInstanceResponse is the response struct for api GetQuotaInstance
 type GetQuotaInstanceResponse struct {
 type GetQuotaInstanceResponse struct {
 	*responses.BaseResponse
 	*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"`
+	Code      int                    `json:"Code" xml:"Code"`
+	Message   string                 `json:"Message" xml:"Message"`
+	RequestId string                 `json:"RequestId" xml:"RequestId"`
+	Data      DataInGetQuotaInstance `json:"Data" xml:"Data"`
 }
 }
 
 
 // CreateGetQuotaInstanceRequest creates a request to invoke GetQuotaInstance API
 // CreateGetQuotaInstanceRequest creates a request to invoke GetQuotaInstance API

+ 22 - 0
services/teslamaxcompute/struct_data_in_get_quota_instance.go

@@ -0,0 +1,22 @@
+package teslamaxcompute
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInGetQuotaInstance is a nested struct in teslamaxcompute response
+type DataInGetQuotaInstance struct {
+	Total  int        `json:"Total" xml:"Total"`
+	Detail []Instance `json:"Detail" xml:"Detail"`
+}

+ 1 - 1
services/teslamaxcompute/struct_detail_in_get_quota_instance.go

@@ -17,5 +17,5 @@ package teslamaxcompute
 
 
 // DetailInGetQuotaInstance is a nested struct in teslamaxcompute response
 // DetailInGetQuotaInstance is a nested struct in teslamaxcompute response
 type DetailInGetQuotaInstance struct {
 type DetailInGetQuotaInstance struct {
-	Instance []Instance `json:"instance" xml:"instance"`
+	Instance []Instance `json:"Instance" xml:"Instance"`
 }
 }

+ 10 - 6
services/teslamaxcompute/struct_instance.go

@@ -17,25 +17,29 @@ package teslamaxcompute
 
 
 // Instance is a nested struct in teslamaxcompute response
 // Instance is a nested struct in teslamaxcompute response
 type Instance struct {
 type Instance struct {
-	MemUsedTotal    int     `json:"MemUsedTotal" xml:"MemUsedTotal"`
+	User            string  `json:"User" xml:"User"`
 	SkynetId        string  `json:"SkynetId" xml:"SkynetId"`
 	SkynetId        string  `json:"SkynetId" xml:"SkynetId"`
 	CpuUsedRatioMin float64 `json:"CpuUsedRatioMin" xml:"CpuUsedRatioMin"`
 	CpuUsedRatioMin float64 `json:"CpuUsedRatioMin" xml:"CpuUsedRatioMin"`
 	CpuRequest      int     `json:"CpuRequest" xml:"CpuRequest"`
 	CpuRequest      int     `json:"CpuRequest" xml:"CpuRequest"`
-	QuotaName       string  `json:"QuotaName" xml:"QuotaName"`
 	MemUsedRatioMin float64 `json:"MemUsedRatioMin" xml:"MemUsedRatioMin"`
 	MemUsedRatioMin float64 `json:"MemUsedRatioMin" xml:"MemUsedRatioMin"`
 	QuotaId         int     `json:"QuotaId" xml:"QuotaId"`
 	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"`
 	RunTime         string  `json:"RunTime" xml:"RunTime"`
 	Project         string  `json:"Project" xml:"Project"`
 	Project         string  `json:"Project" xml:"Project"`
 	MemUsedRatioMax float64 `json:"MemUsedRatioMax" xml:"MemUsedRatioMax"`
 	MemUsedRatioMax float64 `json:"MemUsedRatioMax" xml:"MemUsedRatioMax"`
 	InstanceId      string  `json:"InstanceId" xml:"InstanceId"`
 	InstanceId      string  `json:"InstanceId" xml:"InstanceId"`
 	NickName        string  `json:"NickName" xml:"NickName"`
 	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"`
 	Status          string  `json:"Status" xml:"Status"`
 	TaskType        string  `json:"TaskType" xml:"TaskType"`
 	TaskType        string  `json:"TaskType" xml:"TaskType"`
 	UserAccount     string  `json:"UserAccount" xml:"UserAccount"`
 	UserAccount     string  `json:"UserAccount" xml:"UserAccount"`
 	MemUsed         int     `json:"MemUsed" xml:"MemUsed"`
 	MemUsed         int     `json:"MemUsed" xml:"MemUsed"`
 	CpuUsedTotal    int     `json:"CpuUsedTotal" xml:"CpuUsedTotal"`
 	CpuUsedTotal    int     `json:"CpuUsedTotal" xml:"CpuUsedTotal"`
-	CpuUsedRatioMax float64 `json:"CpuUsedRatioMax" xml:"CpuUsedRatioMax"`
 }
 }