Quellcode durchsuchen

由荣旸发起的TESLAMAXCOMPUTE SDK自动发布, BUILD_ID=314, 版本号:1.1.3

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao vor 7 Jahren
Ursprung
Commit
57dc17842c
35 geänderte Dateien mit 697 neuen und 167 gelöschten Zeilen
  1. 4 0
      ChangeLog.txt
  2. 3 28
      services/teslamaxcompute/get_cluster_instance.go
  3. 5 8
      services/teslamaxcompute/get_instances_status_count.go
  4. 3 28
      services/teslamaxcompute/get_project_instance.go
  5. 6 30
      services/teslamaxcompute/get_quota_history_info.go
  6. 2 27
      services/teslamaxcompute/get_quota_instance.go
  7. 4 29
      services/teslamaxcompute/get_user_instance.go
  8. 93 0
      services/teslamaxcompute/query_resource_inventory.go
  9. 1 17
      services/teslamaxcompute/query_topology.go
  10. 25 0
      services/teslamaxcompute/struct_cluster.go
  11. 26 0
      services/teslamaxcompute/struct_cluster_item.go
  12. 20 0
      services/teslamaxcompute/struct_clusters_in_query_resource_inventory.go
  13. 20 0
      services/teslamaxcompute/struct_clusters_in_query_topology.go
  14. 22 0
      services/teslamaxcompute/struct_cpu_max_quota.go
  15. 22 0
      services/teslamaxcompute/struct_cpu_min_quota.go
  16. 22 0
      services/teslamaxcompute/struct_cpu_used.go
  17. 23 0
      services/teslamaxcompute/struct_data.go
  18. 20 0
      services/teslamaxcompute/struct_data_in_get_instances_status_count.go
  19. 20 0
      services/teslamaxcompute/struct_data_in_get_quota_history_info.go
  20. 23 0
      services/teslamaxcompute/struct_data_item.go
  21. 20 0
      services/teslamaxcompute/struct_detail_in_get_cluster_instance.go
  22. 20 0
      services/teslamaxcompute/struct_detail_in_get_project_instance.go
  23. 20 0
      services/teslamaxcompute/struct_detail_in_get_quota_instance.go
  24. 20 0
      services/teslamaxcompute/struct_detail_in_get_user_instance.go
  25. 40 0
      services/teslamaxcompute/struct_instance.go
  26. 22 0
      services/teslamaxcompute/struct_mem_used.go
  27. 23 0
      services/teslamaxcompute/struct_point.go
  28. 23 0
      services/teslamaxcompute/struct_region_item.go
  29. 20 0
      services/teslamaxcompute/struct_regions.go
  30. 20 0
      services/teslamaxcompute/struct_resource_inventories.go
  31. 23 0
      services/teslamaxcompute/struct_resource_inventory.go
  32. 21 0
      services/teslamaxcompute/struct_resource_parameter.go
  33. 20 0
      services/teslamaxcompute/struct_resource_parameters.go
  34. 20 0
      services/teslamaxcompute/struct_result.go
  35. 21 0
      services/teslamaxcompute/struct_result_item.go

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2018-02-28 Version: 1.1.3
+1, Add query resource inventory API.
+2, Add query topology API.
+
 2018-02-28 Version: 1.1.2
 1, Add query topology API.
 

+ 3 - 28
services/teslamaxcompute/get_cluster_instance.go

@@ -68,10 +68,10 @@ func (client *Client) GetClusterInstanceWithCallback(request *GetClusterInstance
 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"`
+	PageSize requests.Integer `position:"Query" name:"PageSize"`
 	Status   string           `position:"Query" name:"Status"`
+	Region   string           `position:"Query" name:"Region"`
 }
 
 type GetClusterInstanceResponse struct {
@@ -79,32 +79,7 @@ type GetClusterInstanceResponse struct {
 	Code      int    `json:"Code" xml:"Code"`
 	Message   string `json:"Message" xml:"Message"`
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	Data      struct {
-		Total  int `json:"Total" xml:"Total"`
-		Detail []struct {
-			Project         string  `json:"Project" xml:"Project"`
-			InstanceId      string  `json:"InstanceId" xml:"InstanceId"`
-			Status          string  `json:"Status" xml:"Status"`
-			UserAccount     string  `json:"UserAccount" xml:"UserAccount"`
-			NickName        string  `json:"NickName" xml:"NickName"`
-			Cluster         string  `json:"Cluster" xml:"Cluster"`
-			RunTime         string  `json:"RunTime" xml:"RunTime"`
-			CpuUsed         int     `json:"CpuUsed" xml:"CpuUsed"`
-			CpuRequest      int     `json:"CpuRequest" xml:"CpuRequest"`
-			CpuUsedTotal    int     `json:"CpuUsedTotal" xml:"CpuUsedTotal"`
-			CpuUsedRatioMax float64 `json:"CpuUsedRatioMax" xml:"CpuUsedRatioMax"`
-			CpuUsedRatioMin float64 `json:"CpuUsedRatioMin" xml:"CpuUsedRatioMin"`
-			MemUsed         int     `json:"MemUsed" xml:"MemUsed"`
-			MemRequest      int     `json:"MemRequest" xml:"MemRequest"`
-			MemUsedTotal    int     `json:"MemUsedTotal" xml:"MemUsedTotal"`
-			MemUsedRatioMax float64 `json:"MemUsedRatioMax" xml:"MemUsedRatioMax"`
-			MemUsedRatioMin float64 `json:"MemUsedRatioMin" xml:"MemUsedRatioMin"`
-			TaskType        string  `json:"TaskType" xml:"TaskType"`
-			SkynetId        string  `json:"SkynetId" xml:"SkynetId"`
-			QuotaName       string  `json:"QuotaName" xml:"QuotaName"`
-			QuotaId         int     `json:"QuotaId" xml:"QuotaId"`
-		} `json:"Detail" xml:"Detail"`
-	} `json:"Data" xml:"Data"`
+	Data      Data   `json:"Data" xml:"Data"`
 }
 
 func CreateGetClusterInstanceRequest() (request *GetClusterInstanceRequest) {

+ 5 - 8
services/teslamaxcompute/get_instances_status_count.go

@@ -67,19 +67,16 @@ func (client *Client) GetInstancesStatusCountWithCallback(request *GetInstancesS
 
 type GetInstancesStatusCountRequest struct {
 	*requests.RpcRequest
-	Cluster string `position:"Query" name:"Cluster"`
 	Region  string `position:"Query" name:"Region"`
+	Cluster string `position:"Query" name:"Cluster"`
 }
 
 type GetInstancesStatusCountResponse struct {
 	*responses.BaseResponse
-	Code      int    `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Data      []struct {
-		Status string `json:"Status" xml:"Status"`
-		Size   int    `json:"Size" xml:"Size"`
-	} `json:"Data" xml:"Data"`
+	Code      int        `json:"Code" xml:"Code"`
+	Message   string     `json:"Message" xml:"Message"`
+	RequestId string     `json:"RequestId" xml:"RequestId"`
+	Data      []DataItem `json:"Data" xml:"Data"`
 }
 
 func CreateGetInstancesStatusCountRequest() (request *GetInstancesStatusCountRequest) {

+ 3 - 28
services/teslamaxcompute/get_project_instance.go

@@ -67,11 +67,11 @@ func (client *Client) GetProjectInstanceWithCallback(request *GetProjectInstance
 
 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"`
+	PageSize requests.Integer `position:"Query" name:"PageSize"`
 	Status   string           `position:"Query" name:"Status"`
+	Region   string           `position:"Query" name:"Region"`
 }
 
 type GetProjectInstanceResponse struct {
@@ -79,32 +79,7 @@ type GetProjectInstanceResponse struct {
 	Code      int    `json:"Code" xml:"Code"`
 	Message   string `json:"Message" xml:"Message"`
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	Data      struct {
-		Total  int `json:"Total" xml:"Total"`
-		Detail []struct {
-			Project         string  `json:"Project" xml:"Project"`
-			InstanceId      string  `json:"InstanceId" xml:"InstanceId"`
-			Status          string  `json:"Status" xml:"Status"`
-			UserAccount     string  `json:"UserAccount" xml:"UserAccount"`
-			NickName        string  `json:"NickName" xml:"NickName"`
-			Cluster         string  `json:"Cluster" xml:"Cluster"`
-			RunTime         string  `json:"RunTime" xml:"RunTime"`
-			CpuUsed         int     `json:"CpuUsed" xml:"CpuUsed"`
-			CpuRequest      int     `json:"CpuRequest" xml:"CpuRequest"`
-			CpuUsedTotal    int     `json:"CpuUsedTotal" xml:"CpuUsedTotal"`
-			CpuUsedRatioMax float64 `json:"CpuUsedRatioMax" xml:"CpuUsedRatioMax"`
-			CpuUsedRatioMin float64 `json:"CpuUsedRatioMin" xml:"CpuUsedRatioMin"`
-			MemUsed         int     `json:"MemUsed" xml:"MemUsed"`
-			MemRequest      int     `json:"MemRequest" xml:"MemRequest"`
-			MemUsedTotal    int     `json:"MemUsedTotal" xml:"MemUsedTotal"`
-			MemUsedRatioMax float64 `json:"MemUsedRatioMax" xml:"MemUsedRatioMax"`
-			MemUsedRatioMin float64 `json:"MemUsedRatioMin" xml:"MemUsedRatioMin"`
-			TaskType        string  `json:"TaskType" xml:"TaskType"`
-			SkynetId        string  `json:"SkynetId" xml:"SkynetId"`
-			QuotaName       string  `json:"QuotaName" xml:"QuotaName"`
-			QuotaId         int     `json:"QuotaId" xml:"QuotaId"`
-		} `json:"Detail" xml:"Detail"`
-	} `json:"Data" xml:"Data"`
+	Data      Data   `json:"Data" xml:"Data"`
 }
 
 func CreateGetProjectInstanceRequest() (request *GetProjectInstanceRequest) {

+ 6 - 30
services/teslamaxcompute/get_quota_history_info.go

@@ -69,41 +69,17 @@ 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"`
+	Region    string           `position:"Query" name:"Region"`
+	StartTime requests.Integer `position:"Query" name:"StartTime"`
 }
 
 type GetQuotaHistoryInfoResponse struct {
 	*responses.BaseResponse
-	Code      int    `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Data      []struct {
-		Times int `json:"Times" xml:"Times"`
-		Point struct {
-			CpuMaxQuota struct {
-				Min int `json:"Min" xml:"Min"`
-				Max int `json:"Max" xml:"Max"`
-				Avg int `json:"Avg" xml:"Avg"`
-			} `json:"CpuMaxQuota" xml:"CpuMaxQuota"`
-			CpuMinQuota struct {
-				Min int `json:"Min" xml:"Min"`
-				Max int `json:"Max" xml:"Max"`
-				Avg int `json:"Avg" xml:"Avg"`
-			} `json:"CpuMinQuota" xml:"CpuMinQuota"`
-			MemUsed struct {
-				Min int `json:"Min" xml:"Min"`
-				Max int `json:"Max" xml:"Max"`
-				Avg int `json:"Avg" xml:"Avg"`
-			} `json:"MemUsed" xml:"MemUsed"`
-			CpuUsed struct {
-				Min int `json:"Min" xml:"Min"`
-				Max int `json:"Max" xml:"Max"`
-				Avg int `json:"Avg" xml:"Avg"`
-			} `json:"CpuUsed" xml:"CpuUsed"`
-		} `json:"Point" xml:"Point"`
-	} `json:"Data" xml:"Data"`
+	Code      int        `json:"Code" xml:"Code"`
+	Message   string     `json:"Message" xml:"Message"`
+	RequestId string     `json:"RequestId" xml:"RequestId"`
+	Data      []DataItem `json:"Data" xml:"Data"`
 }
 
 func CreateGetQuotaHistoryInfoRequest() (request *GetQuotaHistoryInfoRequest) {

+ 2 - 27
services/teslamaxcompute/get_quota_instance.go

@@ -68,9 +68,9 @@ func (client *Client) GetQuotaInstanceWithCallback(request *GetQuotaInstanceRequ
 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"`
+	PageSize requests.Integer `position:"Query" name:"PageSize"`
 	Status   string           `position:"Query" name:"Status"`
 }
 
@@ -79,32 +79,7 @@ type GetQuotaInstanceResponse struct {
 	Code      int    `json:"Code" xml:"Code"`
 	Message   string `json:"Message" xml:"Message"`
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	Data      struct {
-		Total  int `json:"Total" xml:"Total"`
-		Detail []struct {
-			Project         string  `json:"Project" xml:"Project"`
-			InstanceId      string  `json:"InstanceId" xml:"InstanceId"`
-			Status          string  `json:"Status" xml:"Status"`
-			UserAccount     string  `json:"UserAccount" xml:"UserAccount"`
-			NickName        string  `json:"NickName" xml:"NickName"`
-			Cluster         string  `json:"Cluster" xml:"Cluster"`
-			RunTime         string  `json:"RunTime" xml:"RunTime"`
-			CpuUsed         int     `json:"CpuUsed" xml:"CpuUsed"`
-			CpuRequest      int     `json:"CpuRequest" xml:"CpuRequest"`
-			CpuUsedTotal    int     `json:"CpuUsedTotal" xml:"CpuUsedTotal"`
-			CpuUsedRatioMax float64 `json:"CpuUsedRatioMax" xml:"CpuUsedRatioMax"`
-			CpuUsedRatioMin float64 `json:"CpuUsedRatioMin" xml:"CpuUsedRatioMin"`
-			MemUsed         int     `json:"MemUsed" xml:"MemUsed"`
-			MemRequest      int     `json:"MemRequest" xml:"MemRequest"`
-			MemUsedTotal    int     `json:"MemUsedTotal" xml:"MemUsedTotal"`
-			MemUsedRatioMax float64 `json:"MemUsedRatioMax" xml:"MemUsedRatioMax"`
-			MemUsedRatioMin float64 `json:"MemUsedRatioMin" xml:"MemUsedRatioMin"`
-			TaskType        string  `json:"TaskType" xml:"TaskType"`
-			SkynetId        string  `json:"SkynetId" xml:"SkynetId"`
-			QuotaName       string  `json:"QuotaName" xml:"QuotaName"`
-			QuotaId         int     `json:"QuotaId" xml:"QuotaId"`
-		} `json:"Detail" xml:"Detail"`
-	} `json:"Data" xml:"Data"`
+	Data      Data   `json:"Data" xml:"Data"`
 }
 
 func CreateGetQuotaInstanceRequest() (request *GetQuotaInstanceRequest) {

+ 4 - 29
services/teslamaxcompute/get_user_instance.go

@@ -67,11 +67,11 @@ func (client *Client) GetUserInstanceWithCallback(request *GetUserInstanceReques
 
 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"`
+	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"`
 }
 
 type GetUserInstanceResponse struct {
@@ -79,32 +79,7 @@ type GetUserInstanceResponse struct {
 	Code      int    `json:"Code" xml:"Code"`
 	Message   string `json:"Message" xml:"Message"`
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	Data      struct {
-		Total  int `json:"Total" xml:"Total"`
-		Detail []struct {
-			Project         string  `json:"Project" xml:"Project"`
-			InstanceId      string  `json:"InstanceId" xml:"InstanceId"`
-			Status          string  `json:"Status" xml:"Status"`
-			UserAccount     string  `json:"UserAccount" xml:"UserAccount"`
-			NickName        string  `json:"NickName" xml:"NickName"`
-			Cluster         string  `json:"Cluster" xml:"Cluster"`
-			RunTime         string  `json:"RunTime" xml:"RunTime"`
-			CpuUsed         int     `json:"CpuUsed" xml:"CpuUsed"`
-			CpuRequest      int     `json:"CpuRequest" xml:"CpuRequest"`
-			CpuUsedTotal    int     `json:"CpuUsedTotal" xml:"CpuUsedTotal"`
-			CpuUsedRatioMax float64 `json:"CpuUsedRatioMax" xml:"CpuUsedRatioMax"`
-			CpuUsedRatioMin float64 `json:"CpuUsedRatioMin" xml:"CpuUsedRatioMin"`
-			MemUsed         int     `json:"MemUsed" xml:"MemUsed"`
-			MemRequest      int     `json:"MemRequest" xml:"MemRequest"`
-			MemUsedTotal    int     `json:"MemUsedTotal" xml:"MemUsedTotal"`
-			MemUsedRatioMax float64 `json:"MemUsedRatioMax" xml:"MemUsedRatioMax"`
-			MemUsedRatioMin float64 `json:"MemUsedRatioMin" xml:"MemUsedRatioMin"`
-			TaskType        string  `json:"TaskType" xml:"TaskType"`
-			SkynetId        string  `json:"SkynetId" xml:"SkynetId"`
-			QuotaName       string  `json:"QuotaName" xml:"QuotaName"`
-			QuotaId         int     `json:"QuotaId" xml:"QuotaId"`
-		} `json:"Detail" xml:"Detail"`
-	} `json:"Data" xml:"Data"`
+	Data      Data   `json:"Data" xml:"Data"`
 }
 
 func CreateGetUserInstanceRequest() (request *GetUserInstanceRequest) {

+ 93 - 0
services/teslamaxcompute/query_resource_inventory.go

@@ -0,0 +1,93 @@
+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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+func (client *Client) QueryResourceInventory(request *QueryResourceInventoryRequest) (response *QueryResourceInventoryResponse, err error) {
+	response = CreateQueryResourceInventoryResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) QueryResourceInventoryWithChan(request *QueryResourceInventoryRequest) (<-chan *QueryResourceInventoryResponse, <-chan error) {
+	responseChan := make(chan *QueryResourceInventoryResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryResourceInventory(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) QueryResourceInventoryWithCallback(request *QueryResourceInventoryRequest, callback func(response *QueryResourceInventoryResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryResourceInventoryResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryResourceInventory(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type QueryResourceInventoryRequest struct {
+	*requests.RpcRequest
+}
+
+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"`
+}
+
+func CreateQueryResourceInventoryRequest() (request *QueryResourceInventoryRequest) {
+	request = &QueryResourceInventoryRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "QueryResourceInventory", "", "")
+	return
+}
+
+func CreateQueryResourceInventoryResponse() (response *QueryResourceInventoryResponse) {
+	response = &QueryResourceInventoryResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 17
services/teslamaxcompute/query_topology.go

@@ -74,23 +74,7 @@ type QueryTopologyResponse struct {
 	Code      int    `json:"Code" xml:"Code"`
 	Message   string `json:"Message" xml:"Message"`
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	Result    struct {
-		LastUpdate string `json:"LastUpdate" xml:"LastUpdate"`
-		Regions    struct {
-			Region       string `json:"Region" xml:"Region"`
-			RegionEnName string `json:"RegionEnName" xml:"RegionEnName"`
-			RegionCnName string `json:"RegionCnName" xml:"RegionCnName"`
-			Clusters     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"`
-			} `json:"Clusters" xml:"Clusters"`
-		} `json:"Regions" xml:"Regions"`
-	} `json:"Result" xml:"Result"`
+	Result    Result `json:"Result" xml:"Result"`
 }
 
 func CreateQueryTopologyRequest() (request *QueryTopologyRequest) {

+ 25 - 0
services/teslamaxcompute/struct_cluster.go

@@ -0,0 +1,25 @@
+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.
+
+type Cluster struct {
+	Status              string              `json:"Status" xml:"Status"`
+	Cluster             string              `json:"Cluster" xml:"Cluster"`
+	MachineRoom         string              `json:"MachineRoom" xml:"MachineRoom"`
+	Region              string              `json:"Region" xml:"Region"`
+	ResourceParameters  ResourceParameters  `json:"ResourceParameters" xml:"ResourceParameters"`
+	ResourceInventories ResourceInventories `json:"ResourceInventories" xml:"ResourceInventories"`
+}

+ 26 - 0
services/teslamaxcompute/struct_cluster_item.go

@@ -0,0 +1,26 @@
+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.
+
+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"`
+}

+ 20 - 0
services/teslamaxcompute/struct_clusters_in_query_resource_inventory.go

@@ -0,0 +1,20 @@
+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.
+
+type ClustersInQueryResourceInventory struct {
+	Cluster []Cluster `json:"cluster" xml:"cluster"`
+}

+ 20 - 0
services/teslamaxcompute/struct_clusters_in_query_topology.go

@@ -0,0 +1,20 @@
+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.
+
+type ClustersInQueryTopology struct {
+	ClusterItem []ClusterItem `json:"clusterItem" xml:"clusterItem"`
+}

+ 22 - 0
services/teslamaxcompute/struct_cpu_max_quota.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.
+
+type CpuMaxQuota struct {
+	Min int `json:"Min" xml:"Min"`
+	Max int `json:"Max" xml:"Max"`
+	Avg int `json:"Avg" xml:"Avg"`
+}

+ 22 - 0
services/teslamaxcompute/struct_cpu_min_quota.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.
+
+type CpuMinQuota struct {
+	Min int `json:"Min" xml:"Min"`
+	Max int `json:"Max" xml:"Max"`
+	Avg int `json:"Avg" xml:"Avg"`
+}

+ 22 - 0
services/teslamaxcompute/struct_cpu_used.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.
+
+type CpuUsed struct {
+	Min int `json:"Min" xml:"Min"`
+	Max int `json:"Max" xml:"Max"`
+	Avg int `json:"Avg" xml:"Avg"`
+}

+ 23 - 0
services/teslamaxcompute/struct_data.go

@@ -0,0 +1,23 @@
+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.
+
+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"`
+}

+ 20 - 0
services/teslamaxcompute/struct_data_in_get_instances_status_count.go

@@ -0,0 +1,20 @@
+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.
+
+type DataInGetInstancesStatusCount struct {
+	DataItem []DataItem `json:"DataItem" xml:"DataItem"`
+}

+ 20 - 0
services/teslamaxcompute/struct_data_in_get_quota_history_info.go

@@ -0,0 +1,20 @@
+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.
+
+type DataInGetQuotaHistoryInfo struct {
+	DataItem []DataItem `json:"DataItem" xml:"DataItem"`
+}

+ 23 - 0
services/teslamaxcompute/struct_data_item.go

@@ -0,0 +1,23 @@
+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.
+
+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"`
+}

+ 20 - 0
services/teslamaxcompute/struct_detail_in_get_cluster_instance.go

@@ -0,0 +1,20 @@
+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.
+
+type DetailInGetClusterInstance struct {
+	Instance []Instance `json:"instance" xml:"instance"`
+}

+ 20 - 0
services/teslamaxcompute/struct_detail_in_get_project_instance.go

@@ -0,0 +1,20 @@
+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.
+
+type DetailInGetProjectInstance struct {
+	Instance []Instance `json:"instance" xml:"instance"`
+}

+ 20 - 0
services/teslamaxcompute/struct_detail_in_get_quota_instance.go

@@ -0,0 +1,20 @@
+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.
+
+type DetailInGetQuotaInstance struct {
+	Instance []Instance `json:"instance" xml:"instance"`
+}

+ 20 - 0
services/teslamaxcompute/struct_detail_in_get_user_instance.go

@@ -0,0 +1,20 @@
+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.
+
+type DetailInGetUserInstance struct {
+	Instance []Instance `json:"instance" xml:"instance"`
+}

+ 40 - 0
services/teslamaxcompute/struct_instance.go

@@ -0,0 +1,40 @@
+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.
+
+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"`
+}

+ 22 - 0
services/teslamaxcompute/struct_mem_used.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.
+
+type MemUsed struct {
+	Min int `json:"Min" xml:"Min"`
+	Max int `json:"Max" xml:"Max"`
+	Avg int `json:"Avg" xml:"Avg"`
+}

+ 23 - 0
services/teslamaxcompute/struct_point.go

@@ -0,0 +1,23 @@
+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.
+
+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"`
+}

+ 23 - 0
services/teslamaxcompute/struct_region_item.go

@@ -0,0 +1,23 @@
+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.
+
+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"`
+}

+ 20 - 0
services/teslamaxcompute/struct_regions.go

@@ -0,0 +1,20 @@
+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.
+
+type Regions struct {
+	RegionItem []RegionItem `json:"regionItem" xml:"regionItem"`
+}

+ 20 - 0
services/teslamaxcompute/struct_resource_inventories.go

@@ -0,0 +1,20 @@
+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.
+
+type ResourceInventories struct {
+	ResourceInventory []ResourceInventory `json:"resourceInventory" xml:"resourceInventory"`
+}

+ 23 - 0
services/teslamaxcompute/struct_resource_inventory.go

@@ -0,0 +1,23 @@
+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.
+
+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"`
+}

+ 21 - 0
services/teslamaxcompute/struct_resource_parameter.go

@@ -0,0 +1,21 @@
+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.
+
+type ResourceParameter struct {
+	ParaName  string `json:"ParaName" xml:"ParaName"`
+	ParaValue string `json:"ParaValue" xml:"ParaValue"`
+}

+ 20 - 0
services/teslamaxcompute/struct_resource_parameters.go

@@ -0,0 +1,20 @@
+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.
+
+type ResourceParameters struct {
+	ResourceParameter []ResourceParameter `json:"resourceParameter" xml:"resourceParameter"`
+}

+ 20 - 0
services/teslamaxcompute/struct_result.go

@@ -0,0 +1,20 @@
+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.
+
+type Result struct {
+	ResultItem []ResultItem `json:"resultItem" xml:"resultItem"`
+}

+ 21 - 0
services/teslamaxcompute/struct_result_item.go

@@ -0,0 +1,21 @@
+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.
+
+type ResultItem struct {
+	LastUpdate string  `json:"LastUpdate" xml:"LastUpdate"`
+	Regions    Regions `json:"Regions" xml:"Regions"`
+}