Explorar o código

QueryInstanceBillResponse change ownerId type from Long to String.

sdk-team %!s(int64=6) %!d(string=hai) anos
pai
achega
4bde7e8dc9
Modificáronse 35 ficheiros con 287 adicións e 1723 borrados
  1. 6 0
      ChangeLog.txt
  2. 0 115
      services/bssopenapi/change_consume_amount.go
  3. 5 5
      services/bssopenapi/convert_charge_type.go
  4. 5 5
      services/bssopenapi/create_instance.go
  5. 6 6
      services/bssopenapi/create_resource_package.go
  6. 0 111
      services/bssopenapi/create_user_quota.go
  7. 2 0
      services/bssopenapi/get_resource_package_price.go
  8. 5 5
      services/bssopenapi/modify_instance.go
  9. 0 110
      services/bssopenapi/query_account_book_list.go
  10. 0 109
      services/bssopenapi/query_avaliable_quota.go
  11. 0 111
      services/bssopenapi/query_enduser_status.go
  12. 0 108
      services/bssopenapi/query_price.go
  13. 0 111
      services/bssopenapi/query_price_list.go
  14. 0 111
      services/bssopenapi/query_user_alarm_threshold.go
  15. 5 5
      services/bssopenapi/renew_instance.go
  16. 112 0
      services/bssopenapi/renew_resource_package.go
  17. 0 110
      services/bssopenapi/set_enduser_status.go
  18. 0 110
      services/bssopenapi/set_user_alarm_threshold.go
  19. 0 111
      services/bssopenapi/set_user_quota.go
  20. 1 1
      services/bssopenapi/struct_data.go
  21. 3 3
      services/bssopenapi/struct_data_in_convert_charge_type.go
  22. 3 3
      services/bssopenapi/struct_data_in_create_instance.go
  23. 4 3
      services/bssopenapi/struct_data_in_modify_instance.go
  24. 3 3
      services/bssopenapi/struct_data_in_renew_instance.go
  25. 0 21
      services/bssopenapi/struct_datas_in_query_account_book_list.go
  26. 0 21
      services/bssopenapi/struct_datas_in_query_enduser_status.go
  27. 0 21
      services/bssopenapi/struct_datas_in_query_user_alarm_threshold.go
  28. 15 0
      services/bssopenapi/struct_item.go
  29. 0 55
      services/bssopenapi/struct_item_in_query_instance_bill.go
  30. 1 1
      services/bssopenapi/struct_items_in_query_instance_bill.go
  31. 0 27
      services/bssopenapi/struct_tier_price.go
  32. 0 108
      services/bssopenapi/subscribe_detail.go
  33. 0 108
      services/bssopenapi/subscribe_export_to_oss.go
  34. 0 105
      services/bssopenapi/unsubscribe_export_to_oss.go
  35. 111 0
      services/bssopenapi/upgrade_resource_package.go

+ 6 - 0
ChangeLog.txt

@@ -1,3 +1,9 @@
+2019-08-26 Version: 1.60.119
+- QueryInstanceBillResponse change ownerId type from Long to String.
+- QueryInstanceBillResponse change usage type from float to String.
+- QueryInstanceBillResponse change listPrice type from float to String.
+- QueryInstanceBillResponse change deductedByResourcePackage type from float to String.
+
 2019-08-22 Version: 1.60.118
 - Support API RecognizeImageColor.
 - Support API DetectImageElements.

+ 0 - 115
services/bssopenapi/change_consume_amount.go

@@ -1,115 +0,0 @@
-package bssopenapi
-
-//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"
-)
-
-// ChangeConsumeAmount invokes the bssopenapi.ChangeConsumeAmount API synchronously
-// api document: https://help.aliyun.com/api/bssopenapi/changeconsumeamount.html
-func (client *Client) ChangeConsumeAmount(request *ChangeConsumeAmountRequest) (response *ChangeConsumeAmountResponse, err error) {
-	response = CreateChangeConsumeAmountResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ChangeConsumeAmountWithChan invokes the bssopenapi.ChangeConsumeAmount API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/changeconsumeamount.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ChangeConsumeAmountWithChan(request *ChangeConsumeAmountRequest) (<-chan *ChangeConsumeAmountResponse, <-chan error) {
-	responseChan := make(chan *ChangeConsumeAmountResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ChangeConsumeAmount(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ChangeConsumeAmountWithCallback invokes the bssopenapi.ChangeConsumeAmount API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/changeconsumeamount.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ChangeConsumeAmountWithCallback(request *ChangeConsumeAmountRequest, callback func(response *ChangeConsumeAmountResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ChangeConsumeAmountResponse
-		var err error
-		defer close(result)
-		response, err = client.ChangeConsumeAmount(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ChangeConsumeAmountRequest is the request struct for api ChangeConsumeAmount
-type ChangeConsumeAmountRequest struct {
-	*requests.RpcRequest
-	Uid          requests.Integer `position:"Query" name:"Uid"`
-	AdjustType   string           `position:"Query" name:"AdjustType"`
-	Amount       string           `position:"Query" name:"Amount"`
-	OutBizId     string           `position:"Query" name:"OutBizId"`
-	ExtendMap    string           `position:"Query" name:"ExtendMap"`
-	Currency     string           `position:"Query" name:"Currency"`
-	Source       string           `position:"Query" name:"Source"`
-	Bid          string           `position:"Query" name:"Bid"`
-	BusinessType string           `position:"Query" name:"BusinessType"`
-}
-
-// ChangeConsumeAmountResponse is the response struct for api ChangeConsumeAmount
-type ChangeConsumeAmountResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Data      string `json:"Data" xml:"Data"`
-}
-
-// CreateChangeConsumeAmountRequest creates a request to invoke ChangeConsumeAmount API
-func CreateChangeConsumeAmountRequest() (request *ChangeConsumeAmountRequest) {
-	request = &ChangeConsumeAmountRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "ChangeConsumeAmount", "", "")
-	return
-}
-
-// CreateChangeConsumeAmountResponse creates a response to parse from ChangeConsumeAmount response
-func CreateChangeConsumeAmountResponse() (response *ChangeConsumeAmountResponse) {
-	response = &ChangeConsumeAmountResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 5 - 5
services/bssopenapi/convert_charge_type.go

@@ -87,11 +87,11 @@ type ConvertChargeTypeRequest struct {
 // ConvertChargeTypeResponse is the response struct for api ConvertChargeType
 type ConvertChargeTypeResponse struct {
 	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	Data      Data   `json:"Data" xml:"Data"`
+	RequestId string                  `json:"RequestId" xml:"RequestId"`
+	Success   bool                    `json:"Success" xml:"Success"`
+	Code      string                  `json:"Code" xml:"Code"`
+	Message   string                  `json:"Message" xml:"Message"`
+	Data      DataInConvertChargeType `json:"Data" xml:"Data"`
 }
 
 // CreateConvertChargeTypeRequest creates a request to invoke ConvertChargeType API

+ 5 - 5
services/bssopenapi/create_instance.go

@@ -96,11 +96,11 @@ type CreateInstanceParameter struct {
 // CreateInstanceResponse is the response struct for api CreateInstance
 type CreateInstanceResponse struct {
 	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	Data      Data   `json:"Data" xml:"Data"`
+	RequestId string               `json:"RequestId" xml:"RequestId"`
+	Success   bool                 `json:"Success" xml:"Success"`
+	Code      string               `json:"Code" xml:"Code"`
+	Message   string               `json:"Message" xml:"Message"`
+	Data      DataInCreateInstance `json:"Data" xml:"Data"`
 }
 
 // CreateCreateInstanceRequest creates a request to invoke CreateInstance API

+ 6 - 6
services/bssopenapi/create_resource_package.go

@@ -88,12 +88,12 @@ type CreateResourcePackageRequest struct {
 // CreateResourcePackageResponse is the response struct for api CreateResourcePackage
 type CreateResourcePackageResponse struct {
 	*responses.BaseResponse
-	RequestId string                      `json:"RequestId" xml:"RequestId"`
-	OrderId   int64                       `json:"OrderId" xml:"OrderId"`
-	Success   bool                        `json:"Success" xml:"Success"`
-	Code      string                      `json:"Code" xml:"Code"`
-	Message   string                      `json:"Message" xml:"Message"`
-	Data      DataInCreateResourcePackage `json:"Data" xml:"Data"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	OrderId   int64  `json:"OrderId" xml:"OrderId"`
+	Success   bool   `json:"Success" xml:"Success"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      Data   `json:"Data" xml:"Data"`
 }
 
 // CreateCreateResourcePackageRequest creates a request to invoke CreateResourcePackage API

+ 0 - 111
services/bssopenapi/create_user_quota.go

@@ -1,111 +0,0 @@
-package bssopenapi
-
-//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"
-)
-
-// CreateUserQuota invokes the bssopenapi.CreateUserQuota API synchronously
-// api document: https://help.aliyun.com/api/bssopenapi/createuserquota.html
-func (client *Client) CreateUserQuota(request *CreateUserQuotaRequest) (response *CreateUserQuotaResponse, err error) {
-	response = CreateCreateUserQuotaResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// CreateUserQuotaWithChan invokes the bssopenapi.CreateUserQuota API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/createuserquota.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateUserQuotaWithChan(request *CreateUserQuotaRequest) (<-chan *CreateUserQuotaResponse, <-chan error) {
-	responseChan := make(chan *CreateUserQuotaResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.CreateUserQuota(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// CreateUserQuotaWithCallback invokes the bssopenapi.CreateUserQuota API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/createuserquota.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateUserQuotaWithCallback(request *CreateUserQuotaRequest, callback func(response *CreateUserQuotaResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *CreateUserQuotaResponse
-		var err error
-		defer close(result)
-		response, err = client.CreateUserQuota(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// CreateUserQuotaRequest is the request struct for api CreateUserQuota
-type CreateUserQuotaRequest struct {
-	*requests.RpcRequest
-	Uid      requests.Integer `position:"Query" name:"Uid"`
-	Amount   string           `position:"Query" name:"Amount"`
-	OutBizId string           `position:"Query" name:"OutBizId"`
-	Currency string           `position:"Query" name:"Currency"`
-	Bid      string           `position:"Query" name:"Bid"`
-}
-
-// CreateUserQuotaResponse is the response struct for api CreateUserQuota
-type CreateUserQuotaResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Data      bool   `json:"Data" xml:"Data"`
-}
-
-// CreateCreateUserQuotaRequest creates a request to invoke CreateUserQuota API
-func CreateCreateUserQuotaRequest() (request *CreateUserQuotaRequest) {
-	request = &CreateUserQuotaRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "CreateUserQuota", "", "")
-	return
-}
-
-// CreateCreateUserQuotaResponse creates a response to parse from CreateUserQuota response
-func CreateCreateUserQuotaResponse() (response *CreateUserQuotaResponse) {
-	response = &CreateUserQuotaResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 2 - 0
services/bssopenapi/get_resource_package_price.go

@@ -78,11 +78,13 @@ type GetResourcePackagePriceRequest struct {
 	*requests.RpcRequest
 	Duration      requests.Integer `position:"Query" name:"Duration"`
 	ProductCode   string           `position:"Query" name:"ProductCode"`
+	InstanceId    string           `position:"Query" name:"InstanceId"`
 	Specification string           `position:"Query" name:"Specification"`
 	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 	PackageType   string           `position:"Query" name:"PackageType"`
 	EffectiveDate string           `position:"Query" name:"EffectiveDate"`
 	PricingCycle  string           `position:"Query" name:"PricingCycle"`
+	OrderType     string           `position:"Query" name:"OrderType"`
 }
 
 // GetResourcePackagePriceResponse is the response struct for api GetResourcePackagePrice

+ 5 - 5
services/bssopenapi/modify_instance.go

@@ -95,11 +95,11 @@ type ModifyInstanceParameter struct {
 // ModifyInstanceResponse is the response struct for api ModifyInstance
 type ModifyInstanceResponse struct {
 	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	Data      Data   `json:"Data" xml:"Data"`
+	RequestId string               `json:"RequestId" xml:"RequestId"`
+	Success   bool                 `json:"Success" xml:"Success"`
+	Code      string               `json:"Code" xml:"Code"`
+	Message   string               `json:"Message" xml:"Message"`
+	Data      DataInModifyInstance `json:"Data" xml:"Data"`
 }
 
 // CreateModifyInstanceRequest creates a request to invoke ModifyInstance API

+ 0 - 110
services/bssopenapi/query_account_book_list.go

@@ -1,110 +0,0 @@
-package bssopenapi
-
-//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"
-)
-
-// QueryAccountBookList invokes the bssopenapi.QueryAccountBookList API synchronously
-// api document: https://help.aliyun.com/api/bssopenapi/queryaccountbooklist.html
-func (client *Client) QueryAccountBookList(request *QueryAccountBookListRequest) (response *QueryAccountBookListResponse, err error) {
-	response = CreateQueryAccountBookListResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// QueryAccountBookListWithChan invokes the bssopenapi.QueryAccountBookList API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/queryaccountbooklist.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) QueryAccountBookListWithChan(request *QueryAccountBookListRequest) (<-chan *QueryAccountBookListResponse, <-chan error) {
-	responseChan := make(chan *QueryAccountBookListResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.QueryAccountBookList(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// QueryAccountBookListWithCallback invokes the bssopenapi.QueryAccountBookList API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/queryaccountbooklist.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) QueryAccountBookListWithCallback(request *QueryAccountBookListRequest, callback func(response *QueryAccountBookListResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *QueryAccountBookListResponse
-		var err error
-		defer close(result)
-		response, err = client.QueryAccountBookList(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// QueryAccountBookListRequest is the request struct for api QueryAccountBookList
-type QueryAccountBookListRequest struct {
-	*requests.RpcRequest
-	Uid       requests.Integer `position:"Query" name:"Uid"`
-	ItemCodes string           `position:"Query" name:"ItemCodes"`
-	Bid       string           `position:"Query" name:"Bid"`
-}
-
-// QueryAccountBookListResponse is the response struct for api QueryAccountBookList
-type QueryAccountBookListResponse struct {
-	*responses.BaseResponse
-	RequestId string                      `json:"RequestId" xml:"RequestId"`
-	Code      string                      `json:"Code" xml:"Code"`
-	Message   string                      `json:"Message" xml:"Message"`
-	Success   bool                        `json:"Success" xml:"Success"`
-	Count     int                         `json:"Count" xml:"Count"`
-	Datas     DatasInQueryAccountBookList `json:"Datas" xml:"Datas"`
-}
-
-// CreateQueryAccountBookListRequest creates a request to invoke QueryAccountBookList API
-func CreateQueryAccountBookListRequest() (request *QueryAccountBookListRequest) {
-	request = &QueryAccountBookListRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "QueryAccountBookList", "", "")
-	return
-}
-
-// CreateQueryAccountBookListResponse creates a response to parse from QueryAccountBookList response
-func CreateQueryAccountBookListResponse() (response *QueryAccountBookListResponse) {
-	response = &QueryAccountBookListResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 109
services/bssopenapi/query_avaliable_quota.go

@@ -1,109 +0,0 @@
-package bssopenapi
-
-//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"
-)
-
-// QueryAvaliableQuota invokes the bssopenapi.QueryAvaliableQuota API synchronously
-// api document: https://help.aliyun.com/api/bssopenapi/queryavaliablequota.html
-func (client *Client) QueryAvaliableQuota(request *QueryAvaliableQuotaRequest) (response *QueryAvaliableQuotaResponse, err error) {
-	response = CreateQueryAvaliableQuotaResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// QueryAvaliableQuotaWithChan invokes the bssopenapi.QueryAvaliableQuota API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/queryavaliablequota.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) QueryAvaliableQuotaWithChan(request *QueryAvaliableQuotaRequest) (<-chan *QueryAvaliableQuotaResponse, <-chan error) {
-	responseChan := make(chan *QueryAvaliableQuotaResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.QueryAvaliableQuota(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// QueryAvaliableQuotaWithCallback invokes the bssopenapi.QueryAvaliableQuota API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/queryavaliablequota.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) QueryAvaliableQuotaWithCallback(request *QueryAvaliableQuotaRequest, callback func(response *QueryAvaliableQuotaResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *QueryAvaliableQuotaResponse
-		var err error
-		defer close(result)
-		response, err = client.QueryAvaliableQuota(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// QueryAvaliableQuotaRequest is the request struct for api QueryAvaliableQuota
-type QueryAvaliableQuotaRequest struct {
-	*requests.RpcRequest
-	Uid       requests.Integer `position:"Query" name:"Uid"`
-	ItemCodes string           `position:"Query" name:"ItemCodes"`
-	Bid       string           `position:"Query" name:"Bid"`
-}
-
-// QueryAvaliableQuotaResponse is the response struct for api QueryAvaliableQuota
-type QueryAvaliableQuotaResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Data      string `json:"Data" xml:"Data"`
-}
-
-// CreateQueryAvaliableQuotaRequest creates a request to invoke QueryAvaliableQuota API
-func CreateQueryAvaliableQuotaRequest() (request *QueryAvaliableQuotaRequest) {
-	request = &QueryAvaliableQuotaRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "QueryAvaliableQuota", "", "")
-	return
-}
-
-// CreateQueryAvaliableQuotaResponse creates a response to parse from QueryAvaliableQuota response
-func CreateQueryAvaliableQuotaResponse() (response *QueryAvaliableQuotaResponse) {
-	response = &QueryAvaliableQuotaResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 111
services/bssopenapi/query_enduser_status.go

@@ -1,111 +0,0 @@
-package bssopenapi
-
-//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"
-)
-
-// QueryEnduserStatus invokes the bssopenapi.QueryEnduserStatus API synchronously
-// api document: https://help.aliyun.com/api/bssopenapi/queryenduserstatus.html
-func (client *Client) QueryEnduserStatus(request *QueryEnduserStatusRequest) (response *QueryEnduserStatusResponse, err error) {
-	response = CreateQueryEnduserStatusResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// QueryEnduserStatusWithChan invokes the bssopenapi.QueryEnduserStatus API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/queryenduserstatus.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) QueryEnduserStatusWithChan(request *QueryEnduserStatusRequest) (<-chan *QueryEnduserStatusResponse, <-chan error) {
-	responseChan := make(chan *QueryEnduserStatusResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.QueryEnduserStatus(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// QueryEnduserStatusWithCallback invokes the bssopenapi.QueryEnduserStatus API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/queryenduserstatus.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) QueryEnduserStatusWithCallback(request *QueryEnduserStatusRequest, callback func(response *QueryEnduserStatusResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *QueryEnduserStatusResponse
-		var err error
-		defer close(result)
-		response, err = client.QueryEnduserStatus(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// QueryEnduserStatusRequest is the request struct for api QueryEnduserStatus
-type QueryEnduserStatusRequest struct {
-	*requests.RpcRequest
-	Uid            requests.Integer `position:"Query" name:"Uid"`
-	PrimaryAccount string           `position:"Query" name:"PrimaryAccount"`
-	Status         string           `position:"Query" name:"Status"`
-	BusinessType   string           `position:"Query" name:"BusinessType"`
-}
-
-// QueryEnduserStatusResponse is the response struct for api QueryEnduserStatus
-type QueryEnduserStatusResponse struct {
-	*responses.BaseResponse
-	RequestId string                    `json:"RequestId" xml:"RequestId"`
-	Code      string                    `json:"Code" xml:"Code"`
-	Message   string                    `json:"Message" xml:"Message"`
-	Success   bool                      `json:"Success" xml:"Success"`
-	Count     int                       `json:"Count" xml:"Count"`
-	Datas     DatasInQueryEnduserStatus `json:"Datas" xml:"Datas"`
-}
-
-// CreateQueryEnduserStatusRequest creates a request to invoke QueryEnduserStatus API
-func CreateQueryEnduserStatusRequest() (request *QueryEnduserStatusRequest) {
-	request = &QueryEnduserStatusRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "QueryEnduserStatus", "", "")
-	return
-}
-
-// CreateQueryEnduserStatusResponse creates a response to parse from QueryEnduserStatus response
-func CreateQueryEnduserStatusResponse() (response *QueryEnduserStatusResponse) {
-	response = &QueryEnduserStatusResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 108
services/bssopenapi/query_price.go

@@ -1,108 +0,0 @@
-package bssopenapi
-
-//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"
-)
-
-// QueryPrice invokes the bssopenapi.QueryPrice API synchronously
-// api document: https://help.aliyun.com/api/bssopenapi/queryprice.html
-func (client *Client) QueryPrice(request *QueryPriceRequest) (response *QueryPriceResponse, err error) {
-	response = CreateQueryPriceResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// QueryPriceWithChan invokes the bssopenapi.QueryPrice API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/queryprice.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) QueryPriceWithChan(request *QueryPriceRequest) (<-chan *QueryPriceResponse, <-chan error) {
-	responseChan := make(chan *QueryPriceResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.QueryPrice(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// QueryPriceWithCallback invokes the bssopenapi.QueryPrice API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/queryprice.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) QueryPriceWithCallback(request *QueryPriceRequest, callback func(response *QueryPriceResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *QueryPriceResponse
-		var err error
-		defer close(result)
-		response, err = client.QueryPrice(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// QueryPriceRequest is the request struct for api QueryPrice
-type QueryPriceRequest struct {
-	*requests.RpcRequest
-	ParamStr string `position:"Query" name:"ParamStr"`
-}
-
-// QueryPriceResponse is the response struct for api QueryPrice
-type QueryPriceResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	Data      string `json:"Data" xml:"Data"`
-	ErrCode   string `json:"ErrCode" xml:"ErrCode"`
-}
-
-// CreateQueryPriceRequest creates a request to invoke QueryPrice API
-func CreateQueryPriceRequest() (request *QueryPriceRequest) {
-	request = &QueryPriceRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "QueryPrice", "", "")
-	return
-}
-
-// CreateQueryPriceResponse creates a response to parse from QueryPrice response
-func CreateQueryPriceResponse() (response *QueryPriceResponse) {
-	response = &QueryPriceResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 111
services/bssopenapi/query_price_list.go

@@ -1,111 +0,0 @@
-package bssopenapi
-
-//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"
-)
-
-// QueryPriceList invokes the bssopenapi.QueryPriceList API synchronously
-// api document: https://help.aliyun.com/api/bssopenapi/querypricelist.html
-func (client *Client) QueryPriceList(request *QueryPriceListRequest) (response *QueryPriceListResponse, err error) {
-	response = CreateQueryPriceListResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// QueryPriceListWithChan invokes the bssopenapi.QueryPriceList API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/querypricelist.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) QueryPriceListWithChan(request *QueryPriceListRequest) (<-chan *QueryPriceListResponse, <-chan error) {
-	responseChan := make(chan *QueryPriceListResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.QueryPriceList(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// QueryPriceListWithCallback invokes the bssopenapi.QueryPriceList API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/querypricelist.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) QueryPriceListWithCallback(request *QueryPriceListRequest, callback func(response *QueryPriceListResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *QueryPriceListResponse
-		var err error
-		defer close(result)
-		response, err = client.QueryPriceList(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// QueryPriceListRequest is the request struct for api QueryPriceList
-type QueryPriceListRequest struct {
-	*requests.RpcRequest
-	ModuleCode       string           `position:"Query" name:"ModuleCode"`
-	ProductCode      string           `position:"Query" name:"ProductCode"`
-	SubscriptionType string           `position:"Query" name:"SubscriptionType"`
-	OwnerId          requests.Integer `position:"Query" name:"OwnerId"`
-	ProductType      string           `position:"Query" name:"ProductType"`
-}
-
-// QueryPriceListResponse is the response struct for api QueryPriceList
-type QueryPriceListResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	Data      Data   `json:"Data" xml:"Data"`
-}
-
-// CreateQueryPriceListRequest creates a request to invoke QueryPriceList API
-func CreateQueryPriceListRequest() (request *QueryPriceListRequest) {
-	request = &QueryPriceListRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "QueryPriceList", "", "")
-	return
-}
-
-// CreateQueryPriceListResponse creates a response to parse from QueryPriceList response
-func CreateQueryPriceListResponse() (response *QueryPriceListResponse) {
-	response = &QueryPriceListResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 111
services/bssopenapi/query_user_alarm_threshold.go

@@ -1,111 +0,0 @@
-package bssopenapi
-
-//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"
-)
-
-// QueryUserAlarmThreshold invokes the bssopenapi.QueryUserAlarmThreshold API synchronously
-// api document: https://help.aliyun.com/api/bssopenapi/queryuseralarmthreshold.html
-func (client *Client) QueryUserAlarmThreshold(request *QueryUserAlarmThresholdRequest) (response *QueryUserAlarmThresholdResponse, err error) {
-	response = CreateQueryUserAlarmThresholdResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// QueryUserAlarmThresholdWithChan invokes the bssopenapi.QueryUserAlarmThreshold API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/queryuseralarmthreshold.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) QueryUserAlarmThresholdWithChan(request *QueryUserAlarmThresholdRequest) (<-chan *QueryUserAlarmThresholdResponse, <-chan error) {
-	responseChan := make(chan *QueryUserAlarmThresholdResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.QueryUserAlarmThreshold(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// QueryUserAlarmThresholdWithCallback invokes the bssopenapi.QueryUserAlarmThreshold API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/queryuseralarmthreshold.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) QueryUserAlarmThresholdWithCallback(request *QueryUserAlarmThresholdRequest, callback func(response *QueryUserAlarmThresholdResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *QueryUserAlarmThresholdResponse
-		var err error
-		defer close(result)
-		response, err = client.QueryUserAlarmThreshold(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// QueryUserAlarmThresholdRequest is the request struct for api QueryUserAlarmThreshold
-type QueryUserAlarmThresholdRequest struct {
-	*requests.RpcRequest
-	Uid             requests.Integer `position:"Query" name:"Uid"`
-	AlarmType       string           `position:"Query" name:"AlarmType"`
-	AlarmThresholds string           `position:"Query" name:"AlarmThresholds"`
-	Bid             string           `position:"Query" name:"Bid"`
-}
-
-// QueryUserAlarmThresholdResponse is the response struct for api QueryUserAlarmThreshold
-type QueryUserAlarmThresholdResponse struct {
-	*responses.BaseResponse
-	RequestId string                         `json:"RequestId" xml:"RequestId"`
-	Code      string                         `json:"Code" xml:"Code"`
-	Message   string                         `json:"Message" xml:"Message"`
-	Success   bool                           `json:"Success" xml:"Success"`
-	Count     int                            `json:"Count" xml:"Count"`
-	Datas     DatasInQueryUserAlarmThreshold `json:"Datas" xml:"Datas"`
-}
-
-// CreateQueryUserAlarmThresholdRequest creates a request to invoke QueryUserAlarmThreshold API
-func CreateQueryUserAlarmThresholdRequest() (request *QueryUserAlarmThresholdRequest) {
-	request = &QueryUserAlarmThresholdRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "QueryUserAlarmThreshold", "", "")
-	return
-}
-
-// CreateQueryUserAlarmThresholdResponse creates a response to parse from QueryUserAlarmThreshold response
-func CreateQueryUserAlarmThresholdResponse() (response *QueryUserAlarmThresholdResponse) {
-	response = &QueryUserAlarmThresholdResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 5 - 5
services/bssopenapi/renew_instance.go

@@ -87,11 +87,11 @@ type RenewInstanceRequest struct {
 // RenewInstanceResponse is the response struct for api RenewInstance
 type RenewInstanceResponse struct {
 	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	Data      Data   `json:"Data" xml:"Data"`
+	RequestId string              `json:"RequestId" xml:"RequestId"`
+	Success   bool                `json:"Success" xml:"Success"`
+	Code      string              `json:"Code" xml:"Code"`
+	Message   string              `json:"Message" xml:"Message"`
+	Data      DataInRenewInstance `json:"Data" xml:"Data"`
 }
 
 // CreateRenewInstanceRequest creates a request to invoke RenewInstance API

+ 112 - 0
services/bssopenapi/renew_resource_package.go

@@ -0,0 +1,112 @@
+package bssopenapi
+
+//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"
+)
+
+// RenewResourcePackage invokes the bssopenapi.RenewResourcePackage API synchronously
+// api document: https://help.aliyun.com/api/bssopenapi/renewresourcepackage.html
+func (client *Client) RenewResourcePackage(request *RenewResourcePackageRequest) (response *RenewResourcePackageResponse, err error) {
+	response = CreateRenewResourcePackageResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// RenewResourcePackageWithChan invokes the bssopenapi.RenewResourcePackage API asynchronously
+// api document: https://help.aliyun.com/api/bssopenapi/renewresourcepackage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RenewResourcePackageWithChan(request *RenewResourcePackageRequest) (<-chan *RenewResourcePackageResponse, <-chan error) {
+	responseChan := make(chan *RenewResourcePackageResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.RenewResourcePackage(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// RenewResourcePackageWithCallback invokes the bssopenapi.RenewResourcePackage API asynchronously
+// api document: https://help.aliyun.com/api/bssopenapi/renewresourcepackage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RenewResourcePackageWithCallback(request *RenewResourcePackageRequest, callback func(response *RenewResourcePackageResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *RenewResourcePackageResponse
+		var err error
+		defer close(result)
+		response, err = client.RenewResourcePackage(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// RenewResourcePackageRequest is the request struct for api RenewResourcePackage
+type RenewResourcePackageRequest struct {
+	*requests.RpcRequest
+	Duration      requests.Integer `position:"Query" name:"Duration"`
+	InstanceId    string           `position:"Query" name:"InstanceId"`
+	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
+	EffectiveDate string           `position:"Query" name:"EffectiveDate"`
+	PricingCycle  string           `position:"Query" name:"PricingCycle"`
+}
+
+// RenewResourcePackageResponse is the response struct for api RenewResourcePackage
+type RenewResourcePackageResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	OrderId   int64  `json:"OrderId" xml:"OrderId"`
+	Success   bool   `json:"Success" xml:"Success"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateRenewResourcePackageRequest creates a request to invoke RenewResourcePackage API
+func CreateRenewResourcePackageRequest() (request *RenewResourcePackageRequest) {
+	request = &RenewResourcePackageRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "RenewResourcePackage", "", "")
+	return
+}
+
+// CreateRenewResourcePackageResponse creates a response to parse from RenewResourcePackage response
+func CreateRenewResourcePackageResponse() (response *RenewResourcePackageResponse) {
+	response = &RenewResourcePackageResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 110
services/bssopenapi/set_enduser_status.go

@@ -1,110 +0,0 @@
-package bssopenapi
-
-//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"
-)
-
-// SetEnduserStatus invokes the bssopenapi.SetEnduserStatus API synchronously
-// api document: https://help.aliyun.com/api/bssopenapi/setenduserstatus.html
-func (client *Client) SetEnduserStatus(request *SetEnduserStatusRequest) (response *SetEnduserStatusResponse, err error) {
-	response = CreateSetEnduserStatusResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// SetEnduserStatusWithChan invokes the bssopenapi.SetEnduserStatus API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/setenduserstatus.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SetEnduserStatusWithChan(request *SetEnduserStatusRequest) (<-chan *SetEnduserStatusResponse, <-chan error) {
-	responseChan := make(chan *SetEnduserStatusResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.SetEnduserStatus(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// SetEnduserStatusWithCallback invokes the bssopenapi.SetEnduserStatus API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/setenduserstatus.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SetEnduserStatusWithCallback(request *SetEnduserStatusRequest, callback func(response *SetEnduserStatusResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *SetEnduserStatusResponse
-		var err error
-		defer close(result)
-		response, err = client.SetEnduserStatus(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// SetEnduserStatusRequest is the request struct for api SetEnduserStatus
-type SetEnduserStatusRequest struct {
-	*requests.RpcRequest
-	Uid            requests.Integer `position:"Query" name:"Uid"`
-	PrimaryAccount string           `position:"Query" name:"PrimaryAccount"`
-	Status         string           `position:"Query" name:"Status"`
-	BusinessType   string           `position:"Query" name:"BusinessType"`
-}
-
-// SetEnduserStatusResponse is the response struct for api SetEnduserStatus
-type SetEnduserStatusResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Data      bool   `json:"Data" xml:"Data"`
-}
-
-// CreateSetEnduserStatusRequest creates a request to invoke SetEnduserStatus API
-func CreateSetEnduserStatusRequest() (request *SetEnduserStatusRequest) {
-	request = &SetEnduserStatusRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "SetEnduserStatus", "", "")
-	return
-}
-
-// CreateSetEnduserStatusResponse creates a response to parse from SetEnduserStatus response
-func CreateSetEnduserStatusResponse() (response *SetEnduserStatusResponse) {
-	response = &SetEnduserStatusResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 110
services/bssopenapi/set_user_alarm_threshold.go

@@ -1,110 +0,0 @@
-package bssopenapi
-
-//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"
-)
-
-// SetUserAlarmThreshold invokes the bssopenapi.SetUserAlarmThreshold API synchronously
-// api document: https://help.aliyun.com/api/bssopenapi/setuseralarmthreshold.html
-func (client *Client) SetUserAlarmThreshold(request *SetUserAlarmThresholdRequest) (response *SetUserAlarmThresholdResponse, err error) {
-	response = CreateSetUserAlarmThresholdResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// SetUserAlarmThresholdWithChan invokes the bssopenapi.SetUserAlarmThreshold API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/setuseralarmthreshold.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SetUserAlarmThresholdWithChan(request *SetUserAlarmThresholdRequest) (<-chan *SetUserAlarmThresholdResponse, <-chan error) {
-	responseChan := make(chan *SetUserAlarmThresholdResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.SetUserAlarmThreshold(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// SetUserAlarmThresholdWithCallback invokes the bssopenapi.SetUserAlarmThreshold API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/setuseralarmthreshold.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SetUserAlarmThresholdWithCallback(request *SetUserAlarmThresholdRequest, callback func(response *SetUserAlarmThresholdResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *SetUserAlarmThresholdResponse
-		var err error
-		defer close(result)
-		response, err = client.SetUserAlarmThreshold(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// SetUserAlarmThresholdRequest is the request struct for api SetUserAlarmThreshold
-type SetUserAlarmThresholdRequest struct {
-	*requests.RpcRequest
-	Uid             requests.Integer `position:"Query" name:"Uid"`
-	AlarmType       string           `position:"Query" name:"AlarmType"`
-	AlarmThresholds string           `position:"Query" name:"AlarmThresholds"`
-	Bid             string           `position:"Query" name:"Bid"`
-}
-
-// SetUserAlarmThresholdResponse is the response struct for api SetUserAlarmThreshold
-type SetUserAlarmThresholdResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Data      bool   `json:"Data" xml:"Data"`
-}
-
-// CreateSetUserAlarmThresholdRequest creates a request to invoke SetUserAlarmThreshold API
-func CreateSetUserAlarmThresholdRequest() (request *SetUserAlarmThresholdRequest) {
-	request = &SetUserAlarmThresholdRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "SetUserAlarmThreshold", "", "")
-	return
-}
-
-// CreateSetUserAlarmThresholdResponse creates a response to parse from SetUserAlarmThreshold response
-func CreateSetUserAlarmThresholdResponse() (response *SetUserAlarmThresholdResponse) {
-	response = &SetUserAlarmThresholdResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 111
services/bssopenapi/set_user_quota.go

@@ -1,111 +0,0 @@
-package bssopenapi
-
-//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"
-)
-
-// SetUserQuota invokes the bssopenapi.SetUserQuota API synchronously
-// api document: https://help.aliyun.com/api/bssopenapi/setuserquota.html
-func (client *Client) SetUserQuota(request *SetUserQuotaRequest) (response *SetUserQuotaResponse, err error) {
-	response = CreateSetUserQuotaResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// SetUserQuotaWithChan invokes the bssopenapi.SetUserQuota API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/setuserquota.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SetUserQuotaWithChan(request *SetUserQuotaRequest) (<-chan *SetUserQuotaResponse, <-chan error) {
-	responseChan := make(chan *SetUserQuotaResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.SetUserQuota(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// SetUserQuotaWithCallback invokes the bssopenapi.SetUserQuota API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/setuserquota.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SetUserQuotaWithCallback(request *SetUserQuotaRequest, callback func(response *SetUserQuotaResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *SetUserQuotaResponse
-		var err error
-		defer close(result)
-		response, err = client.SetUserQuota(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// SetUserQuotaRequest is the request struct for api SetUserQuota
-type SetUserQuotaRequest struct {
-	*requests.RpcRequest
-	Uid      requests.Integer `position:"Query" name:"Uid"`
-	Amount   string           `position:"Query" name:"Amount"`
-	OutBizId string           `position:"Query" name:"OutBizId"`
-	Currency string           `position:"Query" name:"Currency"`
-	Bid      string           `position:"Query" name:"Bid"`
-}
-
-// SetUserQuotaResponse is the response struct for api SetUserQuota
-type SetUserQuotaResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Data      bool   `json:"Data" xml:"Data"`
-}
-
-// CreateSetUserQuotaRequest creates a request to invoke SetUserQuota API
-func CreateSetUserQuotaRequest() (request *SetUserQuotaRequest) {
-	request = &SetUserQuotaRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "SetUserQuota", "", "")
-	return
-}
-
-// CreateSetUserQuotaResponse creates a response to parse from SetUserQuota response
-func CreateSetUserQuotaResponse() (response *SetUserQuotaResponse) {
-	response = &SetUserQuotaResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 1 - 1
services/bssopenapi/struct_data.go

@@ -18,10 +18,10 @@ package bssopenapi
 // Data is a nested struct in bssopenapi response
 type Data struct {
 	TradePrice                  float64                                `json:"TradePrice" xml:"TradePrice"`
+	OrderId                     int64                                  `json:"OrderId" xml:"OrderId"`
 	HostId                      string                                 `json:"HostId" xml:"HostId"`
 	TotalUnAppliedInvoiceAmount int64                                  `json:"TotalUnAppliedInvoiceAmount" xml:"TotalUnAppliedInvoiceAmount"`
 	OriginalPrice               float64                                `json:"OriginalPrice" xml:"OriginalPrice"`
-	OrderId                     string                                 `json:"OrderId" xml:"OrderId"`
 	HostingStatus               string                                 `json:"HostingStatus" xml:"HostingStatus"`
 	TotalCount                  int                                    `json:"TotalCount" xml:"TotalCount"`
 	CreditLimitStatus           string                                 `json:"CreditLimitStatus" xml:"CreditLimitStatus"`

+ 3 - 3
services/bssopenapi/struct_modules_in_query_price_list.go → services/bssopenapi/struct_data_in_convert_charge_type.go

@@ -15,7 +15,7 @@ package bssopenapi
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// ModulesInQueryPriceList is a nested struct in bssopenapi response
-type ModulesInQueryPriceList struct {
-	Module []Module `json:"Module" xml:"Module"`
+// DataInConvertChargeType is a nested struct in bssopenapi response
+type DataInConvertChargeType struct {
+	OrderId string `json:"OrderId" xml:"OrderId"`
 }

+ 3 - 3
services/bssopenapi/struct_data_in_create_resource_package.go → services/bssopenapi/struct_data_in_create_instance.go

@@ -15,8 +15,8 @@ package bssopenapi
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// DataInCreateResourcePackage is a nested struct in bssopenapi response
-type DataInCreateResourcePackage struct {
-	OrderId    int64  `json:"OrderId" xml:"OrderId"`
+// DataInCreateInstance is a nested struct in bssopenapi response
+type DataInCreateInstance struct {
 	InstanceId string `json:"InstanceId" xml:"InstanceId"`
+	OrderId    string `json:"OrderId" xml:"OrderId"`
 }

+ 4 - 3
services/bssopenapi/struct_modules_in_query_instance_gaap_cost.go → services/bssopenapi/struct_data_in_modify_instance.go

@@ -15,7 +15,8 @@ package bssopenapi
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// ModulesInQueryInstanceGaapCost is a nested struct in bssopenapi response
-type ModulesInQueryInstanceGaapCost struct {
-	Module []Module `json:"Module" xml:"Module"`
+// DataInModifyInstance is a nested struct in bssopenapi response
+type DataInModifyInstance struct {
+	HostId  string `json:"HostId" xml:"HostId"`
+	OrderId string `json:"OrderId" xml:"OrderId"`
 }

+ 3 - 3
services/bssopenapi/struct_tier_prices.go → services/bssopenapi/struct_data_in_renew_instance.go

@@ -15,7 +15,7 @@ package bssopenapi
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// TierPrices is a nested struct in bssopenapi response
-type TierPrices struct {
-	TierPrice []TierPrice `json:"TierPrice" xml:"TierPrice"`
+// DataInRenewInstance is a nested struct in bssopenapi response
+type DataInRenewInstance struct {
+	OrderId string `json:"OrderId" xml:"OrderId"`
 }

+ 0 - 21
services/bssopenapi/struct_datas_in_query_account_book_list.go

@@ -1,21 +0,0 @@
-package bssopenapi
-
-//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.
-
-// DatasInQueryAccountBookList is a nested struct in bssopenapi response
-type DatasInQueryAccountBookList struct {
-	Data []Data `json:"Data" xml:"Data"`
-}

+ 0 - 21
services/bssopenapi/struct_datas_in_query_enduser_status.go

@@ -1,21 +0,0 @@
-package bssopenapi
-
-//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.
-
-// DatasInQueryEnduserStatus is a nested struct in bssopenapi response
-type DatasInQueryEnduserStatus struct {
-	Data []Data `json:"Data" xml:"Data"`
-}

+ 0 - 21
services/bssopenapi/struct_datas_in_query_user_alarm_threshold.go

@@ -1,21 +0,0 @@
-package bssopenapi
-
-//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.
-
-// DatasInQueryUserAlarmThreshold is a nested struct in bssopenapi response
-type DatasInQueryUserAlarmThreshold struct {
-	Data []Data `json:"Data" xml:"Data"`
-}

+ 15 - 0
services/bssopenapi/struct_item.go

@@ -25,10 +25,13 @@ type Item struct {
 	SolutionCode                string  `json:"SolutionCode" xml:"SolutionCode"`
 	ProductDetail               string  `json:"ProductDetail" xml:"ProductDetail"`
 	Promotion                   string  `json:"Promotion" xml:"Promotion"`
+	Usage                       string  `json:"Usage" xml:"Usage"`
 	Seller                      string  `json:"Seller" xml:"Seller"`
 	PretaxAmountLocal           float64 `json:"PretaxAmountLocal" xml:"PretaxAmountLocal"`
 	OutstandingAmount           float64 `json:"OutstandingAmount" xml:"OutstandingAmount"`
+	DeductedByResourcePackage   string  `json:"DeductedByResourcePackage" xml:"DeductedByResourcePackage"`
 	ProductCode                 string  `json:"ProductCode" xml:"ProductCode"`
+	ListPrice                   string  `json:"ListPrice" xml:"ListPrice"`
 	Quantity                    string  `json:"Quantity" xml:"Quantity"`
 	InvoiceDiscount             float64 `json:"InvoiceDiscount" xml:"InvoiceDiscount"`
 	MybankPaymentAmount         float64 `json:"MybankPaymentAmount" xml:"MybankPaymentAmount"`
@@ -45,20 +48,29 @@ type Item struct {
 	RoundDownDiscount           string  `json:"RoundDownDiscount" xml:"RoundDownDiscount"`
 	SolutionID                  string  `json:"SolutionID" xml:"SolutionID"`
 	ClearedTime                 string  `json:"ClearedTime" xml:"ClearedTime"`
+	InternetIP                  string  `json:"InternetIP" xml:"InternetIP"`
 	PaymentTime                 string  `json:"PaymentTime" xml:"PaymentTime"`
 	CreateTime                  string  `json:"CreateTime" xml:"CreateTime"`
 	LinkedCustomerOrderID       string  `json:"LinkedCustomerOrderID" xml:"LinkedCustomerOrderID"`
+	CostUnit                    string  `json:"CostUnit" xml:"CostUnit"`
 	AfterTaxAmount              float64 `json:"AfterTaxAmount" xml:"AfterTaxAmount"`
 	ResourceGroup               string  `json:"ResourceGroup" xml:"ResourceGroup"`
+	BillingType                 string  `json:"BillingType" xml:"BillingType"`
+	InstanceSpec                string  `json:"InstanceSpec" xml:"InstanceSpec"`
 	Tag                         string  `json:"Tag" xml:"Tag"`
 	OwnerID                     string  `json:"OwnerID" xml:"OwnerID"`
 	SolutionName                string  `json:"SolutionName" xml:"SolutionName"`
+	NickName                    string  `json:"NickName" xml:"NickName"`
 	SubscriptionType            string  `json:"SubscriptionType" xml:"SubscriptionType"`
+	InstanceConfig              string  `json:"InstanceConfig" xml:"InstanceConfig"`
 	DeductedByCashCoupons       float64 `json:"DeductedByCashCoupons" xml:"DeductedByCashCoupons"`
+	ServicePeriod               string  `json:"ServicePeriod" xml:"ServicePeriod"`
 	InvoiceNo                   string  `json:"InvoiceNo" xml:"InvoiceNo"`
 	DiscountAmount              float64 `json:"DiscountAmount" xml:"DiscountAmount"`
 	BillID                      string  `json:"BillID" xml:"BillID"`
+	ListPriceUnit               string  `json:"ListPriceUnit" xml:"ListPriceUnit"`
 	PaymentCurrency             string  `json:"PaymentCurrency" xml:"PaymentCurrency"`
+	UsageUnit                   string  `json:"UsageUnit" xml:"UsageUnit"`
 	ProductType                 string  `json:"ProductType" xml:"ProductType"`
 	AccountDiscount             float64 `json:"AccountDiscount" xml:"AccountDiscount"`
 	Currency                    string  `json:"Currency" xml:"Currency"`
@@ -68,6 +80,9 @@ type Item struct {
 	OrderID                     string  `json:"OrderID" xml:"OrderID"`
 	OrderType                   string  `json:"OrderType" xml:"OrderType"`
 	DeductedByCoupons           float64 `json:"DeductedByCoupons" xml:"DeductedByCoupons"`
+	BillingItem                 string  `json:"BillingItem" xml:"BillingItem"`
+	Zone                        string  `json:"Zone" xml:"Zone"`
 	ChargeDiscount              float64 `json:"ChargeDiscount" xml:"ChargeDiscount"`
 	PretaxAmount                float64 `json:"PretaxAmount" xml:"PretaxAmount"`
+	IntranetIP                  string  `json:"IntranetIP" xml:"IntranetIP"`
 }

+ 0 - 55
services/bssopenapi/struct_item_in_query_instance_bill.go

@@ -1,55 +0,0 @@
-package bssopenapi
-
-//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.
-
-// ItemInQueryInstanceBill is a nested struct in bssopenapi response
-type ItemInQueryInstanceBill struct {
-	InstanceID                string  `json:"InstanceID" xml:"InstanceID"`
-	BillingType               string  `json:"BillingType" xml:"BillingType"`
-	CostUnit                  string  `json:"CostUnit" xml:"CostUnit"`
-	ProductCode               string  `json:"ProductCode" xml:"ProductCode"`
-	ProductType               string  `json:"ProductType" xml:"ProductType"`
-	SubscriptionType          string  `json:"SubscriptionType" xml:"SubscriptionType"`
-	ProductName               string  `json:"ProductName" xml:"ProductName"`
-	ProductDetail             string  `json:"ProductDetail" xml:"ProductDetail"`
-	OwnerID                   int64   `json:"OwnerID" xml:"OwnerID"`
-	BillingItem               string  `json:"BillingItem" xml:"BillingItem"`
-	ListPrice                 float64 `json:"ListPrice" xml:"ListPrice"`
-	ListPriceUnit             string  `json:"ListPriceUnit" xml:"ListPriceUnit"`
-	Usage                     float64 `json:"Usage" xml:"Usage"`
-	UsageUnit                 string  `json:"UsageUnit" xml:"UsageUnit"`
-	DeductedByResourcePackage float64 `json:"DeductedByResourcePackage" xml:"DeductedByResourcePackage"`
-	PretaxGrossAmount         float64 `json:"PretaxGrossAmount" xml:"PretaxGrossAmount"`
-	InvoiceDiscount           float64 `json:"InvoiceDiscount" xml:"InvoiceDiscount"`
-	DeductedByCoupons         float64 `json:"DeductedByCoupons" xml:"DeductedByCoupons"`
-	PretaxAmount              float64 `json:"PretaxAmount" xml:"PretaxAmount"`
-	DeductedByCashCoupons     float64 `json:"DeductedByCashCoupons" xml:"DeductedByCashCoupons"`
-	DeductedByPrepaidCard     float64 `json:"DeductedByPrepaidCard" xml:"DeductedByPrepaidCard"`
-	PaymentAmount             float64 `json:"PaymentAmount" xml:"PaymentAmount"`
-	OutstandingAmount         float64 `json:"OutstandingAmount" xml:"OutstandingAmount"`
-	Currency                  string  `json:"Currency" xml:"Currency"`
-	NickName                  string  `json:"NickName" xml:"NickName"`
-	ResourceGroup             string  `json:"ResourceGroup" xml:"ResourceGroup"`
-	Tag                       string  `json:"Tag" xml:"Tag"`
-	InstanceConfig            string  `json:"InstanceConfig" xml:"InstanceConfig"`
-	InstanceSpec              string  `json:"InstanceSpec" xml:"InstanceSpec"`
-	InternetIP                string  `json:"InternetIP" xml:"InternetIP"`
-	IntranetIP                string  `json:"IntranetIP" xml:"IntranetIP"`
-	Region                    string  `json:"Region" xml:"Region"`
-	Zone                      string  `json:"Zone" xml:"Zone"`
-	Item                      string  `json:"Item" xml:"Item"`
-	ServicePeriod             string  `json:"ServicePeriod" xml:"ServicePeriod"`
-}

+ 1 - 1
services/bssopenapi/struct_items_in_query_instance_bill.go

@@ -17,5 +17,5 @@ package bssopenapi
 
 // ItemsInQueryInstanceBill is a nested struct in bssopenapi response
 type ItemsInQueryInstanceBill struct {
-	Item []ItemInQueryInstanceBill `json:"Item" xml:"Item"`
+	Item []Item `json:"Item" xml:"Item"`
 }

+ 0 - 27
services/bssopenapi/struct_tier_price.go

@@ -1,27 +0,0 @@
-package bssopenapi
-
-//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.
-
-// TierPrice is a nested struct in bssopenapi response
-type TierPrice struct {
-	TierStart   string `json:"TierStart" xml:"TierStart"`
-	StartSymbol string `json:"StartSymbol" xml:"StartSymbol"`
-	TierEnd     string `json:"TierEnd" xml:"TierEnd"`
-	EndSymbol   string `json:"EndSymbol" xml:"EndSymbol"`
-	TierType    string `json:"TierType" xml:"TierType"`
-	PriceType   string `json:"PriceType" xml:"PriceType"`
-	Price       string `json:"Price" xml:"Price"`
-}

+ 0 - 108
services/bssopenapi/subscribe_detail.go

@@ -1,108 +0,0 @@
-package bssopenapi
-
-//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"
-)
-
-// SubscribeDetail invokes the bssopenapi.SubscribeDetail API synchronously
-// api document: https://help.aliyun.com/api/bssopenapi/subscribedetail.html
-func (client *Client) SubscribeDetail(request *SubscribeDetailRequest) (response *SubscribeDetailResponse, err error) {
-	response = CreateSubscribeDetailResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// SubscribeDetailWithChan invokes the bssopenapi.SubscribeDetail API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/subscribedetail.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SubscribeDetailWithChan(request *SubscribeDetailRequest) (<-chan *SubscribeDetailResponse, <-chan error) {
-	responseChan := make(chan *SubscribeDetailResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.SubscribeDetail(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// SubscribeDetailWithCallback invokes the bssopenapi.SubscribeDetail API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/subscribedetail.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SubscribeDetailWithCallback(request *SubscribeDetailRequest, callback func(response *SubscribeDetailResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *SubscribeDetailResponse
-		var err error
-		defer close(result)
-		response, err = client.SubscribeDetail(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// SubscribeDetailRequest is the request struct for api SubscribeDetail
-type SubscribeDetailRequest struct {
-	*requests.RpcRequest
-	BucketOwnerId   requests.Integer `position:"Query" name:"BucketOwnerId"`
-	SubscribeType   *[]string        `position:"Query" name:"SubscribeType"  type:"Repeated"`
-	SubscribeBucket string           `position:"Query" name:"SubscribeBucket"`
-}
-
-// SubscribeDetailResponse is the response struct for api SubscribeDetail
-type SubscribeDetailResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-}
-
-// CreateSubscribeDetailRequest creates a request to invoke SubscribeDetail API
-func CreateSubscribeDetailRequest() (request *SubscribeDetailRequest) {
-	request = &SubscribeDetailRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "SubscribeDetail", "", "")
-	return
-}
-
-// CreateSubscribeDetailResponse creates a response to parse from SubscribeDetail response
-func CreateSubscribeDetailResponse() (response *SubscribeDetailResponse) {
-	response = &SubscribeDetailResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 108
services/bssopenapi/subscribe_export_to_oss.go

@@ -1,108 +0,0 @@
-package bssopenapi
-
-//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"
-)
-
-// SubscribeExportToOSS invokes the bssopenapi.SubscribeExportToOSS API synchronously
-// api document: https://help.aliyun.com/api/bssopenapi/subscribeexporttooss.html
-func (client *Client) SubscribeExportToOSS(request *SubscribeExportToOSSRequest) (response *SubscribeExportToOSSResponse, err error) {
-	response = CreateSubscribeExportToOSSResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// SubscribeExportToOSSWithChan invokes the bssopenapi.SubscribeExportToOSS API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/subscribeexporttooss.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SubscribeExportToOSSWithChan(request *SubscribeExportToOSSRequest) (<-chan *SubscribeExportToOSSResponse, <-chan error) {
-	responseChan := make(chan *SubscribeExportToOSSResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.SubscribeExportToOSS(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// SubscribeExportToOSSWithCallback invokes the bssopenapi.SubscribeExportToOSS API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/subscribeexporttooss.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SubscribeExportToOSSWithCallback(request *SubscribeExportToOSSRequest, callback func(response *SubscribeExportToOSSResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *SubscribeExportToOSSResponse
-		var err error
-		defer close(result)
-		response, err = client.SubscribeExportToOSS(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// SubscribeExportToOSSRequest is the request struct for api SubscribeExportToOSS
-type SubscribeExportToOSSRequest struct {
-	*requests.RpcRequest
-	BucketOwnerId   requests.Integer `position:"Query" name:"BucketOwnerId"`
-	SubscribeType   *[]string        `position:"Query" name:"SubscribeType"  type:"Repeated"`
-	SubscribeBucket string           `position:"Query" name:"SubscribeBucket"`
-}
-
-// SubscribeExportToOSSResponse is the response struct for api SubscribeExportToOSS
-type SubscribeExportToOSSResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-}
-
-// CreateSubscribeExportToOSSRequest creates a request to invoke SubscribeExportToOSS API
-func CreateSubscribeExportToOSSRequest() (request *SubscribeExportToOSSRequest) {
-	request = &SubscribeExportToOSSRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "SubscribeExportToOSS", "", "")
-	return
-}
-
-// CreateSubscribeExportToOSSResponse creates a response to parse from SubscribeExportToOSS response
-func CreateSubscribeExportToOSSResponse() (response *SubscribeExportToOSSResponse) {
-	response = &SubscribeExportToOSSResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 105
services/bssopenapi/unsubscribe_export_to_oss.go

@@ -1,105 +0,0 @@
-package bssopenapi
-
-//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"
-)
-
-// UnsubscribeExportToOSS invokes the bssopenapi.UnsubscribeExportToOSS API synchronously
-// api document: https://help.aliyun.com/api/bssopenapi/unsubscribeexporttooss.html
-func (client *Client) UnsubscribeExportToOSS(request *UnsubscribeExportToOSSRequest) (response *UnsubscribeExportToOSSResponse, err error) {
-	response = CreateUnsubscribeExportToOSSResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// UnsubscribeExportToOSSWithChan invokes the bssopenapi.UnsubscribeExportToOSS API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/unsubscribeexporttooss.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) UnsubscribeExportToOSSWithChan(request *UnsubscribeExportToOSSRequest) (<-chan *UnsubscribeExportToOSSResponse, <-chan error) {
-	responseChan := make(chan *UnsubscribeExportToOSSResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.UnsubscribeExportToOSS(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// UnsubscribeExportToOSSWithCallback invokes the bssopenapi.UnsubscribeExportToOSS API asynchronously
-// api document: https://help.aliyun.com/api/bssopenapi/unsubscribeexporttooss.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) UnsubscribeExportToOSSWithCallback(request *UnsubscribeExportToOSSRequest, callback func(response *UnsubscribeExportToOSSResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *UnsubscribeExportToOSSResponse
-		var err error
-		defer close(result)
-		response, err = client.UnsubscribeExportToOSS(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// UnsubscribeExportToOSSRequest is the request struct for api UnsubscribeExportToOSS
-type UnsubscribeExportToOSSRequest struct {
-	*requests.RpcRequest
-}
-
-// UnsubscribeExportToOSSResponse is the response struct for api UnsubscribeExportToOSS
-type UnsubscribeExportToOSSResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-}
-
-// CreateUnsubscribeExportToOSSRequest creates a request to invoke UnsubscribeExportToOSS API
-func CreateUnsubscribeExportToOSSRequest() (request *UnsubscribeExportToOSSRequest) {
-	request = &UnsubscribeExportToOSSRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "UnsubscribeExportToOSS", "", "")
-	return
-}
-
-// CreateUnsubscribeExportToOSSResponse creates a response to parse from UnsubscribeExportToOSS response
-func CreateUnsubscribeExportToOSSResponse() (response *UnsubscribeExportToOSSResponse) {
-	response = &UnsubscribeExportToOSSResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 111 - 0
services/bssopenapi/upgrade_resource_package.go

@@ -0,0 +1,111 @@
+package bssopenapi
+
+//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"
+)
+
+// UpgradeResourcePackage invokes the bssopenapi.UpgradeResourcePackage API synchronously
+// api document: https://help.aliyun.com/api/bssopenapi/upgraderesourcepackage.html
+func (client *Client) UpgradeResourcePackage(request *UpgradeResourcePackageRequest) (response *UpgradeResourcePackageResponse, err error) {
+	response = CreateUpgradeResourcePackageResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpgradeResourcePackageWithChan invokes the bssopenapi.UpgradeResourcePackage API asynchronously
+// api document: https://help.aliyun.com/api/bssopenapi/upgraderesourcepackage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpgradeResourcePackageWithChan(request *UpgradeResourcePackageRequest) (<-chan *UpgradeResourcePackageResponse, <-chan error) {
+	responseChan := make(chan *UpgradeResourcePackageResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpgradeResourcePackage(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpgradeResourcePackageWithCallback invokes the bssopenapi.UpgradeResourcePackage API asynchronously
+// api document: https://help.aliyun.com/api/bssopenapi/upgraderesourcepackage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpgradeResourcePackageWithCallback(request *UpgradeResourcePackageRequest, callback func(response *UpgradeResourcePackageResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpgradeResourcePackageResponse
+		var err error
+		defer close(result)
+		response, err = client.UpgradeResourcePackage(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpgradeResourcePackageRequest is the request struct for api UpgradeResourcePackage
+type UpgradeResourcePackageRequest struct {
+	*requests.RpcRequest
+	InstanceId    string           `position:"Query" name:"InstanceId"`
+	Specification string           `position:"Query" name:"Specification"`
+	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
+	EffectiveDate string           `position:"Query" name:"EffectiveDate"`
+}
+
+// UpgradeResourcePackageResponse is the response struct for api UpgradeResourcePackage
+type UpgradeResourcePackageResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	OrderId   int64  `json:"OrderId" xml:"OrderId"`
+	Success   bool   `json:"Success" xml:"Success"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateUpgradeResourcePackageRequest creates a request to invoke UpgradeResourcePackage API
+func CreateUpgradeResourcePackageRequest() (request *UpgradeResourcePackageRequest) {
+	request = &UpgradeResourcePackageRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("BssOpenApi", "2017-12-14", "UpgradeResourcePackage", "", "")
+	return
+}
+
+// CreateUpgradeResourcePackageResponse creates a response to parse from UpgradeResourcePackage response
+func CreateUpgradeResourcePackageResponse() (response *UpgradeResourcePackageResponse) {
+	response = &UpgradeResourcePackageResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}