Pārlūkot izejas kodu

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

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 7 gadi atpakaļ
vecāks
revīzija
f511ac5be1
38 mainītis faili ar 1601 papildinājumiem un 0 dzēšanām
  1. 3 0
      ChangeLog.txt
  2. 81 0
      services/teslamaxcompute/client.go
  3. 110 0
      services/teslamaxcompute/get_cluster_instance.go
  4. 107 0
      services/teslamaxcompute/get_instances_status_count.go
  5. 110 0
      services/teslamaxcompute/get_project_instance.go
  6. 110 0
      services/teslamaxcompute/get_quota_history_info.go
  7. 110 0
      services/teslamaxcompute/get_quota_instance.go
  8. 110 0
      services/teslamaxcompute/get_user_instance.go
  9. 105 0
      services/teslamaxcompute/query_resource_inventory.go
  10. 105 0
      services/teslamaxcompute/query_topology.go
  11. 26 0
      services/teslamaxcompute/struct_cluster.go
  12. 27 0
      services/teslamaxcompute/struct_cluster_item.go
  13. 21 0
      services/teslamaxcompute/struct_clusters_in_query_resource_inventory.go
  14. 21 0
      services/teslamaxcompute/struct_clusters_in_query_topology.go
  15. 23 0
      services/teslamaxcompute/struct_cpu_max_quota.go
  16. 23 0
      services/teslamaxcompute/struct_cpu_min_quota.go
  17. 23 0
      services/teslamaxcompute/struct_cpu_used.go
  18. 24 0
      services/teslamaxcompute/struct_data.go
  19. 21 0
      services/teslamaxcompute/struct_data_in_get_instances_status_count.go
  20. 21 0
      services/teslamaxcompute/struct_data_in_get_quota_history_info.go
  21. 24 0
      services/teslamaxcompute/struct_data_item.go
  22. 21 0
      services/teslamaxcompute/struct_detail_in_get_cluster_instance.go
  23. 21 0
      services/teslamaxcompute/struct_detail_in_get_project_instance.go
  24. 21 0
      services/teslamaxcompute/struct_detail_in_get_quota_instance.go
  25. 21 0
      services/teslamaxcompute/struct_detail_in_get_user_instance.go
  26. 41 0
      services/teslamaxcompute/struct_instance.go
  27. 23 0
      services/teslamaxcompute/struct_mem_max_quota.go
  28. 23 0
      services/teslamaxcompute/struct_mem_min_quota.go
  29. 23 0
      services/teslamaxcompute/struct_mem_used.go
  30. 26 0
      services/teslamaxcompute/struct_point.go
  31. 24 0
      services/teslamaxcompute/struct_region_item.go
  32. 21 0
      services/teslamaxcompute/struct_regions.go
  33. 21 0
      services/teslamaxcompute/struct_resource_inventories.go
  34. 24 0
      services/teslamaxcompute/struct_resource_inventory.go
  35. 22 0
      services/teslamaxcompute/struct_resource_parameter.go
  36. 21 0
      services/teslamaxcompute/struct_resource_parameters.go
  37. 21 0
      services/teslamaxcompute/struct_result.go
  38. 22 0
      services/teslamaxcompute/struct_result_item.go

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-03-13 Version: 1.2.2
+1, API GetQuotaHistoryInfo fix field error.
+
 2018-03-09 Version: 1.2.1
 1, complete api comments
 

+ 81 - 0
services/teslamaxcompute/client.go

@@ -0,0 +1,81 @@
+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"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
+)
+
+// Client is the sdk client struct, each func corresponds to an OpenAPI
+type Client struct {
+	sdk.Client
+}
+
+// NewClient creates a sdk client with environment variables
+func NewClient() (client *Client, err error) {
+	client = &Client{}
+	err = client.Init()
+	return
+}
+
+// NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential
+// this is the common api to create a sdk client
+func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithOptions(regionId, config, credential)
+	return
+}
+
+// NewClientWithAccessKey is a shortcut to create sdk client with accesskey
+// usage: https://help.aliyun.com/document_detail/66217.html
+func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	return
+}
+
+// NewClientWithStsToken is a shortcut to create sdk client with sts token
+// usage: https://help.aliyun.com/document_detail/66222.html
+func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
+// usage: https://help.aliyun.com/document_detail/66222.html
+func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	return
+}
+
+// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
+// usage: https://help.aliyun.com/document_detail/66223.html
+func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithEcsRamRole(regionId, roleName)
+	return
+}
+
+// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
+// attention: rsa key pair auth is only Japan regions available
+func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	return
+}

+ 110 - 0
services/teslamaxcompute/get_cluster_instance.go

@@ -0,0 +1,110 @@
+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"
+)
+
+// GetClusterInstance invokes the teslamaxcompute.GetClusterInstance API synchronously
+// api document: https://help.aliyun.com/api/teslamaxcompute/getclusterinstance.html
+func (client *Client) GetClusterInstance(request *GetClusterInstanceRequest) (response *GetClusterInstanceResponse, err error) {
+	response = CreateGetClusterInstanceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// 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 *Client) GetClusterInstanceWithChan(request *GetClusterInstanceRequest) (<-chan *GetClusterInstanceResponse, <-chan error) {
+	responseChan := make(chan *GetClusterInstanceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetClusterInstance(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// 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 *Client) GetClusterInstanceWithCallback(request *GetClusterInstanceRequest, callback func(response *GetClusterInstanceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetClusterInstanceResponse
+		var err error
+		defer close(result)
+		response, err = client.GetClusterInstance(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetClusterInstanceRequest is the request struct for api GetClusterInstance
+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"`
+}
+
+// GetClusterInstanceResponse is the response struct for api GetClusterInstance
+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"`
+}
+
+// CreateGetClusterInstanceRequest creates a request to invoke GetClusterInstance API
+func CreateGetClusterInstanceRequest() (request *GetClusterInstanceRequest) {
+	request = &GetClusterInstanceRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetClusterInstance", "", "")
+	return
+}
+
+// CreateGetClusterInstanceResponse creates a response to parse from GetClusterInstance response
+func CreateGetClusterInstanceResponse() (response *GetClusterInstanceResponse) {
+	response = &GetClusterInstanceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/teslamaxcompute/get_instances_status_count.go

@@ -0,0 +1,107 @@
+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"
+)
+
+// GetInstancesStatusCount invokes the teslamaxcompute.GetInstancesStatusCount API synchronously
+// api document: https://help.aliyun.com/api/teslamaxcompute/getinstancesstatuscount.html
+func (client *Client) GetInstancesStatusCount(request *GetInstancesStatusCountRequest) (response *GetInstancesStatusCountResponse, err error) {
+	response = CreateGetInstancesStatusCountResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// 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 *Client) GetInstancesStatusCountWithChan(request *GetInstancesStatusCountRequest) (<-chan *GetInstancesStatusCountResponse, <-chan error) {
+	responseChan := make(chan *GetInstancesStatusCountResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetInstancesStatusCount(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// 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 *Client) GetInstancesStatusCountWithCallback(request *GetInstancesStatusCountRequest, callback func(response *GetInstancesStatusCountResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetInstancesStatusCountResponse
+		var err error
+		defer close(result)
+		response, err = client.GetInstancesStatusCount(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetInstancesStatusCountRequest is the request struct for api GetInstancesStatusCount
+type GetInstancesStatusCountRequest struct {
+	*requests.RpcRequest
+	Region  string `position:"Query" name:"Region"`
+	Cluster string `position:"Query" name:"Cluster"`
+}
+
+// GetInstancesStatusCountResponse is the response struct for api GetInstancesStatusCount
+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"`
+}
+
+// CreateGetInstancesStatusCountRequest creates a request to invoke GetInstancesStatusCount API
+func CreateGetInstancesStatusCountRequest() (request *GetInstancesStatusCountRequest) {
+	request = &GetInstancesStatusCountRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetInstancesStatusCount", "", "")
+	return
+}
+
+// CreateGetInstancesStatusCountResponse creates a response to parse from GetInstancesStatusCount response
+func CreateGetInstancesStatusCountResponse() (response *GetInstancesStatusCountResponse) {
+	response = &GetInstancesStatusCountResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/teslamaxcompute/get_project_instance.go

@@ -0,0 +1,110 @@
+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"
+)
+
+// GetProjectInstance invokes the teslamaxcompute.GetProjectInstance API synchronously
+// api document: https://help.aliyun.com/api/teslamaxcompute/getprojectinstance.html
+func (client *Client) GetProjectInstance(request *GetProjectInstanceRequest) (response *GetProjectInstanceResponse, err error) {
+	response = CreateGetProjectInstanceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// 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 *Client) GetProjectInstanceWithChan(request *GetProjectInstanceRequest) (<-chan *GetProjectInstanceResponse, <-chan error) {
+	responseChan := make(chan *GetProjectInstanceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetProjectInstance(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// 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 *Client) GetProjectInstanceWithCallback(request *GetProjectInstanceRequest, callback func(response *GetProjectInstanceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetProjectInstanceResponse
+		var err error
+		defer close(result)
+		response, err = client.GetProjectInstance(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetProjectInstanceRequest is the request struct for api GetProjectInstance
+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"`
+}
+
+// GetProjectInstanceResponse is the response struct for api GetProjectInstance
+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"`
+}
+
+// CreateGetProjectInstanceRequest creates a request to invoke GetProjectInstance API
+func CreateGetProjectInstanceRequest() (request *GetProjectInstanceRequest) {
+	request = &GetProjectInstanceRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetProjectInstance", "", "")
+	return
+}
+
+// CreateGetProjectInstanceResponse creates a response to parse from GetProjectInstance response
+func CreateGetProjectInstanceResponse() (response *GetProjectInstanceResponse) {
+	response = &GetProjectInstanceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/teslamaxcompute/get_quota_history_info.go

@@ -0,0 +1,110 @@
+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"
+)
+
+// GetQuotaHistoryInfo invokes the teslamaxcompute.GetQuotaHistoryInfo API synchronously
+// api document: https://help.aliyun.com/api/teslamaxcompute/getquotahistoryinfo.html
+func (client *Client) GetQuotaHistoryInfo(request *GetQuotaHistoryInfoRequest) (response *GetQuotaHistoryInfoResponse, err error) {
+	response = CreateGetQuotaHistoryInfoResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// 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 *Client) GetQuotaHistoryInfoWithChan(request *GetQuotaHistoryInfoRequest) (<-chan *GetQuotaHistoryInfoResponse, <-chan error) {
+	responseChan := make(chan *GetQuotaHistoryInfoResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetQuotaHistoryInfo(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// 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 *Client) GetQuotaHistoryInfoWithCallback(request *GetQuotaHistoryInfoRequest, callback func(response *GetQuotaHistoryInfoResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetQuotaHistoryInfoResponse
+		var err error
+		defer close(result)
+		response, err = client.GetQuotaHistoryInfo(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetQuotaHistoryInfoRequest is the request struct for api GetQuotaHistoryInfo
+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"`
+}
+
+// GetQuotaHistoryInfoResponse is the response struct for api GetQuotaHistoryInfo
+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"`
+}
+
+// CreateGetQuotaHistoryInfoRequest creates a request to invoke GetQuotaHistoryInfo API
+func CreateGetQuotaHistoryInfoRequest() (request *GetQuotaHistoryInfoRequest) {
+	request = &GetQuotaHistoryInfoRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetQuotaHistoryInfo", "", "")
+	return
+}
+
+// CreateGetQuotaHistoryInfoResponse creates a response to parse from GetQuotaHistoryInfo response
+func CreateGetQuotaHistoryInfoResponse() (response *GetQuotaHistoryInfoResponse) {
+	response = &GetQuotaHistoryInfoResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/teslamaxcompute/get_quota_instance.go

@@ -0,0 +1,110 @@
+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"
+)
+
+// GetQuotaInstance invokes the teslamaxcompute.GetQuotaInstance API synchronously
+// api document: https://help.aliyun.com/api/teslamaxcompute/getquotainstance.html
+func (client *Client) GetQuotaInstance(request *GetQuotaInstanceRequest) (response *GetQuotaInstanceResponse, err error) {
+	response = CreateGetQuotaInstanceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// 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 *Client) GetQuotaInstanceWithChan(request *GetQuotaInstanceRequest) (<-chan *GetQuotaInstanceResponse, <-chan error) {
+	responseChan := make(chan *GetQuotaInstanceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetQuotaInstance(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// 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 *Client) GetQuotaInstanceWithCallback(request *GetQuotaInstanceRequest, callback func(response *GetQuotaInstanceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetQuotaInstanceResponse
+		var err error
+		defer close(result)
+		response, err = client.GetQuotaInstance(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetQuotaInstanceRequest is the request struct for api GetQuotaInstance
+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"`
+}
+
+// GetQuotaInstanceResponse is the response struct for api GetQuotaInstance
+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"`
+}
+
+// CreateGetQuotaInstanceRequest creates a request to invoke GetQuotaInstance API
+func CreateGetQuotaInstanceRequest() (request *GetQuotaInstanceRequest) {
+	request = &GetQuotaInstanceRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetQuotaInstance", "", "")
+	return
+}
+
+// CreateGetQuotaInstanceResponse creates a response to parse from GetQuotaInstance response
+func CreateGetQuotaInstanceResponse() (response *GetQuotaInstanceResponse) {
+	response = &GetQuotaInstanceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/teslamaxcompute/get_user_instance.go

@@ -0,0 +1,110 @@
+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"
+)
+
+// GetUserInstance invokes the teslamaxcompute.GetUserInstance API synchronously
+// api document: https://help.aliyun.com/api/teslamaxcompute/getuserinstance.html
+func (client *Client) GetUserInstance(request *GetUserInstanceRequest) (response *GetUserInstanceResponse, err error) {
+	response = CreateGetUserInstanceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// 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 *Client) GetUserInstanceWithChan(request *GetUserInstanceRequest) (<-chan *GetUserInstanceResponse, <-chan error) {
+	responseChan := make(chan *GetUserInstanceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetUserInstance(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// 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 *Client) GetUserInstanceWithCallback(request *GetUserInstanceRequest, callback func(response *GetUserInstanceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetUserInstanceResponse
+		var err error
+		defer close(result)
+		response, err = client.GetUserInstance(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetUserInstanceRequest is the request struct for api GetUserInstance
+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"`
+}
+
+// GetUserInstanceResponse is the response struct for api GetUserInstance
+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"`
+}
+
+// CreateGetUserInstanceRequest creates a request to invoke GetUserInstance API
+func CreateGetUserInstanceRequest() (request *GetUserInstanceRequest) {
+	request = &GetUserInstanceRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetUserInstance", "", "")
+	return
+}
+
+// CreateGetUserInstanceResponse creates a response to parse from GetUserInstance response
+func CreateGetUserInstanceResponse() (response *GetUserInstanceResponse) {
+	response = &GetUserInstanceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/teslamaxcompute/query_resource_inventory.go

@@ -0,0 +1,105 @@
+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"
+)
+
+// QueryResourceInventory invokes the teslamaxcompute.QueryResourceInventory API synchronously
+// api document: https://help.aliyun.com/api/teslamaxcompute/queryresourceinventory.html
+func (client *Client) QueryResourceInventory(request *QueryResourceInventoryRequest) (response *QueryResourceInventoryResponse, err error) {
+	response = CreateQueryResourceInventoryResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// 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 *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
+}
+
+// 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 *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
+}
+
+// QueryResourceInventoryRequest is the request struct for api QueryResourceInventory
+type QueryResourceInventoryRequest struct {
+	*requests.RpcRequest
+}
+
+// QueryResourceInventoryResponse is the response struct for api QueryResourceInventory
+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"`
+}
+
+// CreateQueryResourceInventoryRequest creates a request to invoke QueryResourceInventory API
+func CreateQueryResourceInventoryRequest() (request *QueryResourceInventoryRequest) {
+	request = &QueryResourceInventoryRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "QueryResourceInventory", "", "")
+	return
+}
+
+// CreateQueryResourceInventoryResponse creates a response to parse from QueryResourceInventory response
+func CreateQueryResourceInventoryResponse() (response *QueryResourceInventoryResponse) {
+	response = &QueryResourceInventoryResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/teslamaxcompute/query_topology.go

@@ -0,0 +1,105 @@
+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"
+)
+
+// QueryTopology invokes the teslamaxcompute.QueryTopology API synchronously
+// api document: https://help.aliyun.com/api/teslamaxcompute/querytopology.html
+func (client *Client) QueryTopology(request *QueryTopologyRequest) (response *QueryTopologyResponse, err error) {
+	response = CreateQueryTopologyResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// 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
+func (client *Client) QueryTopologyWithChan(request *QueryTopologyRequest) (<-chan *QueryTopologyResponse, <-chan error) {
+	responseChan := make(chan *QueryTopologyResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryTopology(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// 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 *Client) QueryTopologyWithCallback(request *QueryTopologyRequest, callback func(response *QueryTopologyResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryTopologyResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryTopology(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryTopologyRequest is the request struct for api QueryTopology
+type QueryTopologyRequest struct {
+	*requests.RpcRequest
+}
+
+// QueryTopologyResponse is the response struct for api QueryTopology
+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"`
+}
+
+// CreateQueryTopologyRequest creates a request to invoke QueryTopology API
+func CreateQueryTopologyRequest() (request *QueryTopologyRequest) {
+	request = &QueryTopologyRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "QueryTopology", "", "")
+	return
+}
+
+// CreateQueryTopologyResponse creates a response to parse from QueryTopology response
+func CreateQueryTopologyResponse() (response *QueryTopologyResponse) {
+	response = &QueryTopologyResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 26 - 0
services/teslamaxcompute/struct_cluster.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.
+
+// Cluster is a nested struct in teslamaxcompute response
+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"`
+}

+ 27 - 0
services/teslamaxcompute/struct_cluster_item.go

@@ -0,0 +1,27 @@
+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.
+
+// ClusterItem is a nested struct in teslamaxcompute response
+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"`
+}

+ 21 - 0
services/teslamaxcompute/struct_clusters_in_query_resource_inventory.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.
+
+// ClustersInQueryResourceInventory is a nested struct in teslamaxcompute response
+type ClustersInQueryResourceInventory struct {
+	Cluster []Cluster `json:"cluster" xml:"cluster"`
+}

+ 21 - 0
services/teslamaxcompute/struct_clusters_in_query_topology.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.
+
+// ClustersInQueryTopology is a nested struct in teslamaxcompute response
+type ClustersInQueryTopology struct {
+	ClusterItem []ClusterItem `json:"clusterItem" xml:"clusterItem"`
+}

+ 23 - 0
services/teslamaxcompute/struct_cpu_max_quota.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.
+
+// CpuMaxQuota is a nested struct in teslamaxcompute response
+type CpuMaxQuota struct {
+	Min float64 `json:"Min" xml:"Min"`
+	Max float64 `json:"Max" xml:"Max"`
+	Avg float64 `json:"Avg" xml:"Avg"`
+}

+ 23 - 0
services/teslamaxcompute/struct_cpu_min_quota.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.
+
+// CpuMinQuota is a nested struct in teslamaxcompute response
+type CpuMinQuota struct {
+	Min float64 `json:"Min" xml:"Min"`
+	Max float64 `json:"Max" xml:"Max"`
+	Avg float64 `json:"Avg" xml:"Avg"`
+}

+ 23 - 0
services/teslamaxcompute/struct_cpu_used.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.
+
+// CpuUsed is a nested struct in teslamaxcompute response
+type CpuUsed struct {
+	Min float64 `json:"Min" xml:"Min"`
+	Max float64 `json:"Max" xml:"Max"`
+	Avg float64 `json:"Avg" xml:"Avg"`
+}

+ 24 - 0
services/teslamaxcompute/struct_data.go

@@ -0,0 +1,24 @@
+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.
+
+// Data is a nested struct in teslamaxcompute response
+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"`
+}

+ 21 - 0
services/teslamaxcompute/struct_data_in_get_instances_status_count.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.
+
+// DataInGetInstancesStatusCount is a nested struct in teslamaxcompute response
+type DataInGetInstancesStatusCount struct {
+	DataItem []DataItem `json:"DataItem" xml:"DataItem"`
+}

+ 21 - 0
services/teslamaxcompute/struct_data_in_get_quota_history_info.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.
+
+// DataInGetQuotaHistoryInfo is a nested struct in teslamaxcompute response
+type DataInGetQuotaHistoryInfo struct {
+	DataItem []DataItem `json:"DataItem" xml:"DataItem"`
+}

+ 24 - 0
services/teslamaxcompute/struct_data_item.go

@@ -0,0 +1,24 @@
+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.
+
+// DataItem is a nested struct in teslamaxcompute response
+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"`
+}

+ 21 - 0
services/teslamaxcompute/struct_detail_in_get_cluster_instance.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.
+
+// DetailInGetClusterInstance is a nested struct in teslamaxcompute response
+type DetailInGetClusterInstance struct {
+	Instance []Instance `json:"instance" xml:"instance"`
+}

+ 21 - 0
services/teslamaxcompute/struct_detail_in_get_project_instance.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.
+
+// DetailInGetProjectInstance is a nested struct in teslamaxcompute response
+type DetailInGetProjectInstance struct {
+	Instance []Instance `json:"instance" xml:"instance"`
+}

+ 21 - 0
services/teslamaxcompute/struct_detail_in_get_quota_instance.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.
+
+// DetailInGetQuotaInstance is a nested struct in teslamaxcompute response
+type DetailInGetQuotaInstance struct {
+	Instance []Instance `json:"instance" xml:"instance"`
+}

+ 21 - 0
services/teslamaxcompute/struct_detail_in_get_user_instance.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.
+
+// DetailInGetUserInstance is a nested struct in teslamaxcompute response
+type DetailInGetUserInstance struct {
+	Instance []Instance `json:"instance" xml:"instance"`
+}

+ 41 - 0
services/teslamaxcompute/struct_instance.go

@@ -0,0 +1,41 @@
+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.
+
+// Instance is a nested struct in teslamaxcompute response
+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"`
+}

+ 23 - 0
services/teslamaxcompute/struct_mem_max_quota.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.
+
+// MemMaxQuota is a nested struct in teslamaxcompute response
+type MemMaxQuota struct {
+	Min float64 `json:"Min" xml:"Min"`
+	Max float64 `json:"Max" xml:"Max"`
+	Avg float64 `json:"Avg" xml:"Avg"`
+}

+ 23 - 0
services/teslamaxcompute/struct_mem_min_quota.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.
+
+// MemMinQuota is a nested struct in teslamaxcompute response
+type MemMinQuota struct {
+	Min float64 `json:"Min" xml:"Min"`
+	Max float64 `json:"Max" xml:"Max"`
+	Avg float64 `json:"Avg" xml:"Avg"`
+}

+ 23 - 0
services/teslamaxcompute/struct_mem_used.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.
+
+// MemUsed is a nested struct in teslamaxcompute response
+type MemUsed struct {
+	Min float64 `json:"Min" xml:"Min"`
+	Max float64 `json:"Max" xml:"Max"`
+	Avg float64 `json:"Avg" xml:"Avg"`
+}

+ 26 - 0
services/teslamaxcompute/struct_point.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.
+
+// Point is a nested struct in teslamaxcompute response
+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"`
+}

+ 24 - 0
services/teslamaxcompute/struct_region_item.go

@@ -0,0 +1,24 @@
+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.
+
+// RegionItem is a nested struct in teslamaxcompute response
+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"`
+}

+ 21 - 0
services/teslamaxcompute/struct_regions.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.
+
+// Regions is a nested struct in teslamaxcompute response
+type Regions struct {
+	RegionItem []RegionItem `json:"regionItem" xml:"regionItem"`
+}

+ 21 - 0
services/teslamaxcompute/struct_resource_inventories.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.
+
+// ResourceInventories is a nested struct in teslamaxcompute response
+type ResourceInventories struct {
+	ResourceInventory []ResourceInventory `json:"resourceInventory" xml:"resourceInventory"`
+}

+ 24 - 0
services/teslamaxcompute/struct_resource_inventory.go

@@ -0,0 +1,24 @@
+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.
+
+// ResourceInventory is a nested struct in teslamaxcompute response
+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"`
+}

+ 22 - 0
services/teslamaxcompute/struct_resource_parameter.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.
+
+// ResourceParameter is a nested struct in teslamaxcompute response
+type ResourceParameter struct {
+	ParaName  string `json:"ParaName" xml:"ParaName"`
+	ParaValue string `json:"ParaValue" xml:"ParaValue"`
+}

+ 21 - 0
services/teslamaxcompute/struct_resource_parameters.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.
+
+// ResourceParameters is a nested struct in teslamaxcompute response
+type ResourceParameters struct {
+	ResourceParameter []ResourceParameter `json:"resourceParameter" xml:"resourceParameter"`
+}

+ 21 - 0
services/teslamaxcompute/struct_result.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.
+
+// Result is a nested struct in teslamaxcompute response
+type Result struct {
+	ResultItem []ResultItem `json:"resultItem" xml:"resultItem"`
+}

+ 22 - 0
services/teslamaxcompute/struct_result_item.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.
+
+// ResultItem is a nested struct in teslamaxcompute response
+type ResultItem struct {
+	LastUpdate string  `json:"LastUpdate" xml:"LastUpdate"`
+	Regions    Regions `json:"Regions" xml:"Regions"`
+}