Browse Source

TESLAMAXCOMPUTE SDK Auto Released By shenshi,Version:1.53.27

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 6 years ago
parent
commit
970a2a14ff

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-03-13 Version: 1.53.27
+1, Distinguish between system and service parameters
+
 2019-03-13 Version: 1.53.26
 1, Distinguish between system and service parameters
 

+ 7 - 7
services/teslamaxcompute/get_cluster_instance.go

@@ -77,19 +77,19 @@ func (client *Client) GetClusterInstanceWithCallback(request *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"`
+	PageNum  requests.Integer `position:"Query" name:"PageNum"`
 	Region   string           `position:"Query" name:"Region"`
+	Status   string           `position:"Query" name:"Status"`
 }
 
 // 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"`
+	Code      int                      `json:"Code" xml:"Code"`
+	Message   string                   `json:"Message" xml:"Message"`
+	RequestId string                   `json:"RequestId" xml:"RequestId"`
+	Data      DataInGetClusterInstance `json:"Data" xml:"Data"`
 }
 
 // CreateGetClusterInstanceRequest creates a request to invoke GetClusterInstance API
@@ -97,7 +97,7 @@ func CreateGetClusterInstanceRequest() (request *GetClusterInstanceRequest) {
 	request = &GetClusterInstanceRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetClusterInstance", "", "")
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetClusterInstance", "teslamaxcompute", "openAPI")
 	return
 }
 

+ 3 - 3
services/teslamaxcompute/get_instances_status_count.go

@@ -76,10 +76,10 @@ func (client *Client) GetInstancesStatusCountWithCallback(request *GetInstancesS
 // 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"`
-	QuotaName string `position:"Query" name:"QuotaName"`
 	QuotaId   string `position:"Query" name:"QuotaId"`
+	Region    string `position:"Query" name:"Region"`
+	QuotaName string `position:"Query" name:"QuotaName"`
 }
 
 // GetInstancesStatusCountResponse is the response struct for api GetInstancesStatusCount
@@ -96,7 +96,7 @@ func CreateGetInstancesStatusCountRequest() (request *GetInstancesStatusCountReq
 	request = &GetInstancesStatusCountRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetInstancesStatusCount", "", "")
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetInstancesStatusCount", "teslamaxcompute", "openAPI")
 	return
 }
 

+ 7 - 7
services/teslamaxcompute/get_project_instance.go

@@ -76,20 +76,20 @@ func (client *Client) GetProjectInstanceWithCallback(request *GetProjectInstance
 // GetProjectInstanceRequest is the request struct for api 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"`
-	PageSize requests.Integer `position:"Query" name:"PageSize"`
-	Status   string           `position:"Query" name:"Status"`
 	Region   string           `position:"Query" name:"Region"`
+	Status   string           `position:"Query" name:"Status"`
 }
 
 // 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"`
+	Code      int                      `json:"Code" xml:"Code"`
+	Message   string                   `json:"Message" xml:"Message"`
+	RequestId string                   `json:"RequestId" xml:"RequestId"`
+	Data      DataInGetProjectInstance `json:"Data" xml:"Data"`
 }
 
 // CreateGetProjectInstanceRequest creates a request to invoke GetProjectInstance API
@@ -97,7 +97,7 @@ func CreateGetProjectInstanceRequest() (request *GetProjectInstanceRequest) {
 	request = &GetProjectInstanceRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetProjectInstance", "", "")
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetProjectInstance", "teslamaxcompute", "openAPI")
 	return
 }
 

+ 3 - 3
services/teslamaxcompute/get_quota_history_info.go

@@ -78,9 +78,9 @@ 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"`
+	Region    string           `position:"Query" name:"Region"`
+	QuotaName string           `position:"Query" name:"QuotaName"`
 }
 
 // GetQuotaHistoryInfoResponse is the response struct for api GetQuotaHistoryInfo
@@ -97,7 +97,7 @@ func CreateGetQuotaHistoryInfoRequest() (request *GetQuotaHistoryInfoRequest) {
 	request = &GetQuotaHistoryInfoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetQuotaHistoryInfo", "", "")
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetQuotaHistoryInfo", "teslamaxcompute", "openAPI")
 	return
 }
 

+ 3 - 3
services/teslamaxcompute/get_quota_instance.go

@@ -77,12 +77,12 @@ 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"`
 	Region    string           `position:"Query" name:"Region"`
 	QuotaName string           `position:"Query" name:"QuotaName"`
+	Status    string           `position:"Query" name:"Status"`
 }
 
 // GetQuotaInstanceResponse is the response struct for api GetQuotaInstance
@@ -99,7 +99,7 @@ func CreateGetQuotaInstanceRequest() (request *GetQuotaInstanceRequest) {
 	request = &GetQuotaInstanceRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetQuotaInstance", "", "")
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetQuotaInstance", "teslamaxcompute", "openAPI")
 	return
 }
 

+ 8 - 8
services/teslamaxcompute/get_user_instance.go

@@ -76,20 +76,20 @@ func (client *Client) GetUserInstanceWithCallback(request *GetUserInstanceReques
 // 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"`
+	PageNum  requests.Integer `position:"Query" name:"PageNum"`
 	Region   string           `position:"Query" name:"Region"`
+	User     string           `position:"Query" name:"User"`
+	Status   string           `position:"Query" name:"Status"`
 }
 
 // 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"`
+	Code      int                   `json:"Code" xml:"Code"`
+	Message   string                `json:"Message" xml:"Message"`
+	RequestId string                `json:"RequestId" xml:"RequestId"`
+	Data      DataInGetUserInstance `json:"Data" xml:"Data"`
 }
 
 // CreateGetUserInstanceRequest creates a request to invoke GetUserInstance API
@@ -97,7 +97,7 @@ func CreateGetUserInstanceRequest() (request *GetUserInstanceRequest) {
 	request = &GetUserInstanceRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetUserInstance", "", "")
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetUserInstance", "teslamaxcompute", "openAPI")
 	return
 }
 

+ 105 - 0
services/teslamaxcompute/list_user_quotas.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"
+)
+
+// ListUserQuotas invokes the teslamaxcompute.ListUserQuotas API synchronously
+// api document: https://help.aliyun.com/api/teslamaxcompute/listuserquotas.html
+func (client *Client) ListUserQuotas(request *ListUserQuotasRequest) (response *ListUserQuotasResponse, err error) {
+	response = CreateListUserQuotasResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListUserQuotasWithChan invokes the teslamaxcompute.ListUserQuotas API asynchronously
+// api document: https://help.aliyun.com/api/teslamaxcompute/listuserquotas.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListUserQuotasWithChan(request *ListUserQuotasRequest) (<-chan *ListUserQuotasResponse, <-chan error) {
+	responseChan := make(chan *ListUserQuotasResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListUserQuotas(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListUserQuotasWithCallback invokes the teslamaxcompute.ListUserQuotas API asynchronously
+// api document: https://help.aliyun.com/api/teslamaxcompute/listuserquotas.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListUserQuotasWithCallback(request *ListUserQuotasRequest, callback func(response *ListUserQuotasResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListUserQuotasResponse
+		var err error
+		defer close(result)
+		response, err = client.ListUserQuotas(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListUserQuotasRequest is the request struct for api ListUserQuotas
+type ListUserQuotasRequest struct {
+	*requests.RpcRequest
+}
+
+// ListUserQuotasResponse is the response struct for api ListUserQuotas
+type ListUserQuotasResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Message   string `json:"Message" xml:"Message"`
+	Code      int    `json:"Code" xml:"Code"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateListUserQuotasRequest creates a request to invoke ListUserQuotas API
+func CreateListUserQuotasRequest() (request *ListUserQuotasRequest) {
+	request = &ListUserQuotasRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "ListUserQuotas", "teslamaxcompute", "openAPI")
+	return
+}
+
+// CreateListUserQuotasResponse creates a response to parse from ListUserQuotas response
+func CreateListUserQuotasResponse() (response *ListUserQuotasResponse) {
+	response = &ListUserQuotasResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/teslamaxcompute/query_customer_sale_info.go

@@ -93,7 +93,7 @@ func CreateQueryCustomerSaleInfoRequest() (request *QueryCustomerSaleInfoRequest
 	request = &QueryCustomerSaleInfoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "QueryCustomerSaleInfo", "", "")
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "QueryCustomerSaleInfo", "teslamaxcompute", "openAPI")
 	return
 }
 

+ 1 - 1
services/teslamaxcompute/query_resource_inventory.go

@@ -92,7 +92,7 @@ func CreateQueryResourceInventoryRequest() (request *QueryResourceInventoryReque
 	request = &QueryResourceInventoryRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "QueryResourceInventory", "", "")
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "QueryResourceInventory", "teslamaxcompute", "openAPI")
 	return
 }
 

+ 1 - 1
services/teslamaxcompute/query_topology.go

@@ -92,7 +92,7 @@ func CreateQueryTopologyRequest() (request *QueryTopologyRequest) {
 	request = &QueryTopologyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "QueryTopology", "", "")
+	request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "QueryTopology", "teslamaxcompute", "openAPI")
 	return
 }
 

+ 4 - 4
services/teslamaxcompute/struct_data.go

@@ -17,8 +17,8 @@ package teslamaxcompute
 
 // 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"`
+	LastUpdate string                          `json:"LastUpdate" xml:"LastUpdate"`
+	Error      Error                           `json:"Error" xml:"Error"`
+	Detail     DetailInListUserQuotas          `json:"Detail" xml:"Detail"`
+	Clusters   ClustersInQueryCustomerSaleInfo `json:"Clusters" xml:"Clusters"`
 }

+ 22 - 0
services/teslamaxcompute/struct_data_in_get_cluster_instance.go

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

+ 22 - 0
services/teslamaxcompute/struct_data_in_get_project_instance.go

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

+ 22 - 0
services/teslamaxcompute/struct_data_in_get_user_instance.go

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

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

+ 23 - 0
services/teslamaxcompute/struct_error.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.
+
+// Error is a nested struct in teslamaxcompute response
+type Error struct {
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Timestamp string `json:"Timestamp" xml:"Timestamp"`
+}

+ 26 - 0
services/teslamaxcompute/struct_quotas.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.
+
+// Quotas is a nested struct in teslamaxcompute response
+type Quotas struct {
+	Quotaid  int    `json:"Quotaid" xml:"Quotaid"`
+	Cluster  string `json:"Cluster" xml:"Cluster"`
+	Region   string `json:"Region" xml:"Region"`
+	Name     string `json:"Name" xml:"Name"`
+	Parentid int    `json:"Parentid" xml:"Parentid"`
+	Nick     string `json:"Nick" xml:"Nick"`
+}