Explorar el Código

SNSUAPI SDK Auto Released By shaoping.gsp,Version:1.27.1

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy hace 7 años
padre
commit
1fd6d109ad

+ 5 - 0
ChangeLog.txt

@@ -1,3 +1,8 @@
+2018-08-23 Version: 1.27.1
+1, This is an example of release-log.
+2, Please strictly follow this format to edit in English.
+3, Format:Number + , + Space + Description
+
 2018-08-23 Version: 1.27.0
 1, Add CreateVpnGateway API.
 2, Add product Ipv6Translator.

+ 110 - 0
services/snsuapi/band_offer_order.go

@@ -0,0 +1,110 @@
+package snsuapi
+
+//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"
+)
+
+// BandOfferOrder invokes the snsuapi.BandOfferOrder API synchronously
+// api document: https://help.aliyun.com/api/snsuapi/bandofferorder.html
+func (client *Client) BandOfferOrder(request *BandOfferOrderRequest) (response *BandOfferOrderResponse, err error) {
+	response = CreateBandOfferOrderResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// BandOfferOrderWithChan invokes the snsuapi.BandOfferOrder API asynchronously
+// api document: https://help.aliyun.com/api/snsuapi/bandofferorder.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BandOfferOrderWithChan(request *BandOfferOrderRequest) (<-chan *BandOfferOrderResponse, <-chan error) {
+	responseChan := make(chan *BandOfferOrderResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.BandOfferOrder(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// BandOfferOrderWithCallback invokes the snsuapi.BandOfferOrder API asynchronously
+// api document: https://help.aliyun.com/api/snsuapi/bandofferorder.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BandOfferOrderWithCallback(request *BandOfferOrderRequest, callback func(response *BandOfferOrderResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *BandOfferOrderResponse
+		var err error
+		defer close(result)
+		response, err = client.BandOfferOrder(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// BandOfferOrderRequest is the request struct for api BandOfferOrder
+type BandOfferOrderRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	BandId               string           `position:"Query" name:"BandId"`
+	OfferId              string           `position:"Query" name:"OfferId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// BandOfferOrderResponse is the response struct for api BandOfferOrder
+type BandOfferOrderResponse struct {
+	*responses.BaseResponse
+	RequestId     string `json:"RequestId" xml:"RequestId"`
+	ResultCode    string `json:"ResultCode" xml:"ResultCode"`
+	ResultMessage string `json:"ResultMessage" xml:"ResultMessage"`
+	ResultModule  string `json:"ResultModule" xml:"ResultModule"`
+}
+
+// CreateBandOfferOrderRequest creates a request to invoke BandOfferOrder API
+func CreateBandOfferOrderRequest() (request *BandOfferOrderRequest) {
+	request = &BandOfferOrderRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Snsuapi", "2018-07-09", "BandOfferOrder", "", "")
+	return
+}
+
+// CreateBandOfferOrderResponse creates a response to parse from BandOfferOrder response
+func CreateBandOfferOrderResponse() (response *BandOfferOrderResponse) {
+	response = &BandOfferOrderResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/snsuapi/band_precheck.go

@@ -0,0 +1,110 @@
+package snsuapi
+
+//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"
+)
+
+// BandPrecheck invokes the snsuapi.BandPrecheck API synchronously
+// api document: https://help.aliyun.com/api/snsuapi/bandprecheck.html
+func (client *Client) BandPrecheck(request *BandPrecheckRequest) (response *BandPrecheckResponse, err error) {
+	response = CreateBandPrecheckResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// BandPrecheckWithChan invokes the snsuapi.BandPrecheck API asynchronously
+// api document: https://help.aliyun.com/api/snsuapi/bandprecheck.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BandPrecheckWithChan(request *BandPrecheckRequest) (<-chan *BandPrecheckResponse, <-chan error) {
+	responseChan := make(chan *BandPrecheckResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.BandPrecheck(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// BandPrecheckWithCallback invokes the snsuapi.BandPrecheck API asynchronously
+// api document: https://help.aliyun.com/api/snsuapi/bandprecheck.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BandPrecheckWithCallback(request *BandPrecheckRequest, callback func(response *BandPrecheckResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *BandPrecheckResponse
+		var err error
+		defer close(result)
+		response, err = client.BandPrecheck(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// BandPrecheckRequest is the request struct for api BandPrecheck
+type BandPrecheckRequest struct {
+	*requests.RpcRequest
+	IpAddress            string           `position:"Query" name:"IpAddress"`
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	Port                 requests.Integer `position:"Query" name:"Port"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// BandPrecheckResponse is the response struct for api BandPrecheck
+type BandPrecheckResponse struct {
+	*responses.BaseResponse
+	RequestId     string       `json:"RequestId" xml:"RequestId"`
+	ResultCode    string       `json:"ResultCode" xml:"ResultCode"`
+	ResultMessage string       `json:"ResultMessage" xml:"ResultMessage"`
+	ResultModule  ResultModule `json:"ResultModule" xml:"ResultModule"`
+}
+
+// CreateBandPrecheckRequest creates a request to invoke BandPrecheck API
+func CreateBandPrecheckRequest() (request *BandPrecheckRequest) {
+	request = &BandPrecheckRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Snsuapi", "2018-07-09", "BandPrecheck", "", "")
+	return
+}
+
+// CreateBandPrecheckResponse creates a response to parse from BandPrecheck response
+func CreateBandPrecheckResponse() (response *BandPrecheckResponse) {
+	response = &BandPrecheckResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 114 - 0
services/snsuapi/band_start_speed_up.go

@@ -0,0 +1,114 @@
+package snsuapi
+
+//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"
+)
+
+// BandStartSpeedUp invokes the snsuapi.BandStartSpeedUp API synchronously
+// api document: https://help.aliyun.com/api/snsuapi/bandstartspeedup.html
+func (client *Client) BandStartSpeedUp(request *BandStartSpeedUpRequest) (response *BandStartSpeedUpResponse, err error) {
+	response = CreateBandStartSpeedUpResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// BandStartSpeedUpWithChan invokes the snsuapi.BandStartSpeedUp API asynchronously
+// api document: https://help.aliyun.com/api/snsuapi/bandstartspeedup.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BandStartSpeedUpWithChan(request *BandStartSpeedUpRequest) (<-chan *BandStartSpeedUpResponse, <-chan error) {
+	responseChan := make(chan *BandStartSpeedUpResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.BandStartSpeedUp(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// BandStartSpeedUpWithCallback invokes the snsuapi.BandStartSpeedUp API asynchronously
+// api document: https://help.aliyun.com/api/snsuapi/bandstartspeedup.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BandStartSpeedUpWithCallback(request *BandStartSpeedUpRequest, callback func(response *BandStartSpeedUpResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *BandStartSpeedUpResponse
+		var err error
+		defer close(result)
+		response, err = client.BandStartSpeedUp(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// BandStartSpeedUpRequest is the request struct for api BandStartSpeedUp
+type BandStartSpeedUpRequest struct {
+	*requests.RpcRequest
+	IpAddress            string           `position:"Query" name:"IpAddress"`
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	Port                 requests.Integer `position:"Query" name:"Port"`
+	BandId               requests.Integer `position:"Query" name:"BandId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	TargetBandwidth      requests.Integer `position:"Query" name:"TargetBandwidth"`
+	BandScene            string           `position:"Query" name:"BandScene"`
+	Direction            string           `position:"Query" name:"Direction"`
+}
+
+// BandStartSpeedUpResponse is the response struct for api BandStartSpeedUp
+type BandStartSpeedUpResponse struct {
+	*responses.BaseResponse
+	RequestId     string `json:"RequestId" xml:"RequestId"`
+	ResultCode    string `json:"ResultCode" xml:"ResultCode"`
+	ResultMessage string `json:"ResultMessage" xml:"ResultMessage"`
+	ResultModule  bool   `json:"ResultModule" xml:"ResultModule"`
+}
+
+// CreateBandStartSpeedUpRequest creates a request to invoke BandStartSpeedUp API
+func CreateBandStartSpeedUpRequest() (request *BandStartSpeedUpRequest) {
+	request = &BandStartSpeedUpRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Snsuapi", "2018-07-09", "BandStartSpeedUp", "", "")
+	return
+}
+
+// CreateBandStartSpeedUpResponse creates a response to parse from BandStartSpeedUp response
+func CreateBandStartSpeedUpResponse() (response *BandStartSpeedUpResponse) {
+	response = &BandStartSpeedUpResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/snsuapi/band_status_query.go

@@ -0,0 +1,109 @@
+package snsuapi
+
+//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"
+)
+
+// BandStatusQuery invokes the snsuapi.BandStatusQuery API synchronously
+// api document: https://help.aliyun.com/api/snsuapi/bandstatusquery.html
+func (client *Client) BandStatusQuery(request *BandStatusQueryRequest) (response *BandStatusQueryResponse, err error) {
+	response = CreateBandStatusQueryResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// BandStatusQueryWithChan invokes the snsuapi.BandStatusQuery API asynchronously
+// api document: https://help.aliyun.com/api/snsuapi/bandstatusquery.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BandStatusQueryWithChan(request *BandStatusQueryRequest) (<-chan *BandStatusQueryResponse, <-chan error) {
+	responseChan := make(chan *BandStatusQueryResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.BandStatusQuery(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// BandStatusQueryWithCallback invokes the snsuapi.BandStatusQuery API asynchronously
+// api document: https://help.aliyun.com/api/snsuapi/bandstatusquery.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BandStatusQueryWithCallback(request *BandStatusQueryRequest, callback func(response *BandStatusQueryResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *BandStatusQueryResponse
+		var err error
+		defer close(result)
+		response, err = client.BandStatusQuery(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// BandStatusQueryRequest is the request struct for api BandStatusQuery
+type BandStatusQueryRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	BandId               requests.Integer `position:"Query" name:"BandId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// BandStatusQueryResponse is the response struct for api BandStatusQuery
+type BandStatusQueryResponse struct {
+	*responses.BaseResponse
+	RequestId     string       `json:"RequestId" xml:"RequestId"`
+	ResultCode    string       `json:"ResultCode" xml:"ResultCode"`
+	ResultMessage string       `json:"ResultMessage" xml:"ResultMessage"`
+	ResultModule  ResultModule `json:"ResultModule" xml:"ResultModule"`
+}
+
+// CreateBandStatusQueryRequest creates a request to invoke BandStatusQuery API
+func CreateBandStatusQueryRequest() (request *BandStatusQueryRequest) {
+	request = &BandStatusQueryRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Snsuapi", "2018-07-09", "BandStatusQuery", "", "")
+	return
+}
+
+// CreateBandStatusQueryResponse creates a response to parse from BandStatusQuery response
+func CreateBandStatusQueryResponse() (response *BandStatusQueryResponse) {
+	response = &BandStatusQueryResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 112 - 0
services/snsuapi/band_stop_speed_up.go

@@ -0,0 +1,112 @@
+package snsuapi
+
+//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"
+)
+
+// BandStopSpeedUp invokes the snsuapi.BandStopSpeedUp API synchronously
+// api document: https://help.aliyun.com/api/snsuapi/bandstopspeedup.html
+func (client *Client) BandStopSpeedUp(request *BandStopSpeedUpRequest) (response *BandStopSpeedUpResponse, err error) {
+	response = CreateBandStopSpeedUpResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// BandStopSpeedUpWithChan invokes the snsuapi.BandStopSpeedUp API asynchronously
+// api document: https://help.aliyun.com/api/snsuapi/bandstopspeedup.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BandStopSpeedUpWithChan(request *BandStopSpeedUpRequest) (<-chan *BandStopSpeedUpResponse, <-chan error) {
+	responseChan := make(chan *BandStopSpeedUpResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.BandStopSpeedUp(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// BandStopSpeedUpWithCallback invokes the snsuapi.BandStopSpeedUp API asynchronously
+// api document: https://help.aliyun.com/api/snsuapi/bandstopspeedup.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BandStopSpeedUpWithCallback(request *BandStopSpeedUpRequest, callback func(response *BandStopSpeedUpResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *BandStopSpeedUpResponse
+		var err error
+		defer close(result)
+		response, err = client.BandStopSpeedUp(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// BandStopSpeedUpRequest is the request struct for api BandStopSpeedUp
+type BandStopSpeedUpRequest struct {
+	*requests.RpcRequest
+	IpAddress            string           `position:"Query" name:"IpAddress"`
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	Port                 requests.Integer `position:"Query" name:"Port"`
+	BandId               requests.Integer `position:"Query" name:"BandId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	Direction            string           `position:"Query" name:"Direction"`
+}
+
+// BandStopSpeedUpResponse is the response struct for api BandStopSpeedUp
+type BandStopSpeedUpResponse struct {
+	*responses.BaseResponse
+	RequestId     string `json:"RequestId" xml:"RequestId"`
+	ResultCode    string `json:"ResultCode" xml:"ResultCode"`
+	ResultMessage string `json:"ResultMessage" xml:"ResultMessage"`
+	ResultModule  bool   `json:"ResultModule" xml:"ResultModule"`
+}
+
+// CreateBandStopSpeedUpRequest creates a request to invoke BandStopSpeedUp API
+func CreateBandStopSpeedUpRequest() (request *BandStopSpeedUpRequest) {
+	request = &BandStopSpeedUpRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Snsuapi", "2018-07-09", "BandStopSpeedUp", "", "")
+	return
+}
+
+// CreateBandStopSpeedUpResponse creates a response to parse from BandStopSpeedUp response
+func CreateBandStopSpeedUpResponse() (response *BandStopSpeedUpResponse) {
+	response = &BandStopSpeedUpResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 81 - 0
services/snsuapi/client.go

@@ -0,0 +1,81 @@
+package snsuapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
+)
+
+// Client is the sdk client struct, each func corresponds to an OpenAPI
+type Client struct {
+	sdk.Client
+}
+
+// NewClient creates a sdk client with environment variables
+func NewClient() (client *Client, err error) {
+	client = &Client{}
+	err = client.Init()
+	return
+}
+
+// NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential
+// this is the common api to create a sdk client
+func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithOptions(regionId, config, credential)
+	return
+}
+
+// NewClientWithAccessKey is a shortcut to create sdk client with accesskey
+// usage: https://help.aliyun.com/document_detail/66217.html
+func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	return
+}
+
+// NewClientWithStsToken is a shortcut to create sdk client with sts token
+// usage: https://help.aliyun.com/document_detail/66222.html
+func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
+// usage: https://help.aliyun.com/document_detail/66222.html
+func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	return
+}
+
+// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
+// usage: https://help.aliyun.com/document_detail/66223.html
+func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithEcsRamRole(regionId, roleName)
+	return
+}
+
+// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
+// attention: rsa key pair auth is only Japan regions available
+func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	return
+}

+ 21 - 0
services/snsuapi/struct_band_offer_list.go

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

+ 24 - 0
services/snsuapi/struct_band_offer_list_item.go

@@ -0,0 +1,24 @@
+package snsuapi
+
+//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.
+
+// BandOfferListItem is a nested struct in snsuapi response
+type BandOfferListItem struct {
+	OfferId   int    `json:"OfferId" xml:"OfferId"`
+	Bandwidth int    `json:"Bandwidth" xml:"Bandwidth"`
+	Duration  int    `json:"Duration" xml:"Duration"`
+	Direction string `json:"Direction" xml:"Direction"`
+}

+ 26 - 0
services/snsuapi/struct_result_module.go

@@ -0,0 +1,26 @@
+package snsuapi
+
+//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.
+
+// ResultModule is a nested struct in snsuapi response
+type ResultModule struct {
+	DownloadTarget    int           `json:"DownloadTarget" xml:"DownloadTarget"`
+	DownloadBandwidth int           `json:"DownloadBandwidth" xml:"DownloadBandwidth"`
+	BandId            int           `json:"BandId" xml:"BandId"`
+	UploadBandwidth   int           `json:"UploadBandwidth" xml:"UploadBandwidth"`
+	UploadTarget      int           `json:"UploadTarget" xml:"UploadTarget"`
+	BandOfferList     BandOfferList `json:"BandOfferList" xml:"BandOfferList"`
+}